<feBlend>
<feColorMatrix>
<feComponentTransfer>
<feComposite>
<feConvolveMatrix>
<feDiffuseLighting>
<feDisplacementMap>
<feDistantLight>
<feFlood>
<feFuncA>
<feFuncB>
<feFuncG>
<feFuncR>
<feGaussianBlur>
<feImage>
<feMerge>
<feMergeNode>
<feMorphology>
<feOffset>
<fePointLight>
<feSpecularLighting>
<feSpotLight>
<feTile>
<feTurbulence>
<filter>
<font>
<font-face>
<font-face-format>
<font-face-name>
<font-face-src>
<font-face-uri>
<foreignObject>
path
attribute has two different meanings, either it defines a text path along which the characters of a text are rendered, or a motion path along which a referenced element is animated.
You can use this attribute with the following SVG elements:
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<path id="MyPath" fill="none" stroke="silver"
d="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50" />
<text>
<textPath path="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50">
Quick brown fox jumps over the lazy dog.
</textPath>
</text>
</svg>
For
<animateMotion>
,
path
defines the motion path, expressed in the same format and interpreted the same way as the
d
geometric property for the
<path>
element. The effect of a motion path animation is a translation along the x- and y-axes of the current user coordinate system by the x and y values computed over time.
| 值 |
<path-data>
|
|---|---|
| 默认值 | None |
| Animatable | No |
<path-data>
This value defines the motion path along which the referenced element is animated. For detailed information about the commands that can be used, see the
explanation for the
d
属性
.
For
<textPath>
,
path
defines the path onto which the
glyphs
的
<text>
element will be rendered. An empty string indicates that there is no path data for the element. This means that the text within the
<textPath>
element does not render or contribute to the bounding box of the
<text>
element. If the attribute is not specified, the path specified in
href
被使用,取而代之。
| 值 |
<path-data>
|
|---|---|
| 默认值 |
Path specified in
href
|
| Animatable | Yes |
<path-data>
This value defines the text path along which the glyphs of the
<text>
element are aligned. For detailed information about the commands that can be used, see the
explanation for the
d
属性
.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Scalable Vector Graphics (SVG) 2
The definition of 'path for <textPath>' in that specification. |
候选推荐 |
Initial definition for
<textPath>
|
|
SVG Animations Level 2
The definition of 'path for <animateMotion>' in that specification. |
编者草案 | 无变化 |
|
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'path for <animateMotion>' in that specification. |
推荐 |
Initial definition for
<animateMotion>
|
最后修改: , 由 MDN 贡献者