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
Describe the bug
I'm trying to create a twojs path from an svg path string
To Reproduce
Steps to reproduce the behavior:
var d = 'M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z';
var heart = Two.Utils.read.path(d);
two.add(heart);
trying the above code throws this error
caught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
at Object.applySvgAttributes (
Expected behavior
twojs path created from an svg path
Screenshots
Environment (please select one):
[ x] Code executes in browser (e.g: using script tag to load library)
Describe the bug
I'm trying to create a twojs path from an svg path string
To Reproduce
Steps to reproduce the behavior:
var d = 'M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z';
var heart = Two.Utils.read.path(d);
two.add(heart);
trying the above code throws this error
caught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
at Object.applySvgAttributes (
Expected behavior
twojs path created from an svg path
Screenshots
Environment (please select one):
The text was updated successfully, but these errors were encountered: