SAS System Options |
Syntax | |
Syntax Description | |
Details | |
Examples | |
See Also |
Syntax |
SVGHEIGHT= number-of-units<unit-of-measure> | "" | " |
specifies the height as a number of unit-of-measure.
Requirement: | number-of- units must be a positive integer value. |
Interaction: | If number-of- units is a negative number, the SVG document is not rendered by the browser. |
specifies the unit of measurement, which can be one of the following:
% |
percentage |
cm |
centimeters |
em |
the height of the element's font |
ex |
the height of the letter x |
in |
inches |
mm |
millimeters |
pc |
picas |
pt |
points |
px |
pixels |
Default: | px |
specifies to reset the height to the default value of 600 pixels.
Requirement: | Use two double quotation marks or two single quotation marks with no space between them. |
Details |
For embedded <svg> elements, the SVGHEIGHT= option specifies the height of the rectangular region into which the <svg> element is placed. The SVG output is scaled to fit the viewBox if SVGHEIGHT="100%".
If the SVGHEIGHT= option is not specified, the height attribute on the <svg> element is not set, which effectively provides full scalability by using a height of 100%.
The value for the SVGHEIGHT= option can be specified using no delimiters, enclosed in single or double quotation marks, or enclosed in parentheses.
Examples |
The following OPTIONS statement specifies to size the SVG output to portrait letter-sized and to scale the output to 100% of the viewport:
options printerpath=svg orientation=portrait svgheight="100%" svgwidth="100%" papersize=letter;
By using these option values, SAS creates the following <svg> element:
<svg> xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload='Init(evt)' version="1.1" width="100%" height="100%" viewBox="0 0 850 1100" </svg>
The value of "100%" in the SVGHEIGHT= option specifies to scale the SVG output height to 100% of the viewport, which is based on the value of the PAPERSIZE= option. The paper size is letter in the portrait orientation, which has a height of 11" at 100 dpi.
See Also |
System options: | |||||||||||||||
The SAS Registry in SAS Language Reference: Concepts | |||||||||||||||
Creating Scalable Vector Graphics Using Universal Printing in SAS Language Reference: Concepts |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.