For scaling/resizing, you have to translate by (-cx, -cy), then scale and then translate back to (cx, cy). You can do this with a matrix transform:transform="matrix(sx, 0, 0, sy, cx-sx*cx, cy-sy*cy)"其中sx是x轴的比例因子,sy是y轴.Where sx is the scaling factor in the x-axis, sy in the y-axis. 这篇关于如何在SVG中设置变换原点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!