ldr 0.29.1 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,8 @@ export interface PartsCdnIndex {
10
10
  archives: string[];
11
11
  bytes: number;
12
12
  colors: Record<string, string>;
13
+ /** Materials of the colours that aren't opaque plastic (alpha, luminance, finish), as a pack's `colorTable`; CDNs built before ldr 0.31 have none. */
14
+ colorTable?: Record<string, unknown>;
13
15
  parts: Record<string, [offset: number, length: number, archive: number, bodyTris?: number]>;
14
16
  }
15
17
  export interface LoadPartsOptions {
package/dist/spec.d.ts CHANGED
@@ -182,6 +182,8 @@ export interface Instance {
182
182
  };
183
183
  texPart?: string;
184
184
  texSource?: string;
185
+ colPart?: string;
186
+ colSource?: string;
185
187
  view?: StepView;
186
188
  }
187
189
  /** Smooth normals that respect LDraw semantics: faces sharing an edge are smoothed together unless the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ldr",
3
- "version": "0.29.1",
3
+ "version": "0.31.0",
4
4
  "description": "High-performance LEGO (LDraw) rendering for three.js: instanced parts packs, hidden stud/tube culling, low-detail studs, indexed edges, build steps.",
5
5
  "license": "MIT",
6
6
  "author": "Evan Bacon",