| 229 | } |
| 230 | |
| 231 | setJustifyContent(justify: LayoutJustify): void { |
| 232 | const map: Record<LayoutJustify, Justify> = { |
| 233 | 'flex-start': Justify.FlexStart, |
| 234 | center: Justify.Center, |
| 235 | 'flex-end': Justify.FlexEnd, |
| 236 | 'space-between': Justify.SpaceBetween, |
| 237 | 'space-around': Justify.SpaceAround, |
| 238 | 'space-evenly': Justify.SpaceEvenly, |
| 239 | } |
| 240 | this.yoga.setJustifyContent(map[justify]!) |
| 241 | } |
| 242 | |
| 243 | setDisplay(display: LayoutDisplay): void { |
| 244 | this.yoga.setDisplay(display === 'flex' ? Display.Flex : Display.None) |