@mermaid-editor-sdk/headless / StateTransition
Interface: StateTransition
Defined in: source/state-mutations.ts:4
A parsed state transition and offsets for its editable source tokens.
Properties
end
end:
number
Defined in: source/state-mutations.ts:16
End offset in the source.
label
label:
string
Defined in: source/state-mutations.ts:10
Displayed label.
labelEnd?
optionallabelEnd?:number
Defined in: source/state-mutations.ts:30
End offset of the label, when present.
labelSeparatorStart?
optionallabelSeparatorStart?:number
Defined in: source/state-mutations.ts:26
Start offset of the label separator, when present.
labelStart?
optionallabelStart?:number
Defined in: source/state-mutations.ts:28
Start offset of the label, when present.
occurrence
occurrence:
number
Defined in: source/state-mutations.ts:12
Zero-based occurrence among matching elements.
source
source:
string
Defined in: source/state-mutations.ts:6
Source element or entity identifier.
sourceEnd
sourceEnd:
number
Defined in: source/state-mutations.ts:20
End offset of the source token.
sourceStart
sourceStart:
number
Defined in: source/state-mutations.ts:18
Start offset of the source token.
start
start:
number
Defined in: source/state-mutations.ts:14
Start offset in the source.
target
target:
string
Defined in: source/state-mutations.ts:8
Target element or entity identifier.
targetEnd
targetEnd:
number
Defined in: source/state-mutations.ts:24
End offset of the target token.
targetStart
targetStart:
number
Defined in: source/state-mutations.ts:22
Start offset of the target token.