SVGGeometryElement

Overview

The SVGGeometryElement interface represents SVG elements whose rendering is defined by geometry with an equivalent path, and which can be filled and stroked. This includes paths and the basic shapes.

Location


Properties


pathLength

 

property pathLength: Int32 read;

 

Int32 pathLength { get; }

 

var pathLength: Int32 { get{} }

 

Int32 pathLength { __get; }

 

ReadOnly Property pathLength() As Int32

Required Methods


getPointAtLength

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:

getTotalLength

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

 

method getTotalLength: Double

 

Double getTotalLength()

 

func getTotalLength() -> Double

 

Double getTotalLength()

 

Function getTotalLength() As Double

isPointInFill

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:

isPointInStroke

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: