MCPcopy Create free account
hub / github.com/microsoft/SandDance / createLayout

Method createLayout

packages/sanddance-specs/src/specBuilder.ts:405–415  ·  view source on GitHub ↗
(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}

Callers 1

iterateLayoutsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected