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

Redirect SVGPathElement duplicate members to SVGGeometryElement #3191

Merged
merged 1 commit into from
Mar 17, 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
5 changes: 4 additions & 1 deletion files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8692,8 +8692,11 @@
/en-US/docs/Web/API/SVGElement/onscroll /en-US/docs/Web/API/GlobalEventHandlers/onscroll
/en-US/docs/Web/API/SVGElement/onselect /en-US/docs/Web/API/GlobalEventHandlers/onselect
/en-US/docs/Web/API/SVGElement/onsubmit /en-US/docs/Web/API/GlobalEventHandlers/onsubmit
/en-US/docs/Web/API/SVGGeometryElement/getTotalPathLength /en-US/docs/Web/API/SVGPathElement/getTotalLength
/en-US/docs/Web/API/SVGGeometryElement/getTotalPathLength /en-US/docs/Web/API/SVGGeometryElement/pathLength
/en-US/docs/Web/API/SVGGraphicsElement/SVGGraphicsElement:_cut_event /en-US/docs/Web/API/SVGGraphicsElement/cut_event
/en-US/docs/Web/API/SVGPathElement/getPointAtLength /en-US/docs/Web/API/SVGGeometryElement/getPointAtLength
/en-US/docs/Web/API/SVGPathElement/getTotalLength /en-US/docs/Web/API/SVGGeometryElement/getTotalLength
/en-US/docs/Web/API/SVGPathElement/pathLength /en-US/docs/Web/API/SVGGeometryElement/pathLength
/en-US/docs/Web/API/Screen.availHeight /en-US/docs/Web/API/Screen/availHeight
/en-US/docs/Web/API/Screen.availLeft /en-US/docs/Web/API/Screen/availLeft
/en-US/docs/Web/API/Screen.availTop /en-US/docs/Web/API/Screen/availTop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
<code><strong>SVGGeometryElement.getPointAtLength()</strong></code> method returns the
point at a given distance along the path.</span></p>

<div class="note">
<p><strong>Note:</strong> This method was originally part of the
{{domxref("SVGPathElement")}} interface. SVG 2 introduced the
{{domxref("SVGGeometryElement")}} interface and moved the property to it.</p>
</div>

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js">DOMPoint <var>someElement</var>.<strong>getPointAtLength(</strong>float <var>distance</var><strong>)</strong>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
<p>The <code><strong>SVGGeometryElement.getTotalLength()</strong></code> method returns
the user agent's computed value for the total length of the path in user units.</p>

<div class="note">
<p><strong>Note:</strong> This method was originally part of the
{{domxref("SVGPathElement")}} interface. SVG 2 introduced the
{{domxref("SVGGeometryElement")}} interface and moved the property to it.</p>
</div>

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js">float <var>someElement</var>.getTotalLength();
Expand Down
4 changes: 0 additions & 4 deletions files/en-us/web/api/svggeometryelement/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@

<p>{{InheritanceDiagram(600, 140)}}</p>

<div class="note">
<p><strong>Note:</strong> The <code>pathLength</code> property and the <code>getTotalLength()</code> and <code>getPointAtLength()</code> methods were originally part of the {{domxref("SVGPathElement")}} interface. In SVG 2 they were moved to this interface.</p>
</div>

<h2 id="Properties">Properties</h2>

<p><em>This interface also inherits properties from its parent, {{domxref("SVGGraphicsElement")}}.</em></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
{{SVGAttr("pathLength")}} attribute and returns the total length of the path, in user
units.</p>

<div class="note">
<p><strong>Note:</strong> This property was originally part of the
{{domxref("SVGPathElement")}} interface. SVG 2 introduced the
{{domxref("SVGGeometryElement")}} interface and moved the property to it.</p>
</div>

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js">var <var>pathLength</var> = <var>someElement</var>.pathLength;
Expand Down
66 changes: 0 additions & 66 deletions files/en-us/web/api/svgpathelement/getpointatlength/index.html

This file was deleted.

61 changes: 0 additions & 61 deletions files/en-us/web/api/svgpathelement/gettotallength/index.html

This file was deleted.

23 changes: 1 addition & 22 deletions files/en-us/web/api/svgpathelement/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,13 @@

<h2 id="Properties">Properties</h2>

<p><em>This interface also inherits properties from its parent, {{domxref("SVGGeometryElement")}}.</em></p>

<dl>
<dt>{{domxref("SVGPathElement.pathLength")}} {{deprecated_inline}}</dt>
<dd>
<p>An {{domxref("SVGAnimatedNumber")}} corresponding to the {{SVGAttr("pathLength")}} attribute of the given {{SVGElement("path")}} element.</p>

<div class="note"><strong>Note:</strong> In SVG 2 this property was moved to the {{domxref("SVGGeometryElement")}} interface, from which this interface inherits it.</div>
</dd>
</dl>
<p><em>This interface inherits properties from its parent, {{domxref("SVGGeometryElement")}}.</em></p>

<h2 id="Methods">Methods</h2>

<p><em>This interface also inherits methods from its parent, {{domxref("SVGGeometryElement")}}.</em></p>

<dl>
<dt>{{domxref("SVGPathElement.getTotalLength()")}} {{deprecated_inline}}</dt>
<dd>
<p>Returns a float representing the computed value for the total length of the path using the browser's distance-along-a-path algorithm, as a distance in the current user coordinate system.</p>

<div class="note"><strong>Note:</strong> In SVG 2 this method was moved to the {{domxref("SVGGeometryElement")}} interface, from which this interface inherits it.</div>
</dd>
<dt>{{domxref("SVGPathElement.getPointAtLength()")}} {{deprecated_inline}}</dt>
<dd>
<p>Returns an {{domxref("SVGPoint")}} representing the x and y coordinates in user space utilizing the browser's distance-along-a-path algorithm.</p>

<div class="note"><strong>Note:</strong> In SVG 2 this method was moved to the {{domxref("SVGGeometryElement")}} interface, from which this interface inherits it.</div>
</dd>
<dt>{{domxref("SVGPathElement.getPathSegAtLength()")}} {{deprecated_inline}}</dt>
<dd>Returns an unsigned long representing the index within the {{domxref("SVGAnimatedPathData.pathSegList", "pathSegList")}} utilizing the user agent's distance-along-a-path algorithm.</dd>
<dt>{{domxref("SVGPathElement.createSVGPathSegClosePath()")}} {{deprecated_inline}}</dt>
Expand Down
57 changes: 0 additions & 57 deletions files/en-us/web/api/svgpathelement/pathlength/index.html

This file was deleted.