pub.leaflet.pages.canvas

Repository @leaflet.pub did:plc:btxrwcaeyodrap5mnjw2fvmz namespace authority
Details · object
Kindobject
Authoritypages.leaflet.pub
Indexed

Object

object

Properties

Reference

blocks

requiredarray
itemsref
Reference

height

integer

Fixed canvas height in canvas px; see width.

id

string

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.

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

pattern

string

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

width

integer

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.

#background

object

An image tiled across the canvas, under its guide pattern and blocks.

Properties

image

requiredblob
  • maxSize: 1000000
  • accept: image/*

opacity

integer

Opacity of the image as a percentage. Defaults to 100.

  • minimum: 0
  • maximum: 100

width

integer

Width of each tile in canvas px. Defaults to 500.

#block

object

Properties

alignment

string

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

height

integer

rotation

integer

The rotation of the block in degrees

Fractional index ordering this block against its siblings on the z axis. Blocks without one stack below every block with one, ordered by position.

width

requiredinteger

x

requiredinteger

y

requiredinteger

#position

object

Properties

block

requiredarray
itemsinteger

offset

requiredinteger

#quote

object

Properties

end

requiredref
Reference

start

requiredref
Reference

#textAlignCenter

token

#textAlignLeft

token

#textAlignRight

token

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.