Stack.generateTransform()

The Stack.generateTransform() method generates SVG transforms for the stack, sets them as attributes, and returns the original stack.

Stack.generateTransform() signature

Javascript
Stack stack.generateTransforms(Object transforms)

The Stack.generateTransforms() method takes a single argument, an object with the following properties containing the transforms to apply:

PropertyTypeDescription
moveObjectmove.x and move.y are coordinates to which the stack should be translated
rotateNumberThe number of degrees to rate the stack around its center
flipXBooleanWhether to flip the stack along the X axis
flipYBooleanWhether to flip the stack along the Y axis
NOTE
This method is chainable as it returns the Stack object