Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20
SVG_SET_TRANSFORM_ROTATE
|
SVG_SET_TRANSFORM_ROTATE ( svgObject ; angle {; x ; y} ) | ||||||||
Parameter | Typ | Beschreibung | ||||||
svgObject | SVG_Ref |
![]() |
Reference of SVG element | |||||
angle | Lange Ganzzahl |
![]() |
Angle of rotation | |||||
x | Lange Ganzzahl |
![]() |
Coordinate on X axis of center of rotation | |||||
y | Lange Ganzzahl |
![]() |
Coordinate on Y axis of center of rotation | |||||
The SVG_SET_TRANSFORM_ROTATE command applies a rotation of the value angle in degrees to the SVG object having the objectRef reference.
The angle of rotation is expected in degrees; the rotation is made clockwise.
If the optional x and y parameters are not passed, the rotation is carried out with respect to the origin of the current user coordinate system.If these parameters are provided, the rotation is carried out with respect to the coordinates passed (x, y).
svgRef:=SVG_New
`Draw a red rectangle with a blue border
$rec:=SVG_New_rect($svg;150;50;200;400;0;0;"blue";"red";10)
`Apply a rotation of 10° clockwise with respect to the center
SVG_SET_TRANSFORM_ROTATE($rec;370;175;225)
Produkt: 4D
Thema: Attributes
Nummer:
65945
Erstellt: Composant 4D SVG v11.3
4D SVG ( 4D v20)