You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can use getPathData polyfill that will make the parsing of theSVG coordinates data simple. After this, we need to fire few redux actions to send this data to redux store which will update components automatically. With this functionality, we can easily add startPath option to the curve editor which will allow launching(loading) the plugin with a predefined path - import the path back.
If you have any question, please feel free to ask, would love to help!
Cheers!
The text was updated successfully, but these errors were encountered:
Right now you can get curve's code by clicking the
code
button and copying the path coordinates from there.Something like this:
M0, 100 C0, 100 28.155286227103208, 95.35825418399047 30, 52.42857142857143 C31.844713772896824, 9.498888673152383 75.15078407720145, 24.857142857142858 75.15078407720145, 24.857142857142858 C75.15078407720145, 24.857142857142858 100, 0 100, 0
We need to do the opposite - parse this path coordinates data back to
js objects
:There is how the
SVG path data
maps tojs objects
:We can use getPathData polyfill that will make the parsing of the
SVG
coordinates data simple. After this, we need to fire fewredux
actions to send this data toredux
store which will update components automatically. With this functionality, we can easily addstartPath
option to the curve editor which will allow launching(loading) the plugin with a predefined path - import the path back.If you have any question, please feel free to ask, would love to help!
Cheers!
The text was updated successfully, but these errors were encountered: