Member Junction
    Preparing search index...

    The bottom-right zoom cluster of the live whiteboard: zoom out / percentage / zoom in, fit-to-content, and the minimap toggle. Pure presentational; the board owns the viewport math and the minimap rendering.

    HOLD-TO-ZOOM: a plain click on +/− still emits the existing single preset step (ZoomIn / ZoomOut); holding the button down (pointerdown held past a short delay) emits ZoomBy factors (~3.5%) every 50 ms for smooth continuous zooming, stopping on pointerup / pointerleave / pointercancel / destroy — the timers never leak. The board clamps to its usual 25%–200% limits.

    Implements

    • OnDestroy
    Index

    Constructors

    Properties

    Fit: EventEmitter<void> = ...
    MinimapOpen: boolean = false

    Whether the minimap is currently shown (highlights the map button).

    ToggleMinimap: EventEmitter<void> = ...
    ZoomBy: EventEmitter<number> = ...

    Continuous (held-button) zoom tick: a multiplicative factor (>1 zooms in, <1 zooms out) emitted every 50 ms while + or − is held. Wire to the board's ZoomByFactor.

    ZoomIn: EventEmitter<void> = ...

    Single preset step in (a plain click on +).

    ZoomOut: EventEmitter<void> = ...

    Single preset step out (a plain click on −).

    ZoomPercent: number = 100

    Current zoom as a percentage (e.g. 90).

    Methods

    • A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.

      Returns void

    • The click that follows the press: a single preset step unless a hold already zoomed.

      Parameters

      • direction: ZoomDirection

      Returns void

    • Pointer down on +/−: arm the hold — after the delay, tick ZoomBy repeatedly.

      Parameters

      • event: PointerEvent
      • direction: ZoomDirection

      Returns void