pub.leaflet.pages.canvas
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"background": {
"description": "An image tiled across the canvas, under its guide pattern and blocks.",
"properties": {
"image": {
"accept": [
"image/*"
],
"maxSize": 1000000,
"type": "blob"
},
"opacity": {
"description": "Opacity of the image as a percentage. Defaults to 100.",
"maximum": 100,
"minimum": 0,
"type": "integer"
},
"width": {
"description": "Width of each tile in canvas px. Defaults to 500.",
"type": "integer"
}
},
"required": [
"image"
],
"type": "object"
},
"block": {
"properties": {
"alignment": {
"description": "Alignment of a single block's content. A linear document's blocks carry their own.",
"knownValues": [
"lex:pub.leaflet.pages.linearDocument#textAlignLeft",
"lex:pub.leaflet.pages.linearDocument#textAlignCenter",
"lex:pub.leaflet.pages.linearDocument#textAlignRight",
"lex:pub.leaflet.pages.linearDocument#textAlignJustify"
],
"type": "string"
},
"block": {
"description": "A single block, or a linear document: blocks grouped in reading order that are positioned, sized and rotated on the canvas as one.",
"refs": [
"pub.leaflet.blocks.iframe",
"pub.leaflet.blocks.html",
"pub.leaflet.blocks.text",
"pub.leaflet.blocks.blockquote",
"pub.leaflet.blocks.header",
"pub.leaflet.blocks.image",
"pub.leaflet.blocks.imageGallery",
"pub.leaflet.blocks.unorderedList",
"pub.leaflet.blocks.orderedList",
"pub.leaflet.blocks.website",
"pub.leaflet.blocks.math",
"pub.leaflet.blocks.code",
"pub.leaflet.blocks.horizontalRule",
"pub.leaflet.blocks.bskyPost",
"pub.leaflet.blocks.standardSitePost",
"pub.leaflet.blocks.standardSitePublication",
"pub.leaflet.blocks.page",
"pub.leaflet.blocks.embeddedCanvas",
"pub.leaflet.blocks.poll",
"pub.leaflet.blocks.button",
"pub.leaflet.blocks.postsList",
"pub.leaflet.blocks.signup",
"pub.leaflet.blocks.recommendedPubs",
"pub.leaflet.blocks.membersOnlyDelimiter",
"pub.leaflet.blocks.postHeader",
"pub.leaflet.blocks.drawing",
"pub.leaflet.pages.linearDocument"
],
"type": "union"
},
"height": {
"type": "integer"
},
"rotation": {
"description": "The rotation of the block in degrees",
"type": "integer"
},
"stackOrder": {
"description": "Fractional index ordering this block against its siblings on the z axis. Blocks without one stack below every block with one, ordered by position.",
"type": "string"
},
"width": {
"type": "integer"
},
"x": {
"type": "integer"
},
"y": {
"type": "integer"
}
},
"required": [
"block",
"x",
"y",
"width"
],
"type": "object"
},
"main": {
"properties": {
"background": {
"ref": "#background",
"type": "ref"
},
"blocks": {
"items": {
"ref": "#block",
"type": "ref"
},
"type": "array"
},
"height": {
"description": "Fixed canvas height in canvas px; see width.",
"type": "integer"
},
"id": {
"type": "string"
},
"lockViewerZoom": {
"description": "Viewers cannot zoom the canvas or scroll it sideways: no wheel, pinch, double-tap or zoom controls, and the initial framing (see mobileView) stays. Vertical scrolling is unaffected.",
"type": "boolean"
},
"mobileView": {
"description": "How a narrow viewport frames the canvas: the whole canvas scaled to fit the width (unconstrained, the default), or a phone-width area anchored to the canvas's left edge or centered on it, shown at up to 1:1.",
"knownValues": [
"unconstrained",
"left",
"center"
],
"type": "string"
},
"pattern": {
"description": "The guide pattern drawn over the canvas's background, under its blocks. Absent, a canvas that grows with its content shows the grid and a fixed-size canvas is plain.",
"knownValues": [
"grid",
"dot",
"plain"
],
"type": "string"
},
"theme": {
"ref": "pub.leaflet.theme.page",
"type": "ref"
},
"width": {
"description": "Fixed canvas width in canvas px. With height, bounds the canvas: blocks are clipped to the area. Absent, the canvas grows with its content and is 1272px wide, or as wide as the inside of the publication's page (its theme's pageWidth) when it is one of a publication's pages.",
"type": "integer"
}
},
"required": [
"blocks"
],
"type": "object"
},
"position": {
"properties": {
"block": {
"items": {
"type": "integer"
},
"type": "array"
},
"offset": {
"type": "integer"
}
},
"required": [
"block",
"offset"
],
"type": "object"
},
"quote": {
"properties": {
"end": {
"ref": "#position",
"type": "ref"
},
"start": {
"ref": "#position",
"type": "ref"
}
},
"required": [
"start",
"end"
],
"type": "object"
},
"textAlignCenter": {
"type": "token"
},
"textAlignLeft": {
"type": "token"
},
"textAlignRight": {
"type": "token"
}
},
"id": "pub.leaflet.pages.canvas",
"lexicon": 1
}
Metadata
- DID
-
did:plc:btxrwcaeyodrap5mnjw2fvmz - CID
-
bafyreiapayfh7waaepnn3gemxjldzdg4reqwbfazzxro6bpgvcvchjvuh4 - Indexed At
- 2026-10-03 18:44 UTC
- AT-URI
-
at://did:plc:btxrwcaeyodrap5mnjw2fvmz/com.atproto.lexicon.schema/pub.leaflet.pages.canvas
Version History (15 versions)
- 2026-10-07 19:26 UTC
- 2026-10-06 18:51 UTC diff
- 2026-10-03 18:44 UTC diff
- 2026-09-29 05:17 UTC diff
- 2026-09-29 04:39 UTC diff
- 2026-09-27 03:36 UTC diff
- 2026-09-26 03:40 UTC diff
- 2026-09-21 16:21 UTC diff
- 2026-09-16 21:12 UTC diff
- 2026-09-15 00:06 UTC diff
- 2026-07-24 20:11 UTC diff
- 2026-05-28 21:03 UTC diff
- 2026-05-21 03:54 UTC diff
- 2026-03-19 20:24 UTC diff
- 2026-02-18 20:05 UTC diff
Referenced Schemas (28)
- pub.leaflet.blocks.blockquote
- pub.leaflet.blocks.bskyPost
- pub.leaflet.blocks.button
- pub.leaflet.blocks.code
- pub.leaflet.blocks.drawing
- pub.leaflet.blocks.embeddedCanvas
- pub.leaflet.blocks.header
- pub.leaflet.blocks.horizontalRule
- pub.leaflet.blocks.html
- pub.leaflet.blocks.iframe
- pub.leaflet.blocks.image
- pub.leaflet.blocks.imageGallery
- pub.leaflet.blocks.math
- pub.leaflet.blocks.membersOnlyDelimiter
- pub.leaflet.blocks.orderedList
- pub.leaflet.blocks.page
- pub.leaflet.blocks.poll
- pub.leaflet.blocks.postHeader
- pub.leaflet.blocks.postsList
- pub.leaflet.blocks.recommendedPubs
- pub.leaflet.blocks.signup
- pub.leaflet.blocks.standardSitePost
- pub.leaflet.blocks.standardSitePublication
- pub.leaflet.blocks.text
- pub.leaflet.blocks.unorderedList
- pub.leaflet.blocks.website
- pub.leaflet.pages.linearDocument
- pub.leaflet.theme.page
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
A fixed-size canvas shown in full inline. id refers to a pub.leaflet.pages.canvas in the document's pages whose width and height bound it.
-
pub.leaflet.blocks.html object
-
pub.leaflet.blocks.image object