Skip to content

Instantly share code, notes, and snippets.

Created April 13, 2014 09:57
Show Gist options
  • Save anonymous/10577213 to your computer and use it in GitHub Desktop.
Save anonymous/10577213 to your computer and use it in GitHub Desktop.
Editor data structure
C - child frame
P - parent frame
+++++++++++++++++++++++
+ +
+ P.id:1 [V][X] +
+ +
+++++++++++++++++++++++
________ ________ ________
| [x]| | | | [x]|
| C.id:1 | | P.id:2 | | C.id:2 |
|________| |________| |________|
+++++++++++++++++++++++
+ +
+ P.id:2 [V][X] +
+ +
+++++++++++++++++++++++
________ ________ ________ ________
| [x]| | [x]| | | | [x]|
| C.id:3 | | C.id:4 | | P.id:2 | | C.id:5 |
|________| |________| |________| |________|
DATA
sequences = [{
id: 1, frames: { before: [1], after: [2] }
}, {
id: 2, frames: { before: [3, 4], after: [5] }
}];
frame = [
{ id: 1, info: ... },
{ id: 2, info: ... },
{ id: 3, info: ... },
{ id: 4, info: ... },
{ id: 5, info: ... }];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment