SVG_SET_ROUNDING_RECT

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

version 11.3


SVG_SET_ROUNDING_RECT (svgObject; roundedX{; roundedY})

ParameterTypeDescription
svgObjectSVG_RefReference of SVG element
roundedXNumberRadius on X axis
roundedYNumberRadius on Y axis

Description

The SVG_SET_ROUNDING_RECT command can be used to set the radii of the ellipse used to round the corners of a rectangle having the svgObject reference. If these attributes already exist, their values are replaced by those passed as parameters. If svgObject is not the reference of a rectangle, an error is generated.

The values are expected in the user coordinate system.

Example

   $svg :=SVG_New ` Create a new document
   $object:=SVG_New_rect ($svg ;10;10;200;100)
   SVG_SET_ROUNDING_RECT ($object; 20)`Round the corners

See Also

SVG_New_rect, SVG_SET_STROKE_LINEJOIN.


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