dojox/drawing/ui/dom/Zoom (version 1.10)

dojox/drawing/plugins/_Plugin

Usage

var foo = new Zoom(options);
dojox/drawing/ui/dom/Zoom
Parameter Type Description
options undefined

Property Summary

Method Summary

Event Summary

Properties

anchors
baseClass

The CSS class added to the Toolbar buttons

botClass

The CSS class added to the bottom (or right) Toolbar button

button
canvas
drawing
keys
maxZoom

The maximum the canvas can be zoomed in. 10 = 1000%

midClass

The CSS class added to the middle Toolbar button

minZoom

The most the canvas can be zoomed out. .1 = 10%

mouse
node
stencils
topClass

The CSS class added to the top (or left) Toolbar button

type
util
zoomFactor

The current zoom amount

zoomInc

The amount of zoom that will occur upon each click.

Methods

connect()
disconnect(handles)

Removes connections based on passed handles arguments

Parameter Type Description
handles Handle | Array
makeButton(name,cls)

Internal. Creates one of the buttons in the zoom-button set.

Parameter Type Description
name undefined
cls undefined

Events

onZoom100(evt)

Zooms to 100%

Parameter Type Description
evt Mouse Event
onZoomIn(evt)

Handles zoom in.

Parameter Type Description
evt Mouse Event
onZoomOut(evt)

Handles zoom out.

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