dwv. tool

Classes

ChangeGroupCommand
DeleteGroupCommand
Draw
DrawGroupCommand
Filter
Floodfill
Livewire
MoveGroupCommand
Opacity
RunFilterCommand
Scroll
ScrollWheel
ShapeEditor
UndoStack
WindowLevel
ZoomAndPan

Namespaces

draw
filter

Methods

(static) GetShapeDisplayName(shape) → {string}

Get the display name of the input shape.

Parameters:
NameTypeDescription
shapeobject

The Konva shape.

Returns:

The display name.

Type: 
string

(static) boundNodePosition(node, min, max) → {boolean}

Bound a node position.

Parameters:
NameTypeDescription
nodeobject

The node to bound the position.

minobject

The minimum position as {x,y}.

maxobject

The maximum position as {x,y}.

Returns:

True if the position was corrected.

Type: 
boolean

(static) getAnchorMin(group) → {object|undefined}

Get the minimum position in a groups' anchors.

Parameters:
NameTypeDescription
groupobject

The group that contains anchors.

Returns:

The minimum position as {x,y}.

Type: 
object | undefined

(static) validateAnchorPosition(stageSize, anchor) → {boolean}

Validate an anchor position.

Parameters:
NameTypeDescription
stageSizeobject

The stage size {x,y}.

anchorobject

The anchor to evaluate.

Returns:

True if the position was corrected.

Type: 
boolean

(static) validateGroupPosition(stageSize, group) → {boolean}

Validate a group position.

Parameters:
NameTypeDescription
stageSizeobject

The stage size {x,y}.

groupobject

The group to evaluate.

Returns:

True if the position was corrected.

Type: 
boolean