ldr 0.34.1 → 0.34.3

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/dist/cli.js CHANGED
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/cli.ts
3
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/cli.ts
4
4
  import fs4 from "node:fs";
5
5
  import zlib from "node:zlib";
6
6
 
7
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/node/build-pack.ts
7
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/node/build-pack.ts
8
8
  import fs3 from "node:fs";
9
9
  import path3 from "node:path";
10
10
 
11
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/node/resolver.ts
11
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/node/resolver.ts
12
12
  import fs from "node:fs";
13
13
  import path from "node:path";
14
14
 
15
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/spec.ts
15
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/spec.ts
16
16
  var norm = (s) => s.trim().toLowerCase().replace(/\\/g, "/").replace(/\/+/g, "/");
17
17
  var COLOUR_ID_RE = /^[A-Za-z][A-Za-z0-9_]*$/;
18
18
  var namedCodes = new Map;
@@ -848,7 +848,7 @@ function fileStepViews(f) {
848
848
  return out;
849
849
  }
850
850
 
851
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/model.ts
851
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/model.ts
852
852
  class ModelLimitError extends Error {
853
853
  limit;
854
854
  code = "ldr-model-limit";
@@ -1290,7 +1290,7 @@ function blendedColourHex(code) {
1290
1290
  return "#" + [0, 1, 2].map((k) => (a[k] + b[k] >> 1).toString(16).padStart(2, "0")).join("").toUpperCase();
1291
1291
  }
1292
1292
 
1293
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/node/resolver.ts
1293
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/node/resolver.ts
1294
1294
  var TOP_STUD_RE = /^(stud|studa|stud2|stud2a|stud6|stud6a|stud10|stud15|stud2s|stud2s2|stud-logo\d*|stud2-logo\d*)\.dat$/i;
1295
1295
  var UNDER_STUD_RE = /^(stud3|stud3a|stud4.*|stud12|stud16.*|stud18a)\.dat$/i;
1296
1296
  var norm2 = (ref) => ref.trim().replace(/\\/g, "/").toLowerCase();
@@ -1617,11 +1617,11 @@ function collectDeps(lib, refs) {
1617
1617
  return out;
1618
1618
  }
1619
1619
 
1620
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/node/compile.ts
1620
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/node/compile.ts
1621
1621
  import fs2 from "node:fs";
1622
1622
  import path2 from "node:path";
1623
1623
 
1624
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/node/lod.ts
1624
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/node/lod.ts
1625
1625
  import { MeshoptSimplifier, MeshoptEncoder } from "meshoptimizer";
1626
1626
  await Promise.all([MeshoptSimplifier.ready, MeshoptEncoder.ready]);
1627
1627
  function reorderMesh(P, N, C, I) {
@@ -1927,7 +1927,7 @@ function levelLines(P, I, E, err, always, tol = 0.01) {
1927
1927
  return out;
1928
1928
  }
1929
1929
 
1930
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/node/compile.ts
1930
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/node/compile.ts
1931
1931
  class BfcState {
1932
1932
  accum;
1933
1933
  ccw = true;
@@ -2871,7 +2871,7 @@ function encodePack(parts, studKinds, weld, extra, options = {}) {
2871
2871
  return Buffer.concat([head, ...chunks.map((c) => new Uint8Array(c.buffer, c.byteOffset, c.byteLength))]);
2872
2872
  }
2873
2873
 
2874
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/node/build-pack.ts
2874
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/node/build-pack.ts
2875
2875
  function packCompilerOpts(o) {
2876
2876
  return { studs: o.studs ?? "low", prims: o.primitives ?? "full", weld: o.weld ?? true, separateStuds: true, cond: !!o.cond, tex: !!o.textures, ...o.partWorkLimit ? { workLimit: o.partWorkLimit } : {} };
2877
2877
  }
@@ -2944,7 +2944,7 @@ function buildPack(o) {
2944
2944
  return { data: encodePack(parts, kinds, comp.opts.weld, extra, { texture, lod: o.lod !== false, reorder: !!o.reorder }), parts: parts.size, studKinds: kinds.size, missing: [...missing], ...warnings.length ? { warnings } : {} };
2945
2945
  }
2946
2946
 
2947
- // ../../../../../../../tmp/ldr-build-yF6ijm/src/cli.ts
2947
+ // ../../../../../../../tmp/ldr-build-ualdk5/src/cli.ts
2948
2948
  var HELP = `ldr pack — build a parts pack for the ldr three.js renderer
2949
2949
 
2950
2950
  Usage: