com.lvl99.paintcanvas.document

A PaintCanvas drawing, keyed by its ID (a UUID). Its layers and thumbnail are PNG images.

Details · record, key any
Kindrecord
Record keyany
Authoritypaintcanvas.lvl99.com
Commit rev3n2b5thleqi2o
Indexed

Record

record · key any

Properties

`layerId` of the layer being drawn on.

  • maxLength: 100

author

requiredarray

Everyone who drew in it, e.g. everyone in the drawing session it was made in.

  • minLength: 1
  • maxLength: 100

createdAt

requiredstring · datetime

When the drawing was made.

Images drawn by others, shown over the layers.

  • maxLength: 100
itemsref
Reference

height

requiredinteger

Height in pixels.

  • minimum: 1
  • maximum: 10000

layers

requiredarray

The layers, from bottom to top.

  • minLength: 1
  • maxLength: 100
itemsref
Reference

name

requiredstring

The drawing's name.

  • maxLength: 1000
  • maxGraphemes: 100

openedAt

string · datetime

When the drawing was last opened.

Reference

updatedAt

string · datetime

When it was last changed (opening it doesn't count), to sync copies kept in more than one place.

width

requiredinteger

Width in pixels.

  • minimum: 1
  • maximum: 10000

#externalImage

object

Properties

image

requiredblob
  • maxSize: 50000000
  • accept: image/png

source

requiredstring

Who or what drew it, e.g. a DID.

  • maxLength: 2048

#layer

object

Properties

alphaLock

boolean

Whether drawing only changes pixels that aren't transparent.

How it's blended with the layers below (canvas composite operations). "source-over" if not set.

  • maxLength: 32
  • knownValues: source-over | screen | lighten | multiply | darken | overlay

image

requiredblob

The layer's pixels.

  • maxSize: 50000000
  • accept: image/png

layerId

requiredstring

The layer's ID, unique in the drawing.

  • maxLength: 100

name

requiredstring

The layer's name.

  • maxLength: 640
  • maxGraphemes: 64

opacity

integer

Opacity in thousandths, from 0 (transparent) to 1000 (opaque). Opaque if not set.

  • minimum: 0
  • maximum: 1000

visible

boolean

Whether it's shown. Shown if not set.

#thumbnail

object

Properties

height

requiredinteger
  • minimum: 1
  • maximum: 200

image

requiredblob
  • maxSize: 1000000
  • accept: image/png

width

requiredinteger
  • minimum: 1
  • maximum: 200

Similar lexicons

semantic match

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