@mermaid-editor-sdk/headless / SourceRegion
Interface: SourceRegion
Defined in: source/source-document.ts:7
A source span classified for safe diagram mutations.
Properties
editable
editable:
boolean
Defined in: source/source-document.ts:21
Whether the region can be safely edited.
end
end:
number
Defined in: source/source-document.ts:13
End offset of the editable text, exclusive.
fullEnd
fullEnd:
number
Defined in: source/source-document.ts:15
End offset including the original line ending, when present.
kind
kind:
SourceRegionKind
Defined in: source/source-document.ts:9
Content category for this span.
rawText
rawText:
string
Defined in: source/source-document.ts:19
Original source text for the full region.
start
start:
number
Defined in: source/source-document.ts:11
Start offset of the editable text, inclusive.
text
text:
string
Defined in: source/source-document.ts:17
Normalized text content.