Class Kinetic.Group
Extends
Kinetic.Container, Kinetic.Node.
Defined in: kinetic.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Kinetic.Group(config)
Group constructor.
|
Method Attributes | Method Name and Description |
---|---|
add(child)
add node to group
|
|
remove(child)
remove a child node from the group
|
- Methods borrowed from class Kinetic.Container:
- get, getChildren, isAncestorOf, removeChildren
- Methods borrowed from class Kinetic.Node:
- draggable, getAbsoluteAlpha, getAbsolutePosition, getAbsoluteTransform, getAbsoluteZIndex, getAlpha, getAttrs, getCenterOffset, getDetectionType, getDragBounds, getDragConstraint, getLayer, getLevel, getName, getParent, getPosition, getRotation, getRotationDeg, getScale, getStage, getTransform, getX, getY, getZIndex, hide, isDragging, isVisible, listen, move, moveDown, moveTo, moveToBottom, moveToTop, moveUp, off, on, rotate, rotateDeg, setAbsolutePosition, setAlpha, setAttrs, setCenterOffset, setDefaultAttrs, setDetectionType, setDragBounds, setDragConstraint, setPosition, setRotation, setRotationDeg, setScale, setX, setY, setZIndex, show, transitionTo
Class Detail
Kinetic.Group(config)
Group constructor. Groups are used to contain shapes or other groups.
- Parameters:
- {Object} config
Method Detail
add(child)
add node to group
- Parameters:
- {Node} child
remove(child)
remove a child node from the group
- Parameters:
- {Node} child