Overview

The SVGPathElement interface corresponds to the <path> element.

Location

property dataset: String read;
var dataset: String { get{} }
String dataset { __get; }
ReadOnly Property dataset() As String

Returns a DOMRect representing the computed bounding box of the current element.

func getBBox() -> SVGRect
Function getBBox() As SVGRect

Returns the point at a given distance along the path.

method getPointAtLength(pardistance: dynamic): DOMPoint
DOMPoint getPointAtLength(dynamic pardistance)
func getPointAtLength(_ pardistance: dynamic) -> DOMPoint
DOMPoint getPointAtLength(dynamic pardistance)
Function getPointAtLength(pardistance As dynamic) As DOMPoint

Parameters:

  • pardistance:

Returns the user agent's computed value for the total length of the path in user units.

method getTotalLength: Double
func getTotalLength() -> Double
Function getTotalLength() As Double

Determines whether a given point is within the fill shape of an element. Normal hit testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the fill.

method isPointInFill(parpoint: dynamic): Boolean
Boolean isPointInFill(dynamic parpoint)
func isPointInFill(_ parpoint: dynamic) -> Boolean
Boolean isPointInFill(dynamic parpoint)
Function isPointInFill(parpoint As dynamic) As Boolean

Parameters:

  • parpoint:

Determines whether a given point is within the stroke shape of an element. Normal hit testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the stroke.

method isPointInStroke(parpoint: dynamic): Boolean
Boolean isPointInStroke(dynamic parpoint)
func isPointInStroke(_ parpoint: dynamic) -> Boolean
Boolean isPointInStroke(dynamic parpoint)
Function isPointInStroke(parpoint As dynamic) As Boolean

Parameters:

  • parpoint:

property ownerSVGElement: Element read;
Element ownerSVGElement { get; }
var ownerSVGElement: Element { get{} }
Element ownerSVGElement { __get; }
ReadOnly Property ownerSVGElement() As Element

property pathLength: Int32 read;
Int32 pathLength { get; }
var pathLength: Int32 { get{} }
Int32 pathLength { __get; }
ReadOnly Property pathLength() As Int32

property viewportElement: Element read;
Element viewportElement { get; }
var viewportElement: Element { get{} }
Element viewportElement { __get; }
ReadOnly Property viewportElement() As Element
property dataset: String read;
var dataset: String { get{} }
String dataset { __get; }
ReadOnly Property dataset() As String

property ownerSVGElement: Element read;
Element ownerSVGElement { get; }
var ownerSVGElement: Element { get{} }
Element ownerSVGElement { __get; }
ReadOnly Property ownerSVGElement() As Element

property pathLength: Int32 read;
Int32 pathLength { get; }
var pathLength: Int32 { get{} }
Int32 pathLength { __get; }
ReadOnly Property pathLength() As Int32

property viewportElement: Element read;
Element viewportElement { get; }
var viewportElement: Element { get{} }
Element viewportElement { __get; }
ReadOnly Property viewportElement() As Element

Returns a DOMRect representing the computed bounding box of the current element.

func getBBox() -> SVGRect
Function getBBox() As SVGRect

Returns the point at a given distance along the path.

method getPointAtLength(pardistance: dynamic): DOMPoint
DOMPoint getPointAtLength(dynamic pardistance)
func getPointAtLength(_ pardistance: dynamic) -> DOMPoint
DOMPoint getPointAtLength(dynamic pardistance)
Function getPointAtLength(pardistance As dynamic) As DOMPoint

Parameters:

  • pardistance:

Returns the user agent's computed value for the total length of the path in user units.

method getTotalLength: Double
func getTotalLength() -> Double
Function getTotalLength() As Double

Determines whether a given point is within the fill shape of an element. Normal hit testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the fill.

method isPointInFill(parpoint: dynamic): Boolean
Boolean isPointInFill(dynamic parpoint)
func isPointInFill(_ parpoint: dynamic) -> Boolean
Boolean isPointInFill(dynamic parpoint)
Function isPointInFill(parpoint As dynamic) As Boolean

Parameters:

  • parpoint:

Determines whether a given point is within the stroke shape of an element. Normal hit testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the stroke.

method isPointInStroke(parpoint: dynamic): Boolean
Boolean isPointInStroke(dynamic parpoint)
func isPointInStroke(_ parpoint: dynamic) -> Boolean
Boolean isPointInStroke(dynamic parpoint)
Function isPointInStroke(parpoint As dynamic) As Boolean

Parameters:

  • parpoint: