( node: SectionNode, settings: HTMLSettings, )
| 659 | }; |
| 660 | |
| 661 | const htmlSection = async ( |
| 662 | node: SectionNode, |
| 663 | settings: HTMLSettings, |
| 664 | ): Promise<string> => { |
| 665 | const childrenStr = await htmlWidgetGenerator(node.children, settings); |
| 666 | const builder = new HtmlDefaultBuilder(node, settings) |
| 667 | .size() |
| 668 | .position() |
| 669 | .applyFillsToStyle(node.fills, "background"); |
| 670 | |
| 671 | if (childrenStr) { |
| 672 | return `\n<div${builder.build()}>${indentString(childrenStr)}\n</div>`; |
| 673 | } else { |
| 674 | return `\n<div${builder.build()}></div>`; |
| 675 | } |
| 676 | }; |
| 677 | |
| 678 | const htmlLine = (node: LineNode, settings: HTMLSettings): string => { |
| 679 | const builder = new HtmlDefaultBuilder(node, settings) |
no test coverage detected