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.
- package/README.md +18 -16
- package/dist/cli.js +107 -16
- package/dist/cull.d.ts +2 -1
- package/dist/index.js +71 -25
- package/dist/load-worker.gen.d.ts +1 -1
- package/dist/model.d.ts +17 -0
- package/dist/node/index.js +142 -33
- package/dist/node/library.d.ts +2 -1
- package/dist/node/resolver.d.ts +12 -1
- package/dist/parts-cdn.d.ts +2 -0
- package/dist/spec.d.ts +2 -0
- package/package.json +1 -1
package/dist/parts-cdn.d.ts
CHANGED
|
@@ -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.
|
|
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",
|