- Source:
Classes
- Animation
- Arc
- Arrow
- BaseLayer
- Canvas
- Circle
- Collection
- Container
- Context
- Ellipse
- FastLayer
- Group
- Image
- Label
- Layer
- Line
- Node
- Path
- Rect
- RegularPolygon
- Ring
- Shape
- Sprite
- Stage
- Star
- Tag
- Text
- TextPath
- Transform
- Tween
- Wedge
Namespaces
Members
-
<static> angleDeg
-
Use degree values for angle properties. You may set this property to false if you want to use radiant values.
- Default Value:
-
- true
- Source:
Properties:
Name Type Description angleDeg
Example
node.rotation(45); // 45 degrees Kinetic.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.
- Default Value:
-
- 0
- Source:
Properties:
Name Type Description dragDistance
Example
Kinetic.dragDistance = 10;
-
<static> pixelRatio
-
Global pixel ratio configuration. KineticJS automatically detect pixel ratio of current device. But you may override such property, if you want to use your value.
- Default Value:
-
- undefined
- Source:
Properties:
Name Type Description pixelRatio
Example
Kinetic.pixelRatio = 1;
-
<static> showWarnings
-
Show different warnings about errors or wrong API usage
- Default Value:
-
- true
- Source:
Properties:
Name Type Description showWarnings
Example
Kinetic.showWarnings = false;
Methods
-
<static> isDragging()
-
returns whether or not drag and drop is currently active
- Source:
-
<static> isDragReady()
-
returns whether or not a drag and drop operation is ready, but may not necessarily have started
- Source: