class type statics =Inheritsobject
..end
method create_surface : 'a 'b.
'a Js.t -> Js.js_string Js.t Js.js_array Js.t Js.optdef -> 'b Js.t Js.meth
Creates and returns a new concrete Surface instance appropriate for the current environment.
Parameters:
_ Js.t
Initial configuration for the Surface instance
Js.js_string Js.t Js.js_array Js.t
(optional)
order of implementations to use; the first one that is
available in the current environment will be used. Defaults to ['Svg', 'Vml']
.
Returns:
_ Js.t
The created Surface or false.
method save : 'c 'd 'e. 'c Js.t -> 'd Js.t Js.optdef -> 'e Js.t Js.meth
Exports a surface in a different format. The surface may be exported to an SVG string, using the Ext.draw.engine.SvgExporter. It may also be exported as an image using the ImageExporter. Note that this requires sending data to a remote server to process the SVG into an image, see the Ext.draw.engine.ImageExporter for more details.
Parameters:
Ext_draw_Surface.t Js.t
The surface to export.
_ Js.t
(optional)
The configuration to be passed to the exporter. See the export method for the appropriate exporter for the relevant configuration options
Returns:
_ Js.t
See the return types for the appropriate exporter