@@ -226,8 +226,8 @@ are performing layout for, and all children. E.g.
226
226
227
227
``` js
228
228
registerLayout (' style-read' , class {
229
- static get inputProperties () { return [' --a-number' ]; }
230
- static get childInputProperties () { return [' --a-string' ]; }
229
+ static inputProperties = [' --a-number' ];
230
+ static childInputProperties = [' --a-string' ];
231
231
232
232
async layout (children , edges , constraints , styleMap ) {
233
233
// We can read our own style:
@@ -272,7 +272,7 @@ In the above `centering` example, we forced each `LayoutChild` to produce exactl
272
272
We are able to ensure children do not blockify by setting the ` childDisplay ` to ` normal ` , e.g.
273
273
``` js
274
274
registerLayout (' example' , class {
275
- static get layoutOptions () { return {childDisplay: ' normal' }; }
275
+ static layoutOptions = {childDisplay: ' normal' };
276
276
});
277
277
```
278
278
@@ -305,7 +305,7 @@ We pass the `BreakToken` to add back into the `layout()` call in order to produc
305
305
306
306
``` js
307
307
registerLayout (' basic-inline' , class {
308
- static get layoutOptions () { return {childDisplay: ' normal' }; }
308
+ static layoutOptions = {childDisplay: ' normal' };
309
309
310
310
async layout (children , edges , constraints , styleMap ) {
311
311
// Determine our (inner) available size.
0 commit comments