Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SVG_SET_VIEWBOX
|
SVG_SET_VIEWBOX ( svgObject ; x ; y ; Breite ; Höhe {; mode} ) | ||||||||
Parameter | Typ | Beschreibung | ||||||
svgObject | SVG_Ref |
![]() |
Reference of SVG element | |||||
x | Zahl |
![]() |
X position of viewbox | |||||
y | Zahl |
![]() |
Y position of viewbox | |||||
Breite | Zahl |
![]() |
Width of viewbox | |||||
Höhe | Zahl |
![]() |
Height of viewbox | |||||
mode | Text |
![]() |
Adjustment to viewbox | |||||
The SVG_SET_VIEWBOX command can be used to specify the viewbox of the SVG object having the svgObject reference. If this attribute already exists, its value is replaced by the value passed in the parameter.
The values are expected in the user coordinate system.
The optional mode parameter can be used to indicate if the graphic must be fitted, and how so, to the size of the viewbox. The value expected for mode must be one recognized by SVG: ‘none’, ‘xMinYMin’, ‘xMidYMin’, ‘xMaxYMin’, ‘xMinYMid’, ‘xMidYMid’, ‘xMaxYMid’, ‘xMinYMax’, ‘xMidYMax’, ‘xMaxYMax’ and ‘true’ (for xMidYMid).
`Create an SVG document of 4x8cm
$svg:=SVG_New
SVG_SET_DIMENSIONS($SVG;4;8;"cm")
`Declare the user coordinate system here as 1 cm = 250 user points
SVG_SET_VIEWBOX($svg;0;0;1000;2000;"true")
Produkt: 4D
Thema: Attributes
Nummer:
65929
Erstellt: Composant 4D SVG v11.3
Geändert: 4D v12
4D SVG ( 4D v20 R7)