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
The <dfn dfn-type=constructor dfn-for=DOMQuad><code>DOMQuad(<var>p1</var>, <var>p2</var>, <var>p3</var>, <var>p4</var>)</code></dfn> constructor, when invoked, must run the following steps:
@@ -313,6 +321,18 @@ The <dfn dfn-for=DOMQuad><code>fromRect(<var>other</var>)</code></dfn> static me
313
321
<li><p>Return a new <a interface>DOMQuad</a> with <a attribute for=DOMQuad>p1</a> set to <var>point 1</var>, <a attribute for=DOMQuad>p2</a> set to <var>point 2</var>, <a attribute for=DOMQuad>p3</a> set to <var>point 3</var> and <a attribute for=DOMQuad>p4</a> set to <var>point 4</var>, and let the <a>associated bounding rectangle</a> be <var>bounds</var>.
314
322
</ol>
315
323
324
+
The <dfn dfn-for=DOMQuad><code>fromQuad(<var>other</var>)></code></dfn> static method on {{DOMQuad}} must run the following steps:
325
+
326
+
1. Let <var>point 1</var> be the result of invoking {{DOMPoint/fromPoint()}} static method on {{DOMPoint}} with the {{DOMQuadInit/p1}} dictionary member of <var>other</var> as argument, if it exists.
327
+
1. Let <var>point 2</var> be the result of invoking {{DOMPoint/fromPoint()}} static method on {{DOMPoint}} with the {{DOMQuadInit/p2}} dictionary member of <var>other</var> as argument, if it exists.
328
+
1. Let <var>point 3</var> be the result of invoking {{DOMPoint/fromPoint()}} static method on {{DOMPoint}} with the {{DOMQuadInit/p3}} dictionary member of <var>other</var> as argument, if it exists.
329
+
1. Let <var>point 4</var> be the result of invoking {{DOMPoint/fromPoint()}} static method on {{DOMPoint}} with the {{DOMQuadInit/p4}} dictionary member of <var>other</var> as argument, if it exists.
330
+
1. Return a new {{DOMQuad}} with
331
+
{{DOMQuad/p1}} set to <var>point 1</var>,
332
+
{{DOMQuad/p2}} set to <var>point 2</var>,
333
+
{{DOMQuad/p3}} set to <var>point 3</var> and
334
+
{{DOMQuad/p4}} set to <var>point 4</var>.
335
+
316
336
<div dfn-type=attribute dfn-for=DOMQuad>
317
337
The <dfn>p1</dfn> attribute must return a <a interface>DOMPoint</a> that represents <a attribute>p1</a> of the quadrilateral it was invoked on. The author can modify the returned <a interface>DOMPoint</a> object, which directly affects the quadrilateral.
0 commit comments