pub.leaflet.blocks.drawing
Freehand ink strokes. The view box is the area of drawing space the block shows, scaled to the block's width; strokes may reach past it.
Details · object
| Kind | object |
|---|---|
| Authority | blocks.leaflet.pub |
| Indexed |
Object
object#fill
objectA filled polygon, painted with the nonzero rule: the region a stroke encloses.
#stroke
objectOne pen stroke, drawn in order, rendered as a variable-width outline of its input points (as perfect-freehand does).
Properties
A CSS hex color, or one of the document theme's colors: primary (text), accent, or tertiary (faded text).
Flattened input points as x, y, pressure triples: x and y in drawing space, pressure from 0 to 1000.
simulatePressure
booleanThe input had no real pressure (a mouse or finger); derive it from the stroke's speed instead.
The stroke's base diameter in drawing space.
minimum: 1
#viewBox
objectSimilar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
page.corvus.drawing
objectA drawing block — a vector image composed of shapes that render onto an HTML canvas 2D context. The drawing's `shapes` sequence holds shape block ids in z-order (later = on top). Each shape variant below is its own block. Coordinates are integer pixels; an editor that needs sub-pixel precision can scale its working coord space.