pixi-viewport
    Preparing search index...

    Class Plugin

    Derive this class to create user-defined plugins

    Hierarchy (View Summary)

    Index
    parent: Viewport

    The viewport to which this plugin is attached.

    paused: boolean

    Flags whether this plugin has been "paused".

    • Plugin#pause
    • Plugin#resume
    • Converts a global point to the space the viewport moves in: its parent's, or global if it has no parent. A viewport can't measure in its own space, because that space changes as the viewport moves.

      Type Parameters

      Parameters

      Returns P

    • Called on each tick

      Parameters

      • _elapsed: number

        time in milliseconds since last update

      Returns void