@mocanvas/mocanvas · constant

HIGHLIGHT_STROKE_SIZES

declare const HIGHLIGHT_STROKE_SIZES: typeof STROKE_SIZES

How wide a highlight is drawn, per size, at scale: 1.

MEASURED, replacing a guess: these are tldraw 5.4's painted stroke widths, read off the rendered element in apps/bench at each of the four sizes.

A table rather than a multiple of STROKE_SIZES, because the two do not run in step — the ratio falls from ~10x at s to ~4.9x at xl, so no single multiplier reproduces them. The previous 3.2x of STROKE_SIZES came out between 1.5x and 3.2x too narrow depending on the size.

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.