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 |
Showing version bafyreies2ez4hjyh26blwlxjtw2wvpqbb3uqddagug3vvkxysgzufbo3fy. Show the latest
Checks
Validunlimited-stringdefs.stroke.properties.colorNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "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.",
"properties": {
"strokes": {
"items": {
"ref": "#stroke",
"type": "ref"
},
"type": "array"
},
"viewBox": {
"ref": "#viewBox",
"type": "ref"
}
},
"required": [
"viewBox",
"strokes"
],
"type": "object"
},
"stroke": {
"description": "One pen stroke, drawn in order, rendered as a variable-width outline of its input points (as perfect-freehand does).",
"properties": {
"color": {
"description": "A CSS hex color, or one of the document theme's colors: primary (text), accent, or tertiary (faded text).",
"type": "string"
},
"points": {
"description": "Flattened input points as x, y, pressure triples: x and y in drawing space, pressure from 0 to 1000.",
"items": {
"type": "integer"
},
"type": "array"
},
"simulatePressure": {
"description": "The input had no real pressure (a mouse or finger); derive it from the stroke's speed instead.",
"type": "boolean"
},
"size": {
"description": "The stroke's base diameter in drawing space.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"points",
"color",
"size"
],
"type": "object"
},
"viewBox": {
"properties": {
"height": {
"minimum": 1,
"type": "integer"
},
"width": {
"minimum": 1,
"type": "integer"
},
"x": {
"type": "integer"
},
"y": {
"type": "integer"
}
},
"required": [
"x",
"y",
"width",
"height"
],
"type": "object"
}
},
"id": "pub.leaflet.blocks.drawing",
"lexicon": 1
}