Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG形状元素-2-POLYGON标签 #7

Open
OndayX opened this issue Apr 25, 2021 · 0 comments
Open

SVG形状元素-2-POLYGON标签 #7

OndayX opened this issue Apr 25, 2021 · 0 comments

Comments

@OndayX
Copy link
Owner

OndayX commented Apr 25, 2021

polygon标签

根据polygon的定义来说,一般大于三边的封闭多边形(哪怕是边与边相互交叉)都可以用这个标签标示:
<polygon id="polygon" stroke="#979797" fill="#D8D8D8" points="-2.84217094e-14 0 -2.84217094e-14 180 180 0"></polygon>
以上案例中是sketch软件中一个非常独特的现象,出现-2.84217094e-14的直接原因推测应该是没有进行手动输入参数而是使用了自动吸附的功能,解读坐标的话应该是“0 0 0 180 180 0”,既第一个点的坐标是0 0原点,另外两个点分别为0 180180 0,所围成的图形是直角边为180长度的直角等腰三角形。
在sketch中生成polygon标签的方式是通过钢笔工具勾直线围合的多边形。

@OndayX OndayX changed the title SVG形状元素 1 POLYGON标签 SVG形状元素-2-POLYGON标签 Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant