yfiles.client.tiles.PinchInputMode
Class PinchInputMode

This input mode enables pinch zooming for a graph canvas.

 
All Parent Classes:
InputMode
 
Field Summary
 Number pinchTimeout
          The delay between actual zoom level and viewpoint changes caused by subsequent changes of the pinch touch locations, in milliseconds. The default value is 20.
 
Constructor Summary
PinchInputMode(/*yfiles.client.tiles.canvas.GraphCanvas*/ canvas)
           
 
Method Summary
  _onPinch(/*Object*/ worldCoords1, /*Object*/ worldCoords2, /*Object*/ pinchTouches)
          Called when at least one of the touch locations of a pinch gesture changes.
  _onPinchEnd(/*Object*/ worldCoords1, /*Object*/ worldCoords2, /*Touch[]*/ pinchTouches)
          Called when a pinch gesture has ended.
  _onPinchStart(/*Object*/ worldCoords1, /*Object*/ worldCoords2, /*Touch[]*/ pinchTouches)
          Called when a pinch gesture has started.
  activate()
          Activates this input mode.
  deactivate()
          Deactivates this input mode.
 
Field Detail

pinchTimeout

/*Number*/ pinchTimeout
The delay between actual zoom level and viewpoint changes caused by subsequent changes of the pinch touch locations, in milliseconds. The default value is 20.
 
Constructor Detail

PinchInputMode

PinchInputMode(/*yfiles.client.tiles.canvas.GraphCanvas*/ canvas)
Parameters:
canvas -
Method Detail

_onPinch

_onPinch(/*Object*/ worldCoords1, /*Object*/ worldCoords2, /*Object*/ pinchTouches)
Called when at least one of the touch locations of a pinch gesture changes.
Parameters:
worldCoords1 - An object with x and y properties specifying the world coordinates of the first touch of the pinch gesture.
worldCoords2 - An object with x and y properties specifying the world coordinates of the second touch of the pinch gesture.
pinchTouches - An array containing the two touches of the pinch gesture.

_onPinchEnd

_onPinchEnd(/*Object*/ worldCoords1, /*Object*/ worldCoords2, /*Touch[]*/ pinchTouches)
Called when a pinch gesture has ended.
Deactivates this input mode, and delegates to the parent input mode, if available.
Parameters:
worldCoords1 - An object with x and y properties specifying the world coordinates of the first touch of the pinch gesture.
worldCoords2 - An object with x and y properties specifying the world coordinates of the second touch of the pinch gesture.
pinchTouches - An array containing the two touches of the pinch gesture.

_onPinchStart

_onPinchStart(/*Object*/ worldCoords1, /*Object*/ worldCoords2, /*Touch[]*/ pinchTouches)
Called when a pinch gesture has started.
Parameters:
worldCoords1 - An object with x and y properties specifying the world coordinates of the first touch of the pinch gesture.
worldCoords2 - An object with x and y properties specifying the world coordinates of the second touch of the pinch gesture.
pinchTouches - An array containing the two touches of the pinch gesture.

activate

activate()
Activates this input mode.
This implementation just delegates to the super implementation.

deactivate

deactivate()
Deactivates this input mode.
This implementation just delegates to the super implementation.

Copyright © 2006-2011 yWorks GmbH. All rights reserved.