|
|||||
| SUMMARY: FIELD | CONSTR | METHOD| EVENT | DETAIL: FIELD | CONSTR | METHOD| EVENT | ||||
This input mode enables pinch zooming for a graph canvas.
| 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 |
|---|
/*Number*/ pinchTimeout
| Constructor Detail |
|---|
PinchInputMode(/*yfiles.client.tiles.canvas.GraphCanvas*/ canvas)
canvas -
| Method Detail |
|---|
_onPinch(/*Object*/ worldCoords1, /*Object*/ worldCoords2, /*Object*/ pinchTouches)
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(/*Object*/ worldCoords1, /*Object*/ worldCoords2, /*Touch[]*/ pinchTouches)
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(/*Object*/ worldCoords1, /*Object*/ worldCoords2, /*Touch[]*/ pinchTouches)
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()
deactivate()