type - SVG: Scalable Vector Graphics 编辑

The type attribute is a generic attribute and it has different meaning based on the context in which it's used.

  • For the <animateTransform> element, it defines the type of transformation, whose values change over time.
  • For the <feColorMatrix> element, it indicates the type of matrix operation. The keyword matrix indicates that a full 5x4 matrix of values will be provided. The other keywords represent convenience shortcuts to allow commonly used color operations to be performed without specifying a complete matrix.
  • For the <feFuncR>, <feFuncG>, <feFuncB>, and <feFuncA> elements, it Indicates the type of component transfer function.
  • For the <feTurbulence> element, it indicates whether the filter primitive should perform a noise or turbulence function.
  • For the <style> and <script> elements, it defines the content type of the element.

Usage context

For the <animateTransform> elements

CategoriesNone
Valuetranslate | scale | rotate | skewX | skewY
AnimatableNo
Normative documentSVG 1.1 (2nd Edition)

For the <feColorMatrix> element

CategoriesNone
Valuematrix | saturate | hueRotate | luminanceToAlpha
AnimatableYes
Normative documentSVG 1.1 (2nd Edition)

For the <feFuncR>, <feFuncG>, <feFuncB>, and <feFuncA> elements

CategoriesNone
Valueidentity | table | discrete | linear | gamma
AnimatableYes
Normative documentSVG 1.1 (2nd Edition)

For the <feTurbulence> element

CategoriesNone
ValuefractalNoise | turbulence
AnimatableYes
Normative documentSVG 1.1 (2nd Edition)

For the <style> and <script> elements

CategoriesNone
Value<content-type>
AnimatableNo
Normative documentSVG 1.1 (2nd Edition) : script
SVG 1.1 (2nd Edition) : style

Example

Elements

The following elements can use the values attribute

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:93 次

字数:6627

最后编辑:6年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文