blob: 3636f366547342a04253864016bf89ed392ea48a (
plain)
1
2
3
4
5
6
7
8
9
|
registerLayout('test', class {
async intrinsicSizes() {}
async layout(children, edges, constraints, styleMap) {
if (constraints.fixedInlineSize !== 100)
return {autoBlockSize: 0};
return {autoBlockSize: 100};
}
});
|