diff options
Diffstat (limited to 'files/zh-cn/web/svg/attribute/values')
-rw-r--r-- | files/zh-cn/web/svg/attribute/values/index.html | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/files/zh-cn/web/svg/attribute/values/index.html b/files/zh-cn/web/svg/attribute/values/index.html new file mode 100644 index 0000000000..fa9fbbf70a --- /dev/null +++ b/files/zh-cn/web/svg/attribute/values/index.html @@ -0,0 +1,107 @@ +--- +title: values +slug: Web/SVG/Attribute/values +translation_of: Web/SVG/Attribute/values +--- +<div>{{SVGRef}}</div> + +<p>values属性具有不同的含义,具体取决于使用的上下文,它可以定义在动画过程中使用的值序列,或者它是颜色矩阵的数字列表,根据颜色类型的不同,它们的解释也不同。 要执行的颜色更改。</p> + +<p>五个元素正在使用此属性: {{SVGElement("animate")}}, {{SVGElement("animateColor")}}, {{SVGElement("animateMotion")}}, {{SVGElement("animateTransform")}}, and {{SVGElement("feColorMatrix")}}</p> + +<h2 id="animate_animateColor_animateMotion_animateTransform">animate, animateColor, animateMotion, animateTransform</h2> + +<p>对于 {{SVGElement("animate")}}, {{SVGElement("animateColor")}}, {{SVGElement("animateMotion")}}, 和 {{SVGElement("animateTransform")}}, <code>values</code>是一个列表 定义动画过程中的值序列的值。 如果指定了此属性,则将忽略在元素上设置的任何 {{SVGAttr("from")}}, {{SVGAttr("to")}}, 和 {{SVGAttr("by")}} 属性值.</p> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">Value</th> + <td><code><a href="/en-US/docs/Web/SVG/Content_type#List-of-Ts"><list-of-values></a></code></td> + </tr> + <tr> + <th scope="row">Default value</th> + <td><em>None</em></td> + </tr> + <tr> + <th scope="row">Animatable</th> + <td>No</td> + </tr> + </tbody> +</table> + +<dl> + <dt><code><list-of-values></code></dt> + <dd>该值包含一个或多个值的分号分隔列表。 值的类型由 {{SVGAttr("href")}} 和 {{SVGAttr("attributeName")}} 属性定义.</dd> +</dl> + +<h2 id="feColorMatrix">feColorMatrix</h2> + +<p>对于 {{SVGElement("feColorMatrix")}} 元素,值是根据 {{SVGAttr("type")}} 属性值不同解释的数字列表。</p> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">Value</th> + <td><code><a href="/en-US/docs/Web/SVG/Content_type#List-of-Ts"><list-of-numbers></a></code></td> + </tr> + <tr> + <th scope="row">Default value</th> + <td><em>If <code>type="matrix"</code>, identity matrix,<br> + if <code>type="saturate"</code>, <code>1</code>, resulting in identity matrix,<br> + if <code>type="hueRotate"</code>, <code>0</code>, resulting in identity matrix</em></td> + </tr> + <tr> + <th scope="row">Animatable</th> + <td>Yes</td> + </tr> + </tbody> +</table> + +<dl> + <dt><code><list-of-numbers></code></dt> + <dd> + <p>该值是一个数字列表,根据type属性的值来定义不同解释:</p> + + <ul> + <li>For <code>type="matrix"</code>, <code>values</code> 是20个矩阵值(a00 a01 a02 a03 a04 a10 a11 ... a34)的列表,以空格和/或逗号分隔。</li> + <li>For <code>type="saturate"</code>, <code>values</code> 是单个实数值(0到1)。</li> + <li>For <code>type="hueRotate"</code>, <code>values</code> 是一个单一的实数值(度)。.</li> + <li>For <code>type="luminanceToAlpha"</code>, <code>values</code> 不适用。</li> + </ul> + </dd> +</dl> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName("Filters 1.0", "#element-attrdef-fecolormatrix-values", "values for <feColorMatrix>")}}</td> + <td>{{Spec2("Filters 1.0")}}</td> + <td>No change</td> + </tr> + <tr> + <td>{{SpecName("SVG Animations 2", "#ValuesAttribute", "values for <animate>, <animateColor>, <animateMotion>, and <animateTransform>")}}</td> + <td>{{Spec2("SVG Animations 2")}}</td> + <td>No change</td> + </tr> + <tr> + <td>{{SpecName("SVG1.1", "filters.html#feColorMatrixValuesAttribute", "values for <feColorMatrix>")}}</td> + <td>{{Spec2("SVG1.1")}}</td> + <td>Initial definition for <code><feColorMatrix></code></td> + </tr> + <tr> + <td>{{SpecName("SVG1.1", "animate.html#ValuesAttribute", "values for <animate>, <animateColor>, <animateMotion>, and <animateTransform>")}}</td> + <td>{{Spec2("SVG1.1")}}</td> + <td>Initial definition for <code><animate></code>, <code><animateColor></code>, <code><animateMotion></code>, and <code><animateTransform></code></td> + </tr> + </tbody> +</table> |