Documentation - v19.2.0-dev
    Preparing search index...
    Index

    Constructors

    Properties

    content: WidgetContentFactory = ...
    factory: WidgetFactory = ...

    Factory to register new widgt

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

    Accessors

    • get widgets(): Widget[]

      List of viewport widgets

      Returns Widget[]

    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 widgets from the viewport

      Returns void

    • Ensure all widgets are visible in the widgets container.

      Returns void

    • Parameters

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

      Returns Widget[]

    • Returns whether the given widget is displayed on the viewport

      Parameters

      Returns boolean

    • 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