javascript - How to "export" transformations applied to an SVG object, to another SVG object, using Raphael.js? -
how can take transformations i've applied far svg image object (i.e. consecutive scaling, dragging, rotation transformations) , apply them new svg image added page?
the svg element want read transformations of, looks this:
<svg height="598" version="1.1" width="462" xmlns="http://www.w3.org/2000/svg" style="overflow: hidden; position: relative;"> <desc style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">created raphaƫl 2.1.2</desc> <defs style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></defs> <image x="139.26470588235293" y="180.5" width="226.47058823529412" height="150" preserveaspectratio="none" xlink:href="./gallery/viewport/cmf_52a45ec2e13207277.jpg" transform="matrix(0.8877,0.4605,-0.4605,0.8877,146.0177,-87.5714)" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" stroke-width="0.64"></image> </svg>
Comments
Post a Comment