Interface: IInteraction

H.map.IInteraction

This interface represents an interaction with the view port. Interaction reflects view changes, depending on the interaction coordinates and the modifiers which specify the type of interaction.

Methods

H.map.IInteraction.endInteraction (opt_preventKinetics) static

This method ends the interaction and applies a kinetic movement, if it was defined by using the method startInteraction().

Name Type Description
opt_preventKinetics boolean optional

A Boolean value indicating whether to prevent kinetic behaviour at the end of an interaction (true) or allow it (false)

H.map.IInteraction.interaction (x, y, opt_bx, opt_by, opt_timestamp) static

This method resolves direct screen (view port) interaction. It modifies the current view using the arguments provided by the caller.

Name Type Description
x number

viewport x coordinate

y number

viewport y coordinate

opt_bx number optional

x coordinate for second pointer/touch if present

opt_by number optional

y coordinate for second pointer/touch if present

opt_timestamp number optional

The known timestamp to use

H.map.IInteraction.startInteraction (modifiers, opt_kinetics) static

This method starts an interaction with the view port. It should be called every time when a new interaction is started, for example on mouse grab or touch start.

Name Type Description
modifiers H.math.BitMask.<!H.map.render.RenderEngine.InteractionModifiers>

Specifies what operations should performed during every interaction

opt_kinetics H.util.kinetics.IKinetics optional

Specifies the kinetic move at the end of interaction