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