class CSPX.SVGCanvas extends %CSP.Page
Renders canvas for SVG-based editors.
This class provides the common framework used by svg-based editors. Subclasses provide the actual implmentation.
parameter CONTENTTYPE = "image/svg-xml";
Specifies the default content type for the page. This can be overriden using the <CSP:CONTENT TYPE=> tag, or by setting the %response.ContentType property in the OnPreHTTP method. The default value if this parameter is not set is text/html.parameter DOMAIN = "Ensemble";
Use our own domain for localizationparameter HEIGHT = 2000;
Initial height of editorparameter JSINCLUDES;
Comma-delimited list of additional .js files that this page includesparameter WIDTH = 2000;
Initial width of editor
classmethod DrawDefs()final classmethod DrawStyleSheet()
Draw defs sectionclassmethod DrawScript()
Draw style sheetclassmethod OnDrawCanvas()
Draw main svg canvasclassmethod OnDrawScript()
Callback: draw additional script definitions for this canvasclassmethod OnDrawStyleSheet()
Callback: draw additional style sheet definitions for this canvasclassmethod OnPage() as %Status
Event handler for PAGE event: this is invoked in order to generate the content of a csp page.classmethod OnPreHTTP() as %Boolean
Event handler for PreHTTP event: this is invoked before the HTTP headers for a CSP page have been sent. All changes to the %CSP.Response class, such as adding cookies, HTTP headers, setting the content type etc. must be made from within the OnPreHTTP() method. Also changes to the state of the CSP application such as changing %session.EndSession or %session.AppTimeout must be made within the OnPreHTTP() method. It is prefered that changes to %session.Preserve are also made in the OnPreHTTP() method as this is more efficient, although it is supported in any section of the page. Return 0 to prevent OnPage from being called.