SVG_PATH_LINE_TO

4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next

version 11.3


SVG_PATH_LINE_TO (parentSVGObject; x{; y}{; x2; y2; ...; xN; yN})

ParameterTypeDescription
parentSVGObjectSVG_RefReference of parent element
xNumberCoordinate on X axis of new point(s)
yNumberCoordinate 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

SVG_New_path.


4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next