Options interface
Home > mind-elixir > Options
Options interface
The MindElixir options
Signature:
export interface Options<M = any>
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Alignment |
(Optional) | ||
|
boolean |
(Optional) | ||
|
Before |
(Optional) | ||
|
boolean |
(Optional) Compact mode. If true, distance fields will be controlled to a small value. | ||
|
boolean | ContextMenuOption |
(Optional) | ||
|
0 | 1 | 2 | 3 |
(Optional) | ||
|
boolean |
(Optional) | ||
|
string | HTMLElement | |||
|
(this: MindElixir<M>, params: MainLineParams) => PathString |
(Optional) | ||
|
(this: MindElixir<M>, params: SubLineParams) => PathString |
(Optional) | ||
|
true | ((e: WheelEvent) => void) |
(Optional) | ||
|
(url: string) => string |
(Optional) Image proxy function to handle image URLs, mainly used to solve CORS issues If provided, all image URLs will be processed through this function before setting to img src undefined | ||
|
boolean | KeypressOptions |
(Optional) | ||
|
(markdown: string, obj: NodeObj<M> | Arrow<M> | Summary) => string |
(Optional) Custom markdown parser function that takes markdown string and returns HTML string If not provided, markdown will be disabled undefined | ||
|
boolean |
(Optional) Enable mobile multi-select mode false | ||
|
0 | 2 |
(Optional) | ||
|
string |
(Optional) | ||
|
boolean |
(Optional) | ||
|
(e: ClipboardEvent) => void |
(Optional) Custom paste handler when there are no nodes copied; undefined | ||
|
boolean |
(Optional) Right-to-left text mode, for languages written right to left (Arabic, Hebrew, Persian, Urdu). Adds an This is TEXT direction only — it does not mirror the layout. Where the main branches are placed is a separate axis, see Options.direction. false | ||
|
number |
(Optional) | ||
|
number |
(Optional) | ||
|
number |
(Optional) | ||
|
string | HTMLElement |
(Optional) | ||
|
Theme<M> |
(Optional) | ||
|
boolean |
(Optional) |