Skip to content

Commit

Permalink
Document PointArray.transform from svgdotjs/svg.js#945
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Dec 14, 2018
1 parent 0c64380 commit f18c16c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions content/11-classes/default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,20 @@ array.toString() //-> returns '100,100 322,433'

**Note**: this method is only available on `SVG.PointArray` and `SVG.PathArray`

## transform()

`returns` __`SVG.Array`__

Transforms the point array with matrix:

```javascript
var array = new SVG.PointArray([[0, 0], [100, 100]])
array.transform(new SVG.Matrix().translate(1, 2)).toString()
//-> '1,2 101,102'
```

**Note**: this method is only available on `SVG.PointArray`

<br>
# SVG.PointArray

Expand Down

0 comments on commit f18c16c

Please sign in to comment.