React LinearGauge - export
Configures the exporting and printing features.
These features allow a user to export UI components to a file or print them. When exporting is enabled, the "Exporting/Printing" button appears in the UI component. Click it to open a drop-down menu that lists exporting and printing commands. The following formats are supported for export: PNG, PDF, JPEG, SVG, and GIF.
line or polygon. Refer to the following API description for more information: svgToCanvas.See Also
backgroundColor
Specifies the color that will fill transparent regions in the resulting file or document.
This property supports the following colors:
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
- Paint server address
fileName
Specifies a default name for the file to which the UI component will be exported.
formats
Specifies a set of export formats.
margin
Adds an empty space around the exported UI component; measured in pixels.
printingEnabled
Enables the printing feature in the UI component. Applies only if the export.enabled property is true.
When printing is enabled, the export menu contains an item that invokes the Print window of the user's browser. It lets the user to select preferred printing properties and to send the print job to the printer.
svgToCanvas
A function that renders SVG markup on the HTML canvas. Required to export unsupported SVG elements in non-SVG formats.
An SVG element that will be parsed.
A container where the content of the SVG element is drawn.
Printouts and exported files in non-SVG formats display only the following SVG elements:
- Shapes, text, and images:
circle,image,path,rect,text,tspan - Containers:
g,svg - Definitions:
clipPath,defs,linearGradient,pattern,radialGradient
Note the following limitations for supported elements:
pathelements support only the following commands:M,L,C,A, andZ.rectelements must declarexandyattributes.circleelements must declarecxandcyattributes.transformattributes support only the following functions:translate,rotate, andscale.
If you use unsupported SVG markup in patterns (registerPattern()) or LinearGauge templates, configure svgToCanvas to export this markup.
Exported SVG files contain all elements without additional configuration.