SAS System Options |
Syntax | |
Syntax Description | |
Details | |
Examples | |
See Also |
Syntax |
SVGPRESERVEASPECTRATIO=align | meetOrSlice | NONE | "" |
SVGPRESERVEASPECTRATIO="align meetOrSlice" |
specifies to force uniform scaling by specifying the alignment method to use. The value for align can be one of the following:
xMinYMin |
specifies to force uniform scaling by using the following alignment:
| ||||
xMidYMin |
specifies to force uniform scaling by using the following alignment:
| ||||
xMaxYMin |
specifies to force uniform scaling by using the following alignment:
| ||||
xMinYMid |
specifies to force uniform scaling by using the following alignment:
| ||||
xMidYMid |
specifies to force uniform scaling by using the following alignment:
| ||||
xMaxYMid |
specifies to force uniform scaling by using the following alignment:
| ||||
xMinYMax |
specifies to force uniform scaling by using the following alignment:
| ||||
xMidYMax |
specifies to force uniform scaling by using the following alignment:
| ||||
xMaxYMax |
specifies to force uniform scaling by using the following alignment:
|
specifies to preserve the aspect ratio and how the viewBox displays. The following values are valid for meetOrSlice:
meet |
specifies to scale the SVG graphic as follows:
If the aspect ratio of the graphic does not match the viewport, some of the viewport will extend beyond the bounds of the viewBox. |
slice |
specifies to scale the SVG graphic as follows:
If the aspect ratio of the viewBox does not match the viewport, some of the viewBox will extend the bounds of the viewport. |
specifies not to force uniform scaling and to scale the SVG output nonuniformly so that the element's bounding box exactly matches the viewport rectangle.
specifies to reset the preserveAspectRatio attribute of the <svg> element to the default value of xMidYMid meet.
Requirement: | Use two double quotation marks with no space between them. |
Details |
When the value of the SVGPRESERVEASPECTRATIO= option includes both align and meetOrSlice, you can delimit the value by using single or double quotation marks or parentheses.
The preserveAspectRatio attribute applies only when a value is provided for the viewBox on the same <svg> element. If the viewBox attribute is not provided, the preserveAspectRatio attribute is ignored.
Examples |
The following OPTIONS statements are examples of using the SVGPRESERVEASPECTRATIO= system option:
options svgpreserveaspectratio=xMinYMax; options svgpreserveaspectratio="xMinYMin meet"; options svgpreserveaspectratio=(xMinYMin meet); options svgpreserveaspectratio="";
See Also |
System options: | |||||||||||||||
Creating Scalable Vector Graphics Using Universal Printing in SAS Language Reference: Concepts |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.