Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20
SVG_SET_STROKE_WIDTH
|
SVG_SET_STROKE_WIDTH ( svgObject ; strokeWidth {; unit} ) | ||||||||
Parameter | Typ | Beschreibung | ||||||
svgObject | SVG_Ref |
![]() |
Reference of SVG element | |||||
strokeWidth | Zahl |
![]() |
Line thickness | |||||
unit | String |
![]() |
Unit of measurement | |||||
The SVG_SET_STROKE_WIDTH command can be used to set the thickness of lines for the SVG object having the svgObject reference. If this attribute already exists, its value is replaced by the value passed in the parameter.
Pass the value of the line thickness in strokeWidth. The optional unit parameter can be used to specify the unit to be used. You can pass one of the following values: px, pt, pc, cm, mm, in, em, ex or %. If the unit parameter is omitted, thestrokeWidth parameter is expected in the user coordinate system
$svg :=SVG_New
SVG_SET_STROKE_WIDTH(SVG_New_rect($svg;10;10;200;200;0;0;"black";"white";2);10)
Produkt: 4D
Thema: Attributes
Nummer:
65938
Geändert: Composant 4D SVG v11.4
4D SVG ( 4D v20)