Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Matrix export #29

Open
accessdev opened this issue Nov 19, 2013 · 0 comments
Open

Matrix export #29

accessdev opened this issue Nov 19, 2013 · 0 comments

Comments

@accessdev
Copy link

I use raphael js with freeTransform plugin And Raphael.Export

I have an issue when exporting text of some specific fonts (ex : talkiesregular ) , there is an offset between element in the raphael context and the exported svg

the matrix transformation has changed for some reason , and the result if an offset depending on rotation/scale amounts.

raphael js matrix :

(4.4314,-0.0578,0.0371,2.8414,-806.1046,-534.9045

exported matrix :

4.5777,0.2246,-0.1777,3.6223,-749.9894,-782.7069

any ideas why or workaround ?

I tried to edit around line 257 with :

svg += '<' + node.type + ' transform="matrix(' + node.matrix.toTransformString() + ')"' + attrs + '></' + node.type + '>';

but the problem is the same.

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

No branches or pull requests

1 participant