Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ZoomListener

Every Screen interested in zoom events must implement this interface. Zoom event listener must be activated in Engine.

engine.enableZoomControl();

Default min and max zoom levels are set to 0.1 and 10 respectively.

Hierarchy

  • ZoomListener

Index

Methods

Methods

onZoom

  • onZoom(engine: Engine, ratio: number): void
  • Called when a user zoom (mouse wheel or screen pinch)

    Parameters

    • engine: Engine

      A reference to the active engine

    • ratio: number

      Ratio registered since last method call

    Returns void

Generated using TypeDoc