@selvajs/compute 3.1.0-beta.1 → 3.1.0-beta.11
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/LICENSE +21 -0
- package/dist/chunk-7XMD5YXP.cjs +62 -0
- package/dist/chunk-7XMD5YXP.cjs.map +1 -0
- package/dist/chunk-C7P43VZF.js +2 -0
- package/dist/chunk-C7P43VZF.js.map +1 -0
- package/dist/chunk-CUQQ3ZBV.cjs +4 -0
- package/dist/chunk-CUQQ3ZBV.cjs.map +1 -0
- package/dist/chunk-PX2YTSHJ.js +62 -0
- package/dist/chunk-PX2YTSHJ.js.map +1 -0
- package/dist/chunk-QZECCPT3.cjs +2 -0
- package/dist/chunk-QZECCPT3.cjs.map +1 -0
- package/dist/chunk-WPB2LKCD.js +4 -0
- package/dist/chunk-WPB2LKCD.js.map +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +40 -3
- package/dist/core.d.ts +40 -3
- package/dist/core.js +1 -1
- package/dist/grasshopper.cjs +1 -1
- package/dist/grasshopper.cjs.map +1 -1
- package/dist/grasshopper.d.cts +222 -32
- package/dist/grasshopper.d.ts +222 -32
- package/dist/grasshopper.js +1 -1
- package/dist/{handle-files-9pkEgDIp.d.ts → handle-files-BISo_wob.d.cts} +51 -67
- package/dist/{handle-files-9pkEgDIp.d.cts → handle-files-BISo_wob.d.ts} +51 -67
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/types-BGhtYxZ-.d.cts +45 -0
- package/dist/types-BGhtYxZ-.d.ts +45 -0
- package/dist/{types-DK2-skCK.d.cts → types-C8XWc4Ab.d.cts} +92 -67
- package/dist/{types-jb_K_a0s.d.ts → types-Dtok-mVq.d.ts} +92 -67
- package/dist/visualization-4RSUYQG2.cjs +2 -0
- package/dist/visualization-4RSUYQG2.cjs.map +1 -0
- package/dist/visualization-MOYO6MDN.js +2 -0
- package/dist/visualization.cjs +1 -1
- package/dist/visualization.cjs.map +1 -1
- package/dist/visualization.d.cts +200 -37
- package/dist/visualization.d.ts +200 -37
- package/dist/visualization.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-C2HJB4MH.js +0 -55
- package/dist/chunk-C2HJB4MH.js.map +0 -1
- package/dist/chunk-DRG5SLIP.cjs +0 -4
- package/dist/chunk-DRG5SLIP.cjs.map +0 -1
- package/dist/chunk-ESPPM542.js +0 -2
- package/dist/chunk-ESPPM542.js.map +0 -1
- package/dist/chunk-J3MFKB33.js +0 -4
- package/dist/chunk-J3MFKB33.js.map +0 -1
- package/dist/chunk-LP7LO5PR.cjs +0 -2
- package/dist/chunk-LP7LO5PR.cjs.map +0 -1
- package/dist/chunk-QZ573TYU.cjs +0 -55
- package/dist/chunk-QZ573TYU.cjs.map +0 -1
- package/dist/types-ChF690kY.d.cts +0 -88
- package/dist/types-ChF690kY.d.ts +0 -88
- package/dist/visualization-3E3Q76VG.cjs +0 -2
- package/dist/visualization-3E3Q76VG.cjs.map +0 -1
- package/dist/visualization-XBMHHG6L.js +0 -2
- /package/dist/{visualization-XBMHHG6L.js.map → visualization-MOYO6MDN.js.map} +0 -0
|
@@ -1,57 +1,44 @@
|
|
|
1
|
-
import { C as ComputeConfig, a as RhinoModelUnit } from './types-
|
|
1
|
+
import { C as ComputeConfig, a as RhinoModelUnit } from './types-BGhtYxZ-.js';
|
|
2
2
|
import { RhinoModule } from 'rhino3dm';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Grasshopper types
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Grasshopper-style data tree branch path
|
|
10
|
-
* @example "{0}", "{0;0}", "{0;1;2}"
|
|
11
|
-
*/
|
|
12
4
|
type DataTreePath = `{${string}}`;
|
|
13
|
-
/**
|
|
14
|
-
* Represents a data item in a data tree
|
|
15
|
-
*/
|
|
16
5
|
interface DataItem {
|
|
17
|
-
/** The type of the data, inferred from the Grasshopper GOO class */
|
|
18
6
|
type: string;
|
|
19
|
-
/** The actual returned data as a string that may need to be parsed */
|
|
20
7
|
data: string;
|
|
21
|
-
/** The grasshopper refrence id of the output */
|
|
22
8
|
id: string;
|
|
23
9
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Grasshopper-style data tree for input defaults
|
|
26
|
-
* @example
|
|
27
|
-
* ```typescript
|
|
28
|
-
* const numericTree: DataTreeDefault<number> = {
|
|
29
|
-
* "{0}": [1, 2, 3],
|
|
30
|
-
* "{0;0}": [4, 5],
|
|
31
|
-
* "{1}": [6]
|
|
32
|
-
* };
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
10
|
type DataTreeDefault<T = any> = {
|
|
36
11
|
[K in DataTreePath]?: T[];
|
|
37
12
|
};
|
|
38
|
-
/**
|
|
39
|
-
* Data structure for InnerTreeData matching Rhino Compute responses
|
|
40
|
-
*/
|
|
41
13
|
type InnerTreeData = {
|
|
42
14
|
[path in DataTreePath]: DataItem[];
|
|
43
15
|
};
|
|
44
16
|
/**
|
|
45
|
-
* Tree with parameter metadata (used in compute responses)
|
|
17
|
+
* Tree with parameter metadata (used in compute requests and responses).
|
|
18
|
+
*
|
|
19
|
+
* Field casing varies by server branch: stock mcneel compute (8.x/9.x)
|
|
20
|
+
* serializes `Resthopper.IO.DataTree` in PascalCase (`ParamName`/`InnerTree`
|
|
21
|
+
* — the C# class carries no `[JsonProperty]` attributes), while
|
|
22
|
+
* camelCase-serializing forks return `paramName`/`innerTree` instead. This
|
|
23
|
+
* client always *sends* PascalCase (see `DataTree.toCompute()` in
|
|
24
|
+
* `data-tree.ts`), so the PascalCase fields remain the canonical/required
|
|
25
|
+
* shape; the optional camelCase fields exist so responses from camelCase
|
|
26
|
+
* forks are representable without casts. Code that must read trees across
|
|
27
|
+
* both server families should use `readField`/`hasField`
|
|
28
|
+
* (`@/core/utils/read-field`, case-insensitive) rather than direct property
|
|
29
|
+
* access — `warnOnEmptyInnerTrees` in `solve.ts` is the reference example.
|
|
46
30
|
*/
|
|
47
31
|
interface DataTree {
|
|
32
|
+
/** PascalCase — stock mcneel servers, and the request shape this client sends. */
|
|
48
33
|
InnerTree: InnerTreeData;
|
|
34
|
+
/** PascalCase — stock mcneel servers, and the request shape this client sends. */
|
|
49
35
|
ParamName: string;
|
|
36
|
+
/** camelCase — sent instead of `InnerTree` by camelCase server forks. */
|
|
37
|
+
innerTree?: InnerTreeData;
|
|
38
|
+
/** camelCase — sent instead of `ParamName` by camelCase server forks. */
|
|
39
|
+
paramName?: string;
|
|
50
40
|
}
|
|
51
|
-
|
|
52
|
-
* Output types supported from Grasshopper/Rhino Compute
|
|
53
|
-
*/
|
|
54
|
-
type OutputType = 'System.String' | 'System.Double' | 'System.Int32' | 'System.Boolean' | 'Rhino.Geometry.Point3d' | 'Rhino.Geometry.Line' | 'Rhino.Geometry.Circle' | 'Rhino.Geometry.Arc' | 'Rhino.Geometry.NurbsCurve' | 'Rhino.Geometry.Brep' | 'Rhino.Geometry.Mesh' | 'Rhino.Geometry.Vector3d' | 'Rhino.Geometry.Plane' | 'Rhino.Geometry.Box' | string;
|
|
41
|
+
type OutputType = 'System.String' | 'System.Double' | 'System.Int32' | 'System.Boolean' | 'Rhino.Geometry.Point3d' | 'Rhino.Geometry.Line' | 'Rhino.Geometry.Circle' | 'Rhino.Geometry.Arc' | 'Rhino.Geometry.NurbsCurve' | 'Rhino.Geometry.Brep' | 'Rhino.Geometry.Mesh' | 'Rhino.Geometry.Vector3d' | 'Rhino.Geometry.Plane' | 'Rhino.Geometry.Box' | (string & {});
|
|
55
42
|
/**
|
|
56
43
|
* Union type for all possible default value types
|
|
57
44
|
*/
|
|
@@ -207,18 +194,34 @@ interface GrasshopperRequestSchema extends GrasshopperBaseSchema, GrasshopperDef
|
|
|
207
194
|
/**
|
|
208
195
|
* Response from Grasshopper compute server
|
|
209
196
|
* Includes all schema fields + computed results
|
|
197
|
+
*
|
|
198
|
+
* `pointer` is deliberately excluded (`Omit`): the solve layer (`runSolve` in
|
|
199
|
+
* `solve.ts`) splits the server's echoed `pointer` off as the solve's
|
|
200
|
+
* `cacheKey` and strips it from the returned response, so client-returned
|
|
201
|
+
* responses never carry it.
|
|
202
|
+
*
|
|
203
|
+
* The schema-echo fields (`cachesolve`/`modelunits`/`dataversion`) stay
|
|
204
|
+
* optional as inherited from {@link GrasshopperBaseSchema}: the server echoes
|
|
205
|
+
* them back when set, but nothing client-side enforces their presence — don't
|
|
206
|
+
* rely on them without a fallback.
|
|
210
207
|
*/
|
|
211
|
-
interface GrasshopperComputeResponse extends GrasshopperBaseSchema, GrasshopperDefinitionSource {
|
|
212
|
-
/**
|
|
213
|
-
|
|
214
|
-
|
|
208
|
+
interface GrasshopperComputeResponse extends GrasshopperBaseSchema, Omit<GrasshopperDefinitionSource, 'pointer'> {
|
|
209
|
+
/**
|
|
210
|
+
* Model units the definition was solved in. Every conforming server response
|
|
211
|
+
* carries this (it drives downstream scaling, e.g. the webdisplay parser),
|
|
212
|
+
* but note it is not validated client-side — a non-conforming server or
|
|
213
|
+
* hand-built mock may omit it at runtime.
|
|
214
|
+
*/
|
|
215
215
|
modelunits: RhinoModelUnit;
|
|
216
|
-
/**
|
|
217
|
-
|
|
216
|
+
/**
|
|
217
|
+
* The server echoes the request's full base64 definition back as `algo`, but the client strips
|
|
218
|
+
* it before returning — retaining it would pin a multi-MB copy of the definition per response,
|
|
219
|
+
* multiplied by every cache that holds responses. Always `undefined` on client-returned
|
|
220
|
+
* responses (inherited optional field from {@link GrasshopperDefinitionSource}).
|
|
221
|
+
*/
|
|
222
|
+
algo?: string | null;
|
|
218
223
|
/** Filename of the definition (always present in response) */
|
|
219
224
|
filename: string | null;
|
|
220
|
-
/** Data version */
|
|
221
|
-
dataversion: 7 | 8;
|
|
222
225
|
/** Recursion level used */
|
|
223
226
|
recursionlevel?: number;
|
|
224
227
|
/** Output values organized by parameter */
|
|
@@ -327,14 +330,9 @@ interface GrasshopperParsedIO {
|
|
|
327
330
|
}
|
|
328
331
|
|
|
329
332
|
/**
|
|
330
|
-
* Non-mesh display items: curves
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
* separate pipeline from the SLVA mesh path in `../webdisplay`. Curves arrive as Rhino-native JSON
|
|
334
|
-
* (decoded via rhino3dm and tessellated on the web); points arrive as raw `{X,Y,Z}` positions.
|
|
335
|
-
*
|
|
336
|
-
* The union is STRICT and discriminated on `kind`. The parser narrows on it and uses a
|
|
337
|
-
* `never`-exhaustiveness check, so adding a new kind is a compile error until it is handled.
|
|
333
|
+
* Non-mesh display items: curves and points. Ride as JSON inside {@link DisplayBatch} alongside
|
|
334
|
+
* the binary mesh blob. The union is STRICT and discriminated on `kind`; the parser uses a
|
|
335
|
+
* `never`-exhaustiveness check, so adding a new kind is a compile error until handled.
|
|
338
336
|
*/
|
|
339
337
|
/**
|
|
340
338
|
* Identity + tagging shared by every display thing — meshes (via an adapter over `MeshMetadata`)
|
|
@@ -362,7 +360,10 @@ interface DisplayItemBase extends DisplayIdentity {
|
|
|
362
360
|
/** Opacity 0–1. Omitted means fully opaque. */
|
|
363
361
|
opacity?: number;
|
|
364
362
|
}
|
|
365
|
-
/**
|
|
363
|
+
/**
|
|
364
|
+
* A world position in Rhino's Z-up frame, in Rhino's `{X,Y,Z}` casing. Used unchanged on parse —
|
|
365
|
+
* the Three scene IS Rhino's Z-up frame, so no rotation is applied (see `../coordinate-transform.ts`).
|
|
366
|
+
*/
|
|
366
367
|
interface DisplayPosition {
|
|
367
368
|
X: number;
|
|
368
369
|
Y: number;
|
|
@@ -385,7 +386,7 @@ interface DisplayCurve extends DisplayItemBase {
|
|
|
385
386
|
/** A single point, shipped raw (no rhino3dm decode), rendered as one vertex of a `THREE.Points`. */
|
|
386
387
|
interface DisplayPoint extends DisplayItemBase {
|
|
387
388
|
kind: 'point';
|
|
388
|
-
/** World position in Rhino Z-up
|
|
389
|
+
/** World position in Rhino Z-up, used directly — the Three scene shares Rhino's Z-up frame. */
|
|
389
390
|
position: DisplayPosition;
|
|
390
391
|
}
|
|
391
392
|
/**
|
|
@@ -416,11 +417,17 @@ interface SerializableMaterial {
|
|
|
416
417
|
* Metadata for a single mesh within a batch.
|
|
417
418
|
*
|
|
418
419
|
* Offsets and counts are expressed in **vertex-count units** (not float components) and
|
|
419
|
-
* **index-count units
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
* -
|
|
423
|
-
* -
|
|
420
|
+
* **index-count units** — i.e. element offsets into the decoded typed arrays, which is how
|
|
421
|
+
* consumers address them (`indices.subarray(indexStart, indexStart + indexCount)`). To address
|
|
422
|
+
* the typed-array storage:
|
|
423
|
+
* - vertex component offset = `vertexStart * 3`
|
|
424
|
+
* - vertex component count = `vertexCount * 3`
|
|
425
|
+
* - index element offset = `indexStart`
|
|
426
|
+
* - index count = `indexCount`
|
|
427
|
+
*
|
|
428
|
+
* If you need *byte* offsets, multiply by the element size, which depends on the blob's flags:
|
|
429
|
+
* indices are 2 bytes each for `FLAG_UINT16_INDICES` (wire v2+) blobs and 4 bytes for uint32
|
|
430
|
+
* blobs; vertex components are 2 bytes (int16 quantized) or 4 bytes (`FLAG_FLOAT32`).
|
|
424
431
|
*/
|
|
425
432
|
interface MeshMetadata {
|
|
426
433
|
name: string;
|
|
@@ -463,11 +470,8 @@ interface MaterialGroup {
|
|
|
463
470
|
* later labels/icons) also travel — those ride as JSON alongside the mesh blob, not inside it.
|
|
464
471
|
*/
|
|
465
472
|
interface DisplayBatch {
|
|
466
|
-
/** Array of unique materials */
|
|
467
473
|
materials: SerializableMaterial[];
|
|
468
|
-
/** Groups of meshes organized by material */
|
|
469
474
|
groups: MaterialGroup[];
|
|
470
|
-
/** Base64-encoded binary blob (SLVA wire format). */
|
|
471
475
|
compressedData: string;
|
|
472
476
|
/** InstanceGuid of the WebDisplay GH component that produced this batch.
|
|
473
477
|
* Combined with MeshMetadata.originalIndex to backtrack any mesh to its GH source. */
|
|
@@ -485,16 +489,37 @@ interface DisplayBatch {
|
|
|
485
489
|
* This alias keeps existing imports compiling; remove it once consumers migrate.
|
|
486
490
|
*/
|
|
487
491
|
type MeshBatch = DisplayBatch;
|
|
488
|
-
/**
|
|
489
|
-
* Options for parsing mesh batch data.
|
|
490
|
-
*/
|
|
491
492
|
interface MeshBatchParsingOptions {
|
|
492
|
-
/** Merge meshes with same material into single geometry
|
|
493
|
+
/** Merge meshes with same material into single geometry. Defaults to true. */
|
|
493
494
|
mergeByMaterial?: boolean;
|
|
494
|
-
/** Apply coordinate system transformations
|
|
495
|
+
/** Apply coordinate system transformations. Defaults to true. */
|
|
495
496
|
applyTransforms?: boolean;
|
|
496
|
-
/** Enable performance monitoring
|
|
497
|
+
/** Enable performance monitoring. Defaults to false. */
|
|
497
498
|
debug?: boolean;
|
|
499
|
+
/**
|
|
500
|
+
* Appearance dials applied to every material built from this batch. These drive how "studio"
|
|
501
|
+
* vs "matte technical" the meshes look; they are set once at parse time (materials are rebuilt
|
|
502
|
+
* per solve). Runtime restyling of an already-built scene lives in the viewer's `setLook`.
|
|
503
|
+
*/
|
|
504
|
+
material?: MaterialAppearanceOptions;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* How compute meshes read visually. Bundled so a caller can pick a coherent look ('technical' vs
|
|
508
|
+
* 'rendered') by setting all three together rather than dialing each in isolation.
|
|
509
|
+
*/
|
|
510
|
+
interface MaterialAppearanceOptions {
|
|
511
|
+
/**
|
|
512
|
+
* Multiplier on the HDR image-based-lighting reflection strength. ~0.5 reads matte/technical,
|
|
513
|
+
* ~1.3 reads glossy/presentation. Default 1 (three.js's own default — unchanged look).
|
|
514
|
+
*/
|
|
515
|
+
envMapIntensity?: number;
|
|
516
|
+
/**
|
|
517
|
+
* Cull back faces (`THREE.FrontSide`) instead of rendering both sides (`THREE.DoubleSide`).
|
|
518
|
+
* FrontSide gives cleaner interior shading, a crisper silhouette, and less overdraw on closed
|
|
519
|
+
* solids — but open surfaces (which Rhino also emits) then vanish when viewed from behind.
|
|
520
|
+
* Default false (keep DoubleSide) to stay safe for surface geometry.
|
|
521
|
+
*/
|
|
522
|
+
cullBackfaces?: boolean;
|
|
498
523
|
}
|
|
499
524
|
/**
|
|
500
525
|
* Options for extracting and processing meshes from compute responses.
|
|
@@ -515,4 +540,4 @@ interface MeshExtractionOptions {
|
|
|
515
540
|
debug?: boolean;
|
|
516
541
|
}
|
|
517
542
|
|
|
518
|
-
export type { BooleanInputType as B, DataItem as D, FileInputType as F, GeometryInputType as G, InnerTreeData as I,
|
|
543
|
+
export type { BooleanInputType as B, DataItem as D, FileInputType as F, GeometryInputType as G, InnerTreeData as I, MaterialAppearanceOptions as M, NumericInputType as N, OutputParamSchema as O, TextInputType as T, ValueListInputType as V, DataTree as a, DataTreeDefault as b, DataTreePath as c, DefaultValue as d, GrasshopperComputeConfig as e, GrasshopperComputeResponse as f, GrasshopperParsedIO as g, GrasshopperParsedIORaw as h, GrasshopperRequestSchema as i, InputParam as j, InputParamSchema as k, OutputType as l, MeshExtractionOptions as m, MeshBatchParsingOptions as n, DisplayBatch as o, DisplayItem as p, DisplayCurve as q, DisplayIdentity as r, DisplayItemBase as s, DisplayPoint as t, DisplayPosition as u, MeshBatch as v };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7XMD5YXPcjs = require('./chunk-7XMD5YXP.cjs');require('./chunk-CUQQ3ZBV.cjs');exports.BINARY_MESH_MAGIC = _chunk7XMD5YXPcjs.x; exports.BINARY_MESH_VERSION = _chunk7XMD5YXPcjs.z; exports.COMPRESSED_MESH_MAGIC = _chunk7XMD5YXPcjs.y; exports.EDGE_USERDATA_KIND = _chunk7XMD5YXPcjs.i; exports.FLAG_DELTA_ENCODED = _chunk7XMD5YXPcjs.D; exports.FLAG_FLOAT32 = _chunk7XMD5YXPcjs.B; exports.FLAG_HAS_UVS = _chunk7XMD5YXPcjs.E; exports.FLAG_HAS_VERTEX_COLORS = _chunk7XMD5YXPcjs.F; exports.FLAG_UINT16_INDICES = _chunk7XMD5YXPcjs.C; exports.LOOKS = _chunk7XMD5YXPcjs.v; exports.MIN_SUPPORTED_VERSION = _chunk7XMD5YXPcjs.A; exports.Materials = _chunk7XMD5YXPcjs.a; exports.SCALE_FACTORS = _chunk7XMD5YXPcjs.M; exports.TEXTURE_CACHE_MAX_ENTRIES = _chunk7XMD5YXPcjs.q; exports.UV_FORMAT_FLOAT32 = _chunk7XMD5YXPcjs.H; exports.UV_FORMAT_UINT16 = _chunk7XMD5YXPcjs.G; exports.addEdges = _chunk7XMD5YXPcjs.j; exports.applyOffset = _chunk7XMD5YXPcjs.d; exports.clearTextureCache = _chunk7XMD5YXPcjs.s; exports.computeCombinedBoundingBox = _chunk7XMD5YXPcjs.e; exports.createCameraController = _chunk7XMD5YXPcjs.f; exports.createGrid = _chunk7XMD5YXPcjs.g; exports.createLabelLayer = _chunk7XMD5YXPcjs.n; exports.createMeasureTool = _chunk7XMD5YXPcjs.p; exports.createRenderPipeline = _chunk7XMD5YXPcjs.m; exports.createViewGizmo = _chunk7XMD5YXPcjs.h; exports.getThreeMeshesFromComputeResponse = _chunk7XMD5YXPcjs.N; exports.initThree = _chunk7XMD5YXPcjs.u; exports.isEdgeOverlay = _chunk7XMD5YXPcjs.k; exports.materialAppearanceForLook = _chunk7XMD5YXPcjs.t; exports.parseBinaryMeshBatch = _chunk7XMD5YXPcjs.I; exports.parseColor = _chunk7XMD5YXPcjs.c; exports.parseDisplayItems = _chunk7XMD5YXPcjs.w; exports.parseMeshBatch = _chunk7XMD5YXPcjs.J; exports.parseMeshBatchBlob = _chunk7XMD5YXPcjs.L; exports.parseMeshBatchObject = _chunk7XMD5YXPcjs.K; exports.removeEdges = _chunk7XMD5YXPcjs.l; exports.setTextureAnisotropy = _chunk7XMD5YXPcjs.r; exports.snapToVertex = _chunk7XMD5YXPcjs.o; exports.updateScene = _chunk7XMD5YXPcjs.b;
|
|
2
|
+
//# sourceMappingURL=visualization-4RSUYQG2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/selva/selva/packages/compute/dist/visualization-4RSUYQG2.cjs"],"names":[],"mappings":"AAAA,iIAAoT,gCAA6B,k5DAA24B","file":"/home/runner/work/selva/selva/packages/compute/dist/visualization-4RSUYQG2.cjs"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{A as L,B as S,C as I,D as R,E as D,F as B,G,H as P,I as u,J as F,K as b,L as N,M as V,N as U,a as e,b as r,c as o,d as t,e as a,f as s,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 C,p as d,q as h,r as E,s as M,t as _,u as O,v as c,w as A,x as g,y as T,z as j}from"./chunk-PX2YTSHJ.js";import"./chunk-WPB2LKCD.js";export{g as BINARY_MESH_MAGIC,j as BINARY_MESH_VERSION,T as COMPRESSED_MESH_MAGIC,n as EDGE_USERDATA_KIND,R as FLAG_DELTA_ENCODED,S as FLAG_FLOAT32,D as FLAG_HAS_UVS,B as FLAG_HAS_VERTEX_COLORS,I as FLAG_UINT16_INDICES,c as LOOKS,L as MIN_SUPPORTED_VERSION,e as Materials,V as SCALE_FACTORS,h as TEXTURE_CACHE_MAX_ENTRIES,P as UV_FORMAT_FLOAT32,G as UV_FORMAT_UINT16,m as addEdges,t as applyOffset,M as clearTextureCache,a as computeCombinedBoundingBox,s as createCameraController,p as createGrid,x as createLabelLayer,d as createMeasureTool,y as createRenderPipeline,i as createViewGizmo,U as getThreeMeshesFromComputeResponse,O as initThree,l as isEdgeOverlay,_ as materialAppearanceForLook,u as parseBinaryMeshBatch,o as parseColor,A as parseDisplayItems,F as parseMeshBatch,N as parseMeshBatchBlob,b as parseMeshBatchObject,f as removeEdges,E as setTextureAnisotropy,C as snapToVertex,r as updateScene};
|
|
2
|
+
//# sourceMappingURL=visualization-MOYO6MDN.js.map
|
package/dist/visualization.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7XMD5YXPcjs = require('./chunk-7XMD5YXP.cjs');require('./chunk-CUQQ3ZBV.cjs');exports.EDGE_USERDATA_KIND = _chunk7XMD5YXPcjs.i; exports.LOOKS = _chunk7XMD5YXPcjs.v; exports.Materials = _chunk7XMD5YXPcjs.a; exports.SCALE_FACTORS = _chunk7XMD5YXPcjs.M; exports.addEdges = _chunk7XMD5YXPcjs.j; exports.applyOffset = _chunk7XMD5YXPcjs.d; exports.computeCombinedBoundingBox = _chunk7XMD5YXPcjs.e; exports.createCameraController = _chunk7XMD5YXPcjs.f; exports.createGrid = _chunk7XMD5YXPcjs.g; exports.createLabelLayer = _chunk7XMD5YXPcjs.n; exports.createMeasureTool = _chunk7XMD5YXPcjs.p; exports.createRenderPipeline = _chunk7XMD5YXPcjs.m; exports.createViewGizmo = _chunk7XMD5YXPcjs.h; exports.getThreeMeshesFromComputeResponse = _chunk7XMD5YXPcjs.N; exports.initThree = _chunk7XMD5YXPcjs.u; exports.isEdgeOverlay = _chunk7XMD5YXPcjs.k; exports.parseColor = _chunk7XMD5YXPcjs.c; exports.parseDisplayItems = _chunk7XMD5YXPcjs.w; exports.parseMeshBatchBlob = _chunk7XMD5YXPcjs.L; exports.parseMeshBatchObject = _chunk7XMD5YXPcjs.K; exports.removeEdges = _chunk7XMD5YXPcjs.l; exports.snapToVertex = _chunk7XMD5YXPcjs.o; exports.updateScene = _chunk7XMD5YXPcjs.b;
|
|
2
2
|
//# sourceMappingURL=visualization.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/selva
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/selva/selva/packages/compute/dist/visualization.cjs"],"names":[],"mappings":"AAAA,iIAAkM,gCAA6B,ujCAA0e","file":"/home/runner/work/selva/selva/packages/compute/dist/visualization.cjs"}
|