メインコンテンツまでスキップ

mind-elixir.mindelixirinstance

Home > mind-elixir > MindElixirInstance

MindElixirInstance interface

The MindElixir instance

Signature:

export interface MindElixirInstance extends Omit<Required<Options>, 'markdown' | 'imageProxy'>, MindElixirMethods 

Extends: Omit<Required<Options>, 'markdown' | 'imageProxy'>, MindElixirMethods

Properties

Property

Modifiers

Type

Description

arrows

Arrow[]

bus

ReturnType<typeof createBus<EventMap>>

clearHistory?

() => 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 refresh()) to prevent users from undoing back into a previously loaded diagram.

Only available when allowUndo is true (the default).

container

HTMLElement

currentArrow

CustomSvg | null

currentNode

readonly

Topic | null

currentNodes

Topic[]

currentSummary

SummarySvgGroup | null

disposable

Array<() => void>

dragged

Topic[] | null

dragMoveHelper

ReturnType<typeof createDragMoveHelper>

el

HTMLElement

history

Operation[]

imageProxy?

(url: string) => string

(Optional)

isFocusMode

boolean

labelContainer

HTMLElement

line1

SVGElement

line2

SVGElement

lines

SVGElement

linkController

SVGElement

linkSvgGroup

SVGElement

map

HTMLElement

markdown?

(markdown: string, obj: NodeObj | Arrow | Summary) => string

(Optional)

nodeData

NodeObj

nodeDataBackup

NodeObj

nodes

HTMLElement

P2

HTMLElement

P3

HTMLElement

redo

() => void

root

HTMLElement

scaleVal

number

selection

SelectionArea

spacePressed

boolean

summaries

Summary[]

summarySvg

SVGElement

tempDirection

0 | 1 | 2 | null

undo

() => void