typograph-editor-documentation
    Preparing search index...

    Function close_panel_beside

    • A click on the canvas beside an open element panel closes it, as in other design tools (TYP-1403). The click still selects or deselects as before: click comes after the editor's own mousedown and mouseup, so the selection is settled when the panel decides. Escape inside the panel closes it too, and hands the keys back to the canvas.

      Parameters

      • canvas: HTMLElement
      • panel: ClosablePanel
      • has_selection: () => boolean

      Returns void