Perplexed by SVG viewBox, width, height, etc

后端 未结 3 1192
后悔当初
后悔当初 2021-02-07 05:27

If my understanding of SVG were correct, the following two SVG descriptions would result in identical images, but they don\'t. (NOTE: The two code listings differ only in the c

3条回答
  •  鱼传尺愫
    2021-02-07 06:14

    Because the coordinates of viewbox are not x1, y1, x2, y2 - they are minx, miny, width and height.

提交回复
热议问题