- Source
Classes
- ChangeGroupCommand
- DeleteGroupCommand
- Draw
- DrawGroupCommand
- Filter
- Floodfill
- Livewire
- MoveGroupCommand
- Opacity
- RunFilterCommand
- Scroll
- ScrollWheel
- ShapeEditor
- UndoStack
- WindowLevel
- ZoomAndPan
Namespaces
Methods
(static) GetShapeDisplayName(shape) → {string}
Get the display name of the input shape.
Parameters:
Name | Type | Description |
---|---|---|
shape | object | The Konva shape. |
- Source
Returns:
The display name.
- Type:
- string
(static) boundNodePosition(node, min, max) → {boolean}
Bound a node position.
Parameters:
Name | Type | Description |
---|---|---|
node | object | The node to bound the position. |
min | object | The minimum position as {x,y}. |
max | object | The maximum position as {x,y}. |
- Source
Returns:
True if the position was corrected.
- Type:
- boolean
(static) getAnchorMin(group) → {object|undefined}
Get the minimum position in a groups' anchors.
Parameters:
Name | Type | Description |
---|---|---|
group | object | The group that contains anchors. |
- Source
Returns:
The minimum position as {x,y}.
- Type:
- object |
undefined
(static) validateAnchorPosition(stageSize, anchor) → {boolean}
Validate an anchor position.
Parameters:
Name | Type | Description |
---|---|---|
stageSize | object | The stage size {x,y}. |
anchor | object | The anchor to evaluate. |
- Source
Returns:
True if the position was corrected.
- Type:
- boolean
(static) validateGroupPosition(stageSize, group) → {boolean}
Validate a group position.
Parameters:
Name | Type | Description |
---|---|---|
stageSize | object | The stage size {x,y}. |
group | object | The group to evaluate. |
- Source
Returns:
True if the position was corrected.
- Type:
- boolean