Since

2022.1

Hierarchy

Properties

angle: number

The current angle of the rotate event. It is defined as the angle between the horizontal of the screen (through the first finger) and the line connecting the two fingers. It is measured in degrees and counter-clockwise positive. An angle of 0 refers to the position where the first finger is located to the left of the other finger. If the first finger is to the right of the second finger, the angle will be 180.

clientPosition: number[]

An array containing the (x,y) position of the event in client coordinates. 0,0 is the upper left corner of the browser viewport. Scrolling offsets are not included in this value.

domEvent: UIEvent

The raw dom event generated by the browser.

downEvent: RotateEvent

The event that started the rotation.

inputType: string

The input modality type. Either 'mouse' or 'touch'.

modifier: ModifierType

The modifier. One of the constants from ModifierType. A modifier indicates the combination of the modifier keys pressed during the GestureEvent. The modifier keys are Alt, Ctrl and Shift.

pagePosition: number[]

An array containing the (x,y) position of the event in page coordinates. 0,0 is the upper left corner of the currently visible page area in the window. Unlike clientPosition, scrolling offsets are included in this value.

span: number

Returns the span, in pixels, between the two fingers.

The event type. One of the constants from GestureEventType.

viewPoint: Point

A Point containing the (x,y) position of the event relative to the map (in pixels). 0,0 is the upper left corner of the map.The reference of this point is null.

Note that this property contains the same coordinates as viewPosition. The key difference is that this property is a Point while viewPosition is an Array. Because this is a Point, you can directly pass its values to transformations such as map.viewToMapTransformation.

viewPosition: number[]

An array containing the (x,y) position of the event relative to the map. 0,0 is the upper left corner of the map