@stereograph/teiaviewer - v17.8.0-dev
    Preparing search index...

    Class WidgetController

    Index

    Constructors

    Properties

    events: { onWidgetListUpdated: ViewerSignal<(...args: any[]) => any> } = ...

    Accessors

    • get widgets(): Widget<Viewer>[]

      List of viewport widgets

      Returns Widget<Viewer>[]

    Methods

    • Adds the given widget to the viewport

      Parameters

      • widget: Widget
      • shiftDelta: number = 20

        Delta in pixels to shift the widget position if overlapping another

      Returns void

    • Removes all the widget from the viewport

      Returns void

    • Ensure widgets are visible in the rect (x, y, width, height)

      Returns void

    • Parameters

      • x: number
      • y: number
      • delta: number = 5

      Returns Widget<Viewer>[]

    • Returns an iterator over the widget of the given type

      Type Parameters

      Parameters

      • type: keyof ViewerWidgetRegistry

      Returns Generator<T, void, unknown>

    • Returns whether the given widget is displayed on the viewport

      Parameters

      Returns boolean

    • Puts the given widget in the foreground and put the others in the background (changes z-index).

      Parameters

      Returns void

    • Removes the given widget from the viewport

      Parameters

      Returns void