ItemSpec ​

Contract 2.0.0 · package sha256 a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e · generated from configurator-runtime.d.ts by services/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.

Type · import type { ItemSpec } from '@holostep-configurators/runtime-client/contract'; · stable · since 2.0.0 · section 7. Collections and shapes

One collection item: ItemBase plus one kind.

Inherited from ItemBase: key, parent, name, at, tags, meta, visible, shadows, pickable.

Declaration ​

ts
export type ItemSpec = ItemBase & ({
  kind: 'group';
} | {
  kind: 'mesh';
  shape: Shape;
  material?: MaterialInput;
} | {
  kind: 'instances';
  shape: Shape;
  material?: MaterialInput;
  poses: readonly PoseInput[];
} | {
  kind: 'lines';
  lines: LinesSpec;
} | {
  kind: 'label';
  label: LabelSpec;
} | {
  kind: 'light';
  light: LightSpec;
} | {
  kind: 'model';
  url: string;
});

Generic-API test (spec 3.1) ​

Rule Result
1. Neutral name pass: ItemSpec names no product
2. A precedent pass: Babylon.js MeshBuilder.ExtrudeShape (row G44); glTF EXT_mesh_gpu_instancing (row K6); Unity Graphics.DrawMeshInstanced (row K6)
3. Two apps, or labs pass: 3 apps (ledger: app-378d190f1b, app-4f16d2f6da, app-510d750508)
4. The cheaper fix first decided per need in Appendix B: rows G44, K6 at tier stable (a member only where no rule, data, asset or app code serves the need)