documentationfor yFiles for HTML 2.6

EventRecognizers

Provides implementation singletons and utility methods for event recognizers.

Inheritance Hierarchy
EventRecognizers

Remarks

EventRecognizers are convertible: strings like "TOUCH_DOWN_PRIMARY || (LEFT_DOWN && SHIFT_IS_DOWN)" are automatically converted to recognizer functions when used in parameter lists, parameter objects, or setters.

Valid EventRecognizer strings follow this grammar:

EXPR = RECOGNIZER
     | '(' EXPR ')'
     | '!' EXPR
     | EXPR '&&' EXPR
     | EXPR '||' EXPR

Whitespace is ignored and RECOGNIZER is one of the EventRecognizer constants defined in MouseEventRecognizers, KeyEventRecognizers, or TouchEventRecognizers. The operators work mostly as in JavaScript. && and || have the same operator precedence, though. This means that, e.g., A || B && C is - unlike JavaScript - bracketed (A || B) && C and not A || (B && C).

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.input.EventRecognizers

See Also

Constants

Static Methods