Plain-object description of one element: your custom data plus the visual
fields JointJS understands (position, size, angle, attrs, ports, and
the portMap/portStyle preset extras). Use it for initialCells entries
and when adding or updating cells; reading hooks hand back its
Computed<ElementRecord> form (fields the store always populates are required).
Type defaults to 'element' so cell.type === 'element' narrows the
CellRecord union; set it to a shape name (e.g. 'standard.Rectangle')
for a built-in or custom shape.
Type Parameters
ElementData = unknown
shape of the custom data payload carried on the element
Plain-object description of one element: your custom
dataplus the visual fields JointJS understands (position,size,angle,attrs, ports, and theportMap/portStylepreset extras). Use it forinitialCellsentries and when adding or updating cells; reading hooks hand back itsComputed<ElementRecord>form (fields the store always populates are required).Typedefaults to'element'socell.type === 'element'narrows the CellRecord union; set it to a shape name (e.g.'standard.Rectangle') for a built-in or custom shape.