aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/svg/attribute/primitiveunits
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/svg/attribute/primitiveunits')
-rw-r--r--files/zh-cn/web/svg/attribute/primitiveunits/index.html50
1 files changed, 50 insertions, 0 deletions
diff --git a/files/zh-cn/web/svg/attribute/primitiveunits/index.html b/files/zh-cn/web/svg/attribute/primitiveunits/index.html
new file mode 100644
index 0000000000..ccdaf4605b
--- /dev/null
+++ b/files/zh-cn/web/svg/attribute/primitiveunits/index.html
@@ -0,0 +1,50 @@
+---
+title: primitiveUnits
+slug: Web/SVG/Attribute/primitiveUnits
+translation_of: Web/SVG/Attribute/primitiveUnits
+---
+<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
+
+<p><code>primitiveUnits属性为过滤器原语和定义过滤器原语子域中的各种各样的长度单位指定坐标系统</code>.</p>
+
+<p>如果primitiveUnits属性未指定,那么效果就如同指定值为userSpaceOnUse的效果是一样的.</p>
+
+<h2 id="Usage_context">Usage context</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="row">Categories</th>
+ <td><em>None</em></td>
+ </tr>
+ <tr>
+ <th scope="row">Value</th>
+ <td><strong><code>userSpaceOnUse</code></strong> | <code>objectBoundingBox</code></td>
+ </tr>
+ <tr>
+ <th scope="row">Animatable</th>
+ <td>Yes</td>
+ </tr>
+ <tr>
+ <th scope="row">Normative document</th>
+ <td><a class="external" href="http://www.w3.org/TR/SVG11/filters.html#FilterElementPrimitiveUnitsAttribute" title="http://www.w3.org/TR/SVG11/filters.html#FilterElementPrimitiveUnitsAttribute">SVG 1.1 (2nd Edition)</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<dl>
+ <dt>userSpaceOnUse</dt>
+ <dd>当{{ SVGElement("filter") }}元素使用该值的时候,过滤器中定义的任意长度的值都基于当前用户坐标系统(例如通过{{ SVGAttr("filter") }}属性引用该{{ SVGElement("filter") }}元素的元素所在的用户坐标系统).</dd>
+ <dt>objectBoundingBox</dt>
+ <dd>在filter中定义的任意长度值表示引用该filter的元素的包围盒的分数或百分比.</dd>
+</dl>
+
+<h2 id="Examples">Examples</h2>
+
+<h2 id="Elements">Elements</h2>
+
+<p>下列元素可以使用primitiveUnits属性:</p>
+
+<ul>
+ <li>{{ SVGElement("filter") }}</li>
+</ul>