typograph-editor-documentation
    Preparing search index...

    Function selectable

    • The element a click selects: the one under the pointer when its permissions let it be selected, otherwise none. A click on an element that may not be selected is a click on empty space, as in canvas's own viewer (mousemanagers.ts): nothing is selected, not what lies beneath.

      Type Parameters

      • T

      Parameters

      • element: T
      • may_select: (element: T) => boolean

      Returns T