Defines a SVGPathSeg command with relative horizontal lineto path data.
The SVGPathSegLinetoHorizontalRel object has these types of members:
The SVGPathSegLinetoHorizontalRel object has these properties.
Gets the type of the path segment.
Gets the type of the path segment, specified by the corresponding one-character command name.
Gets or sets the x-coordinate value.
- Scalable Vector Graphics: Paths, Section 8.5.14
Note In addition to the attributes, properties, events, methods, and styles listed above, SVG elements also inherit core HTML attributes, properties, events, methods, and styles.
The h object uses relative coordinates to draw a horizontal line from the current point (cpx, cpy) to (x, cpy). You can provide multiple x-coordinate values (typically, multiple coordinates do not make sense). At the end of the command, the new current point becomes (x, cpy) for the final value of x.