SvgGeometryElement Class
https://w3c.github.io/svgwg/svg2-draft/types.html#svggeometryelement
public abstract class SvgGeometryElement : SvgGraphicsElement- Inheritance
SvgGraphicsElementSvgGeometryElement
Properties
| Name | Description |
|---|---|
| PathLength | Gets the pathLength attribute as a SVGAnimatedNumber object. |
PathLength
SvgElements.g.csGets the pathLength attribute as a SVGAnimatedNumber object.
public SvgAnimatedNumber PathLength { get; }Methods
| Name | Description |
|---|---|
| GetPointAtLength(float) | https://svgwg.org/svg2-draft/types.html#__svg__SVGGeometryElement__getPointAtLength: the point at a distance along the path of the element, clamped to [0, total length]. Throws an InvalidStateError when the path is empty. |
| GetTotalLength() | https://svgwg.org/svg2-draft/types.html#__svg__SVGGeometryElement__getTotalLength: the length of the path of the element (the equivalent path of a basic shape, https://svgwg.org/svg2-draft/shapes.html); pathLength does not change it. |
| IsPointInFill(DomPointInit?) | https://svgwg.org/svg2-draft/types.html#__svg__SVGGeometryElement__isPointInFill: whether the point (in the user space of the element) is inside the fill of its geometry, with its fill-rule (the points of the boundary are inside). The fill paint, visibility and pointer-events have no effect. |
| IsPointInStroke(DomPointInit?) | https://svgwg.org/svg2-draft/types.html#__svg__SVGGeometryElement__isPointInStroke: whether the point (in the user space of the element) is inside the stroke shape of its geometry (the stroke width, the joins, the caps, the miter limit and the dashes; vector-effect: non-scaling-stroke applies the stroke width in the coordinates of the viewport). The stroke paint, visibility and pointer-events have no effect. |
GetPointAtLength(float)
SvgElements.cshttps://svgwg.org/svg2-draft/types.html#__svg__SVGGeometryElement__getPointAtLength: the point at a distance along the path of the element, clamped to [0, total length]. Throws an InvalidStateError when the path is empty.
GetTotalLength()
SvgElements.cshttps://svgwg.org/svg2-draft/types.html#__svg__SVGGeometryElement__getTotalLength: the length of the path of the element (the equivalent path of a basic shape, https://svgwg.org/svg2-draft/shapes.html); pathLength does not change it.
public float GetTotalLength()IsPointInFill(DomPointInit?)
SvgElements.cshttps://svgwg.org/svg2-draft/types.html#__svg__SVGGeometryElement__isPointInFill: whether the point (in the user space of the element) is inside the fill of its geometry, with its fill-rule (the points of the boundary are inside). The fill paint, visibility and pointer-events have no effect.
public bool IsPointInFill(DomPointInit? point = null)IsPointInStroke(DomPointInit?)
SvgElements.cshttps://svgwg.org/svg2-draft/types.html#__svg__SVGGeometryElement__isPointInStroke: whether the point (in the user space of the element) is inside the stroke shape of its geometry (the stroke width, the joins, the caps, the miter limit and the dashes; vector-effect: non-scaling-stroke applies the stroke width in the coordinates of the viewport). The stroke paint, visibility and pointer-events have no effect.
public bool IsPointInStroke(DomPointInit? point = null)