4D v16

SVG_PATH_LINE_TO

Home

 
4D v16
SVG_PATH_LINE_TO

SVG_PATH_LINE_TO 


 

SVG_PATH_LINE_TO ( parentSVGObject ; x {; y}{; x2 ; y2 ; ... ; xN ; yN} ) 
Parameter Type   Description
parentSVGObject  SVG_Ref in Reference of parent element
Longint in Coordinate on X axis of new point(s)
Longint in Coordinate on Y axis of new point(s)

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

 
PROPERTIES 

Product: 4D
Theme: Drawing
Number: 65964

 
HISTORY 

Created: Composant 4D SVG v11.3

 
ARTICLE USAGE

4D SVG Component ( 4D v16)