Stroke interface {#stroke_interface}

Represents a single user-drawn stroke for interactive segmentation.

Signature:

export declare interface Stroke 

Properties

Property Modifiers Type Description
brushMode BrushMode The brush mode used for this stroke.
point readonly Point[] The sequence of normalized points forming the stroke.
isCompleted boolean Whether the stroke is complete.

Stroke.brushMode {#strokebrushmode}

The brush mode used for this stroke.

Signature:

readonly brushMode: BrushMode;

Stroke.point {#strokepoint}

The sequence of normalized points forming the stroke.

Signature:

readonly point: readonly Point[];

Stroke.isCompleted {#strokeiscompleted}

Whether the stroke is complete.

Signature:

readonly isCompleted: boolean;