Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R8
SVG_SET_TRANSFORM_TRANSLATE
|
SVG_SET_TRANSFORM_TRANSLATE ( svgObject ; x {; y} ) | ||||||||
Parameter | Typ | Beschreibung | ||||||
svgObject | SVG_Ref |
![]() |
Reference of SVG element | |||||
x | Lange Ganzzahl |
![]() |
Coordinate on X axis | |||||
y | Lange Ganzzahl |
![]() |
Coordinate on Y axis | |||||
The SVG_SET_TRANSFORM_TRANSLATE command specifies a horizontal and/or vertical relocation of the SVG object having the svgObject reference.
If the x value is not null, the object will be moved horizontally for the number of units passed; otherwise, it will be ignored.
If the y parameter is provided, the object will be moved vertically for the number of units passed.
svgRef:=SVG_New
`Draw a red rectangle
$Object:=SVG_New_rect(svgRef;0;0;200;100;0;0;"black";"red")
`Draw a square at 0,0
$Object:=SVG_New_rect(svgRef;0;0;20;20)
`Move the square to 150,50
SVG_SET_TRANSFORM_TRANSLATE($Object;150;50)
Produkt: 4D
Thema: Attributes
Nummer:
65946
Erstellt: Composant 4D SVG v11.3
4D SVG ( 4D v20 R8)