You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<dd>The euclidean distance between <var>P1</var> and <var>P2</var>
1186
+
<dd>
1187
+
The euclidean distance between <var>P1</var> and <var>P2</var>
1187
1188
1188
1189
<dt><var>displacement</var>
1189
-
<dd>The degree of displacement in <var>dir</var> between <var>searchOrigin</var> and <var>candidate</var>
1190
-
<dd>Defined as <pre class="prod">(absolute distance on the axis orthogonal to <var>dir</var> + <var>orthogonalBias</var>) * <var>orthogonalWeight</var></pre>
1191
-
1192
-
* <var>orthogonalBias</var>
1193
-
* If the <var>dir</var> is {{SpatialNavigationDirection/left}} or {{SpatialNavigationDirection/right}},
1194
-
height of <var>searchOrigin</var> / 2
1195
-
* Else if the <var>dir</var> is {{SpatialNavigationDirection/up}} or {{SpatialNavigationDirection/down}},
1196
-
width of <var>searchOrigin</var> / 2
1190
+
<dd>
1191
+
The degree of displacement in <var>dir</var> between the <var>reference</var> and the <var>candidate</var>,
1192
+
defined as
1193
+
<pre><code>
1194
+
<var>displacement</var> = (absolute distance on the axis orthogonal to <var>dir</var> between <var>P1</var> and <var>P2</var> +
1195
+
<var>orthogonalBias</var>) *
1196
+
<var>orthogonalWeight</var>
1197
+
</code></pre>
1198
+
1199
+
<dt><var>orthogonalBias</var>:
1200
+
<dd>
1201
+
* If the <var>dir</var> is {{SpatialNavigationDirection/left}} or {{SpatialNavigationDirection/right}},
1202
+
the height of the axis-aligned bounding box of <var>reference</var> / 2
1203
+
* Else if the <var>dir</var> is {{SpatialNavigationDirection/up}} or {{SpatialNavigationDirection/down}},
1204
+
the width of the axis-aligned bounding box of <var>reference</var> / 2
1197
1205
1198
-
* <var>orthogonalWeight</var>:
1199
-
* If the <var>dir</var> is {{SpatialNavigationDirection/left}} or {{SpatialNavigationDirection/right}}, 30
1200
-
* Else if the <var>dir</var> is {{SpatialNavigationDirection/up}} or {{SpatialNavigationDirection/down}}, 2
1206
+
<dt><var>orthogonalWeight</var>:
1207
+
<dd>
1208
+
* If the <var>dir</var> is {{SpatialNavigationDirection/left}} or {{SpatialNavigationDirection/right}}, 30
1209
+
* Else if the <var>dir</var> is {{SpatialNavigationDirection/up}} or {{SpatialNavigationDirection/down}}, 2
1201
1210
1202
1211
<dt><var>alignment</var>
1203
-
<dd>The degree of alignment in <var>dir</var> between <var>searchOrigin</var> and <var>candidate</var>
1204
-
<dd>Defined as <pre class="prod"><var>alignBias</var> * <var>alignWeight</var></pre>
1212
+
<dd>
1213
+
The degree of alignment in <var>dir</var> between the <var>reference</var> and the <var>candidate</var>,
<figcaption>The <a>intersecting area</a> when the elements are aligned.</figcaption>
1243
-
</figure>
1244
-
1245
-
In the case above, the search origin element and the candidate element are aligned and the requested direction is {{SpatialNavigationDirection/right}}.
1246
-
The <a>intersecting area</a> is created with
1247
-
(1) The gap between two elements.
1248
-
(2) The parts of the edges from each element which are overlapped
1249
-
when the right edge of the search origin element and the left edge of the candidate are projected to each other.
0 commit comments