viral-viewer-2 6.2.7 → 6.2.9
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 +5 -52
- package/dist/components/camera/viral-camera.d.ts +1 -1
- package/dist/components/custom-objects/viral-instanced-mesh.d.ts +1 -1
- package/dist/components/custom-objects/viral-mesh.d.ts +9 -0
- package/dist/components/event-handler/viral-centralized-event-handler.d.ts +2 -0
- package/dist/components/loader/viral-revit.loader.d.ts +13 -1
- package/dist/components/scene/viral-scene.d.ts +1 -0
- package/dist/components/worker/load-element-by-material-v2.worker.d.ts +11 -0
- package/dist/components/worker/load-element-by-material.worker.d.ts +11 -0
- package/dist/components/worker/{viral-viewer-4.worker.d.ts → load-element-standalone.worker.d.ts} +1 -1
- package/dist/components/worker-script/load-element-by-material.script.d.ts +3 -0
- package/dist/components/worker-script/material-aproach/load-element-by-material-instanced-mesh.script.d.ts +1 -0
- package/dist/components/worker-script/material-aproach/load-element-by-material-mesh.script.d.ts +3 -0
- package/dist/const/colors.d.ts +1 -0
- package/dist/const/icons.d.ts +7 -0
- package/dist/gui/context-menu/viral-context-menu.d.ts +1 -1
- package/dist/gui/draggable-modal/viral-draggable-modal.d.ts +10 -0
- package/dist/gui/tools/tools/viral-tool-export-scene.d.ts +7 -0
- package/dist/index.mjs +20132 -15592
- package/dist/types.d.ts +26 -1
- package/dist/viral-viewer-api.d.ts +2 -4
- package/package.json +2 -3
- /package/dist/components/worker-script/{load-model-worker-3.script.d.ts → load-element-standalone.script.d.ts} +0 -0
package/dist/types.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export interface ViewerOptions {
|
|
|
3
3
|
cameraZUp: boolean;
|
|
4
4
|
isDev: boolean;
|
|
5
5
|
numberOfWorker: number;
|
|
6
|
+
enableNavigationCube: boolean;
|
|
7
|
+
enableTools: boolean;
|
|
6
8
|
}
|
|
7
9
|
export interface ViralViewerRevitProject {
|
|
8
10
|
Materials: RenderMaterial[];
|
|
@@ -30,6 +32,20 @@ export declare class ViralViewerRevitNoneStructuralGeometry {
|
|
|
30
32
|
Name: string;
|
|
31
33
|
Instances: RevitTransform[];
|
|
32
34
|
}
|
|
35
|
+
export interface ViralutionFragmentModel {
|
|
36
|
+
Materials: RenderMaterial[];
|
|
37
|
+
Fragments: Fragment[];
|
|
38
|
+
}
|
|
39
|
+
export declare class Fragment {
|
|
40
|
+
MaterialIndex: number;
|
|
41
|
+
Elements: ElementFragment[];
|
|
42
|
+
}
|
|
43
|
+
export declare class ElementFragment {
|
|
44
|
+
Vertices: ViralPoint[];
|
|
45
|
+
Indices: number[];
|
|
46
|
+
Instances: RevitTransform[];
|
|
47
|
+
Id: string;
|
|
48
|
+
}
|
|
33
49
|
export declare class ViralViewerRevitGeometry {
|
|
34
50
|
Vertices: ViralPoint[];
|
|
35
51
|
Indices: number[];
|
|
@@ -103,12 +119,21 @@ export declare class ViralutionSolid {
|
|
|
103
119
|
}
|
|
104
120
|
export declare class ViralutionCamera {
|
|
105
121
|
scale: number;
|
|
122
|
+
origin: ViralPoint;
|
|
106
123
|
eyePosition: ViralPoint;
|
|
107
124
|
upDirection: ViralPoint;
|
|
108
125
|
forwardDirection: ViralPoint;
|
|
126
|
+
target: ViralPoint;
|
|
127
|
+
box: ViralutionBox;
|
|
128
|
+
}
|
|
129
|
+
export declare class ViralutionBox {
|
|
130
|
+
min: ViralPoint;
|
|
131
|
+
max: ViralPoint;
|
|
109
132
|
}
|
|
110
133
|
export declare class ViralutionTrackingModel {
|
|
111
|
-
Data:
|
|
134
|
+
Data: {
|
|
135
|
+
[key: number]: number[][];
|
|
136
|
+
};
|
|
112
137
|
CameraData: ViralutionCamera;
|
|
113
138
|
}
|
|
114
139
|
export declare class DebouncedEventHandler<T> {
|
|
@@ -12,7 +12,6 @@ import { ViralCentralizedEventHandler } from "./components/event-handler/viral-c
|
|
|
12
12
|
import { ViralLoader } from "./components/loader/viral.loader";
|
|
13
13
|
import { ViralStats } from "./components/stats/viral-stats";
|
|
14
14
|
import { ViralBVH } from "./components/bvh/viral-bvh";
|
|
15
|
-
import { ViralViewerWorker4 } from "./components/worker/viral-viewer-4.worker";
|
|
16
15
|
import { ViralMaterialManager } from "./components/material/viral-material-manager";
|
|
17
16
|
import { EventDispatcher } from "./components/event-handler/base/event-dispatcher";
|
|
18
17
|
import { ViralLifecycleEventHandler } from "./components/event-handler/viral-lifecycle-event-handler";
|
|
@@ -27,8 +26,8 @@ export declare class ViralViewerApi {
|
|
|
27
26
|
options: ViewerOptions;
|
|
28
27
|
viralLifecycleEventHandler: ViralLifecycleEventHandler;
|
|
29
28
|
targetElement: HTMLElement;
|
|
30
|
-
viralNavigationCube
|
|
31
|
-
viralTools
|
|
29
|
+
viralNavigationCube?: ViralNavigationCube;
|
|
30
|
+
viralTools?: ViralTools;
|
|
32
31
|
viralSpinner: ViralSpinner;
|
|
33
32
|
viralDraggableModal: ViralDraggableModal;
|
|
34
33
|
viralContextMenu: ViralContextMenu;
|
|
@@ -45,7 +44,6 @@ export declare class ViralViewerApi {
|
|
|
45
44
|
viralCompressProcessor: ViralCompressProcessor;
|
|
46
45
|
viralBVH: ViralBVH;
|
|
47
46
|
viralDataManager: ViralDataManager;
|
|
48
|
-
worker4: ViralViewerWorker4;
|
|
49
47
|
localStorageService: LocalStorageService;
|
|
50
48
|
viralStats: ViralStats | null;
|
|
51
49
|
constructor(options?: ViewerOptions);
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viral-viewer-2",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
|
-
"LICENSE"
|
|
10
|
-
"README.md"
|
|
9
|
+
"LICENSE"
|
|
11
10
|
],
|
|
12
11
|
"scripts": {
|
|
13
12
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
File without changes
|