mind-elixir
Version:
Mind elixir is a free open source mind map core.
22 lines (21 loc) • 1.18 kB
TypeScript
import type MindElixir from '../index';
import type { Topic, Wrapper, Parent, Children, Expander } from '../types/dom';
import { DirectionClass, type NodeObj } from '../types/index';
export declare const findEle: (this: MindElixir, id: string, el?: HTMLElement) => Topic<any>;
export declare const shapeTpc: (this: MindElixir, tpc: Topic, nodeObj: NodeObj) => void;
export declare const createWrapper: (this: MindElixir, nodeObj: NodeObj, omitChildren?: boolean) => {
grp: Wrapper;
top: Parent;
tpc: Topic<any>;
};
export declare const createParent: (this: MindElixir, nodeObj: NodeObj) => {
p: Parent;
tpc: Topic<any>;
};
export declare const createChildren: (this: MindElixir, wrappers: Wrapper[]) => Children;
export declare const createTopic: (this: MindElixir, nodeObj: NodeObj) => Topic<any>;
export declare const createMain: (directionClass: DirectionClass) => HTMLElement;
export declare const directionOf: (el: Element) => DirectionClass;
export declare function selectText(div: HTMLElement): void;
export declare const editTopic: (this: MindElixir, el: Topic) => void;
export declare const createExpander: (expanded: boolean | undefined) => Expander;