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β
| Parameter | Type |
|---|---|
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β
| Parameter | Type |
|---|---|
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β
| Parameter | Type |
|---|---|
options? | StartRectangleRegionOptions |
Returnsβ
Promise<Rect | null>