Represents a single user-drawn stroke for interactive segmentation.
Signature:
export declare interface Stroke
Properties
| Property | Type | Description |
|---|---|---|
| brushMode | BrushMode | The brush mode used for this stroke. |
| isCompleted | boolean | Whether the stroke is complete. |
| point | readonly Point[] | The sequence of normalized points forming the stroke. |
Stroke.brushMode
The brush mode used for this stroke.
Signature:
readonly brushMode: BrushMode;
Stroke.isCompleted
Whether the stroke is complete.
Signature:
readonly isCompleted: boolean;
Stroke.point
The sequence of normalized points forming the stroke.
Signature:
readonly point: readonly Point[];