Skip to content

Instantly share code, notes, and snippets.

@yulgit1
Last active January 31, 2018 21:21
Show Gist options
  • Save yulgit1/00cd391dbcedbf5a00e25e62aec31820 to your computer and use it in GitHub Desktop.
Save yulgit1/00cd391dbcedbf5a00e25e62aec31820 to your computer and use it in GitHub Desktop.
mirador top level state normalizred
{
window: "1", //current window
entities: {
"windows": {
"1": { id: "1", config: "1"},
"2": { id: "2", config: "2"},
"3": { id: "3", config: "3"}
},
"configs": {
"1": { "collectionIndex": 0, "manifestIndex": 0, "sequenceIndex": 0, "canvasIndex": 0, "rangeId": null, "xywh": null, "rotation": null},
"2": { "collectionIndex": 0, "manifestIndex": 0, "sequenceIndex": 0, "canvasIndex": 0, "rangeId": null, "xywh": null, "rotation": null}
"3": { "collectionIndex": 0, "manifestIndex": 0, "sequenceIndex": 0, "canvasIndex": 0, "rangeId": null, "xywh": null, "rotation": null}
},
"collections": {
"1": { id: "1", "manifests": ["1","2","3"] },
"2": { id: "2", "manifests": ["4","5","6"] }
...
},
"manifests": {
"1": { id: "1", "sequences": ["1"] },
"2": { id: "2", "sequences": ["2"] },
...
},
"sequences": {
"1": { id: "1", canvases": ["1","2","3","4"] },
"2": { id: "2", canvases": ["5","6","7","8"] }
...
},
"canvases": {
"1": { id: "1" ... },
"2": { id: "2" ... },
"3": { id: "3" ... },
"4": { id: "4" ... },
"5": { id: "5" ... },
"6": { id: "6" ... },
"7": { id: "7" ... },
"8": { id: "8" ... },
...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment