W-CF Documentation - v11.0.0
    Preparing search index...

    The SelectionMenu can be used to provide a custom menu for the selected SceneElements. A show and hide callback has to be provided to implement the custom menu. The SelectionMenu only works in combination with a default tool derived from the SelectionDefault tool.

    Index
    • Creates and registers a new SelectionMenu.

      Parameters

      • pApp: Application

        Reference to the core application.

      • pShowCallback: (pRectMin: Vector2, pRectMax: Vector2, pView: View) => void

        Called if the menu should be shown. A 2d bounding rect in viewer coordinates is given for the current selection.

      • pHideCallback: () => void

        Called if the menu should be hidden.

      Returns SelectionMenu

    deactivateOnToolStart: boolean

    If true the menu gets deactivated as sonn as a tool other than the default tool gets started. (default: true)

    • get active(): boolean

      Returns boolean

    • set active(pValue: boolean): void

      Parameters

      • pValue: boolean

      Returns void

    • Disposes this menu.

      Returns void