com.lvl99.paintcanvas.document
A PaintCanvas drawing, keyed by its ID (a UUID). Its layers and thumbnail are PNG images.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | paintcanvas.lvl99.com |
| Commit rev | 3n25i5f6h562x |
| Indexed |
Showing version bafyreicx4tloud2s3q5jbphhbr3ujxg4xe5yf4vplgcfjojeu6e6elyi5i. Show the latest
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"externalImage": {
"properties": {
"image": {
"accept": [
"image/png"
],
"maxSize": 50000000,
"type": "blob"
},
"source": {
"description": "Who or what drew it, e.g. a DID.",
"maxLength": 2048,
"type": "string"
}
},
"required": [
"source",
"image"
],
"type": "object"
},
"layer": {
"properties": {
"alphaLock": {
"description": "Whether drawing only changes pixels that aren't transparent.",
"type": "boolean"
},
"blendingMode": {
"description": "How it's blended with the layers below (canvas composite operations). \"source-over\" if not set.",
"knownValues": [
"source-over",
"screen",
"lighten",
"multiply",
"darken",
"overlay"
],
"maxLength": 32,
"type": "string"
},
"image": {
"accept": [
"image/png"
],
"description": "The layer's pixels.",
"maxSize": 50000000,
"type": "blob"
},
"layerId": {
"description": "The layer's ID, unique in the drawing.",
"maxLength": 100,
"type": "string"
},
"name": {
"description": "The layer's name.",
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"opacity": {
"description": "Opacity in thousandths, from 0 (transparent) to 1000 (opaque). Opaque if not set.",
"maximum": 1000,
"minimum": 0,
"type": "integer"
},
"visible": {
"description": "Whether it's shown. Shown if not set.",
"type": "boolean"
}
},
"required": [
"layerId",
"name",
"image"
],
"type": "object"
},
"main": {
"description": "A PaintCanvas drawing, keyed by its ID (a UUID). Its layers and thumbnail are PNG images.",
"key": "any",
"record": {
"properties": {
"activeLayer": {
"description": "`layerId` of the layer being drawn on.",
"maxLength": 100,
"type": "string"
},
"author": {
"description": "Everyone who drew in it, e.g. everyone in the drawing session it was made in.",
"items": {
"ref": "com.lvl99.paintcanvas.defs#author",
"type": "ref"
},
"maxLength": 100,
"minLength": 1,
"type": "array"
},
"createdAt": {
"description": "When the drawing was made.",
"format": "datetime",
"type": "string"
},
"external": {
"description": "Images drawn by others, shown over the layers.",
"items": {
"ref": "#externalImage",
"type": "ref"
},
"maxLength": 100,
"type": "array"
},
"height": {
"description": "Height in pixels.",
"maximum": 10000,
"minimum": 1,
"type": "integer"
},
"layers": {
"description": "The layers, from bottom to top.",
"items": {
"ref": "#layer",
"type": "ref"
},
"maxLength": 100,
"minLength": 1,
"type": "array"
},
"name": {
"description": "The drawing's name.",
"maxGraphemes": 100,
"maxLength": 1000,
"type": "string"
},
"openedAt": {
"description": "When the drawing was last opened.",
"format": "datetime",
"type": "string"
},
"thumbnail": {
"ref": "#thumbnail",
"type": "ref"
},
"width": {
"description": "Width in pixels.",
"maximum": 10000,
"minimum": 1,
"type": "integer"
}
},
"required": [
"name",
"author",
"createdAt",
"width",
"height",
"layers"
],
"type": "object"
},
"type": "record"
},
"thumbnail": {
"properties": {
"height": {
"maximum": 200,
"minimum": 1,
"type": "integer"
},
"image": {
"accept": [
"image/png"
],
"maxSize": 1000000,
"type": "blob"
},
"width": {
"maximum": 200,
"minimum": 1,
"type": "integer"
}
},
"required": [
"width",
"height",
"image"
],
"type": "object"
}
},
"description": "A PaintCanvas drawing, keyed by its ID (a UUID). Its layers and thumbnail are PNG images.",
"id": "com.lvl99.paintcanvas.document",
"lexicon": 1
}