@@ -226,8 +226,8 @@ are performing layout for, and all children. E.g.
226226
227227``` js
228228registerLayout (' 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' ];
231231
232232 async layout (children , edges , constraints , styleMap ) {
233233 // We can read our own style:
@@ -272,7 +272,7 @@ In the above `centering` example, we forced each `LayoutChild` to produce exactl
272272We are able to ensure children do not blockify by setting the ` childDisplay ` to ` normal ` , e.g.
273273``` js
274274registerLayout (' example' , class {
275- static get layoutOptions () { return {childDisplay: ' normal' }; }
275+ static layoutOptions = {childDisplay: ' normal' };
276276});
277277```
278278
@@ -305,7 +305,7 @@ We pass the `BreakToken` to add back into the `layout()` call in order to produc
305305
306306``` js
307307registerLayout (' basic-inline' , class {
308- static get layoutOptions () { return {childDisplay: ' normal' }; }
308+ static layoutOptions = {childDisplay: ' normal' };
309309
310310 async layout (children , edges , constraints , styleMap ) {
311311 // Determine our (inner) available size.
0 commit comments