@almadar/std 3.1.4 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,10 +77,48 @@
77
77
  "render-ui",
78
78
  "main",
79
79
  {
80
- "type": "game-canvas2-d",
81
- "width": 800,
82
- "height": 600,
83
- "fps": 60
80
+ "type": "stack",
81
+ "direction": "vertical",
82
+ "gap": "md",
83
+ "children": [
84
+ {
85
+ "type": "stack",
86
+ "direction": "horizontal",
87
+ "gap": "sm",
88
+ "align": "center",
89
+ "children": [
90
+ {
91
+ "type": "icon",
92
+ "name": "monitor",
93
+ "size": "md"
94
+ },
95
+ {
96
+ "type": "typography",
97
+ "content": "GameCanvas2d Canvas",
98
+ "variant": "h3"
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ "type": "typography",
104
+ "content": "800x600 @ 60fps",
105
+ "variant": "caption",
106
+ "color": "muted"
107
+ },
108
+ {
109
+ "type": "game-canvas2-d",
110
+ "width": 800,
111
+ "height": 600,
112
+ "fps": 60
113
+ },
114
+ {
115
+ "type": "button",
116
+ "label": "Start",
117
+ "event": "START",
118
+ "variant": "primary",
119
+ "icon": "play"
120
+ }
121
+ ]
84
122
  }
85
123
  ]
86
124
  ]
@@ -94,10 +132,42 @@
94
132
  "render-ui",
95
133
  "main",
96
134
  {
97
- "type": "game-canvas2-d",
98
- "width": 800,
99
- "height": 600,
100
- "fps": 60
135
+ "type": "stack",
136
+ "direction": "vertical",
137
+ "gap": "md",
138
+ "children": [
139
+ {
140
+ "type": "stack",
141
+ "direction": "horizontal",
142
+ "gap": "sm",
143
+ "align": "center",
144
+ "children": [
145
+ {
146
+ "type": "icon",
147
+ "name": "monitor",
148
+ "size": "md"
149
+ },
150
+ {
151
+ "type": "typography",
152
+ "content": "GameCanvas2d Canvas",
153
+ "variant": "h3"
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "type": "game-canvas2-d",
159
+ "width": 800,
160
+ "height": 600,
161
+ "fps": 60
162
+ },
163
+ {
164
+ "type": "button",
165
+ "label": "Stop",
166
+ "event": "STOP",
167
+ "variant": "ghost",
168
+ "icon": "square"
169
+ }
170
+ ]
101
171
  }
102
172
  ]
103
173
  ]
@@ -117,10 +187,48 @@
117
187
  "render-ui",
118
188
  "main",
119
189
  {
120
- "type": "game-canvas2-d",
121
- "width": 800,
122
- "height": 600,
123
- "fps": 60
190
+ "type": "stack",
191
+ "direction": "vertical",
192
+ "gap": "md",
193
+ "children": [
194
+ {
195
+ "type": "stack",
196
+ "direction": "horizontal",
197
+ "gap": "sm",
198
+ "align": "center",
199
+ "children": [
200
+ {
201
+ "type": "icon",
202
+ "name": "monitor",
203
+ "size": "md"
204
+ },
205
+ {
206
+ "type": "typography",
207
+ "content": "GameCanvas2d Canvas",
208
+ "variant": "h3"
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "type": "typography",
214
+ "content": "800x600 @ 60fps",
215
+ "variant": "caption",
216
+ "color": "muted"
217
+ },
218
+ {
219
+ "type": "game-canvas2-d",
220
+ "width": 800,
221
+ "height": 600,
222
+ "fps": 60
223
+ },
224
+ {
225
+ "type": "button",
226
+ "label": "Start",
227
+ "event": "START",
228
+ "variant": "primary",
229
+ "icon": "play"
230
+ }
231
+ ]
124
232
  }
125
233
  ]
126
234
  ]