fabricjs / fabric.js

Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
http://fabricjs.com
Other
28.73k stars 3.49k forks source link

SVG issue #1555

Closed Saravana3k closed 10 years ago

Saravana3k commented 10 years ago
  1. Goto http://fabricjs.com/kitchensink/
  2. Clear Canvas
  3. Go to Simple tab.
  4. Add 2 lines by clicking Line buttons twice
  5. Go to Controls tab
  6. Click SVG.

Result: Here only one line is displayed instead of two and the position of line is not correct as well.

asturur commented 10 years ago

I think this is a duplicate of the various SVG export issues reported.

kangax commented 10 years ago

Probably. Do you recall an issue number?

asturur commented 10 years ago

1515

i hope i can submit fix at least for rect / ellipses, cirlce/ lines / images today. i have some free time.

asturur commented 10 years ago

The bug of this case was that the export was not considering transform matrix. So 2 identical lines ( with same x1, x2, y1, y2) then dragged around in canvas, rotated and scaled, then exported without those properties were in the svg positioned one over the other. this is fixed with the relative PR.

asturur commented 10 years ago

@kangax you can close.