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
{{ message }}
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
I've met the same problem as yours, I found the 'path' don't work when I want it to draw in svg mode. Here's What I do to solve(Omitted common details):
import ReactART from 'react-art';
// In svg mode
import 'art/modes/svg';
import SVGPath from 'art/modes/svg/path';
// instead of 'const path = new ReactART.Path()...'
const path= new SVGPath().move(200, 20)...
OK, it works and the Error never come. Maybe the key is that in svg mode, we need apply the 'art/modes/svg/path' instead of 'ReactART.Path' as the Path constructor function.
Activity
AnneBai commentedon Oct 8, 2018
I've met the same problem as yours, I found the 'path' don't work when I want it to draw in svg mode. Here's What I do to solve(Omitted common details):
OK, it works and the Error never come. Maybe the key is that in svg mode, we need apply the 'art/modes/svg/path' instead of 'ReactART.Path' as the Path constructor function.