pub.leaflet.pages.canvas
Schema Diff
+1 -0
Compatibility Analysis
Breaking Changes Detected
8 breaking changes, 12 non-breaking changes.
Breaking Changes (8)
- RemovedEdge RemovedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant23", kind: "variant", name: Some("pub.leaflet.blocks.membersOnlyDelimiter") }
- RemovedEdge RemovedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant24", kind: "variant", name: Some("pub.leaflet.blocks.postHeader") }
- RemovedEdge RemovedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant25", kind: "variant", name: Some("pub.leaflet.blocks.drawing") }
- RemovedEdge RemovedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant26", kind: "variant", name: Some("pub.leaflet.pages.linearDocument") }
- RemovedEdge RemovedEdge { src: "pub.leaflet.pages.canvas#block.block:variant23", tgt: "pub.leaflet.blocks.membersOnlyDelimiter", kind: "ref", name: None }
- RemovedEdge RemovedEdge { src: "pub.leaflet.pages.canvas#block.block:variant24", tgt: "pub.leaflet.blocks.postHeader", kind: "ref", name: None }
- RemovedEdge RemovedEdge { src: "pub.leaflet.pages.canvas#block.block:variant25", tgt: "pub.leaflet.blocks.drawing", kind: "ref", name: None }
- RemovedEdge RemovedEdge { src: "pub.leaflet.pages.canvas#block.block:variant26", tgt: "pub.leaflet.pages.linearDocument", kind: "ref", name: None }
Non-Breaking Changes (12)
- AddedVertex AddedVertex { vertex_id: "pub.leaflet.blocks.reply" }
- AddedVertex AddedVertex { vertex_id: "pub.leaflet.pages.canvas#block.block:variant27" }
- AddedEdge AddedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant23", kind: "variant", name: Some("pub.leaflet.blocks.reply") }
- AddedEdge AddedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant24", kind: "variant", name: Some("pub.leaflet.blocks.membersOnlyDelimiter") }
- AddedEdge AddedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant25", kind: "variant", name: Some("pub.leaflet.blocks.postHeader") }
- AddedEdge AddedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant26", kind: "variant", name: Some("pub.leaflet.blocks.drawing") }
- AddedEdge AddedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant27", kind: "variant", name: Some("pub.leaflet.pages.linearDocument") }
- AddedEdge AddedEdge { src: "pub.leaflet.pages.canvas#block.block:variant23", tgt: "pub.leaflet.blocks.reply", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "pub.leaflet.pages.canvas#block.block:variant24", tgt: "pub.leaflet.blocks.membersOnlyDelimiter", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "pub.leaflet.pages.canvas#block.block:variant25", tgt: "pub.leaflet.blocks.postHeader", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "pub.leaflet.pages.canvas#block.block:variant26", tgt: "pub.leaflet.blocks.drawing", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "pub.leaflet.pages.canvas#block.block:variant27", tgt: "pub.leaflet.pages.linearDocument", kind: "ref", name: None }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "pub.leaflet.blocks.reply" }AddedVertex { vertex_id: "pub.leaflet.pages.canvas#block.block:variant27" }
Additional Notes
- Breaking: RemovedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant23", kind: "variant", name: Some("pub.leaflet.blocks.membersOnlyDelimiter") }
- Breaking: RemovedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant24", kind: "variant", name: Some("pub.leaflet.blocks.postHeader") }
- Breaking: RemovedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant25", kind: "variant", name: Some("pub.leaflet.blocks.drawing") }
- Breaking: RemovedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant26", kind: "variant", name: Some("pub.leaflet.pages.linearDocument") }
- Breaking: RemovedEdge { src: "pub.leaflet.pages.canvas#block.block:variant23", tgt: "pub.leaflet.blocks.membersOnlyDelimiter", kind: "ref", name: None }
- Breaking: RemovedEdge { src: "pub.leaflet.pages.canvas#block.block:variant24", tgt: "pub.leaflet.blocks.postHeader", kind: "ref", name: None }
- Breaking: RemovedEdge { src: "pub.leaflet.pages.canvas#block.block:variant25", tgt: "pub.leaflet.blocks.drawing", kind: "ref", name: None }
- Breaking: RemovedEdge { src: "pub.leaflet.pages.canvas#block.block:variant26", tgt: "pub.leaflet.pages.linearDocument", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant23", kind: "variant", name: Some("pub.leaflet.blocks.reply") }
- Non-breaking: AddedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant24", kind: "variant", name: Some("pub.leaflet.blocks.membersOnlyDelimiter") }
- Non-breaking: AddedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant25", kind: "variant", name: Some("pub.leaflet.blocks.postHeader") }
- Non-breaking: AddedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant26", kind: "variant", name: Some("pub.leaflet.blocks.drawing") }
- Non-breaking: AddedEdge { src: "pub.leaflet.pages.canvas#block.block", tgt: "pub.leaflet.pages.canvas#block.block:variant27", kind: "variant", name: Some("pub.leaflet.pages.linearDocument") }
- Non-breaking: AddedEdge { src: "pub.leaflet.pages.canvas#block.block:variant23", tgt: "pub.leaflet.blocks.reply", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "pub.leaflet.pages.canvas#block.block:variant24", tgt: "pub.leaflet.blocks.membersOnlyDelimiter", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "pub.leaflet.pages.canvas#block.block:variant25", tgt: "pub.leaflet.blocks.postHeader", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "pub.leaflet.pages.canvas#block.block:variant26", tgt: "pub.leaflet.blocks.drawing", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "pub.leaflet.pages.canvas#block.block:variant27", tgt: "pub.leaflet.pages.linearDocument", kind: "ref", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"background": {
5
5
"description": "An image tiled across the canvas, under its guide pattern and blocks.",
6
6
"properties": {
7
7
"image": {
8
8
"accept": [
9
9
"image/*"
10
10
],
11
11
"maxSize": 1000000,
12
12
"type": "blob"
13
13
},
14
14
"opacity": {
15
15
"description": "Opacity of the image as a percentage. Defaults to 100.",
16
16
"maximum": 100,
17
17
"minimum": 0,
18
18
"type": "integer"
19
19
},
20
20
"width": {
21
21
"description": "Width of each tile in canvas px. Defaults to 500.",
22
22
"type": "integer"
23
23
}
24
24
},
25
25
"required": [
26
26
"image"
27
27
],
28
28
"type": "object"
29
29
},
30
30
"block": {
31
31
"properties": {
32
32
"alignment": {
33
33
"description": "Alignment of a single block's content. A linear document's blocks carry their own.",
34
34
"knownValues": [
35
35
"lex:pub.leaflet.pages.linearDocument#textAlignLeft",
36
36
"lex:pub.leaflet.pages.linearDocument#textAlignCenter",
37
37
"lex:pub.leaflet.pages.linearDocument#textAlignRight",
38
38
"lex:pub.leaflet.pages.linearDocument#textAlignJustify"
39
39
],
40
40
"type": "string"
41
41
},
42
42
"block": {
43
43
"description": "A single block, or a linear document: blocks grouped in reading order that are positioned, sized and rotated on the canvas as one.",
44
44
"refs": [
45
45
"pub.leaflet.blocks.iframe",
46
46
"pub.leaflet.blocks.html",
47
47
"pub.leaflet.blocks.text",
48
48
"pub.leaflet.blocks.blockquote",
49
49
"pub.leaflet.blocks.header",
50
50
"pub.leaflet.blocks.image",
51
51
"pub.leaflet.blocks.imageGallery",
52
52
"pub.leaflet.blocks.unorderedList",
53
53
"pub.leaflet.blocks.orderedList",
54
54
"pub.leaflet.blocks.website",
55
55
"pub.leaflet.blocks.math",
56
56
"pub.leaflet.blocks.code",
57
57
"pub.leaflet.blocks.horizontalRule",
58
58
"pub.leaflet.blocks.bskyPost",
59
59
"pub.leaflet.blocks.standardSitePost",
60
60
"pub.leaflet.blocks.standardSitePublication",
61
61
"pub.leaflet.blocks.page",
62
62
"pub.leaflet.blocks.embeddedCanvas",
63
63
"pub.leaflet.blocks.poll",
64
64
"pub.leaflet.blocks.button",
65
65
"pub.leaflet.blocks.postsList",
66
66
"pub.leaflet.blocks.signup",
67
67
"pub.leaflet.blocks.recommendedPubs",
68
+
"pub.leaflet.blocks.reply",
68
69
"pub.leaflet.blocks.membersOnlyDelimiter",
69
70
"pub.leaflet.blocks.postHeader",
70
71
"pub.leaflet.blocks.drawing",
71
72
"pub.leaflet.pages.linearDocument"
72
73
],
73
74
"type": "union"
74
75
},
75
76
"height": {
76
77
"type": "integer"
77
78
},
78
79
"rotation": {
79
80
"description": "The rotation of the block in degrees",
80
81
"type": "integer"
81
82
},
82
83
"stackOrder": {
83
84
"description": "Fractional index ordering this block against its siblings on the z axis. Blocks without one stack below every block with one, ordered by position.",
84
85
"type": "string"
85
86
},
86
87
"width": {
87
88
"type": "integer"
88
89
},
89
90
"x": {
90
91
"type": "integer"
91
92
},
92
93
"y": {
93
94
"type": "integer"
94
95
}
95
96
},
96
97
"required": [
97
98
"block",
98
99
"x",
99
100
"y",
100
101
"width"
101
102
],
102
103
"type": "object"
103
104
},
104
105
"main": {
105
106
"properties": {
106
107
"background": {
107
108
"ref": "#background",
108
109
"type": "ref"
109
110
},
110
111
"blocks": {
111
112
"items": {
112
113
"ref": "#block",
113
114
"type": "ref"
114
115
},
115
116
"type": "array"
116
117
},
117
118
"height": {
118
119
"description": "Fixed canvas height in canvas px; see width.",
119
120
"type": "integer"
120
121
},
121
122
"id": {
122
123
"type": "string"
123
124
},
124
125
"lockViewerZoom": {
125
126
"description": "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.",
126
127
"type": "boolean"
127
128
},
128
129
"mobileView": {
129
130
"description": "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.",
130
131
"knownValues": [
131
132
"unconstrained",
132
133
"left",
133
134
"center"
134
135
],
135
136
"type": "string"
136
137
},
137
138
"pattern": {
138
139
"description": "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.",
139
140
"knownValues": [
140
141
"grid",
141
142
"dot",
142
143
"plain"
143
144
],
144
145
"type": "string"
145
146
},
146
147
"theme": {
147
148
"ref": "pub.leaflet.theme.page",
148
149
"type": "ref"
149
150
},
150
151
"width": {
151
152
"description": "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.",
152
153
"type": "integer"
153
154
}
154
155
},
155
156
"required": [
156
157
"blocks"
157
158
],
158
159
"type": "object"
159
160
},
160
161
"position": {
161
162
"properties": {
162
163
"block": {
163
164
"items": {
164
165
"type": "integer"
165
166
},
166
167
"type": "array"
167
168
},
168
169
"offset": {
169
170
"type": "integer"
170
171
}
171
172
},
172
173
"required": [
173
174
"block",
174
175
"offset"
175
176
],
176
177
"type": "object"
177
178
},
178
179
"quote": {
179
180
"properties": {
180
181
"end": {
181
182
"ref": "#position",
182
183
"type": "ref"
183
184
},
184
185
"start": {
185
186
"ref": "#position",
186
187
"type": "ref"
187
188
}
188
189
},
189
190
"required": [
190
191
"start",
191
192
"end"
192
193
],
193
194
"type": "object"
194
195
},
195
196
"textAlignCenter": {
196
197
"type": "token"
197
198
},
198
199
"textAlignLeft": {
199
200
"type": "token"
200
201
},
201
202
"textAlignRight": {
202
203
"type": "token"
203
204
}
204
205
},
205
206
"id": "pub.leaflet.pages.canvas",
206
207
"lexicon": 1
207
208
}