SVGPathSeg class

SVGPathSeg class

The SVGPathSeg interface is a base interface that corresponds to a single command within a path data specification.

Inheritance: SVGPathSegSVGValueTypeDOMObject

The SVGPathSeg type exposes the following members:

Properties

PropertyDescription
path_seg_typeThe type of the path segment as specified by one of the constants defined on this interface.
path_seg_type_as_letterThe type of the path segment, specified by the corresponding one character command name.
PATHSEG_UNKNOWNThe unit type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
PATHSEG_CLOSEPATHCorresponds to a “closepath” (z) path data command.
PATHSEG_MOVETO_ABSCorresponds to a “absolute moveto” (M) path data command.
PATHSEG_MOVETO_RELCorresponds to a “relative moveto” (m) path data command.
PATHSEG_LINETO_ABSCorresponds to a “absolute lineto” (L) path data command.
PATHSEG_LINETO_RELCorresponds to a “relative lineto” (l) path data command.
PATHSEG_CURVETO_CUBIC_ABSCorresponds to a “absolute cubic Bézier curveto” (C) path data command.
PATHSEG_CURVETO_CUBIC_RELCorresponds to a “relative cubic Bézier curveto” (c) path data command.
PATHSEG_CURVETO_QUADRATIC_ABSCorresponds to a “absolute quadratic Bézier curveto” (Q) path data command.
PATHSEG_CURVETO_QUADRATIC_RELCorresponds to a “relative quadratic Bézier curveto” (q) path data command.
PATHSEG_ARC_ABSCorresponds to a “absolute arcto” (A) path data command.
PATHSEG_ARC_RELCorresponds to a “relative arcto” (a) path data command.
PATHSEG_LINETO_HORIZONTAL_ABSCorresponds to a “absolute horizontal lineto” (H) path data command.
PATHSEG_LINETO_HORIZONTAL_RELCorresponds to a “relative horizontal lineto” (h) path data command.
PATHSEG_LINETO_VERTICAL_ABSCorresponds to a “absolute vertical lineto” (V) path data command.
PATHSEG_LINETO_VERTICAL_RELCorresponds to a “relative vertical lineto” (v) path data command.
PATHSEG_CURVETO_CUBIC_SMOOTH_ABSCorresponds to a “absolute smooth cubic curveto” (S) path data command.
PATHSEG_CURVETO_CUBIC_SMOOTH_RELCorresponds to a “relative smooth cubic curveto” (s) path data command.
PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABSCorresponds to a “absolute smooth quadratic curveto” (T) path data command.
PATHSEG_CURVETO_QUADRATIC_SMOOTH_RELCorresponds to a “relative smooth quadratic curveto” (t) path data command.

Methods

MethodDescription
get_platform_typeThis method is used to retrieve ECMAScript object Type.

See Also