Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove DOMPointInit from MDN docs #8788

Merged
merged 4 commits into from
Sep 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7182,8 +7182,13 @@
/en-US/docs/Web/API/DOMImplementation.hasFeature /en-US/docs/Web/API/DOMImplementation/hasFeature
/en-US/docs/Web/API/DOMMatrix/DOMMatrix.DOMMatrix /en-US/docs/Web/API/DOMMatrix/DOMMatrix
/en-US/docs/Web/API/DOMMatrix/DOMMatrixReadOnly /en-US/docs/Web/API/DOMMatrixReadOnly/DOMMatrixReadOnly
/en-US/docs/Web/API/DOMPoint/DOMPoint.fromPoint() /en-US/docs/Web/API/DOMPoint/fromPoint
/en-US/docs/Web/API/DOMPoint/DOMPoint.fromPoint() /en-US/docs/web/api/DOMPoint/fromPoint
/en-US/docs/Web/API/DOMPoint/toJSON /en-US/docs/Web/API/DOMPointReadOnly/toJSON
/en-US/docs/Web/API/DOMPointInit /en-US/docs/web/api/DOMPoint/fromPoint
/en-US/docs/Web/API/DOMPointInit/w /en-US/docs/web/api/DOMPoint/w
/en-US/docs/Web/API/DOMPointInit/x /en-US/docs/web/api/DOMPoint/x
/en-US/docs/Web/API/DOMPointInit/y /en-US/docs/web/api/DOMPoint/y
/en-US/docs/Web/API/DOMPointInit/z /en-US/docs/web/api/DOMPoint/z
/en-US/docs/Web/API/DOMPointReadOnly/DOMPoint.x /en-US/docs/Web/API/DOMPointReadOnly/x
/en-US/docs/Web/API/DOMReadOnlyMatrix /en-US/docs/Web/API/DOMMatrixReadOnly
/en-US/docs/Web/API/DOMTokenList/DOMTokenList.add() /en-US/docs/Web/API/DOMTokenList/add
Expand Down
35 changes: 0 additions & 35 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -35184,41 +35184,6 @@
"Sheppy"
]
},
"Web/API/DOMPointInit": {
"modified": "2020-10-15T22:06:36.281Z",
"contributors": [
"Zearin_Galaurum",
"Sheppy"
]
},
"Web/API/DOMPointInit/w": {
"modified": "2020-10-15T22:06:40.738Z",
"contributors": [
"sideshowbarker",
"Sheppy"
]
},
"Web/API/DOMPointInit/x": {
"modified": "2020-10-15T22:06:39.901Z",
"contributors": [
"sideshowbarker",
"Sheppy"
]
},
"Web/API/DOMPointInit/y": {
"modified": "2020-10-15T22:06:40.145Z",
"contributors": [
"sideshowbarker",
"Sheppy"
]
},
"Web/API/DOMPointInit/z": {
"modified": "2020-10-15T22:06:40.656Z",
"contributors": [
"sideshowbarker",
"Sheppy"
]
},
"Web/API/DOMPointReadOnly": {
"modified": "2020-10-15T21:36:25.809Z",
"contributors": [
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/dompoint/dompoint/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
all of its properties.</p>

<p>You can also create a <code>DOMPoint</code> by calling the
{{domxref("DOMPoint.fromPoint()")}} static function. That function accepts as input a
{{domxref("DOMPointInit")}} compatible object, including a <code>DOMPoint</code> or
{{domxref("DOMPoint.fromPoint()")}} static function. That function accepts any object with the required parameters, including a <code>DOMPoint</code> or
{{domxref("DOMPointReadOnly")}}.</p>

<h2 id="Syntax">Syntax</h2>
Expand Down
20 changes: 13 additions & 7 deletions files/en-us/web/api/dompoint/frompoint/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
<code>fromPoint()</code> creates and returns a new mutable <code>DOMPoint</code>
object given a source point.</p>

<p>The source point is specified as a
{{domxref("DOMPointInit")}}-compatible object, which includes both
{{domxref("DOMPoint")}} and {{domxref("DOMPointReadOnly")}}.</p>

<p>You can also create a new <code>DOMPoint</code> object using the
{{domxref("DOMPoint.DOMPoint", "new DOMPoint()")}} constructor.</p>

Expand All @@ -41,9 +37,19 @@ <h3 id="Properties">Properties</h3>

<dl>
<dt><code>sourcePoint</code></dt>
<dd>A {{domxref("DOMPointInit")}}-compliant object, which includes both
{{domxref("DOMPoint")}} and {{domxref("DOMPointReadOnly")}}, from which to take the
values of the new point's properties.</dd>
<dd>A {{domxref("DOMPoint")}} or {{domxref("DOMPointReadOnly")}} instance, or an object containing the following properties, from which to take the
values of the new point's properties:
<dl>
<dt><code>x</code></dt>
<dd>An unrestricted floating-point value indicating the <code>x</code>-coordinate of the point in space. This is generally the horizontal coordinate, with positive values being to the right and negative values to the left. The default value is <code>0</code>.</dd>
<dt><code>y</code></dt>
<dd>An unrestricted floating-point number providing the point's <code>y</code>-coordinate. This is the vertical coordinate, and barring any transforms applied to the coordinate system, positive values are downward and negative values upward toward the top of the screen. The default is <code>0</code>.</dd>
<dt><code>z</code></dt>
<dd>An unrestricted floating-point value which gives the point's <code>z</code>-coordinate, which is (assuming no transformations that alter the situation) the depth coordinate; positive values are closer to the user and negative values retreat back into the screen. The default value is <code>0</code>.</dd>
<dt><code>w</code></dt>
<dd>The point's <code>w</code> perspective value, given as an unrestricted floating-point number. The default is <code>1</code>.</dd>
</dl>
</dd>
</dl>

<h3 id="Return_value">Return value</h3>
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/dompoint/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 id="Constructor">Constructor</h2>

<dl>
<dt>{{domxref("DOMPoint.DOMPoint","DOMPoint()")}}</dt>
<dd>Creates and returns a new <code>DOMPoint</code> object given the values of zero or more of its coordinate components and optionally the <code>w</code> perspective value. You can also use an existing <code>DOMPoint</code> or <code>DOMPointReadOnly</code> or a {{domxref("DOMPointInit")}} dictionary to create a new point by calling the {{domxref("DOMPoint.fromPoint()")}} static method.</dd>
<dd>Creates and returns a new <code>DOMPoint</code> object given the values of zero or more of its coordinate components and optionally the <code>w</code> perspective value. You can also use an existing <code>DOMPoint</code> or <code>DOMPointReadOnly</code> or an object to create a new point by calling the {{domxref("DOMPoint.fromPoint()")}} static method.</dd>
</dl>

<h2 id="Methods">Methods</h2>
Expand All @@ -36,7 +36,7 @@ <h2 id="Static_methods">Static methods</h2>

<dl>
<dt>{{domxref("DOMPoint.fromPoint()", "DOMPoint.fromPoint()")}}</dt>
<dd>Creates a new mutable <code>DOMPoint</code> object given an existing point (or a {{domxref("DOMPointInit")}} dictionary) which provides the values for its properties.</dd>
<dd>Creates a new mutable <code>DOMPoint</code> object given an existing point (or an object containing matching properties) which provides the values for its properties.</dd>
</dl>

<h2 id="Properties">Properties</h2>
Expand Down
54 changes: 0 additions & 54 deletions files/en-us/web/api/dompointinit/index.html

This file was deleted.

63 changes: 0 additions & 63 deletions files/en-us/web/api/dompointinit/w/index.html

This file was deleted.

59 changes: 0 additions & 59 deletions files/en-us/web/api/dompointinit/x/index.html

This file was deleted.

67 changes: 0 additions & 67 deletions files/en-us/web/api/dompointinit/y/index.html

This file was deleted.

Loading