跳到主要内容

mind-elixir.options

Home > mind-elixir > Options

Options interface

The MindElixir options

Signature:

export interface Options 

Properties

Property

Modifiers

Type

Description

alignment?

Alignment

(Optional)

allowUndo?

boolean

(Optional)

before?

Before

(Optional)

contextMenu?

boolean | ContextMenuOption

(Optional)

direction?

number

(Optional)

draggable?

boolean

(Optional)

editable?

boolean

(Optional)

el

string | HTMLElement

generateMainBranch?

(this: MindElixirInstance, params: MainLineParams) => PathString

(Optional)

generateSubBranch?

(this: MindElixirInstance, params: SubLineParams) => PathString

(Optional)

handleWheel?

true | ((e: WheelEvent) => void)

(Optional)

imageProxy?

(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

keypress?

boolean | KeypressOptions

(Optional)

locale?

Locale

(Optional)

markdown?

(markdown: string) => string

(Optional) Custom markdown parser function that takes markdown string and returns HTML string If not provided, markdown will be disabled undefined

mouseSelectionButton?

0 | 2

(Optional)

newTopicName?

string

(Optional)

overflowHidden?

boolean

(Optional)

scaleMax?

number

(Optional)

scaleMin?

number

(Optional)

scaleSensitivity?

number

(Optional)

selectionContainer?

string | HTMLElement

(Optional)

theme?

Theme

(Optional)

toolBar?

boolean

(Optional)