Method
createLayout
(layoutPair: LayoutPair, buildProps: LayoutBuildProps)
Source from the content-addressed store, hash-verified
| 403 | } |
| 404 | |
| 405 | private createLayout(layoutPair: LayoutPair, buildProps: LayoutBuildProps) { |
| 406 | const { layoutType, props } = layoutPair; |
| 407 | const layoutBuildProps: LayoutProps & LayoutBuildProps = { |
| 408 | ...props, |
| 409 | ...buildProps, |
| 410 | }; |
| 411 | const layoutClass = layoutClasses[layoutType]; |
| 412 | const layout = new layoutClass(layoutBuildProps); |
| 413 | layout.id = buildProps.id; |
| 414 | return layout; |
| 415 | } |
| 416 | } |
Tested by
no test coverage detected