Skip to content

Commit 11bcd62

Browse files
committed
README: add info about startPath option
1 parent 166bcf3 commit 11bcd62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ const curveEditor = new MojsCurveEditor({
111111
name: 'bounce curve'
112112
// if should preserve state on page reloads
113113
isSaveState: true,
114+
// if should draw some predefined start path, e.g.
115+
startPath: 'M0, 100 C0, 100 4.930113045746978, 71.79835171700789 22.72727272727273, 50 C40.5244324087985, 28.20164828299213 106.34550121203085, 39.38723973123639 100, 15',
114116
// callback on path change, accepts path string
115117
onChange: function (path) {}
116118
// if should hide when minimized - useful when you try to embed the

0 commit comments

Comments
 (0)