chore(docs): Add Stack documentation
This commit is contained in:
parent
09d1a17cf1
commit
96ced472e4
10 changed files with 182 additions and 0 deletions
26
markdown/dev/reference/api/stack/generateTransform/en.md
Normal file
26
markdown/dev/reference/api/stack/generateTransform/en.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: Stack.generateTransform()
|
||||
---
|
||||
|
||||
The `Stack.generateTransform()` method generates transforms for the stack,
|
||||
sets them as attributes, and returns the original stack.
|
||||
|
||||
|
||||
## Stack.generateTransform() signature
|
||||
|
||||
```js
|
||||
Stack stack.generateTransforms(Object transforms)
|
||||
```
|
||||
|
||||
The `Stack.generateTransforms()` method takes a single argument,
|
||||
an object with the following properties containing the transforms
|
||||
to apply:
|
||||
|
||||
| Property | Type |Description |
|
||||
|----------|------|------------|
|
||||
| `move` | Object | `move.x` and `move.y` are coordinates to which the stack should be translated
|
||||
| `rotate` | Number | The number of degrees to rate the stack around its center |
|
||||
| `flipX` | Boolean | Whether to flip the stack along the X axis |
|
||||
| `flipY` | Boolean | Whether to flip the stack along the Y axis |
|
||||
|
||||
<Note>This method is chainable as it returns the Stack object</Note>
|
Loading…
Add table
Add a link
Reference in a new issue