diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index 8169f0c4e310e32..be461ec448c0156 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -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 diff --git a/files/en-us/web/api/svggeometryelement/getpointatlength/index.html b/files/en-us/web/api/svggeometryelement/getpointatlength/index.html index 519618302bd1f41..a2edeea6d9ac5fe 100644 --- a/files/en-us/web/api/svggeometryelement/getpointatlength/index.html +++ b/files/en-us/web/api/svggeometryelement/getpointatlength/index.html @@ -16,12 +16,6 @@ SVGGeometryElement.getPointAtLength() method returns the point at a given distance along the path.

-
-

Note: This method was originally part of the - {{domxref("SVGPathElement")}} interface. SVG 2 introduced the - {{domxref("SVGGeometryElement")}} interface and moved the property to it.

-
-

Syntax

DOMPoint someElement.getPointAtLength(float distance);
diff --git a/files/en-us/web/api/svggeometryelement/gettotallength/index.html b/files/en-us/web/api/svggeometryelement/gettotallength/index.html
index 0998f9a41772cf3..ead26a4ce60c1d6 100644
--- a/files/en-us/web/api/svggeometryelement/gettotallength/index.html
+++ b/files/en-us/web/api/svggeometryelement/gettotallength/index.html
@@ -15,12 +15,6 @@
 

The SVGGeometryElement.getTotalLength() method returns the user agent's computed value for the total length of the path in user units.

-
-

Note: This method was originally part of the - {{domxref("SVGPathElement")}} interface. SVG 2 introduced the - {{domxref("SVGGeometryElement")}} interface and moved the property to it.

-
-

Syntax

float someElement.getTotalLength();
diff --git a/files/en-us/web/api/svggeometryelement/index.html b/files/en-us/web/api/svggeometryelement/index.html
index ddd5ca06e421f33..96f2214c2394cab 100644
--- a/files/en-us/web/api/svggeometryelement/index.html
+++ b/files/en-us/web/api/svggeometryelement/index.html
@@ -15,10 +15,6 @@
 
 

{{InheritanceDiagram(600, 140)}}

-
-

Note: The pathLength property and the getTotalLength() and getPointAtLength() methods were originally part of the {{domxref("SVGPathElement")}} interface. In SVG 2 they were moved to this interface.

-
-

Properties

This interface also inherits properties from its parent, {{domxref("SVGGraphicsElement")}}.

diff --git a/files/en-us/web/api/svggeometryelement/pathlength/index.html b/files/en-us/web/api/svggeometryelement/pathlength/index.html index 9a910af5647f822..3fdd6711c22ac32 100644 --- a/files/en-us/web/api/svggeometryelement/pathlength/index.html +++ b/files/en-us/web/api/svggeometryelement/pathlength/index.html @@ -16,12 +16,6 @@ {{SVGAttr("pathLength")}} attribute and returns the total length of the path, in user units.

-
-

Note: This property was originally part of the - {{domxref("SVGPathElement")}} interface. SVG 2 introduced the - {{domxref("SVGGeometryElement")}} interface and moved the property to it.

-
-

Syntax

var pathLength = someElement.pathLength;
diff --git a/files/en-us/web/api/svgpathelement/getpointatlength/index.html b/files/en-us/web/api/svgpathelement/getpointatlength/index.html
deleted file mode 100644
index ec17ca29c26a6ae..000000000000000
--- a/files/en-us/web/api/svgpathelement/getpointatlength/index.html
+++ /dev/null
@@ -1,66 +0,0 @@
----
-title: SVGPathElement.getPointAtLength()
-slug: Web/API/SVGPathElement/getPointAtLength
-tags:
-- API
-- DOM
-- Deprecated
-- Method
-- NeedsExample
-- Reference
-- SVG
-- SVG DOM
----
-

The - SVGPathElement.getPointAtLength() method returns the - point at a given distance along the path.

- -
-

Note: In SVG 2 this property was moved to the - {{DOMxRef("SVGGeometryElement")}} interface, from which the - {{DOMxRef("SVGPathElement")}} inherits it.

-
- -

Syntax

- -
SVGPoint someElement.getPointAtLength(float distance);
-
- -

Parameters

- -
-
distance
-
A float referring to the distance along the path.
-
- -

Return value

- -

An {{DOMxRef("SVGPoint")}} indicating the point at a given distance along the path.

- -

Specifications

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName("SVG1.1", "paths.html#__svg__SVGPathElement__getPointAtLength", - "SVGPathElement.getTotalLength()")}}{{Spec2("SVG1.1")}}Initial definition
- -

Browser compatibility

- -

{{Compat("api.SVGPathElement.getPointAtLength")}}

- -

See also

- -
    -
  • {{DOMxRef("SVGGeometryElement.getPointAtLength()")}}
  • -
diff --git a/files/en-us/web/api/svgpathelement/gettotallength/index.html b/files/en-us/web/api/svgpathelement/gettotallength/index.html deleted file mode 100644 index cbe362bb56721c4..000000000000000 --- a/files/en-us/web/api/svgpathelement/gettotallength/index.html +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: SVGPathElement.getTotalLength() -slug: Web/API/SVGPathElement/getTotalLength -tags: -- API -- DOM -- Deprecated -- Method -- NeedsExample -- Reference -- SVG -- SVG DOM ---- -
{{APIRef("SVG")}}
- -

The - SVGPathElement.getTotalLength() method returns the user - agent's computed value for the total length of the path in user units.

- -
-

Note: In SVG 2 this method was moved to the - {{DOMxRef("SVGGeometryElement")}} interface, from which the - {{DOMxRef("SVGPathElement")}} inherits it.

-
- -

Syntax

- -
float someElement.getTotalLength();
-
- -

Return value

- -

A float indicating the total length of the path in user units.

- -

Specifications

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName("SVG1.1", "paths.html#__svg__SVGPathElement__getTotalLength", - "SVGPathElement.getTotalLength()")}}{{Spec2("SVG1.1")}}Initial definition
- -

Browser compatibility

- -

{{Compat("api.SVGPathElement.getTotalLength")}}

- -

See also

- -
    -
  • {{DOMxRef("SVGGeometryElement.getTotalLength()")}}
  • -
diff --git a/files/en-us/web/api/svgpathelement/index.html b/files/en-us/web/api/svgpathelement/index.html index 113dd3118422b2a..a69448716a43df8 100644 --- a/files/en-us/web/api/svgpathelement/index.html +++ b/files/en-us/web/api/svgpathelement/index.html @@ -20,34 +20,13 @@

Properties

-

This interface also inherits properties from its parent, {{domxref("SVGGeometryElement")}}.

- -
-
{{domxref("SVGPathElement.pathLength")}} {{deprecated_inline}}
-
-

An {{domxref("SVGAnimatedNumber")}} corresponding to the {{SVGAttr("pathLength")}} attribute of the given {{SVGElement("path")}} element.

- -
Note: In SVG 2 this property was moved to the {{domxref("SVGGeometryElement")}} interface, from which this interface inherits it.
-
-
+

This interface inherits properties from its parent, {{domxref("SVGGeometryElement")}}.

Methods

This interface also inherits methods from its parent, {{domxref("SVGGeometryElement")}}.

-
{{domxref("SVGPathElement.getTotalLength()")}} {{deprecated_inline}}
-
-

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.

- -
Note: In SVG 2 this method was moved to the {{domxref("SVGGeometryElement")}} interface, from which this interface inherits it.
-
-
{{domxref("SVGPathElement.getPointAtLength()")}} {{deprecated_inline}}
-
-

Returns an {{domxref("SVGPoint")}} representing the x and y coordinates in user space utilizing the browser's distance-along-a-path algorithm.

- -
Note: In SVG 2 this method was moved to the {{domxref("SVGGeometryElement")}} interface, from which this interface inherits it.
-
{{domxref("SVGPathElement.getPathSegAtLength()")}} {{deprecated_inline}}
Returns an unsigned long representing the index within the {{domxref("SVGAnimatedPathData.pathSegList", "pathSegList")}} utilizing the user agent's distance-along-a-path algorithm.
{{domxref("SVGPathElement.createSVGPathSegClosePath()")}} {{deprecated_inline}}
diff --git a/files/en-us/web/api/svgpathelement/pathlength/index.html b/files/en-us/web/api/svgpathelement/pathlength/index.html deleted file mode 100644 index fa6241fc6950a5b..000000000000000 --- a/files/en-us/web/api/svgpathelement/pathlength/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: SVGPathElement.pathLength -slug: Web/API/SVGPathElement/pathLength -tags: -- API -- DOM -- Deprecated -- NeedsExample -- Property -- Reference -- SVG -- SVG DOM ---- -
{{APIRef("SVG")}}{{Deprecated_Header("SVG2")}}
- -

The SVGPathElement.pathLength - property reflects the {{SVGAttr("pathLength")}} attribute and returns the total length - of the path, in user units.

- -
-

Note: In SVG 2 this property was moved to the - {{DOMxRef("SVGGeometryElement")}} interface, from which the - {{DOMxRef("SVGPathElement")}} inherits it.

-
- -

Syntax

- -
var pathLength = someElement.pathLength;
-
- -

Specifications

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName("SVG1.1", "paths.html#__svg__SVGPathElement__pathLength", - "SVGPathElement.pathLength")}}{{Spec2("SVG1.1")}}Initial definition
- -

Browser compatibility

- -

{{Compat("api.SVGPathElement.pathLength")}}

- -

See also

- -
    -
  • {{DOMxRef("SVGGeometryElement.pathLength")}}
  • -