full diff

com.lvl99.paintcanvas.document

From
bafyreicx4tloud2s3q5jbphhbr3ujxg4xe5yf4vplgcfjojeu6e6elyi5i indexed 2026-11-12 22:16 UTC View this version
To
bafyreif3gz6izzkebuohnpvja6qmzh2wj3yh2bpvlntc6pjwvkjbff22vy indexed 2026-11-14 09:12 UTC View this version

Compatibility

backward compatible Backward compatible. 2 non-breaking changes.

Non-breaking changes (2)
  • AddedVertex AddedVertex { vertex_id: "com.lvl99.paintcanvas.document:body.updatedAt" }
  • AddedEdge AddedEdge { src: "com.lvl99.paintcanvas.document:body", tgt: "com.lvl99.paintcanvas.document:body.updatedAt", kind: "prop", name: Some("updatedAt") }

Migration guidance

Added

  • AddedVertex { vertex_id: "com.lvl99.paintcanvas.document:body.updatedAt" }

Notes

  • Non-breaking: AddedEdge { src: "com.lvl99.paintcanvas.document:body", tgt: "com.lvl99.paintcanvas.document:body.updatedAt", kind: "prop", name: Some("updatedAt") }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "externalImage": {
55 "properties": {
66 "image": {
77 "accept": [
88 "image/png"
99 ],
1010 "maxSize": 50000000,
1111 "type": "blob"
1212 },
1313 "source": {
1414 "description": "Who or what drew it, e.g. a DID.",
1515 "maxLength": 2048,
1616 "type": "string"
1717 }
1818 },
1919 "required": [
2020 "source",
2121 "image"
2222 ],
2323 "type": "object"
2424 },
2525 "layer": {
2626 "properties": {
2727 "alphaLock": {
2828 "description": "Whether drawing only changes pixels that aren't transparent.",
2929 "type": "boolean"
3030 },
3131 "blendingMode": {
3232 "description": "How it's blended with the layers below (canvas composite operations). \"source-over\" if not set.",
3333 "knownValues": [
3434 "source-over",
3535 "screen",
3636 "lighten",
3737 "multiply",
3838 "darken",
3939 "overlay"
4040 ],
4141 "maxLength": 32,
4242 "type": "string"
4343 },
4444 "image": {
4545 "accept": [
4646 "image/png"
4747 ],
4848 "description": "The layer's pixels.",
4949 "maxSize": 50000000,
5050 "type": "blob"
5151 },
5252 "layerId": {
5353 "description": "The layer's ID, unique in the drawing.",
5454 "maxLength": 100,
5555 "type": "string"
5656 },
5757 "name": {
5858 "description": "The layer's name.",
5959 "maxGraphemes": 64,
6060 "maxLength": 640,
6161 "type": "string"
6262 },
6363 "opacity": {
6464 "description": "Opacity in thousandths, from 0 (transparent) to 1000 (opaque). Opaque if not set.",
6565 "maximum": 1000,
6666 "minimum": 0,
6767 "type": "integer"
6868 },
6969 "visible": {
7070 "description": "Whether it's shown. Shown if not set.",
7171 "type": "boolean"
7272 }
7373 },
7474 "required": [
7575 "layerId",
7676 "name",
7777 "image"
7878 ],
7979 "type": "object"
8080 },
8181 "main": {
8282 "description": "A PaintCanvas drawing, keyed by its ID (a UUID). Its layers and thumbnail are PNG images.",
8383 "key": "any",
8484 "record": {
8585 "properties": {
8686 "activeLayer": {
8787 "description": "`layerId` of the layer being drawn on.",
8888 "maxLength": 100,
8989 "type": "string"
9090 },
9191 "author": {
9292 "description": "Everyone who drew in it, e.g. everyone in the drawing session it was made in.",
9393 "items": {
9494 "ref": "com.lvl99.paintcanvas.defs#author",
9595 "type": "ref"
9696 },
9797 "maxLength": 100,
9898 "minLength": 1,
9999 "type": "array"
100100 },
101101 "createdAt": {
102102 "description": "When the drawing was made.",
103103 "format": "datetime",
104104 "type": "string"
105105 },
106106 "external": {
107107 "description": "Images drawn by others, shown over the layers.",
108108 "items": {
109109 "ref": "#externalImage",
110110 "type": "ref"
111111 },
112112 "maxLength": 100,
113113 "type": "array"
114114 },
115115 "height": {
116116 "description": "Height in pixels.",
117117 "maximum": 10000,
118118 "minimum": 1,
119119 "type": "integer"
120120 },
121121 "layers": {
122122 "description": "The layers, from bottom to top.",
123123 "items": {
124124 "ref": "#layer",
125125 "type": "ref"
126126 },
127127 "maxLength": 100,
128128 "minLength": 1,
129129 "type": "array"
130130 },
131131 "name": {
132132 "description": "The drawing's name.",
133133 "maxGraphemes": 100,
134134 "maxLength": 1000,
135135 "type": "string"
136136 },
137137 "openedAt": {
138138 "description": "When the drawing was last opened.",
139139 "format": "datetime",
140140 "type": "string"
141141 },
142142 "thumbnail": {
143143 "ref": "#thumbnail",
144144 "type": "ref"
145145 },
146 "updatedAt": {
147 "description": "When it was last changed (opening it doesn't count), to sync copies kept in more than one place.",
148 "format": "datetime",
149 "type": "string"
150 },
146151 "width": {
147152 "description": "Width in pixels.",
148153 "maximum": 10000,
149154 "minimum": 1,
150155 "type": "integer"
151156 }
152157 },
153158 "required": [
154159 "name",
155160 "author",
156161 "createdAt",
157162 "width",
158163 "height",
159164 "layers"
160165 ],
161166 "type": "object"
162167 },
163168 "type": "record"
164169 },
165170 "thumbnail": {
166171 "properties": {
167172 "height": {
168173 "maximum": 200,
169174 "minimum": 1,
170175 "type": "integer"
171176 },
172177 "image": {
173178 "accept": [
174179 "image/png"
175180 ],
176181 "maxSize": 1000000,
177182 "type": "blob"
178183 },
179184 "width": {
180185 "maximum": 200,
181186 "minimum": 1,
182187 "type": "integer"
183188 }
184189 },
185190 "required": [
186191 "width",
187192 "height",
188193 "image"
189194 ],
190195 "type": "object"
191196 }
192197 },
193198 "description": "A PaintCanvas drawing, keyed by its ID (a UUID). Its layers and thumbnail are PNG images.",
194199 "id": "com.lvl99.paintcanvas.document",
195200 "lexicon": 1
196201}

Compare other versions