dojox/drawing/plugins/drawing/Grid (version 1.10)

dojox/drawing/plugins/_Plugin

Summary

Plugin that displays a grid on the Drawing canvas.

Usage

var foo = new Grid(options);
dojox/drawing/plugins/drawing/Grid
Parameter Type Description
options undefined

Examples

Example 1

<div dojoType="dojox.drawing.Drawing" id="drawingNode"
    plugins="[{'name':'dojox.drawing.plugins.drawing.Grid', 'options':{gap:50}}]">
</div>

Property Summary

Method Summary

  • connect()
  • disconnect(handles) Removes connections based on passed handles arguments
  • setGrid(options) Renders grid
  • setZoom(zoom) Set's the zoom of the canvas

Properties

anchors
button
canvas
drawing
gap

How far apart to set the grid lines

keys
majorColor

Major lines color

minorColor

Minor lines color

mouse
node
stencils
util
zoom

The current zoom of the grid

Methods

connect()
disconnect(handles)

Removes connections based on passed handles arguments

Parameter Type Description
handles Handle | Array
setGrid(options)

Renders grid

Parameter Type Description
options undefined
Returns:undefined
setZoom(zoom)

Set's the zoom of the canvas

Parameter Type Description
zoom undefined
Error in the documentation? Can’t find what you are looking for? Let us know!