-
<static> angleDeg
-
Use degree values for angle properties. You may set this property to false if you want to use radiant values.
Properties:
Name |
Type |
Description |
angleDeg |
|
|
- Default Value:
- Source:
Example
node.rotation(45); // 45 degrees
Konva.angleDeg = false;
node.rotation(Math.PI / 2); // PI/2 radian
-
<static> dragDistance
-
Drag distance property. If you start to drag a node you may want to wait until pointer is moved to some distance from start point,
only then start dragging.
Properties:
Name |
Type |
Description |
dragDistance |
|
|
- Default Value:
- Source:
Example
Konva.dragDistance = 10;
-
<static> pixelRatio
-
Global pixel ratio configuration. KonvaJS automatically detect pixel ratio of current device.
But you may override such property, if you want to use your value.
Properties:
Name |
Type |
Description |
pixelRatio |
|
|
- Default Value:
- Source:
Example
Konva.pixelRatio = 1;
-
<static> showWarnings
-
Show different warnings about errors or wrong API usage
Properties:
Name |
Type |
Description |
showWarnings |
|
|
- Default Value:
- Source:
Example
Konva.showWarnings = false;