Skip to content

NgDiagramNodeResizeAdornmentComponent

since v0.8.0

The NgDiagramNodeResizeAdornmentComponent displays resize handles and lines around a selected, resizable node.

<ng-diagram-node-resize-adornment>
<!-- Node content here -->
</ng-diagram-node-resize-adornment>
  • NodeContextGuardBase

activeSides: InputSignal<readonly Side[]>

Which sides of the node can be grabbed to resize it.

All four lines always render, since they double as the node’s selection frame, but the ones for sides left out here are inert: they do not start a resize and show no resize cursor. A corner handle renders only when both of its sides are listed, so ['right', 'bottom'] leaves only the bottom-right handle.

Pass an empty array to keep the selection frame without allowing any interactive resize.

['top', 'right', 'bottom', 'left']

1.3.0

<ng-diagram-node-resize-adornment [activeSides]="['right', 'bottom']">
<!-- Node content here -->
</ng-diagram-node-resize-adornment>

defaultResizable: InputSignal<undefined | boolean>

Whether the node is resizable.

undefined