blob: f52da8de19dfba24bf6e78062a0498b9cfd7d126 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
---
title: DOMPoint.w
slug: Web/API/DOMPoint/w
translation_of: Web/API/DOMPoint/w
---
<div>{{APIRef("DOM")}}</div>
<p><span class="seoSummary"><code><strong>DOMPoint</strong></code> 的 w 属性表示该点的空间透视值。</span></p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox">var <em>perspective</em> = <em>DOMPoint</em>.w;</pre>
<h3 id="值">值</h3>
<p>双精度浮点值,表示该点的空间透视值。这个值的类型并没有严格限制,意味着它可以是 {{jsxref("NaN")}} 或 {{jsxref("Infinity", "±Infinity")}}。 默认值为 1.0。</p>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
<tr>
<td>{{SpecName('Geometry Interfaces', '#dom-dompoint-w', 'w')}}</td>
<td>{{Spec2('Geometry Interfaces')}}</td>
<td>Initial definition</td>
</tr>
</tbody>
</table>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
<p>{{Compat("api.DOMPointReadOnly.w")}}</p>
<h2 id="相关链接">相关链接</h2>
<ul>
<li>其他坐标属性:{{domxref("DOMPoint.x", "x")}},{{domxref("DOMPoint.y", "y")}},{{domxref("DOMPoint.z", "z")}}.</li>
</ul>
|