Complex event arguments that is used by the CanvasComponent to indicate touch events in world coordinates.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.TouchEventArgs
Constructors
TouchEventArgs
(originalEvent: Event, eventType: TouchEventTypes, location: Point, device: TouchDevice, modifiers: ModifierKeys, changedModifiers: ModifierKeys)Constructs a new touch event argument.
Parameters
A map of options to pass to the method.
- originalEvent - Event
- The original JavaScript event, if available.
- eventType - TouchEventTypes
- The type of the event
- location - Point
- The position of the touch device in world coordinates at the time of the event
- device - TouchDevice
- The device the event was triggered by
- modifiers - ModifierKeys
- The current state of the modifier keys
- changedModifiers - ModifierKeys
- The modifier keys that have been changed
TouchEventArgs
(originalEvent: Event, eventType: TouchEventTypes, location: Point, device: TouchDevice, modifiers: ModifierKeys, changedModifiers: ModifierKeys, tapCount: number)Constructs a new touch event argument.
Parameters
A map of options to pass to the method.
- originalEvent - Event
- The original JavaScript event, if available.
- eventType - TouchEventTypes
- The type of the event
- location - Point
- The position of the touch device in world coordinates at the time of the event
- device - TouchDevice
- The device the event was triggered by
- modifiers - ModifierKeys
- The current state of the modifier keys
- changedModifiers - ModifierKeys
- The modifier keys that have been changed
- tapCount - number
- the number of taps this event represents, 2 for a double tap
Properties
Gets the modifier keys that have changed for this event.
See Also
Gets a value indicating whether the default behaviors for this event have been prevented by a previous call to preventDefault.
Returns the touch device associated with this event.
Gets the type of this event.
Returns the location represented by this event in world coordinates.
Gets the state of the modifier keys at the time of the event creation.
Returns the number of taps the current event represents if it is of type TAP.
Methods
Sets this event's defaultPrevented property to true
signalling that the event has been properly handled and any default behaviors should be prevented.