OptionalclassExtra CSS class added to the port shape alongside the built-in jj-port class.
OptionalcolorFill color of the port shape. Any CSS color; when empty the port inherits the jj-port stylesheet fill.
OptionalcxHorizontal position of the port, relative to the element, for absolute
placement. Accepts a number or a calc() expression such as 'calc(w)'.
Omit to let the port group position the port instead.
OptionalcyVertical position of the port, relative to the element, for absolute
placement. Accepts a number or a calc() expression such as 'calc(h)'.
Omit to let the port group position the port instead.
OptionalheightHeight of the port shape, in pixels.
OptionallabelText label rendered next to the port. Omit for an unlabeled port.
OptionallabelExtra CSS class added to the label alongside the built-in jj-port-label class.
OptionallabelColor of the label text. Any CSS color; when empty the color comes from the stylesheet.
OptionallabelFont family of the label text. When empty the family comes from the stylesheet.
OptionallabelFont size of the label text, in pixels. When empty the size comes from the stylesheet.
OptionallabelHorizontal offset of the label from its computed position, in pixels.
OptionallabelVertical offset of the label from its computed position, in pixels.
OptionallabelPlacement of the label relative to the port, e.g. 'outside', 'inside', or a side name.
OptionaloutlineOutline (stroke) color of the port shape. Any CSS color; when empty the stroke comes from the stylesheet.
OptionaloutlineOutline (stroke) width of the port shape, in pixels. Empty leaves the stroke width unset.
OptionalpassiveRestricts the port to being a link target only; links cannot be started from it.
OptionalshapeShape of the port body.
OptionalwidthWidth of the port shape, in pixels.
Declarative port description for elementPort and elementPorts. Captures the common port styling and label options in a flat shape, which the presets expand into a full
dia.Element.Port.