Creates a dojox.gfx.surface to be used for Drawing. Note that The 'surface' that Drawing uses is actually a dojox.gfx.group. This allows for more versatility.
Called internally from a dojox.Drawing.
Note: Surface creation is asynchronous. Connect to onSurfaceReady in Drawing.
Parameter | Type | Description |
---|---|---|
options | Object |
Special method used to detect the width (and height) of the browser scrollbars. Becomes memoized.
Method used to change size of canvas. Potentially called from a container like ContentPane. May be called directly.
Parameter | Type | Description |
---|---|---|
width | undefined | |
height | undefined |
Internal. Changes canvas size and sets scroll position. Do not call this, use resize().
Parameter | Type | Description |
---|---|---|
width | undefined | |
height | undefined | |
scrollx | undefined | |
scrolly | undefined |
Internal. Zooms canvas in and out.
Parameter | Type | Description |
---|---|---|
zoom | undefined |