Function brushSelection

  • Return the current brush selection for the specified node. Internally, an element’s brush state is stored as element.__brush; however, you should use this method rather than accessing it directly. If the given node has no selection, returns null. Otherwise, the selection is defined as an array of numbers.

    Parameters

    • node: SVGGElement

      The node for which the brush selection should be returned.

    Returns BrushSelection | null