1
0
Fork 0
freesewing/sites/dev/docs/reference/api/utils/combinetransforms/readme.mdx

17 lines
447 B
Text
Raw Normal View History

---
title: utils.combineTransform()
---
The `utils.combineTransform()` function merges an array of SVG transformations into a single composite matrix transformation. Returns a single combined matrix transform string.
## Signature
```js
string utils.combineTransforms(string[] transforms)
```
## Parameters
The function only takes a single parameter i.e array of transform strings. Eg: `["scale(sfx, sfy)", rotate(angle), translate(tx, ty)]`