Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path parsin error ( i though they were extincted ) #3323

Closed
asturur opened this issue Oct 4, 2016 · 3 comments · Fixed by #3347
Closed

path parsin error ( i though they were extincted ) #3323

asturur opened this issue Oct 4, 2016 · 3 comments · Fixed by #3347
Labels

Comments

@asturur
Copy link
Member

asturur commented Oct 4, 2016

Version

1.6.5

Test Case

canvas.add(new fabric.Path('M100,100 L186.60254037844388,50.00000000000001 A100,100 0 0,1 100,200 z', { fill: 'rgb(255,0,0)' }));

Path has wrong bounding box.
If path is drawn in the opposite way controls are good

@asturur asturur added the bug label Oct 4, 2016
@asturur
Copy link
Member Author

asturur commented Oct 6, 2016

etended case:

canvas.add(new fabric.Path('M200,50 A100,100 0 1,0 100,200', { stroke: 'rgb(255,0,0)', fill: '' }));

canvas.add(new fabric.Path('M200,50 A100,100 0 1,1 100,200', { stroke: 'rgb(255,0,0)', fill: '' }));

canvas.add(new fabric.Path('M200,50 A100,100 0 0,0 100,200', { stroke: 'rgb(0,255,0)', fill: '' }));

canvas.add(new fabric.Path('M200,50 A100,100 0 0,1 100,200', { stroke: 'rgb(255,0,0)', fill: '' }));

only the green ( with the 0,0 flag is correct )

image

@asturur
Copy link
Member Author

asturur commented Oct 6, 2016

image

those are width and height parsed by fabricjs:

firefox path parsing from svg:
image
image
image
image

only the green one is similar.

@asturur
Copy link
Member Author

asturur commented Oct 15, 2016

ok this was actually a regression and a strange one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant