pub.leaflet.pages.canvas

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

Showing version bafyreifidxorq5x5powzvl5e6mx7fpgu45i2lmoqfh54brk5mo4eq7zjgu. Show the latest

Object

object

Properties

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

width

integer

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.

#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.