Skip to content

Commit 4f90ff5

Browse files
authored
Merge pull request #51 from vltansky/patch-1
docs: reversePath accepts `PathArray`
2 parents 33b80e2 + ae0ae7b commit 4f90ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const normalizedPath = SVGPathCommander.normalizePath(path);
113113
114114
Reverse a path:
115115
```js
116-
const path = 'M0 0 H50';
116+
const path = SVGPathCommander.parsePathString('M0 0 H50');
117117
118118
const reversedPath = SVGPathCommander.reversePath(path);
119119
// result => [['M', 50, 0], ['H', 0]]

0 commit comments

Comments
 (0)