Skip to content

ArchiDiagramObject

cda-developer-portal


cda-developer-portal / ArchiDiagramObject

Defined in: domain/diagram.d.ts:69

A visual node within a view: an Archi DiagramObject (a visual representation of an ArchiElement) or any other non-Note visual container Archi may place in a diagram (e.g. a Group, which has no underlying semantic element). Any such node is preserved generically — the parser does not require it to be a recognized “DiagramObject” type.

archimateElementId: string | null

Defined in: domain/diagram.d.ts:78

Id of the referenced semantic element, or null for pure visual containers (e.g. Group).


bounds: ArchiBounds | null

Defined in: domain/diagram.d.ts:91


childrenIds: string[]

Defined in: domain/diagram.d.ts:117

Ids of diagram objects nested directly inside this one.


connectionIds: string[]

Defined in: domain/diagram.d.ts:119

Ids of diagram connections whose source is this diagram object.


documentation: string | null

Defined in: domain/diagram.d.ts:111

<documentation> set directly on this visual object — only meaningful for a Group/DiagramModelReference (archimateElementId === null), which has no underlying semantic element to carry documentation instead. null when absent (the common case for an element-backed DiagramObject, whose documentation lives on the element itself).


features: ArchiFeature[]

Defined in: domain/diagram.d.ts:115

Native <feature> entries (e.g. labelExpression) — see ArchiFeature.


figureType: string | null

Defined in: domain/diagram.d.ts:103

Raw native type attribute — Archi’s alternate figure/icon selector for element types that support more than one visual representation (e.g. "0"/"1"). Not decoded to a named enum: its meaning is figure-specific and only Archi’s own UI knows how to interpret it per element type: preserved verbatim, like textPosition.


id: string

Defined in: domain/diagram.d.ts:70


name: string | null

Defined in: domain/diagram.d.ts:71


parentId: string | null

Defined in: domain/diagram.d.ts:76

Id of the parent diagram object, or null if directly owned by the view.


referencedModelId: string | null

Defined in: domain/diagram.d.ts:90

Id of the referenced IDiagramModel (native model attribute), present only on a DiagramModelReference node — Archi’s “insert view as reference” visual object. null for every other diagram-object type, including GroupxsiType, not archimateElementId, is the correct discriminator between the two: both have a null archimateElementId, but only a DiagramModelReference has a referencedModelId. The referenced id may point at any IDiagramModel (an ArchiMate diagram, or a Sketch/Canvas view), not only another ArchiView.


style: ArchiStyle | null

Defined in: domain/diagram.d.ts:113

Native visual styling (fill/line/font color, font), or null if none of those attributes were set.


textAlignment: string | null

Defined in: domain/diagram.d.ts:95

Raw textAlignment attribute (a coded value, not parsed to a number).


textPosition: string | null

Defined in: domain/diagram.d.ts:93

Raw textPosition attribute (a coded value, not parsed to a number).


viewId: string

Defined in: domain/diagram.d.ts:74


xsiType: string

Defined in: domain/diagram.d.ts:73

Verbatim xsi:type attribute, e.g. “archimate:DiagramObject” or “archimate:Group”.