Node Class
Item Index
Methods
getMatrix
()
CSSMatrix2d
Helper method to get the node's current 2d transfom matrix.
Returns:
inverseTransform
-
transitionConfig
-
callbackFunction
Transforms the node by the inverse of the nodes current 2d transform matrix.
Parameters:
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
multiplyMatrix
-
matrix
-
transitionConfig
-
callbackFunction
Transforms the node by multiplying the nodes current 2d transform matrix with another matrix.
Parameters:
-
matrix
CSSMatrix2dThe matrix to multiply.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
rotate
-
angle
-
transitionConfig
-
callbackFunction
Rotates the node clockwise.
Parameters:
-
angle
NumberThe angle specified in degrees.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
rotateRad
-
angle
-
transitionConfig
-
callbackFunction
Rotates the node clockwise.
Parameters:
-
angle
NumberThe angle specified in radians.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
scale
-
scaleFactor
-
transitionConfig
-
callbackFunction
Scales the node horizontally and vertically.
Parameters:
-
scaleFactor
NumberThe horizontal and vertical scale factor.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
scaleXY
-
scaleFactorX
-
scaleFactorY
-
transitionConfig
-
callbackFunction
Scales the node horizontally and vertically.
Parameters:
-
scaleFactorX
NumberThe horizontal scale factor.
-
scaleFactorY
NumberThe vertical scale factor.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
skewX
-
angle
-
transitionConfig
-
callbackFunction
Skews the node horizontally.
Parameters:
-
angle
NumberThe horizontal skew angle specified in degrees.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
skewXRad
-
angle
-
transitionConfig
-
callbackFunction
Skews the node horizontally.
Parameters:
-
angle
NumberThe horizontal skew angle specified in radians.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
skewY
-
angle
-
transitionConfig
-
callbackFunction
Skews the node vertically.
Parameters:
-
angle
NumberThe vertical skew angle specified in degrees.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
skewYRad
-
angle
-
transitionConfig
-
callbackFunction
Skews the node vertically.
Parameters:
-
angle
NumberThe vertical skew angle specified in radians.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
transform
-
matrix
-
transitionConfig
-
callbackFunction
Transforms the node by the given matrix.
Parameters:
-
matrix
CSSMatrix2dThe 2d transform matrix.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
translate
-
x
-
y
-
transitionConfig
-
callbackFunction
Translates the node horizontally and vertically.
Parameters:
-
x
NumberThe amount to translate horizontally.
-
y
NumberThe amount to translate vertically.
-
transitionConfig
ObjectOptional. If defined, and if the transition module is available, a transition will be used to transform the node. This object is passed along to the transition method.
-
callbackFunction
FunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.