@mermaid-editor-sdk/headless


@mermaid-editor-sdk/headless / ERRelationship

Interface: ERRelationship

Defined in: source/er-mutations.ts:9

A parsed ER relationship and offsets for its editable source tokens.

Properties

cardinality

cardinality: ERCardinality

Defined in: source/er-mutations.ts:15

Relationship cardinality.


end

end: number

Defined in: source/er-mutations.ts:25

End offset in the source.


identifying

identifying: boolean

Defined in: source/er-mutations.ts:17

Whether this is an identifying relationship.


label

label: string

Defined in: source/er-mutations.ts:19

Displayed label.


labelEnd?

optional labelEnd?: number

Defined in: source/er-mutations.ts:41

End offset of the label, when present.


labelSeparatorStart?

optional labelSeparatorStart?: number

Defined in: source/er-mutations.ts:43

Start offset of the label separator, when present.


labelStart?

optional labelStart?: number

Defined in: source/er-mutations.ts:39

Start offset of the label, when present.


occurrence

occurrence: number

Defined in: source/er-mutations.ts:21

Zero-based occurrence among matching elements.


operatorEnd

operatorEnd: number

Defined in: source/er-mutations.ts:33

End offset of the operator token.


operatorStart

operatorStart: number

Defined in: source/er-mutations.ts:31

Start offset of the operator token.


source

source: string

Defined in: source/er-mutations.ts:11

Source element or entity identifier.


sourceEnd

sourceEnd: number

Defined in: source/er-mutations.ts:29

End offset of the source token.


sourceStart

sourceStart: number

Defined in: source/er-mutations.ts:27

Start offset of the source token.


start

start: number

Defined in: source/er-mutations.ts:23

Start offset in the source.


target

target: string

Defined in: source/er-mutations.ts:13

Target element or entity identifier.


targetEnd

targetEnd: number

Defined in: source/er-mutations.ts:37

End offset of the target token.


targetStart

targetStart: number

Defined in: source/er-mutations.ts:35

Start offset of the target token.