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

Method constructor

packages/sanddance-specs/src/layouts/stack.ts:40–59  ·  view source on GitHub ↗
(public props: StackProps & LayoutBuildProps)

Source from the content-addressed store, hash-verified

38 };
39
40 constructor(public props: StackProps & LayoutBuildProps) {
41 super(props);
42 const p = this.prefix = `stack_${this.id}`;
43 this.names = {
44 cube: `${p}_cube`,
45 globalDataName: `data_${p}_count`,
46 globalExtent: `${p}_global_extent`,
47 levelDataName: `data_${p}_level`,
48 count: `${p}_count`,
49 stack0: `${p}_stack0`,
50 stack1: `${p}_stack1`,
51 sequence: `data_${p}_sequence`,
52 sides: `${p}_sides`,
53 size: `${p}_size`,
54 squared: `${p}_squared`,
55 maxCount: `${p}_maxCount`,
56 maxLevels: `${p}_maxLevels`,
57 zScale: `${p}_zScale`,
58 };
59 }
60
61 public build(): InnerScope {
62 const { names, props } = this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected