svg如何设置中心点进行缩放

中心点设置:x = x+width/2   y=y+height/2
缩放开始前后需要变换对应的位置,直接举例:
<rect x="110" y="100" width="120" height="90" data-svg="gltransform_tcwanimate" transform="translate(170 145) scale(1.5, 1.5) translate(-170 -145)">
</rect>

posted on 2020-03-12 22:36  dawn888  阅读(1919)  评论(0编辑  收藏  举报

导航