viral-viewer-2 7.2.0 → 7.2.2
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/batched-mesh-simplifier-D-o3ukyo.mjs +128 -0
- package/dist/components/animation/viral-animation.d.ts +1 -1
- package/dist/components/avatar-manager/viral-avatar-manager.d.ts +1 -1
- package/dist/components/camera/viral-camera.d.ts +9 -8
- package/dist/components/custom-objects/index.d.ts +2 -3
- package/dist/components/custom-objects/viral-avatar.d.ts +2 -2
- package/dist/components/custom-objects/viral-batched-mesh.d.ts +14 -4
- package/dist/components/custom-objects/{viral-merged-model.d.ts → viral-bim-world.d.ts} +14 -6
- package/dist/components/custom-objects/viral-bim.model.d.ts +11 -0
- package/dist/components/custom-objects/viral-instanced-mesh-v2.d.ts +14 -3
- package/dist/components/data-manager/viral-data-manager.d.ts +1 -1
- package/dist/components/duplication-analyzer/viral-duplication-analyzer.d.ts +1 -1
- package/dist/components/event-handler/keyboard/viral-keyboard.d.ts +1 -1
- package/dist/components/event-handler/mouse/viral-mouse.d.ts +1 -4
- package/dist/components/event-handler/viral-centralized-event-handler.d.ts +1 -10
- package/dist/components/event-handler/viral-lifecycle-event-handler.d.ts +2 -2
- package/dist/components/loader/viral-point-cloud.loader.d.ts +2 -2
- package/dist/components/loader/viral-revit.loader.d.ts +3 -4
- package/dist/components/loader/viral-three.loader.d.ts +2 -2
- package/dist/components/loader/viral.loader.d.ts +1 -1
- package/dist/components/material/viral-material-manager.d.ts +2 -2
- package/dist/components/post-processing/post-processing-renderer.d.ts +51 -6
- package/dist/components/post-processing/screen-space-edges-pass.d.ts +7 -1
- package/dist/components/post-processing/selection-outline-pass.d.ts +65 -0
- package/dist/components/renderer/viral-renderer.d.ts +1 -1
- package/dist/components/scene/viral-scene.d.ts +4 -7
- package/dist/components/section-box/viral-section-box.d.ts +66 -25
- package/dist/components/stats/viral-stats.d.ts +1 -1
- package/dist/components/visibility-manager/viral-visibility-manager.d.ts +44 -24
- package/dist/components/worker/bounding-box-intersect.worker.d.ts +1 -1
- package/dist/components/worker/bounding-box.worker.d.ts +1 -1
- package/dist/components/worker/graph-layout.worker.d.ts +1 -1
- package/dist/components/worker/{load-element-batch.worker.d.ts → load-batched-element.worker.d.ts} +3 -3
- package/dist/entities/archive-elements.d.ts +1 -1
- package/dist/entities/data-tree.d.ts +7 -2
- package/dist/entities/index.d.ts +9 -9
- package/dist/gui/batch-debug-panel/viral-batch-debug-panel.d.ts +1 -1
- package/dist/gui/context-menu/viral-context-menu.d.ts +1 -1
- package/dist/gui/draggable-modal/viral-draggable-modal.d.ts +1 -1
- package/dist/gui/instanced-debug-panel/viral-instanced-debug-panel.d.ts +1 -1
- package/dist/gui/navigation-cube/components/cube-camera.d.ts +2 -2
- package/dist/gui/navigation-cube/components/cube-renderer.d.ts +1 -1
- package/dist/gui/navigation-cube/components/cube-scene.d.ts +2 -2
- package/dist/gui/navigation-cube/components/cube.mouse.d.ts +1 -1
- package/dist/gui/navigation-cube/viral-navigation-cube.d.ts +2 -2
- package/dist/gui/pivot-point/viral-pivot-point.d.ts +1 -1
- package/dist/gui/render-debug-panel/viral-render-debug-panel.d.ts +1 -1
- package/dist/gui/spinner/viral-spinner.d.ts +1 -1
- package/dist/gui/tools/tools/viral-tool-ambient-occlusion.d.ts +2 -2
- package/dist/gui/tools/tools/viral-tool-avatar.d.ts +2 -2
- package/dist/gui/tools/tools/viral-tool-dark-mode.d.ts +2 -2
- package/dist/gui/tools/tools/viral-tool-elevation.d.ts +3 -3
- package/dist/gui/tools/tools/viral-tool-export-scene.d.ts +2 -2
- package/dist/gui/tools/tools/viral-tool-measure.d.ts +3 -3
- package/dist/gui/tools/tools/viral-tool-sunlight.d.ts +2 -2
- package/dist/gui/tools/viral-tools.d.ts +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.mjs +10808 -35
- package/dist/utils/batched-mesh-simplifier.d.ts +2 -2
- package/dist/utils/geometry-simplifier.d.ts +1 -1
- package/dist/viral-viewer-api.d.ts +19 -21
- package/package.json +49 -42
- package/dist/batched-mesh-simplifier-Bqx1Evd9.mjs +0 -1076
- package/dist/components/custom-objects/viral-edge-mesh.d.ts +0 -133
- package/dist/components/custom-objects/viral-instanced-mesh-v3.d.ts +0 -123
- package/dist/components/custom-objects/viral-instanced-mesh.d.ts +0 -41
- package/dist/components/custom-objects/viral-main.model.d.ts +0 -16
- package/dist/components/custom-objects/viral-mesh.abstract.d.ts +0 -3
- package/dist/components/custom-objects/viral-mesh.d.ts +0 -13
- package/dist/components/custom-objects/viral-seperate-model.d.ts +0 -18
- package/dist/components/handler/geometry.handler.d.ts +0 -12
- package/dist/components/lod-generator/viral-lod-generator.d.ts +0 -116
- package/dist/index-DRYwg_CR.mjs +0 -326870
- /package/dist/components/worker-script/{load-element-batch.script.d.ts → load-batched-element.script.d.ts} +0 -0
|
@@ -1,34 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ViralViewerApi } from "../..";
|
|
1
|
+
import { type Intersection } from "three";
|
|
2
|
+
import { type ViralViewerApi } from "../..";
|
|
3
3
|
export declare class ViralSectionBox {
|
|
4
4
|
viralViewerApi: ViralViewerApi;
|
|
5
|
-
private planeEdges;
|
|
6
5
|
constructor(viralViewerApi: ViralViewerApi);
|
|
7
6
|
private _isGenerated;
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
private _planZ1;
|
|
16
|
-
private _edgesX0;
|
|
17
|
-
private _edgesX1;
|
|
18
|
-
private _edgesY0;
|
|
19
|
-
private _edgesY1;
|
|
20
|
-
private _edgesZ0;
|
|
21
|
-
private _edgeX0;
|
|
22
|
-
private _edgeX1;
|
|
23
|
-
private _edgeY0;
|
|
24
|
-
private _edgeY1;
|
|
25
|
-
private _edgeZ0;
|
|
26
|
-
private edgeMaterial;
|
|
27
|
-
generateSectionBox(planes: Plane[]): void;
|
|
28
|
-
updateSectionBox(): void;
|
|
29
|
-
private _isEnabling;
|
|
7
|
+
private _isActive;
|
|
8
|
+
private _isVisible;
|
|
9
|
+
/** Whether section box is active (clipping enabled) */
|
|
10
|
+
get isActive(): boolean;
|
|
11
|
+
/** Whether section box visuals are visible */
|
|
12
|
+
get isVisible(): boolean;
|
|
13
|
+
/** @deprecated Use isActive instead */
|
|
30
14
|
get isEnabling(): boolean;
|
|
15
|
+
private _initialCenter;
|
|
16
|
+
private _initialHalfSize;
|
|
17
|
+
private _center;
|
|
18
|
+
private _halfSize;
|
|
19
|
+
private _boxOutline;
|
|
20
|
+
private _outlineGeometry;
|
|
21
|
+
private _outlineMaterial;
|
|
22
|
+
private _hitBoxMesh;
|
|
23
|
+
private _facePlaneMesh;
|
|
24
|
+
private _dragAnchor;
|
|
25
|
+
private _selectedFaceIndex;
|
|
26
|
+
private _clippingPlanes;
|
|
27
|
+
private static readonly VISUAL_INSET;
|
|
28
|
+
private _transformedEdges;
|
|
29
|
+
/**
|
|
30
|
+
* Activate section box - enables clipping and shows visuals
|
|
31
|
+
*/
|
|
31
32
|
enable(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Deactivate section box - disables clipping and hides visuals
|
|
35
|
+
*/
|
|
32
36
|
disable(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Show section box visuals (outline, hit box) while keeping clipping effect
|
|
39
|
+
* Only works if section box is active
|
|
40
|
+
*/
|
|
41
|
+
show(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Hide section box visuals while keeping clipping effect active
|
|
44
|
+
* Only works if section box is active
|
|
45
|
+
*/
|
|
46
|
+
hide(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Reset section box to initial bounding box (from model)
|
|
49
|
+
* Keeps current active/visible state
|
|
50
|
+
*/
|
|
51
|
+
reset(): void;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use reset() instead
|
|
54
|
+
*/
|
|
33
55
|
refresh(): void;
|
|
56
|
+
updateSectionBox(): void;
|
|
57
|
+
getFaceIndexFromIntersection(intersection: Intersection): number;
|
|
58
|
+
selectFace(faceIndex: number): void;
|
|
59
|
+
onDragAnchorChanged(): void;
|
|
60
|
+
dispose(): void;
|
|
61
|
+
private _initFromBoundingBox;
|
|
62
|
+
private _createVisuals;
|
|
63
|
+
private _updateVisuals;
|
|
64
|
+
private _updateClippingPlanes;
|
|
65
|
+
private _getFaceCenter;
|
|
66
|
+
private _positionFaceHighlight;
|
|
67
|
+
/**
|
|
68
|
+
* Add section box visual objects to edge pass exclusion list
|
|
69
|
+
*/
|
|
70
|
+
private _addToEdgeExclusion;
|
|
71
|
+
/**
|
|
72
|
+
* Remove section box visual objects from edge pass exclusion list
|
|
73
|
+
*/
|
|
74
|
+
private _removeFromEdgeExclusion;
|
|
34
75
|
}
|
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
import { BufferGeometry,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BufferGeometry, type Object3D, Points } from "three";
|
|
2
|
+
import { type SunLightConfiguration } from "../..";
|
|
3
|
+
import type { ViralViewerApi } from "../../viral-viewer-api";
|
|
4
4
|
export declare class ViralVisibilityManager {
|
|
5
5
|
private viralViewerApi;
|
|
6
|
+
/** Whether selection outline is enabled (default: true) */
|
|
7
|
+
private _selectionOutlineEnabled;
|
|
6
8
|
constructor(viralViewerApi: ViralViewerApi);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
selectedMeshes: Mesh<any, any>[];
|
|
11
|
-
selectedInstancedMeshes: ViralInstancedMesh[];
|
|
12
|
-
reverseSelectedColor(): void;
|
|
13
|
-
isolateMeshes: Mesh<any, any>[];
|
|
14
|
-
isolateInstancedMeshes: ViralInstancedMesh[];
|
|
15
|
-
hiddenMeshes: Mesh<any, any>[];
|
|
16
|
-
hiddenInstancedMeshes: ViralInstancedMesh[];
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated dont use anymore
|
|
19
|
-
*/
|
|
20
|
-
showAll(): void;
|
|
9
|
+
/**
|
|
10
|
+
* show all elements and reset back to normal visualization
|
|
11
|
+
*/
|
|
21
12
|
showAll2(): void;
|
|
22
13
|
/**
|
|
23
|
-
*
|
|
14
|
+
* hide all elements and reset back to normal visualization
|
|
24
15
|
*/
|
|
25
|
-
|
|
16
|
+
hideAllElements(): void;
|
|
26
17
|
/**
|
|
27
18
|
*
|
|
28
19
|
* @param elements default will get selected elements or we can input specific elements
|
|
@@ -31,11 +22,6 @@ export declare class ViralVisibilityManager {
|
|
|
31
22
|
modelId: string;
|
|
32
23
|
elementId: string;
|
|
33
24
|
}[]): void;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated using isolate2 instead
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
isolate(): void;
|
|
39
25
|
/**
|
|
40
26
|
*
|
|
41
27
|
* @param elements default will get selected elements or we can input specific elements
|
|
@@ -137,6 +123,15 @@ export declare class ViralVisibilityManager {
|
|
|
137
123
|
* 🔧 FAST: Resume screen-space edges after camera stops
|
|
138
124
|
*/
|
|
139
125
|
resumeScreenSpaceEdge(): void;
|
|
126
|
+
/**
|
|
127
|
+
* 🔧 FAST: Bypass selection outline during camera movement
|
|
128
|
+
* Much faster than disable - skips mask render but keeps pass in pipeline
|
|
129
|
+
*/
|
|
130
|
+
bypassSelectionOutline(): void;
|
|
131
|
+
/**
|
|
132
|
+
* 🔧 FAST: Resume selection outline after camera stops
|
|
133
|
+
*/
|
|
134
|
+
resumeSelectionOutline(): void;
|
|
140
135
|
/**
|
|
141
136
|
* Configure screen-space edge detection
|
|
142
137
|
*/
|
|
@@ -167,10 +162,35 @@ export declare class ViralVisibilityManager {
|
|
|
167
162
|
modelId: string;
|
|
168
163
|
elementId: string;
|
|
169
164
|
}[]): void;
|
|
165
|
+
/**
|
|
166
|
+
* Update selection outline pass with current selection
|
|
167
|
+
* Uses merged geometry for efficient rendering
|
|
168
|
+
*/
|
|
169
|
+
updateSelectionOutline(): void;
|
|
170
|
+
/**
|
|
171
|
+
* Enable selection outline effect
|
|
172
|
+
*/
|
|
173
|
+
enableSelectionOutline(): void;
|
|
174
|
+
/**
|
|
175
|
+
* Disable selection outline effect
|
|
176
|
+
*/
|
|
177
|
+
disableSelectionOutline(): void;
|
|
178
|
+
/**
|
|
179
|
+
* Set whether selection outline mode is enabled
|
|
180
|
+
* @param enabled - true to enable outline on selection, false to disable
|
|
181
|
+
*/
|
|
182
|
+
setSelectionOutlineMode(enabled: boolean): void;
|
|
183
|
+
/**
|
|
184
|
+
* Get whether selection outline mode is enabled
|
|
185
|
+
*/
|
|
186
|
+
get selectionOutlineEnabled(): boolean;
|
|
170
187
|
enableNight(): void;
|
|
171
188
|
disableNight(): void;
|
|
172
189
|
enableSectionBox(): void;
|
|
173
190
|
disableSectionBox(): void;
|
|
191
|
+
showSectionBox(): void;
|
|
192
|
+
hideSectionBox(): void;
|
|
193
|
+
resetSectionBox(): void;
|
|
174
194
|
/**
|
|
175
195
|
*
|
|
176
196
|
* @param opacity from 0 to 1
|
package/dist/components/worker/{load-element-batch.worker.d.ts → load-batched-element.worker.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { RenderMaterial, ViralutionElement } from "../..";
|
|
2
|
+
import type { ViralViewerApi } from "../../viral-viewer-api";
|
|
3
3
|
import { WorkerThreadPool } from "./base/worker-pool";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class LoadBatchedElementWorker {
|
|
5
5
|
viralViewerApi: ViralViewerApi;
|
|
6
6
|
workerPool: WorkerThreadPool;
|
|
7
7
|
workerPool2: WorkerThreadPool;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RenderMaterial, RevitTransform, ViralPoint } from "./base-elements";
|
|
1
|
+
import type { RenderMaterial, RevitTransform, ViralPoint } from "./base-elements";
|
|
2
2
|
export interface ViralViewerRevitProject {
|
|
3
3
|
Materials: RenderMaterial[];
|
|
4
4
|
StructuralGeometries: ViralViewerRevitStructuralGeometry[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViralutionParameter, ViralutionRelationship } from "./data";
|
|
1
|
+
import type { ViralutionParameter, ViralutionRelationship } from "./data";
|
|
2
2
|
/**
|
|
3
3
|
* Main entity to store a whole model data - Optimized DataTree with flat key-value storage
|
|
4
4
|
* - Memory efficient: Uses flat Map instead of nested objects
|
|
@@ -117,7 +117,12 @@ export declare class DataTree {
|
|
|
117
117
|
* @param layoutOptions Layout options
|
|
118
118
|
* @returns Promise that resolves with nodes and edges
|
|
119
119
|
*/
|
|
120
|
-
toGraphAsync(layoutOptions?: GraphLayoutOptions
|
|
120
|
+
toGraphAsync(layoutOptions?: GraphLayoutOptions, onProgress?: (progress: {
|
|
121
|
+
phase: string;
|
|
122
|
+
percent: number;
|
|
123
|
+
current: number;
|
|
124
|
+
total: number;
|
|
125
|
+
}) => void): Promise<{
|
|
121
126
|
nodes: GraphNode[];
|
|
122
127
|
edges: GraphEdge[];
|
|
123
128
|
}>;
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
1
|
+
export * from "./archive-elements";
|
|
2
|
+
export * from "./base-elements";
|
|
3
|
+
export * from "./configuration";
|
|
4
|
+
export * from "./data";
|
|
5
|
+
export * from "./data-tree";
|
|
6
|
+
export * from "./event";
|
|
7
|
+
export * from "./results";
|
|
8
|
+
export * from "./tool";
|
|
9
|
+
export * from "./viewer-option";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import CameraControls from "camera-controls";
|
|
2
|
-
import {
|
|
3
|
-
import { ViralNavigationCube } from "../viral-navigation-cube";
|
|
2
|
+
import { PerspectiveCamera, Vector3 } from "three";
|
|
3
|
+
import type { ViralNavigationCube } from "../viral-navigation-cube";
|
|
4
4
|
export declare class CubeCamera {
|
|
5
5
|
viralNavigationCube: ViralNavigationCube;
|
|
6
6
|
camera: PerspectiveCamera | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WebGLRenderer } from "three";
|
|
2
|
-
import { ViralNavigationCube } from "../viral-navigation-cube";
|
|
2
|
+
import type { ViralNavigationCube } from "../viral-navigation-cube";
|
|
3
3
|
export declare class CubeRenderer {
|
|
4
4
|
viralNavigationCube: ViralNavigationCube;
|
|
5
5
|
renderer: WebGLRenderer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ViralNavigationCube } from
|
|
1
|
+
import { type BufferGeometry, Mesh, MeshBasicMaterial, type Object3D, Scene } from "three";
|
|
2
|
+
import type { ViralNavigationCube } from "../viral-navigation-cube";
|
|
3
3
|
export declare class CubeScene {
|
|
4
4
|
viralNavigationCube: ViralNavigationCube;
|
|
5
5
|
scene: Scene;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ViralViewerApi } from "../../viral-viewer-api";
|
|
1
|
+
import type { ViralViewerApi } from "../../viral-viewer-api";
|
|
2
|
+
import { CubeMouse } from "./components/cube.mouse";
|
|
2
3
|
import { CubeCamera } from "./components/cube-camera";
|
|
3
4
|
import { CubeRenderer } from "./components/cube-renderer";
|
|
4
5
|
import { CubeScene } from "./components/cube-scene";
|
|
5
|
-
import { CubeMouse } from "./components/cube.mouse";
|
|
6
6
|
export declare class ViralNavigationCube {
|
|
7
7
|
viralViewerApi: ViralViewerApi;
|
|
8
8
|
targetElement: HTMLElement | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ViralViewerTool } from "../../../types";
|
|
2
|
-
import { ViralTools } from "../viral-tools";
|
|
1
|
+
import type { ViralViewerTool } from "../../../types";
|
|
2
|
+
import type { ViralTools } from "../viral-tools";
|
|
3
3
|
export declare class ViralToolAmbientOcclusion {
|
|
4
4
|
viralTools: ViralTools;
|
|
5
5
|
constructor(viralTools: ViralTools);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ViralViewerTool } from "../../..";
|
|
2
|
-
import { ViralTools } from "../viral-tools";
|
|
1
|
+
import type { ViralViewerTool } from "../../..";
|
|
2
|
+
import type { ViralTools } from "../viral-tools";
|
|
3
3
|
export declare class ViralToolAvatar {
|
|
4
4
|
viralTools: ViralTools;
|
|
5
5
|
constructor(viralTools: ViralTools);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ViralViewerTool } from "../../../types";
|
|
2
|
-
import { ViralTools } from "../viral-tools";
|
|
1
|
+
import type { ViralViewerTool } from "../../../types";
|
|
2
|
+
import type { ViralTools } from "../viral-tools";
|
|
3
3
|
export declare class ViralToolDarkMode {
|
|
4
4
|
viralTools: ViralTools;
|
|
5
5
|
constructor(viralTools: ViralTools);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Vector2 } from "three";
|
|
2
|
-
import { ViralViewerTool } from "../../../types";
|
|
3
|
-
import { ViralTools } from "../viral-tools";
|
|
1
|
+
import type { Vector2 } from "three";
|
|
2
|
+
import type { ViralViewerTool } from "../../../types";
|
|
3
|
+
import type { ViralTools } from "../viral-tools";
|
|
4
4
|
export declare class ViralToolElevation {
|
|
5
5
|
viralTools: ViralTools;
|
|
6
6
|
isActivated: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ViralViewerTool } from "../../../types";
|
|
2
|
-
import { ViralTools } from "../viral-tools";
|
|
1
|
+
import type { ViralViewerTool } from "../../../types";
|
|
2
|
+
import type { ViralTools } from "../viral-tools";
|
|
3
3
|
export declare class ViralToolExportScene {
|
|
4
4
|
viralTools: ViralTools;
|
|
5
5
|
constructor(viralTools: ViralTools);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Scene, Vector2, Vector3 } from "three";
|
|
2
|
-
import { ViralViewerTool } from "../../../types";
|
|
3
|
-
import { ViralTools } from "../viral-tools";
|
|
1
|
+
import { Scene, type Vector2, type Vector3 } from "three";
|
|
2
|
+
import type { ViralViewerTool } from "../../../types";
|
|
3
|
+
import type { ViralTools } from "../viral-tools";
|
|
4
4
|
interface ViralMeasure {
|
|
5
5
|
point1: Vector3;
|
|
6
6
|
point2: Vector3;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ViralViewerTool } from "../../../types";
|
|
2
|
-
import { ViralTools } from "../viral-tools";
|
|
1
|
+
import type { ViralViewerTool } from "../../../types";
|
|
2
|
+
import type { ViralTools } from "../viral-tools";
|
|
3
3
|
export declare class ViralToolSunlight {
|
|
4
4
|
viralTools: ViralTools;
|
|
5
5
|
constructor(viralTools: ViralTools);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ViralViewerTool } from "../..";
|
|
2
|
-
import { ViralViewerApi } from "../../viral-viewer-api";
|
|
1
|
+
import { type ViralViewerTool } from "../..";
|
|
2
|
+
import type { ViralViewerApi } from "../../viral-viewer-api";
|
|
3
3
|
import { ViralToolAmbientOcclusion } from "./tools/viral-tool-ambient-occlusion";
|
|
4
4
|
import { ViralToolAvatar } from "./tools/viral-tool-avatar";
|
|
5
5
|
import { ViralToolDarkMode } from "./tools/viral-tool-dark-mode";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export { ViralRenderDebugPanel } from
|
|
7
|
-
export
|
|
8
|
-
export
|
|
1
|
+
export * from "./utils";
|
|
2
|
+
export * from "./components/custom-objects";
|
|
3
|
+
export * from "./entities";
|
|
4
|
+
export { ViralBatchDebugPanel } from "./gui/batch-debug-panel/viral-batch-debug-panel";
|
|
5
|
+
export { ViralInstancedDebugPanel } from "./gui/instanced-debug-panel/viral-instanced-debug-panel";
|
|
6
|
+
export { ViralRenderDebugPanel } from "./gui/render-debug-panel/viral-render-debug-panel";
|
|
7
|
+
export * from "./types";
|
|
8
|
+
export * from "./viral-viewer-api";
|