Node Class
Item Index
Methods
inverseTransform
-
transitionConfig -
callbackFunction
Transforms the node by the inverse of the nodes current 2d transform matrix.
Parameters:
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
matrixCSSMatrix2dThe matrix to multiply.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
angleNumberThe angle specified in degrees.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
angleNumberThe angle specified in radians.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
scaleFactorNumberThe horizontal and vertical scale factor.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
scaleFactorXNumberThe horizontal scale factor.
-
scaleFactorYNumberThe vertical scale factor.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
angleNumberThe horizontal skew angle specified in degrees.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
angleNumberThe horizontal skew angle specified in radians.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
angleNumberThe vertical skew angle specified in degrees.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
angleNumberThe vertical skew angle specified in radians.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
matrixCSSMatrix2dThe 2d transform matrix.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. 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:
-
xNumberThe amount to translate horizontally.
-
yNumberThe amount to translate vertically.
-
transitionConfigObjectOptional. 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.
-
callbackFunctionFunctionOptional. Whether or not transition is used, the callback function, if defined, will get called when the transform is complete.
