version 11.3
SVG_PATH_LINE_TO (parentSVGObject; x{; y}{; x2; y2; ...; xN; yN})
| Parameter | Type | Description | |
| parentSVGObject | SVG_Ref | Reference of parent element | |
| x | Number | Coordinate on X axis of new point(s) | |
| y | Number | Coordinate on Y axis of new point(s) |
Description
The SVG_PATH_LINE_TO command adds one or more straight segments to the path referred by parentSVGObject. If parentSVGObject is not a path reference ('path' element), an error is generated.
The x and y parameters can be used to specify the start position of the path in the SVG container.
If only the x parameter is provided, the line will be drawn horizontally from the current point (xc, yc) to the point (x, yc).
If both x and y are passed, a line will be drawn from the current point (xc, yc) to the point (x, y).
If several pairs of coordinates are passed, the different points will be added successively. In this case, if the last pair of coordinates is incomplete (missing y), it will be ignored.
Example
See the examples for the SVG_New_path command
See Also