-
Notifications
You must be signed in to change notification settings - Fork 1
/
layout.js
123 lines (122 loc) · 4.14 KB
/
layout.js
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
var config = {
settings: {
showPopoutIcon: false,
showMaximiseIcon: false,
showCloseIcon: false
},
content: [{
type: 'row',
content:[{
type: 'row',
width: 32,
content:[{
type: 'column',
content:[{
type: 'stack',
height: 15,
content:[{
type: 'component',
componentName: 'fileComponent',
componentState: {},
isClosable: false,
title: 'File'
}]
},{
type: 'component',
height: 18,
componentName: 'treeControlsComponent',
componentState: {},
isClosable: false,
title: 'Scene Tree Controls'
},{
type: 'stack',
content: [{
type: 'component',
componentName: 'treeComponent',
componentState: {},
isClosable: false,
title: 'Scene Tree'
},{
type: 'component',
componentName: 'modelComponent',
componentState: {},
isClosable: false,
title: 'Models'
},{
type: 'component',
componentName: 'shapeComponent',
componentState: {},
isClosable: false,
title: 'Shapes'
}]
}]
},{
type: 'column',
width: 50,
content:[{
type: 'stack',
height: 30,
content: [{
type: 'component',
height: 35,
componentName: 'propertiesComponent',
componentState: {},
isClosable: false,
title: 'Properties'
},{
type: 'component',
componentName: 'keyframeComponent',
componentState: {},
isClosable: false,
title: 'Keyframe Info'
}]
},{
type: 'stack',
content:[{
type: 'component',
componentName: 'controlsComponent',
componentState: {},
isClosable: false,
title: 'Controls'
},{
type: 'component',
componentName: 'settingsComponent',
componentState: {},
isClosable: false,
title: 'Settings'
}]
}]
}]
},{
type: 'column',
content:[{
type: 'stack',
id: 'viewportStack',
content:[{
type: 'component',
componentName: 'viewportComponent',
componentState: { viewportId: 0 },
isClosable: false,
title: 'Viewport 0'
}]
},{
type: 'stack',
height: 15,
content:[{
type: 'component',
componentName: 'timelineComponent',
componentState: { },
isClosable: false,
title: 'Timeline'
},{
type: 'component',
componentName: 'logComponent',
componentState: { },
isClosable: false,
title: 'Log'
}]
}]
}]
}]
};
var layout = new GoldenLayout(config);