Skip to content

Function: selectionContains() ​

ts
function selectionContains(query, x, y): boolean;

Experimental

Whether a point (linear coordinates) is inside a selection: the box for rect queries, the polygon for lasso ones. Trace modules use this in selectPoints.

Parameters ​

ParameterType
querySelectionQuery
xnumber
ynumber

Returns ​

boolean

Released under the MIT License.