我想在 Raphael JS 2 中应用或“烘焙”多条路径的转换,以便我可以将它们组合成一条路径。
这是一个示例路径,我希望将“transform”属性应用于所有“d”坐标。
<path style="" fill="#000000" stroke="none" d="M150,-265C182,-275,171,-220,180,-194L178,-194C181,-192,180,-185,181,-180C211,-169,282,-173,306,-166C308,-169,316,-171,315,-165C268,-157,225,-148,184,-137C188,-118,186,-96,190,-79L282,-131C289,-131,296,-135,297,-126C293,-118,271,-105,236,-80C190,-48,155,-20,125,-6C112,-15,115,-34,111,-51C121,-70,108,-107,107,-133C70,-132,-5,-126,0,-157C18,-170,39,-181,64,-191C75,-190,92,-181,100,-185C99,-198,95,-211,89,-225Z" transform="matrix(0.1389, 0, 0, 0.1389, 291.91, 235.465)" stroke-width="7.199999999999999">
我了解 svg-edit 框架可以将路径坐标转换为绝对位置,并在此过程中移除变换矩阵。
一些相关的问题,我无法从中得到答案: