Function
applyGapStyles
(node: LayoutNode, style: Styles)
Source from the content-addressed store, hash-verified
| 739 | } |
| 740 | |
| 741 | const applyGapStyles = (node: LayoutNode, style: Styles): void => { |
| 742 | if ('gap' in style) { |
| 743 | node.setGap(LayoutGutter.All, style.gap ?? 0) |
| 744 | } |
| 745 | |
| 746 | if ('columnGap' in style) { |
| 747 | node.setGap(LayoutGutter.Column, style.columnGap ?? 0) |
| 748 | } |
| 749 | |
| 750 | if ('rowGap' in style) { |
| 751 | node.setGap(LayoutGutter.Row, style.rowGap ?? 0) |
| 752 | } |
| 753 | } |
| 754 | |
| 755 | const styles = ( |
| 756 | node: LayoutNode, |
Tested by
no test coverage detected