No description available.
Properties
background
ref
#background
Optional
No description available.
blocks
array
of ref#block
Required
No description available.
height
integer
Optional
Fixed canvas height in canvas px; see width.
id
string
Optional
No description available.
lockViewerZoom
boolean
Optional
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.
mobileView
string
Optional
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.
unconstrained, left, centerpattern
string
Optional
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.
grid, dot, plaintheme
ref
pub.leaflet.theme.page
Optional
No description available.
width
integer
Optional
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.
View raw schema
{
"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"
}