Skip to content

charton API


charton API / @chart-on/core / index / SketchCandidate

Interface: SketchCandidate ​

Defined in: packages/core/src/drawing/sketch.ts:23

One way to read a stroke as a drawing.

Properties ​

points ​

points: Point[]

Defined in: packages/core/src/drawing/sketch.ts:29

The tool's anchor points in plot pixels, in the order the tool takes them.


score ​

score: number

Defined in: packages/core/src/drawing/sketch.ts:27

How well the stroke fits, from 0 (not at all) to 1 (exactly).


tool ​

tool: string

Defined in: packages/core/src/drawing/sketch.ts:25

Drawing tool type, such as 'trendline' or 'rectangle'.