-
Notifications
You must be signed in to change notification settings - Fork 0
/
datastructures.txt
58 lines (46 loc) · 1.05 KB
/
datastructures.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# steps
simple linked list of JS objects.
step: {
text: '3 + &',
next: <nextStep>
references: [<reference>, <reference>, ...],
referencedBy: [<reference>, <reference>, ...],
stretches: [<superStep>, <stretch>, ...],
enabledBy: [false, <step>, <step>, ...],
enables: [<step>, <step>, ...],
forceDisabled: 2, // disabled twice
forceEnabled: [<step>, <step>], // force these enabledBy steps to enabled
//////// REMOVE the below?
previous: <previousStep>,
id: 1,
//////// REMOVE
underStepView: <stepView>,
result: <result>,
error: <error>,
}
TODO:
* make stepView steps only be for things displayed (or nearby)
stretch: {
steps: [<step>, <step>, ...],
group: <group>
// REMOVE?
id: 2,
// REMOVE
text: 'stretch name/description',
expanded: true,
stepView: ...,
stretchView: ...,
}
TODO:
superStep: {
text: 'step description', // expression if text is null
steps: [<step>, <step>, ...],
collapsed: true/false,
// REMOVE?
id: 3,
}
reference: {
sink: <step>,
source: <step>,
absolute: true/false,
};