4D v16

SVG_SET_VIEWBOX

Home

 
4D v16
SVG_SET_VIEWBOX

SVG_SET_VIEWBOX 


 

SVG_SET_VIEWBOX ( svgObject ; x ; y ; Breite ; Höhe {; mode} ) 
Parameter Typ   Beschreibung
svgObject  SVG_Ref in Reference of SVG element
Zahl in X position of viewbox
Zahl in Y position of viewbox
Breite  Zahl in Width of viewbox
Höhe  Zahl in Height of viewbox
mode  Text in 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")



Siehe auch 

SVG_SET_VIEWPORT_FILL

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Attributes
Nummer: 65929

 
GESCHICHTE 

Erstellt: Composant 4D SVG v11.3
Geändert: 4D v12

 
ARTIKELVERWENDUNG

4D SVG ( 4D v16)