Skip to content

Interface: CuspConfig

Defined in: corners.ts:27

Properties

threshold

threshold: number

Defined in: corners.ts:40

The turn (radians) that counts as a corner. ~π/3 (60°) is a sane start: comfortably past what a fast circle turns through in one window, comfortably short of the ~π a pen-reversal produces.


window

window: number

Defined in: corners.ts:34

How far along the stroke (px) to look on each side of a candidate. Too small and jitter reads as corners; too large and a genuine sharp letter-corner gets averaged into a curve. Around 4-8px suits handwriting at typical screen scale.