OBJ Binary Embedded Object
Files and other data are encoded into the following primitive to be embedded in the page as images and files, which can be downloaded as attachments or displayed directly.
json
{ "type": "OBJ", "id":"UUID", "ticket": 1 }||
{
"partitionId":null,
"groupId":0,
"locked":1,
"zIndex":5.286,
"layerId":15,
"fileName":"a.png",
"startX":200,
"startY":300,
"width":10,
"height":20,
"angle":0,
"mirror":1,
"path":"blob:1234ade2f",
}|
["OBJ", "e662", 0, 1, 5.286, 15, "a.png", 200, 300, 10, 20, 0, 1, "blob:1234ade2f"]1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- type binary embedded object identifier: OBJ.
- id primitive ID, unique within the document.
- ticket logical clock.
- partitionId partition ID it belongs to, null means no partition. Ignored for footprints.
- groupId group ID: 0 no group, non-zero is the group flag, same flag means same group.
- locked whether locked.
- zIndex Z-axis height.
- layerId layer.
- fileName file name.
- startX top-left X.
- startY top-left Y.
- width width.
- height height.
- angle rotation angle, around
top-left. - mirror whether the original image is horizontally mirrored. Mirroring is performed around the center of the original image's BBox.
- path binary data.
- General format, compatible with
Data URLs:data:[<mediatype>][;base64],<data>- e.g.
data:image/png;base64,asdfasdfwer
- e.g.
- BLOB reference format,
blob:hashid.
- General format, compatible with