<hatchpath> - SVG: Scalable Vector Graphics 编辑
Experimental
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The <hatchpath>
SVG element defines a hatch path used by the <hatch>
element.
Usage context
Categories | None |
---|---|
Permitted content | Any number of the following elements, in any order: Animation elements Descriptive elements <script> , <style> |
Attributes
Global attributes
Specific attributes
DOM Interface
This element implements the SVGHatchpathElement
interface.
Example
SVG
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
<defs>
<hatch id="hatch" hatchUnits="userSpaceOnUse" pitch="5"
rotate="135">
<hatchpath stroke="#a080ff" stroke-width="2"/>
</hatch>
</defs>
<rect fill="url(#hatch)" stroke="black" stroke-width="2"
x="10%" y="10%" width="80%" height="80%" />
</svg>
Result
Browser compatibility
BCD tables only load in the browser
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论