Skip to content
D
Documentation

SerializedPort

reference
1 min readUpdated

Import it from @grafloria/engine.

Also has every member of SerializedEntity, listed on its own entry.

ts
interface SerializedPort extends SerializedEntity

Properties

NameTypeDefaultDescription
nodeIdstring
type'input' | 'output' | 'bi'
systemType?string
positionPortPosition
alignmentPortAlignment
offsetPoint
indexnumber
maxConnectionsnumber | null
allowedTypesstring[]
visibleboolean
styleRecord<string, any>
dataRecord<string, any>
renderingConfig?any
group?string
explicitSide?booleanWas side/alignment explicitly declared (vs. inherited from a group)?
shape?PortShapeSpec
label?PortLabelSpec
layout?PortLayoutSpec
fromSpot?PortSpot
toSpot?PortSpot
spread?PortSpreadSpec
dataType?string
isConnectableStart?boolean
isConnectableEnd?boolean
fromMaxLinks?number | nullnull = unlimited (mirrors the maxConnections sentinel).
toMaxLinks?number | null
allowSelfLink?boolean
allowDuplicateLinks?boolean
dynamic?booleanTrue for ports spawned by the dynamic auto-port allocator.

Was this page helpful?

SerializedPort — Grafloria