SVG viewBox坐标 [英] SVG viewBox Coordinates

查看:186
本文介绍了SVG viewBox坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习有关SVG视口和viewBox的详细信息.我感到困惑的是,尽管所有正x和y坐标在网页设计中分别从左到右,从上到下分别出现,但看起来似乎是违反直觉的,viewBox坐标系似乎分别从右到左和从下到上?

I'm just learning details about the SVG viewport and viewBox. What I find confusing is, that it seem counter-intuitively, despite all positive x and y coordinates going left to right and top to bottom respectively in web design, the viewBox coordinate system seems to go right to left, and bottom to top respectively?

我是否正确理解了这一点,有人知道为什么会这样吗?

Am I understanding this correctly, and does anybody know why this is the case.

谢谢

推荐答案

一分钱现在下降了.因为将viewBox左右移动,所以会产生一种幻想,即图形在左右移动.

The penny has dropped now. Because you move the viewBox to the right and down it creates the illusion that the graphic is moving to the left and up.

这篇关于SVG viewBox坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆