Clear Up
SharpKit Reference

Ext.draw.engine Namespace

Download SDK: SharpKit.ExtJs.zip

Classes

Name Description
ImageExporter

Exports a Surface to an image. To do this, the svg string must be sent to a remote server and processed.

Sending the data

A post request is made to the URL. The following fields are sent:

  • width: The width of the image
  • height: The height of the image
  • type: The image type to save as, see supportedTypes
  • svg: The svg string for the surface

The response

It is expected that the user will be prompted with an image download. As such, the following options should be set on the server:

  • Content-Disposition: 'attachment, filename="chart.png"'
  • Content-Type: 'image/png'

Important: By default, chart data is sent to a server operated by Sencha to do data processing. You may change this default by setting the defaultUrl of this class.

ImageExporterConfig
ImageExporterEvents
Svg

Provides specific methods to draw with SVG.

SvgConfig
SvgEvents
SvgExporter

A utility class for exporting a Surface to a string that may be saved or used for processing on the server.

SvgExporterConfig
SvgExporterEvents
Vml

Provides specific methods to draw with VML.

VmlConfig
VmlEvents
© Copyright 2005-2011 SharpKit. All rights reserved.