MindElixir class
Home > mind-elixir > MindElixir
MindElixir class
Signature:
declare class MindElixir<M = any>
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a new instance of the |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
(el?: Topic<M> | undefined, node?: NodeObj<M> | undefined) => Promise<void> | |||
|
Alignment | |||
|
boolean | |||
|
Arrow<M>[] | |||
|
SVGElement | |||
|
Before | |||
|
(el?: Topic<M> | undefined) => Promise<void> | |||
|
ReturnType<typeof createBus<EventMap>> | |||
|
() => void | |||
|
(compact: boolean) => void | |||
|
(theme: Theme<M>, shouldRefresh?: boolean) => void | |||
|
() => void |
(Optional) Reset the undo/redo stack and update the internal baseline snapshot to the current diagram state. Call this after loading new data into an existing instance (e.g. after Also called automatically by Only available when | ||
|
() => void | |||
|
boolean | |||
|
HTMLElement | |||
|
boolean | ContextMenuOption | |||
|
(from: Topic<M>, to: Topic<M>, options?: ArrowOptions) => void | |||
|
(arrow: Omit<Arrow<M>, 'id'>) => void | |||
|
(options?: SummaryOptions) => void | |||
|
(summary: Omit<Summary, 'id'>) => void | |||
|
(nodeObj: NodeObj<M>, omitChildren?: boolean) => { grp: Wrapper; top: Parent; tpc: Topic<M>; } | |||
|
ArrowSvg | null | |||
|
|
Topic<M> | null | ||
|
Topic<M>[] | |||
|
SummarySvg | null | |||
|
|
Theme & { cssVar: ThemeCssVar; } | ||
|
() => void | |||
|
(data: MindElixirData<M>) => boolean |
Install a document like does, but apply only the difference — unchanged nodes keep their element, listeners and measured size, and the map is never re-laid-out from scratch. Installed by default; returns
| ||
|
0 | 1 | 2 | 3 | |||
|
() => void | |||
|
Array<() => void> | |||
|
|
(not declared) | ||
|
Topic<M>[] | null | |||
|
|
typeof findEle |
MindElixir E | |
|
boolean | |||
|
(el: ArrowSvg) => void | |||
|
(el: SummarySvg) => void | |||
|
(el: Topic<M>) => void | |||
|
HTMLElement | |||
|
() => void | |||
|
(enable: boolean) => void | |||
|
(el: Topic<M>, isExpand?: boolean, options?: ExpandNodeOptions) => void | |||
|
(el: Topic<M>, isExpand?: boolean, options?: ExpandNodeOptions) => void | |||
|
(id: string, el?: HTMLElement) => Topic<M> | |||
|
(el: Topic<M>) => void | |||
|
(this: MindElixir<M>, params: MainLineParams) => string | |||
|
() => NodeObjExport<M> | |||
|
(this: MindElixir<M>, params: SubLineParams) => string | |||
|
() => MindElixirData<M> | |||
|
() => string | |||
|
true | ((e: WheelEvent) => void) | |||
|
HistoryStack |
(Optional) Shared undo/redo journal, created by the operation-history plugin during | ||
|
(url: string) => string |
(Optional) | ||
|
(data: MindElixirData<M>) => Promise<Error | undefined> | |||
|
() => void | |||
|
() => void | |||
|
() => void | |||
|
() => void | |||
|
(el?: Topic<M> | undefined, node?: NodeObj<M> | undefined) => Promise<void> | |||
|
(type: 'before' | 'after', el?: Topic<M> | undefined, node?: NodeObj<M> | undefined) => Promise<void> | |||
|
(plugin: (instance: MindElixir<M>) => void) => void | |||
|
boolean | |||
|
boolean | KeypressOptions | |||
|
HTMLElement | |||
|
() => void | |||
|
|
(not declared) | ||
|
SVGElement | |||
|
SVGElement | |||
|
SVGElement | |||
|
SVGElement | |||
|
(mainNode?: Wrapper) => void | |||
|
HTMLElement | |||
|
(markdown: string, obj: NodeObj<M> | Arrow<M> | Summary) => string |
(Optional) | ||
|
Record<string, any> |
(Optional) | ||
|
boolean | |||
|
0 | 2 | |||
|
(dx: number, dy: number, smooth?: boolean) => boolean | |||
|
(el?: Topic<M> | undefined) => Promise<void> | |||
|
(el?: Topic<M> | undefined) => Promise<void> | |||
|
|
<M_1 = unknown>(topic: string) => MindElixirData<M_1> |
new MindElixir | |
|
string | |||
|
NodeObj<M> | |||
|
NodeObj<M> | |||
|
HTMLElement | |||
|
boolean | |||
|
HTMLElement | |||
|
HTMLElement | |||
|
ReturnType<typeof createPanHelper> | |||
|
(e: ClipboardEvent) => void | |||
|
number |
(Optional) | ||
|
() => void | |||
|
(data?: MindElixirData<M>) => void | |||
|
(linkSvg?: ArrowSvg) => void | |||
|
(tpcs: Topic<M>[]) => Promise<void> | |||
|
(id: string) => void | |||
|
() => void | |||
|
() => void | |||
|
(tpc: Topic<M>, patchData: Partial<NodeObj<M>>) => Promise<void> | |||
|
|
(not declared) | ||
|
(tpc: Topic<M>) => Promise<void> | |||
|
HTMLElement | |||
|
boolean | |||
|
(scaleVal: number, offset?: { x: number; y: number; }) => void | |||
|
() => void | |||
|
number | |||
|
number | |||
|
number | |||
|
number | |||
|
(el: HTMLElement, forceCenter?: boolean) => void | |||
|
(link: ArrowSvg) => void | |||
|
SelectionArea | |||
|
string | HTMLElement | |||
|
(tpc: Topic<M>, isNewNode?: boolean, e?: MouseEvent) => void | |||
|
(tpcs: Topic<M>[]) => void | |||
|
(el: SummarySvg) => void | |||
|
(el: Topic<M>, topic: string) => Promise<void> | |||
|
|
(not declared) | ||
|
boolean | |||
|
(data: object) => string | |||
|
Summary[] | |||
|
SVGElement | |||
|
0 | 1 | 2 | 3 | null | |||
|
ResolvedTheme<M> | |||
|
|
Theme & { cssVar: ThemeCssVar; } | ||
|
() => void | |||
|
() => void | |||
|
boolean | |||
|
() => void | |||
|
() => void | |||
|
(tpcs: Topic<M>[]) => void | |||
|
() => void | |||
|
|
string |
MindElixir |