Outline2D ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated fromconfigurator-runtime.d.tsbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
Type · import type { Outline2D } from '@holostep-configurators/runtime-client/contract'; · stable · since 2.0.0 · section 7. Collections and shapes
Outline segments in 2D. A point starts or continues the outline; a curve goes from the previous
point to to, and the next entry continues from where an entry ends. The first entry is a point
or an arc, which then starts the outline at its start point; a quad or cubic first is
invalid input (HoloInputError 'invalid-input', spec section 3.4).
export type Outline2D = ReadonlyArray<Point2 | {
quad: {
control: Point2;
to: Point2;
};
} | {
cubic: {
control1: Point2;
control2: Point2;
to: Point2;
};
} | {
arc: {
center: Point2;
radius: number;
startDeg: number;
endDeg: number;
};
}>;
| Rule | Result |
|---|---|
| 1. Neutral name | pass: Outline2D names no product |
| 2. A precedent | pass: Babylon.js MeshBuilder.CreatePolygon (XZ plane) (row G15); Babylon.js MeshBuilder.ExtrudeShape (row K2); Babylon.js MeshBuilder.CreateLathe (row K2); Babylon.js MeshBuilder.CreatePolygon (row K2) |
| 3. Two apps, or labs | pass: 8 apps (ledger: app-0c773a4ee3, app-378d190f1b, app-4f16d2f6da, app-510d750508, app-b362a81c85, app-ceb4eccc72, app-fc07850558, app-fc306ec3dc) |
| 4. The cheaper fix first | decided per need in Appendix B: rows G15, K2 at tier stable (a member only where no rule, data, asset or app code serves the need) |