ZoomAndPan

dwv.tool. ZoomAndPan

new ZoomAndPan(app)

Source:

ZoomAndPan class.

Parameters:
Name Type Description
app dwv.App

The associated application.

Members

started :boolean

Source:

Interaction start flag.

Type:
  • boolean

Methods

activate(_bool)

Source:

Activate the tool.

Parameters:
Name Type Description
_bool boolean

The flag to activate or not.

getHelpKeys() → {object}

Source:

Help for this tool.

Returns:

The help content.

Type
object

init()

Source:

Initialise the tool.

keydown(event)

Source:

Handle key down event.

Parameters:
Name Type Description
event object

The key down event.

mousedown(event)

Source:

Handle mouse down event.

Parameters:
Name Type Description
event object

The mouse down event.

mousemove(event)

Source:

Handle mouse move event.

Parameters:
Name Type Description
event object

The mouse move event.

mouseout(event)

Source:

Handle mouse out event.

Parameters:
Name Type Description
event object

The mouse out event.

mouseup(_event)

Source:

Handle mouse up event.

Parameters:
Name Type Description
_event object

The mouse up event.

touchend(event)

Source:

Handle touch end event.

Parameters:
Name Type Description
event object

The touch end event.

touchmove(event)

Source:

Handle touch move event.

Parameters:
Name Type Description
event object

The touch move event.

touchstart(event)

Source:

Handle touch start event.

Parameters:
Name Type Description
event object

The touch start event.

twotouchdown(event)

Source:

Handle two touch down event.

Parameters:
Name Type Description
event object

The touch down event.

twotouchmove(event)

Source:

Handle two touch move event.

Parameters:
Name Type Description
event object

The touch move event.

wheel(event)

Source:

Handle mouse wheel event.

Parameters:
Name Type Description
event object

The mouse wheel event.