page.corvus.drawing
A drawing canvas containing an ordered sequence of shapes
Details · object
| Kind | object |
|---|---|
| Authority | corvus.page |
| Indexed |
Object
objectProperties
background
refThe canvas background as a CSS color string; omitted or empty for transparent
The AT-URI of this block record
height
refThe canvas height in pixels
shapes
refThe shapes in the drawing as a sequence of shape block ids in z-order (later = on top)
title
refThe name of the drawing
width
refThe canvas width in pixels
#ellipse
objectAn ellipse or circle (set rx == ry for a circle)
Properties
The AT-URI of this block record
cx
refCenter X coordinate in pixels
cy
refCenter Y coordinate in pixels
fill
refFill style as a CSS color string; omitted or empty for no fill
opacity
refOpacity from 0 to 1 (defaults to 1)
rotation
refRotation in radians around (cx, cy) (defaults to 0)
rx
refX radius in pixels
ry
refY radius in pixels
stroke
refStroke style as a CSS color string; omitted or empty for no stroke
strokeWidth
refStroke width in pixels (defaults to 1)
#group
objectA named collection of shape block ids — a tag that lets a set of shapes be referred to together (selected, named, toggled). Membership is order-independent; z-order comes from #main.shapes
#image
objectA placed image — positions and sizes a page.corvus.contentBlocks#image within the drawing. The image asset itself lives in the referenced block (its blob, alt text, and aspect ratio); this variant only carries the placement
Properties
The AT-URI of this block record
height
refHeight in pixels
image
refRegister whose value is the at-uri of the page.corvus.contentBlocks#image block to render
opacity
refOpacity from 0 to 1 (defaults to 1)
rotation
refRotation in radians around the image's center (defaults to 0)
width
refWidth in pixels
x
refTop-left X coordinate in pixels
y
refTop-left Y coordinate in pixels
#path
objectA vector path — a sequence of commands that map directly to canvas path operations. Commands are inline values in the sequence and have no stable identity across edits (editing a command means deleting and re-inserting it). Use #stroke instead for freehand brush traces.
Properties
The AT-URI of this block record
commands
refThe path commands as an RGA sequence of #pathCommand objects
fill
refFill style as a CSS color string; omitted or empty for no fill
opacity
refOpacity from 0 to 1 (defaults to 1)
rotation
refRotation in radians applied around (x, y) at render time (defaults to 0)
stroke
refStroke style as a CSS color string; omitted or empty for no stroke
strokeWidth
refStroke width in pixels (defaults to 1)
x
refOrigin X offset applied to the path at render time (defaults to 0)
y
refOrigin Y offset applied to the path at render time (defaults to 0)
#pathCommand
objectA single path command. Used inline as a value in a #path.commands sequence — NOT its own block, NOT addressable, no stable identity across edits
Properties
coords
arrayCoordinate arguments; interpretation depends on op. Angles for the A command are encoded in milliradians (0 to 2π × 1000) so they fit an integer
M=moveTo (x,y); L=lineTo (x,y); C=bezierCurveTo (cp1x,cp1y,cp2x,cp2y,x,y); Q=quadraticCurveTo (cpx,cpy,x,y); A=arc (cx,cy,r,startAngle,endAngle,counterclockwise); Z=closePath (no coords)
knownValues: M | L | C | Q | A | Z
#rect
objectAn axis-aligned rectangle, optionally rotated around its center
Properties
The AT-URI of this block record
cornerRadius
refCorner radius in pixels (defaults to 0)
fill
refFill style as a CSS color string; omitted or empty for no fill
height
refHeight in pixels
opacity
refOpacity from 0 to 1 (defaults to 1)
rotation
refRotation in radians around the rect's center (defaults to 0)
stroke
refStroke style as a CSS color string; omitted or empty for no stroke
strokeWidth
refStroke width in pixels (defaults to 1)
width
refWidth in pixels
x
refTop-left X coordinate in pixels
y
refTop-left Y coordinate in pixels
#stroke
objectA freehand stroke — a brush trace captured atomically. Sample points are written once as a single register value; individual points are not edited collaboratively. To redo the stroke, replace the points register
Properties
The AT-URI of this block record
color
refBrush color as a CSS color string
opacity
refOpacity from 0 to 1 (defaults to 1)
points
refThe stroke's samples as a single register whose value is an array of #strokePoint objects
rotation
refRotation in radians applied around (x, y) at render time (defaults to 0)
width
refBrush width in pixels (base width if pressure modulates)
x
refOrigin X offset applied to the stroke at render time (defaults to 0)
y
refOrigin Y offset applied to the stroke at render time (defaults to 0)
#strokePoint
objectA single sample within a #stroke. Used inline as an element of #stroke.points
#text
objectA text label rendered with canvas fillText/strokeText
Properties
align
refHorizontal alignment relative to (x, y) — 'left', 'center', or 'right' (defaults to 'left')
The AT-URI of this block record
fill
refFill style as a CSS color string; omitted or empty for no fill
fontFamily
refFont family as a CSS font-family string
fontSize
refFont size in pixels
opacity
refOpacity from 0 to 1 (defaults to 1)
rotation
refRotation in radians around (x, y) (defaults to 0)
stroke
refStroke style as a CSS color string; omitted or empty for no stroke
strokeWidth
refStroke width in pixels (defaults to 0)
text
refThe text content as a text sequence (editable per-character)
weight
refFont weight as a CSS font-weight value
x
refAnchor X coordinate in pixels
y
refAnchor Y coordinate in pixels (text baseline)
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
pub.leaflet.blocks.drawing
objectFreehand 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.