aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/touch/radiusx
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/touch/radiusx
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/touch/radiusx')
-rw-r--r--files/zh-cn/web/api/touch/radiusx/index.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/touch/radiusx/index.html b/files/zh-cn/web/api/touch/radiusx/index.html
new file mode 100644
index 0000000000..e1609b4d19
--- /dev/null
+++ b/files/zh-cn/web/api/touch/radiusx/index.html
@@ -0,0 +1,27 @@
+---
+title: Touch.radiusX
+slug: Web/API/Touch/radiusX
+translation_of: Web/API/Touch/radiusX
+---
+<p>{{ ApiRef() }}</p>
+<h3 id="Summary" name="Summary">概述</h3>
+<p>能够包围用户和触摸平面的接触面的最小椭圆的水平轴(X轴)半径. 这个值的单位和<code> screenX 相同.</code></p>
+<p><code>这个属性和 </code>{{ domxref("Touch.radiusY") }} ,  {{ domxref("Touch.rotationAngle") }} 一起, 描述了用户和触摸平面的接触面. 这在面向非精确触摸设备(由手指直接操作的触摸屏)开发时非常有用. 这些值描述了一个尽可能接近实际接触面(例如用户的指尖)的椭圆.</p>
+<h3 id="Syntax" name="Syntax">语法</h3>
+<pre class="eval">var <em>xRadius</em> = <em>touchItem</em>.radiusX;
+</pre>
+<h3 id="Return_Value" name="Return_Value">返回值</h3>
+<dl>
+ <dt>
+ <code>xRadius</code></dt>
+ <dd>
+ 能够包围用户和触摸平面的接触面的最小椭圆的水平轴(X轴)半径.</dd>
+</dl>
+<h3 id="Specification" name="Specification">标准定义</h3>
+<p><a class="external" href="http://www.w3.org/TR/touch-events/" title="http://www.w3.org/TR/touch-events/">Touch Events Specification</a></p>
+<h3 id="相关链接">相关链接</h3>
+<ul>
+ <li>{{ domxref("Touch.radiusY") }}</li>
+ <li>{{ domxref("Touch.rotationAngle") }}</li>
+ <li>{{ domxref("Touch.force") }}</li>
+</ul>