Skip to main content
Version: 4.3

RegionApi

Imperative handle for drawing interactive regions on a bare paper, independent of <Selection>. Returned by useRegion. Each method draws a region and resolves to its raw geometry: no cells are selected.

Properties

startPolygonRegion

readonly startPolygonRegion: (options?) => Promise<Polygon | null>;

Draw an interactive polygon and resolve to its g.Polygon (or null if cancelled).

Parameters

ParameterType
options?StartPolygonRegionOptions

Returns

Promise<Polygon | null>


startRangeRegion

readonly startRangeRegion: (options?) => Promise<Range | null>;

Draw an interactive 1D range and resolve to its [start, end] span (or null if cancelled).

Parameters

ParameterType
options?StartRangeRegionOptions

Returns

Promise<Range | null>


startRectangleRegion

readonly startRectangleRegion: (options?) => Promise<Rect | null>;

Draw an interactive rectangle and resolve to its g.Rect (or null if cancelled).

Parameters

ParameterType
options?StartRectangleRegionOptions

Returns

Promise<Rect | null>

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub