UNPKG

@umbraci/jsmind

Version:

jsMind is a pure javascript library for mindmap, it base on html5 canvas. jsMind was released under BSD license, you can embed it in any project, if only you observe the license.

59 lines (58 loc) 1.84 kB
export default MultilineTextV2; /** * MultilineTextV2 Plugin * Enhanced multiline text plugin using the new plugin system */ declare class MultilineTextV2 extends EnhancedPlugin { /** * @param {{ jm: import('../jsmind.js').default, pluginOpt: object }} params */ constructor({ jm, pluginOpt }: { jm: import("../jsmind.js").default; pluginOpt: object; }); options: any; editing_node: import("../jsmind.node.js").Node; multiline_editor: HTMLElement; _original_custom_render: Function | ((jm: import("../jsmind.js").default, ele: HTMLElement, node: import("../jsmind.node.js").Node) => void); _original_edit_node_begin: any; _original_edit_node_end: any; /** * Setup custom rendering in options (for preload plugins) */ setupCustomRenderInOptions(): void; /** * Setup custom rendering for multiline text (for normal plugins) */ setupCustomRender(): void; /** * Setup edit handlers (common for both preload and normal plugins) */ setupEditHandlers(): void; /** * Re-render all nodes to apply multiline styles and recalculate sizes. * This is necessary because node sizes are calculated before custom styles are applied. * @private */ private _rerender_all_nodes; /** * Begin editing a node * @param {import('../jsmind.node.js').Node} node */ edit_node_begin(node: import("../jsmind.node.js").Node): void; /** * End editing and save changes. */ edit_node_end(): void; /** * Cancel editing without saving changes. */ cancel_editing(): void; /** * Clean up editor and reset state. * @private */ private _cleanup_editor; } import { EnhancedPlugin } from '../jsmind.enhanced-plugin.js'; import jsMind from '../jsmind.js';