Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Converting Illustrator matrix to CSS matrix

$
0
0

I am writing an illustrator script to export text frames into HTML. These numbers in the matrix attribute in illustrator matches up with those in CSS, transform:matrix(a,b,c,d,tx,ty) except for TX and TY. Illustrator is export these HUGE numbers, and I can't seem to figure out what the basis is from.

1) mValueA=-0.70711004734039  2) mValueB=0.70711004734039  3) mValueC=-0.70711004734039  4) mValueD=-0.70711004734039

5) mValueTX=352.9658203125

6) mValueTY=-11847.4921875

7)typename=Matrix

For reference, here is the position attribute from illustrator of the same text block, which is translated to left: XX; top: XX in CSS

32) position=168.58056640625,-119.3017578125

Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>