-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathchild_hides_objects.dot
68 lines (63 loc) · 3.04 KB
/
child_hides_objects.dot
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
59
60
61
62
63
64
65
66
67
68
digraph d {
rankdir=LR
nodesep=0.1
node [shape=Mrecord, fontname="Helvetica,Sans", fontsize=9, penwidth=0.5, margin="0.05, 0.04", height="0.2" ]
/* scopes */
node [shape=plaintext];
root [label=<<table bgcolor="beige" border="0" cellborder="1" cellpadding="2" cellspacing="0">
<tr><td port="proto">[ RootScope ]</td></tr></table>>]
parent [label=<<table bgcolor="beige" border="0" cellborder="1" cellpadding="2" cellspacing="0">
<tr><td port="proto">[ ParentScope ]</td></tr>
<tr><td port="aString">aString</td></tr>
<tr><td port="aNumber">aNumber</td></tr>
<tr><td port="anArray">anArray</td></tr>
<tr><td port="anObject">anObject</td></tr>
<tr><td port="aFunction">aFunction</td></tr>
</table>>]
child [label=<<table bgcolor="beige" border="0" cellborder="1" cellpadding="2" cellspacing="0">
<tr><td port="proto">[ ChildScope ]</td></tr>
<tr><td port="aString">aString</td></tr>
<tr><td port="anArray" color="crimson"><font color="crimson">anArray</font></td></tr>
<tr><td port="anObject" color="crimson"><font color="crimson">anObject</font></td></tr>
</table>>]
/* objects */
anArray [label=<<table bgcolor="skyblue1" border="0" cellborder="1" cellpadding="2" cellspacing="0">
<tr><td port="index0">10</td><td>22</td><td>30</td></tr></table>>]
anObject [label=<<table bgcolor="skyblue1" border="0" cellborder="1" cellpadding="2" cellspacing="0">
<tr><td port="prop1">property1</td></tr>
<tr><td port="prop2">property2</td></tr></table>>]
anArrayC [label=<<table bgcolor="skyblue1" color="crimson" border="0" cellborder="1" cellpadding="2" cellspacing="0">
<tr>
<td port="index0"><font color="crimson"><font point-size="9">100</font></font></td>
<td><font color="crimson">555</font></td></tr></table>>]
anObjectC [label=<<table bgcolor="skyblue1" color="crimson" border="0" cellborder="1" cellpadding="2" cellspacing="0">
<tr><td port="name" cellspacing="1"><font color="crimson"><font point-size="9">name</font></font></td></tr>
<tr><td port="country"><font color="crimson">country</font></td></tr></table>>]
/* functions */
aFunction [label=<<table bgcolor="darkseagreen2" border="0" cellborder="1" cellpadding="2" cellspacing="0">
<tr><td>aFunction()</td></tr>
<tr><td>{ return 'parent output' }</td></tr></table>>]
/* literals */
node [fillcolor=gray94, shape=box, style=filled]
aString [label="\"parent string\""]
aStringC [label="\"child string\""]
aNumber [label="100"]
prop1 [label="\"child prop1\""]
node [color=crimson, fontcolor=crimson]
name [label="\"Mark\""]
country [label="\"USA\""]
/* references */
parent:proto -> root:proto [style = dashed]
child:proto -> parent:proto [style = dashed]
child:aString -> aStringC
child:anArray -> anArrayC [color=crimson]
child:anObject -> anObjectC [color=crimson]
parent:aString -> aString
parent:aNumber -> aNumber
parent:anArray -> anArray
parent:anObject -> anObject
anObject:prop1 -> prop1
parent:aFunction -> aFunction
anObjectC:name -> name [color=crimson]
anObjectC:country -> country [color=crimson]
}