pub.leaflet.pages.canvas
Details · object
| Kind | object |
|---|---|
| Authority | pages.leaflet.pub |
| Indexed |
Showing version bafyreifidxorq5x5powzvl5e6mx7fpgu45i2lmoqfh54brk5mo4eq7zjgu. Show the latest
Checks
Validunlimited-stringdefs.block.properties.alignmentNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.block.properties.stackOrderNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.properties.idNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.properties.mobileViewNo maxLength, maxGraphemes or format limits this string.undescribed-tokendefs.textAlignCenterThe token has no description.undescribed-tokendefs.textAlignLeftThe token has no description.undescribed-tokendefs.textAlignRightThe token has no description.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"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": {
"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"
},
"width": {
"description": "Fixed canvas width in canvas px. With height, bounds the canvas: blocks are clipped to the area. Absent, the canvas is 1272px wide and grows with its content.",
"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
}