@selvajs/compute 3.1.0-beta.9 → 3.1.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.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/dist/chunk-FQKQISPG.cjs +2 -0
  3. package/dist/chunk-FQKQISPG.cjs.map +1 -0
  4. package/dist/chunk-H3FZW6OX.cjs +4 -0
  5. package/dist/chunk-H3FZW6OX.cjs.map +1 -0
  6. package/dist/chunk-N2WCSETE.js +120 -0
  7. package/dist/chunk-N2WCSETE.js.map +1 -0
  8. package/dist/chunk-RFE763NG.cjs +120 -0
  9. package/dist/chunk-RFE763NG.cjs.map +1 -0
  10. package/dist/chunk-S3VUIIRE.js +2 -0
  11. package/dist/chunk-S3VUIIRE.js.map +1 -0
  12. package/dist/chunk-Y3M7P3BW.js +4 -0
  13. package/dist/chunk-Y3M7P3BW.js.map +1 -0
  14. package/dist/core.cjs +1 -1
  15. package/dist/core.cjs.map +1 -1
  16. package/dist/core.d.cts +22 -1
  17. package/dist/core.d.ts +22 -1
  18. package/dist/core.js +1 -1
  19. package/dist/grasshopper.cjs +1 -1
  20. package/dist/grasshopper.cjs.map +1 -1
  21. package/dist/grasshopper.d.cts +22 -2
  22. package/dist/grasshopper.d.ts +22 -2
  23. package/dist/grasshopper.js +1 -1
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +1 -1
  29. package/dist/{types-Dtok-mVq.d.ts → types-4FMvnx2j.d.ts} +14 -1
  30. package/dist/{types-C8XWc4Ab.d.cts → types-BpOl6U02.d.cts} +14 -1
  31. package/dist/visualization-E6BTQZCA.cjs +2 -0
  32. package/dist/visualization-E6BTQZCA.cjs.map +1 -0
  33. package/dist/visualization-HDBKPJGQ.js +2 -0
  34. package/dist/visualization.cjs +1 -1
  35. package/dist/visualization.cjs.map +1 -1
  36. package/dist/visualization.d.cts +331 -29
  37. package/dist/visualization.d.ts +331 -29
  38. package/dist/visualization.js +1 -1
  39. package/package.json +55 -34
  40. package/dist/chunk-CUQQ3ZBV.cjs +0 -4
  41. package/dist/chunk-CUQQ3ZBV.cjs.map +0 -1
  42. package/dist/chunk-GFY3L653.cjs +0 -62
  43. package/dist/chunk-GFY3L653.cjs.map +0 -1
  44. package/dist/chunk-MJOXUCDH.js +0 -62
  45. package/dist/chunk-MJOXUCDH.js.map +0 -1
  46. package/dist/chunk-WPB2LKCD.js +0 -4
  47. package/dist/chunk-WPB2LKCD.js.map +0 -1
  48. package/dist/chunk-WWD655BZ.cjs +0 -2
  49. package/dist/chunk-WWD655BZ.cjs.map +0 -1
  50. package/dist/chunk-YREXY7GT.js +0 -2
  51. package/dist/chunk-YREXY7GT.js.map +0 -1
  52. package/dist/visualization-4PVR5P7N.js +0 -2
  53. package/dist/visualization-LS3Z7Q3N.cjs +0 -2
  54. package/dist/visualization-LS3Z7Q3N.cjs.map +0 -1
  55. /package/dist/{visualization-4PVR5P7N.js.map → visualization-HDBKPJGQ.js.map} +0 -0
@@ -2,8 +2,8 @@ import { R as RhinoComputeError, C as ComputeServerStats, F as FileBaseInfo } fr
2
2
  export { b as FileData, P as ProcessedFile, d as downloadFileData, e as extractFilesFromComputeResponse } from './handle-files-BISo_wob.js';
3
3
  import { R as RetryPolicy, C as ComputeConfig } from './types-BGhtYxZ-.js';
4
4
  export { a as RhinoModelUnit } from './types-BGhtYxZ-.js';
5
- import { f as GrasshopperComputeResponse, a as DataTree, e as GrasshopperComputeConfig, g as GrasshopperParsedIO, h as GrasshopperParsedIORaw, m as MeshExtractionOptions, k as InputParamSchema, j as InputParam, b as DataTreeDefault, c as DataTreePath } from './types-Dtok-mVq.js';
6
- export { B as BooleanInputType, D as DataItem, d as DefaultValue, F as FileInputType, G as GeometryInputType, i as GrasshopperRequestSchema, I as InnerTreeData, N as NumericInputType, O as OutputParamSchema, l as OutputType, T as TextInputType, V as ValueListInputType } from './types-Dtok-mVq.js';
5
+ import { f as GrasshopperComputeResponse, a as DataTree, e as GrasshopperComputeConfig, g as GrasshopperParsedIO, h as GrasshopperParsedIORaw, m as MeshExtractionOptions, k as InputParamSchema, j as InputParam, b as DataTreeDefault, c as DataTreePath } from './types-4FMvnx2j.js';
6
+ export { B as BooleanInputType, D as DataItem, d as DefaultValue, F as FileInputType, G as GeometryInputType, i as GrasshopperRequestSchema, I as InnerTreeData, N as NumericInputType, O as OutputParamSchema, l as OutputType, T as TextInputType, V as ValueListInputType } from './types-4FMvnx2j.js';
7
7
  import * as THREE from 'three';
8
8
  import 'rhino3dm';
9
9
 
@@ -65,6 +65,16 @@ type SchedulerMode = 'latest-wins' | 'queue' | 'parallel';
65
65
  interface CacheOptions {
66
66
  /** Maximum entries kept in the LRU. Default: 50. */
67
67
  maxEntries?: number;
68
+ /**
69
+ * Total byte budget for retained responses, evicted LRU alongside
70
+ * `maxEntries` (both bounds apply). Responses range KB→100s of MB, so an
71
+ * entry count alone can't bound heap. Sizing uses the response's wire size
72
+ * (JSON text length, recorded at the fetch boundary — no re-serialization);
73
+ * a response without that hint (custom executor) is sized by a one-off
74
+ * `JSON.stringify`. A single response larger than the whole budget is
75
+ * served but never retained. `0` = no byte bound (count-only, default).
76
+ */
77
+ maxBytes?: number;
68
78
  /** Time-to-live in ms. Set to `0` for no expiry (default). */
69
79
  ttlMs?: number;
70
80
  /**
@@ -211,9 +221,12 @@ declare class SolveScheduler {
211
221
  private readonly retry;
212
222
  private readonly cacheEnabled;
213
223
  private readonly cacheMax;
224
+ private readonly cacheMaxBytes;
214
225
  private readonly cacheTtl;
215
226
  private readonly cacheErroredSolves;
216
227
  private readonly cache;
228
+ /** Sum of `sizeBytes` across retained cache entries. */
229
+ private cacheBytes;
217
230
  /** Optional cache-key-aware executor and whether server-def-cache reuse is on. */
218
231
  private readonly cacheKeyExecutor?;
219
232
  private readonly reuseServerDefinitionCache;
@@ -341,7 +354,14 @@ declare class SolveScheduler {
341
354
  private rejectAsAborted;
342
355
  private readCache;
343
356
  private writeCache;
357
+ /** Remove one cache entry and release its bytes from the running total. */
358
+ private dropCacheEntry;
344
359
  clearCache(): void;
360
+ /** Observability snapshot of the response cache (entries + retained bytes). */
361
+ cacheStats(): {
362
+ entries: number;
363
+ bytes: number;
364
+ };
345
365
  dispose(): void;
346
366
  private runHook;
347
367
  }
@@ -1,2 +1,2 @@
1
- import{a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p}from"./chunk-YREXY7GT.js";import{d as a,s as b,t as c}from"./chunk-WPB2LKCD.js";export{j as GrasshopperClient,k as GrasshopperResponseProcessor,a as RhinoComputeError,i as SolveScheduler,p as TreeBuilder,c as downloadFileData,b as extractFilesFromComputeResponse,n as fetchDefinitionIO,o as fetchParsedDefinitionIO,h as hashDefinition,g as hashSolveInput,d as isDefinitionRef,l as processInput,m as processInputs,e as solveGrasshopperDefinition,f as stableStringify};
1
+ import{a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p}from"./chunk-S3VUIIRE.js";import{d as a,u as b,v as c}from"./chunk-Y3M7P3BW.js";export{j as GrasshopperClient,k as GrasshopperResponseProcessor,a as RhinoComputeError,i as SolveScheduler,p as TreeBuilder,c as downloadFileData,b as extractFilesFromComputeResponse,n as fetchDefinitionIO,o as fetchParsedDefinitionIO,h as hashDefinition,g as hashSolveInput,d as isDefinitionRef,l as processInput,m as processInputs,e as solveGrasshopperDefinition,f as stableStringify};
2
2
  //# sourceMappingURL=grasshopper.js.map
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWWD655BZcjs = require('./chunk-WWD655BZ.cjs');var _chunkCUQQ3ZBVcjs = require('./chunk-CUQQ3ZBV.cjs');exports.ComputeServerStats = _chunkCUQQ3ZBVcjs.n; exports.ErrorCodes = _chunkCUQQ3ZBVcjs.c; exports.GrasshopperClient = _chunkWWD655BZcjs.g; exports.GrasshopperResponseProcessor = _chunkWWD655BZcjs.h; exports.RhinoComputeError = _chunkCUQQ3ZBVcjs.d; exports.SolveScheduler = _chunkWWD655BZcjs.f; exports.TreeBuilder = _chunkWWD655BZcjs.m; exports.camelcaseKeys = _chunkCUQQ3ZBVcjs.p; exports.downloadFileData = _chunkCUQQ3ZBVcjs.t; exports.enableDebugLogging = _chunkCUQQ3ZBVcjs.g; exports.extractFilesFromComputeResponse = _chunkCUQQ3ZBVcjs.s; exports.fetchDefinitionIO = _chunkWWD655BZcjs.k; exports.fetchParsedDefinitionIO = _chunkWWD655BZcjs.l; exports.fetchRhinoCompute = _chunkCUQQ3ZBVcjs.l; exports.getLogger = _chunkCUQQ3ZBVcjs.e; exports.hashDefinition = _chunkWWD655BZcjs.e; exports.hashSolveInput = _chunkWWD655BZcjs.d; exports.isDefinitionRef = _chunkWWD655BZcjs.a; exports.processInput = _chunkWWD655BZcjs.i; exports.processInputs = _chunkWWD655BZcjs.j; exports.setLogger = _chunkCUQQ3ZBVcjs.f; exports.solveGrasshopperDefinition = _chunkWWD655BZcjs.b; exports.stableStringify = _chunkWWD655BZcjs.c; exports.toCamelCase = _chunkCUQQ3ZBVcjs.o;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFQKQISPGcjs = require('./chunk-FQKQISPG.cjs');var _chunkH3FZW6OXcjs = require('./chunk-H3FZW6OX.cjs');exports.ComputeServerStats = _chunkH3FZW6OXcjs.p; exports.ErrorCodes = _chunkH3FZW6OXcjs.c; exports.GrasshopperClient = _chunkFQKQISPGcjs.g; exports.GrasshopperResponseProcessor = _chunkFQKQISPGcjs.h; exports.RhinoComputeError = _chunkH3FZW6OXcjs.d; exports.SolveScheduler = _chunkFQKQISPGcjs.f; exports.TreeBuilder = _chunkFQKQISPGcjs.m; exports.camelcaseKeys = _chunkH3FZW6OXcjs.r; exports.downloadFileData = _chunkH3FZW6OXcjs.v; exports.enableDebugLogging = _chunkH3FZW6OXcjs.g; exports.extractFilesFromComputeResponse = _chunkH3FZW6OXcjs.u; exports.fetchDefinitionIO = _chunkFQKQISPGcjs.k; exports.fetchParsedDefinitionIO = _chunkFQKQISPGcjs.l; exports.fetchRhinoCompute = _chunkH3FZW6OXcjs.n; exports.getLogger = _chunkH3FZW6OXcjs.e; exports.getResponseWireSize = _chunkH3FZW6OXcjs.m; exports.hashDefinition = _chunkFQKQISPGcjs.e; exports.hashSolveInput = _chunkFQKQISPGcjs.d; exports.isDefinitionRef = _chunkFQKQISPGcjs.a; exports.processInput = _chunkFQKQISPGcjs.i; exports.processInputs = _chunkFQKQISPGcjs.j; exports.setLogger = _chunkH3FZW6OXcjs.f; exports.setResponseWireSize = _chunkH3FZW6OXcjs.l; exports.solveGrasshopperDefinition = _chunkFQKQISPGcjs.b; exports.stableStringify = _chunkFQKQISPGcjs.c; exports.toCamelCase = _chunkH3FZW6OXcjs.q;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/selva-compute/selva-compute/dist/index.cjs"],"names":[],"mappings":"AAAA,iIAA4H,wDAAqG,moCAA4hB","file":"/home/runner/work/selva-compute/selva-compute/dist/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/selva/selva/packages/compute/dist/index.cjs"],"names":[],"mappings":"AAAA,iIAA4H,wDAAmH,yuCAA8kB","file":"/home/runner/work/selva/selva/packages/compute/dist/index.cjs"}
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- export { Logger, camelcaseKeys, enableDebugLogging, fetchRhinoCompute, getLogger, setLogger, toCamelCase } from './core.cjs';
1
+ export { Logger, camelcaseKeys, enableDebugLogging, fetchRhinoCompute, getLogger, getResponseWireSize, setLogger, setResponseWireSize, toCamelCase } from './core.cjs';
2
2
  export { C as ComputeServerStats, E as ErrorCode, a as ErrorCodes, F as FileBaseInfo, b as FileData, P as ProcessedFile, R as RhinoComputeError, d as downloadFileData, e as extractFilesFromComputeResponse } from './handle-files-BISo_wob.cjs';
3
3
  export { C as ComputeConfig, R as RetryPolicy, a as RhinoModelUnit, S as ServerTiming } from './types-BGhtYxZ-.cjs';
4
4
  export { CacheOptions, DataTreeValue, DefinitionRef, GetValuesOptions, GetValuesResult, GrasshopperClient, GrasshopperResponseProcessor, ParsedContext, SchedulerMode, SolveContext, SolveDefinition, SolveOptions, SolveResult, SolveScheduler, SolveSchedulerOptions, TreeBuilder, fetchDefinitionIO, fetchParsedDefinitionIO, hashDefinition, hashSolveInput, isDefinitionRef, processInput, processInputs, solveGrasshopperDefinition, stableStringify } from './grasshopper.cjs';
5
- export { B as BooleanInputType, D as DataItem, a as DataTree, b as DataTreeDefault, c as DataTreePath, d as DefaultValue, F as FileInputType, G as GeometryInputType, e as GrasshopperComputeConfig, f as GrasshopperComputeResponse, g as GrasshopperParsedIO, h as GrasshopperParsedIORaw, i as GrasshopperRequestSchema, I as InnerTreeData, j as InputParam, k as InputParamSchema, N as NumericInputType, O as OutputParamSchema, l as OutputType, T as TextInputType, V as ValueListInputType } from './types-C8XWc4Ab.cjs';
5
+ export { B as BooleanInputType, D as DataItem, a as DataTree, b as DataTreeDefault, c as DataTreePath, d as DefaultValue, F as FileInputType, G as GeometryInputType, e as GrasshopperComputeConfig, f as GrasshopperComputeResponse, g as GrasshopperParsedIO, h as GrasshopperParsedIORaw, i as GrasshopperRequestSchema, I as InnerTreeData, j as InputParam, k as InputParamSchema, N as NumericInputType, O as OutputParamSchema, l as OutputType, T as TextInputType, V as ValueListInputType } from './types-BpOl6U02.cjs';
6
6
  import 'three';
7
7
  import 'rhino3dm';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { Logger, camelcaseKeys, enableDebugLogging, fetchRhinoCompute, getLogger, setLogger, toCamelCase } from './core.js';
1
+ export { Logger, camelcaseKeys, enableDebugLogging, fetchRhinoCompute, getLogger, getResponseWireSize, setLogger, setResponseWireSize, toCamelCase } from './core.js';
2
2
  export { C as ComputeServerStats, E as ErrorCode, a as ErrorCodes, F as FileBaseInfo, b as FileData, P as ProcessedFile, R as RhinoComputeError, d as downloadFileData, e as extractFilesFromComputeResponse } from './handle-files-BISo_wob.js';
3
3
  export { C as ComputeConfig, R as RetryPolicy, a as RhinoModelUnit, S as ServerTiming } from './types-BGhtYxZ-.js';
4
4
  export { CacheOptions, DataTreeValue, DefinitionRef, GetValuesOptions, GetValuesResult, GrasshopperClient, GrasshopperResponseProcessor, ParsedContext, SchedulerMode, SolveContext, SolveDefinition, SolveOptions, SolveResult, SolveScheduler, SolveSchedulerOptions, TreeBuilder, fetchDefinitionIO, fetchParsedDefinitionIO, hashDefinition, hashSolveInput, isDefinitionRef, processInput, processInputs, solveGrasshopperDefinition, stableStringify } from './grasshopper.js';
5
- export { B as BooleanInputType, D as DataItem, a as DataTree, b as DataTreeDefault, c as DataTreePath, d as DefaultValue, F as FileInputType, G as GeometryInputType, e as GrasshopperComputeConfig, f as GrasshopperComputeResponse, g as GrasshopperParsedIO, h as GrasshopperParsedIORaw, i as GrasshopperRequestSchema, I as InnerTreeData, j as InputParam, k as InputParamSchema, N as NumericInputType, O as OutputParamSchema, l as OutputType, T as TextInputType, V as ValueListInputType } from './types-Dtok-mVq.js';
5
+ export { B as BooleanInputType, D as DataItem, a as DataTree, b as DataTreeDefault, c as DataTreePath, d as DefaultValue, F as FileInputType, G as GeometryInputType, e as GrasshopperComputeConfig, f as GrasshopperComputeResponse, g as GrasshopperParsedIO, h as GrasshopperParsedIORaw, i as GrasshopperRequestSchema, I as InnerTreeData, j as InputParam, k as InputParamSchema, N as NumericInputType, O as OutputParamSchema, l as OutputType, T as TextInputType, V as ValueListInputType } from './types-4FMvnx2j.js';
6
6
  import 'three';
7
7
  import 'rhino3dm';
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q,j as s,k as u,l as v,m as w}from"./chunk-YREXY7GT.js";import{c as o,d as r,e,f,g as m,l as p,n as t,o as x,p as a,s as b,t as c}from"./chunk-WPB2LKCD.js";export{t as ComputeServerStats,o as ErrorCodes,l as GrasshopperClient,n as GrasshopperResponseProcessor,r as RhinoComputeError,k as SolveScheduler,w as TreeBuilder,a as camelcaseKeys,c as downloadFileData,m as enableDebugLogging,b as extractFilesFromComputeResponse,u as fetchDefinitionIO,v as fetchParsedDefinitionIO,p as fetchRhinoCompute,e as getLogger,j as hashDefinition,i as hashSolveInput,d as isDefinitionRef,q as processInput,s as processInputs,f as setLogger,g as solveGrasshopperDefinition,h as stableStringify,x as toCamelCase};
1
+ import{a as h,b as i,c as j,d as k,e as l,f as n,g as q,h as s,i as u,j as v,k as w,l as y,m as z}from"./chunk-S3VUIIRE.js";import{c as o,d as r,e,f,g as m,l as p,m as t,n as x,p as a,q as b,r as c,u as d,v as g}from"./chunk-Y3M7P3BW.js";export{a as ComputeServerStats,o as ErrorCodes,q as GrasshopperClient,s as GrasshopperResponseProcessor,r as RhinoComputeError,n as SolveScheduler,z as TreeBuilder,c as camelcaseKeys,g as downloadFileData,m as enableDebugLogging,d as extractFilesFromComputeResponse,w as fetchDefinitionIO,y as fetchParsedDefinitionIO,x as fetchRhinoCompute,e as getLogger,t as getResponseWireSize,l as hashDefinition,k as hashSolveInput,h as isDefinitionRef,u as processInput,v as processInputs,f as setLogger,p as setResponseWireSize,i as solveGrasshopperDefinition,j as stableStringify,b as toCamelCase};
2
2
  //# sourceMappingURL=index.js.map
@@ -529,8 +529,21 @@ interface MeshExtractionOptions {
529
529
  parsing?: MeshBatchParsingOptions;
530
530
  /** Apply scaling based on model units. Defaults to true. */
531
531
  allowScaling?: boolean;
532
- /** Apply automatic ground offset positioning (Z=0). Defaults to true. */
532
+ /**
533
+ * Drop geometry so its lowest point sits on the ground plane. **Defaults to `false`** — content
534
+ * renders at its true Rhino coordinates, so the viewer matches the Grasshopper definition.
535
+ *
536
+ * Set `true` to always seat the model on the grid regardless of where it sits in Rhino. Note
537
+ * this shifts objects, so anything read back out of the scene (bounds, measured or picked
538
+ * positions) no longer corresponds to the model's Rhino coordinates.
539
+ */
533
540
  allowAutoPosition?: boolean;
541
+ /**
542
+ * The scene's up axis, used by the `allowAutoPosition` grounding to decide which component to
543
+ * drop to zero. Defaults to `'z'` — the frame Rhino geometry arrives in. Only set this if the
544
+ * viewer is configured with a non-default `sceneUp`.
545
+ */
546
+ groundAxis?: 'x' | 'y' | 'z';
534
547
  /**
535
548
  * rhino3dm instance for decoding curve display items. selva-compute does not own the WASM
536
549
  * instance; the host threads it in. Omit to skip curves (points still render).
@@ -529,8 +529,21 @@ interface MeshExtractionOptions {
529
529
  parsing?: MeshBatchParsingOptions;
530
530
  /** Apply scaling based on model units. Defaults to true. */
531
531
  allowScaling?: boolean;
532
- /** Apply automatic ground offset positioning (Z=0). Defaults to true. */
532
+ /**
533
+ * Drop geometry so its lowest point sits on the ground plane. **Defaults to `false`** — content
534
+ * renders at its true Rhino coordinates, so the viewer matches the Grasshopper definition.
535
+ *
536
+ * Set `true` to always seat the model on the grid regardless of where it sits in Rhino. Note
537
+ * this shifts objects, so anything read back out of the scene (bounds, measured or picked
538
+ * positions) no longer corresponds to the model's Rhino coordinates.
539
+ */
533
540
  allowAutoPosition?: boolean;
541
+ /**
542
+ * The scene's up axis, used by the `allowAutoPosition` grounding to decide which component to
543
+ * drop to zero. Defaults to `'z'` — the frame Rhino geometry arrives in. Only set this if the
544
+ * viewer is configured with a non-default `sceneUp`.
545
+ */
546
+ groundAxis?: 'x' | 'y' | 'z';
534
547
  /**
535
548
  * rhino3dm instance for decoding curve display items. selva-compute does not own the WASM
536
549
  * instance; the host threads it in. Omit to skip curves (points still render).
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRFE763NGcjs = require('./chunk-RFE763NG.cjs');require('./chunk-H3FZW6OX.cjs');exports.BINARY_MESH_MAGIC = _chunkRFE763NGcjs.F; exports.BINARY_MESH_VERSION = _chunkRFE763NGcjs.H; exports.COMPRESSED_MESH_MAGIC = _chunkRFE763NGcjs.G; exports.EDGES_SKIPPED_TRIANGLE_CAP = _chunkRFE763NGcjs.o; exports.EDGE_USERDATA_KIND = _chunkRFE763NGcjs.n; exports.FLAG_DELTA_ENCODED = _chunkRFE763NGcjs.L; exports.FLAG_FLOAT32 = _chunkRFE763NGcjs.J; exports.FLAG_HAS_UVS = _chunkRFE763NGcjs.M; exports.FLAG_HAS_VERTEX_COLORS = _chunkRFE763NGcjs.N; exports.FLAG_UINT16_INDICES = _chunkRFE763NGcjs.K; exports.LOOKS = _chunkRFE763NGcjs.D; exports.MIN_SUPPORTED_VERSION = _chunkRFE763NGcjs.I; exports.Materials = _chunkRFE763NGcjs.a; exports.SCALE_FACTORS = _chunkRFE763NGcjs.U; exports.TEXTURE_CACHE_MAX_ENTRIES = _chunkRFE763NGcjs.y; exports.UV_FORMAT_FLOAT32 = _chunkRFE763NGcjs.P; exports.UV_FORMAT_UINT16 = _chunkRFE763NGcjs.O; exports.addEdges = _chunkRFE763NGcjs.q; exports.addEdgesAsync = _chunkRFE763NGcjs.r; exports.applyOffset = _chunkRFE763NGcjs.i; exports.buildUpBasis = _chunkRFE763NGcjs.b; exports.clearTextureCache = _chunkRFE763NGcjs.A; exports.computeCombinedBoundingBox = _chunkRFE763NGcjs.j; exports.createCameraController = _chunkRFE763NGcjs.k; exports.createGrid = _chunkRFE763NGcjs.l; exports.createLabelLayer = _chunkRFE763NGcjs.v; exports.createMeasureTool = _chunkRFE763NGcjs.x; exports.createRenderPipeline = _chunkRFE763NGcjs.u; exports.createViewGizmo = _chunkRFE763NGcjs.m; exports.environmentRotationFor = _chunkRFE763NGcjs.e; exports.getThreeMeshesFromComputeResponse = _chunkRFE763NGcjs.V; exports.initThree = _chunkRFE763NGcjs.C; exports.isEdgeOverlay = _chunkRFE763NGcjs.p; exports.isoOffset = _chunkRFE763NGcjs.c; exports.materialAppearanceForLook = _chunkRFE763NGcjs.B; exports.parseBinaryMeshBatch = _chunkRFE763NGcjs.Q; exports.parseColor = _chunkRFE763NGcjs.h; exports.parseDisplayItems = _chunkRFE763NGcjs.E; exports.parseMeshBatch = _chunkRFE763NGcjs.R; exports.parseMeshBatchBlob = _chunkRFE763NGcjs.T; exports.parseMeshBatchObject = _chunkRFE763NGcjs.S; exports.removeEdges = _chunkRFE763NGcjs.s; exports.setTextureAnisotropy = _chunkRFE763NGcjs.z; exports.snapToVertex = _chunkRFE763NGcjs.w; exports.sunOffset = _chunkRFE763NGcjs.d; exports.upToAxis = _chunkRFE763NGcjs.f; exports.updateScene = _chunkRFE763NGcjs.g;
2
+ //# sourceMappingURL=visualization-E6BTQZCA.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/selva/selva/packages/compute/dist/visualization-E6BTQZCA.cjs"],"names":[],"mappings":"AAAA,iIAA0W,gCAA6B,qtEAAwhC","file":"/home/runner/work/selva/selva/packages/compute/dist/visualization-E6BTQZCA.cjs"}
@@ -0,0 +1,2 @@
1
+ import{A as j,B as S,C as I,D as L,E as R,F as D,G as B,H as G,I as u,J as P,K as F,L as b,M as N,N as U,O as V,P as v,Q as H,R as w,S as z,T as k,U as K,V as X,a as e,b as r,c as o,d as t,e as s,f as a,g as p,h as i,i as n,j as m,k as l,l as f,m as y,n as x,o as E,p as d,q as C,r as h,s as M,u as _,v as A,w as O,x as c,y as g,z as T}from"./chunk-N2WCSETE.js";import"./chunk-Y3M7P3BW.js";export{D as BINARY_MESH_MAGIC,G as BINARY_MESH_VERSION,B as COMPRESSED_MESH_MAGIC,E as EDGES_SKIPPED_TRIANGLE_CAP,x as EDGE_USERDATA_KIND,b as FLAG_DELTA_ENCODED,P as FLAG_FLOAT32,N as FLAG_HAS_UVS,U as FLAG_HAS_VERTEX_COLORS,F as FLAG_UINT16_INDICES,L as LOOKS,u as MIN_SUPPORTED_VERSION,e as Materials,K as SCALE_FACTORS,g as TEXTURE_CACHE_MAX_ENTRIES,v as UV_FORMAT_FLOAT32,V as UV_FORMAT_UINT16,C as addEdges,h as addEdgesAsync,n as applyOffset,r as buildUpBasis,j as clearTextureCache,m as computeCombinedBoundingBox,l as createCameraController,f as createGrid,A as createLabelLayer,c as createMeasureTool,_ as createRenderPipeline,y as createViewGizmo,s as environmentRotationFor,X as getThreeMeshesFromComputeResponse,I as initThree,d as isEdgeOverlay,o as isoOffset,S as materialAppearanceForLook,H as parseBinaryMeshBatch,i as parseColor,R as parseDisplayItems,w as parseMeshBatch,k as parseMeshBatchBlob,z as parseMeshBatchObject,M as removeEdges,T as setTextureAnisotropy,O as snapToVertex,t as sunOffset,a as upToAxis,p as updateScene};
2
+ //# sourceMappingURL=visualization-HDBKPJGQ.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGFY3L653cjs = require('./chunk-GFY3L653.cjs');require('./chunk-CUQQ3ZBV.cjs');exports.EDGE_USERDATA_KIND = _chunkGFY3L653cjs.i; exports.LOOKS = _chunkGFY3L653cjs.v; exports.Materials = _chunkGFY3L653cjs.a; exports.SCALE_FACTORS = _chunkGFY3L653cjs.M; exports.addEdges = _chunkGFY3L653cjs.j; exports.applyOffset = _chunkGFY3L653cjs.d; exports.computeCombinedBoundingBox = _chunkGFY3L653cjs.e; exports.createCameraController = _chunkGFY3L653cjs.f; exports.createGrid = _chunkGFY3L653cjs.g; exports.createLabelLayer = _chunkGFY3L653cjs.n; exports.createMeasureTool = _chunkGFY3L653cjs.p; exports.createRenderPipeline = _chunkGFY3L653cjs.m; exports.createViewGizmo = _chunkGFY3L653cjs.h; exports.getThreeMeshesFromComputeResponse = _chunkGFY3L653cjs.N; exports.initThree = _chunkGFY3L653cjs.u; exports.isEdgeOverlay = _chunkGFY3L653cjs.k; exports.parseColor = _chunkGFY3L653cjs.c; exports.parseDisplayItems = _chunkGFY3L653cjs.w; exports.parseMeshBatchBlob = _chunkGFY3L653cjs.L; exports.parseMeshBatchObject = _chunkGFY3L653cjs.K; exports.removeEdges = _chunkGFY3L653cjs.l; exports.snapToVertex = _chunkGFY3L653cjs.o; exports.updateScene = _chunkGFY3L653cjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRFE763NGcjs = require('./chunk-RFE763NG.cjs');require('./chunk-H3FZW6OX.cjs');exports.EDGES_SKIPPED_TRIANGLE_CAP = _chunkRFE763NGcjs.o; exports.EDGE_USERDATA_KIND = _chunkRFE763NGcjs.n; exports.EdgeDetectionPass = _chunkRFE763NGcjs.t; exports.LOOKS = _chunkRFE763NGcjs.D; exports.Materials = _chunkRFE763NGcjs.a; exports.SCALE_FACTORS = _chunkRFE763NGcjs.U; exports.addEdges = _chunkRFE763NGcjs.q; exports.addEdgesAsync = _chunkRFE763NGcjs.r; exports.applyOffset = _chunkRFE763NGcjs.i; exports.buildUpBasis = _chunkRFE763NGcjs.b; exports.computeCombinedBoundingBox = _chunkRFE763NGcjs.j; exports.createCameraController = _chunkRFE763NGcjs.k; exports.createGrid = _chunkRFE763NGcjs.l; exports.createLabelLayer = _chunkRFE763NGcjs.v; exports.createMeasureTool = _chunkRFE763NGcjs.x; exports.createRenderPipeline = _chunkRFE763NGcjs.u; exports.createViewGizmo = _chunkRFE763NGcjs.m; exports.environmentRotationFor = _chunkRFE763NGcjs.e; exports.getThreeMeshesFromComputeResponse = _chunkRFE763NGcjs.V; exports.initThree = _chunkRFE763NGcjs.C; exports.isEdgeOverlay = _chunkRFE763NGcjs.p; exports.isoOffset = _chunkRFE763NGcjs.c; exports.parseColor = _chunkRFE763NGcjs.h; exports.parseDisplayItems = _chunkRFE763NGcjs.E; exports.parseMeshBatchBlob = _chunkRFE763NGcjs.T; exports.parseMeshBatchObject = _chunkRFE763NGcjs.S; exports.removeEdges = _chunkRFE763NGcjs.s; exports.snapToVertex = _chunkRFE763NGcjs.w; exports.sunOffset = _chunkRFE763NGcjs.d; exports.upToAxis = _chunkRFE763NGcjs.f; exports.updateScene = _chunkRFE763NGcjs.g;
2
2
  //# sourceMappingURL=visualization.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/selva-compute/selva-compute/dist/visualization.cjs"],"names":[],"mappings":"AAAA,iIAAkM,gCAA6B,ujCAA0e","file":"/home/runner/work/selva-compute/selva-compute/dist/visualization.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/selva/selva/packages/compute/dist/visualization.cjs"],"names":[],"mappings":"AAAA,iIAAqP,gCAA6B,26CAA8oB","file":"/home/runner/work/selva/selva/packages/compute/dist/visualization.cjs"}