viral-viewer-2 6.2.4 → 6.2.6
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/README.md +0 -0
- package/package.json +6 -6
- package/dist/components/animation/viral-animation.d.ts +0 -9
- package/dist/components/bvh/viral-bvh.d.ts +0 -5
- package/dist/components/camera/viral-camera.d.ts +0 -40
- package/dist/components/compress/viral-compress.processor.d.ts +0 -3
- package/dist/components/custom-objects/index.d.ts +0 -2
- package/dist/components/custom-objects/viral-instanced-mesh.d.ts +0 -31
- package/dist/components/data-manager/viral-data-manager.d.ts +0 -18
- package/dist/components/event-handler/base/event-dispatcher.d.ts +0 -9
- package/dist/components/event-handler/keyboard/viral-keyboard.d.ts +0 -17
- package/dist/components/event-handler/mouse/viral-mouse.d.ts +0 -31
- package/dist/components/event-handler/viral-centralized-event-handler.d.ts +0 -12
- package/dist/components/event-handler/viral-lifecycle-event-handler.d.ts +0 -13
- package/dist/components/loader/viral-point-cloud.loader.d.ts +0 -16
- package/dist/components/loader/viral-revit.loader.d.ts +0 -11
- package/dist/components/loader/viral-three.loader.d.ts +0 -11
- package/dist/components/loader/viral.loader.d.ts +0 -11
- package/dist/components/material/viral-material-manager.d.ts +0 -14
- package/dist/components/post-processing/post-processing-renderer.d.ts +0 -19
- package/dist/components/renderer/viral-renderer.d.ts +0 -11
- package/dist/components/scene/viral-scene.d.ts +0 -27
- package/dist/components/stats/viral-stats.d.ts +0 -6
- package/dist/components/visibility-manager/viral-visibility-manager.d.ts +0 -20
- package/dist/components/worker/base/worker-pool.d.ts +0 -23
- package/dist/components/worker/base/worker-thread.d.ts +0 -10
- package/dist/components/worker/fetch-data.worker.d.ts +0 -12
- package/dist/components/worker/viral-viewer-2.worker.d.ts +0 -17
- package/dist/components/worker/viral-viewer-3.worker.d.ts +0 -14
- package/dist/components/worker/viral-viewer-4.worker.d.ts +0 -10
- package/dist/components/worker/viral-viewer.worker.d.ts +0 -8
- package/dist/components/worker-script/fetch-data-worker.script.d.ts +0 -1
- package/dist/components/worker-script/load-model-worker-2.script.d.ts +0 -1
- package/dist/components/worker-script/load-model-worker-3.script.d.ts +0 -1
- package/dist/components/worker-script/load-model-worker.script.d.ts +0 -1
- package/dist/components/worker-script/threejs.types.d.ts +0 -1
- package/dist/const/colors.d.ts +0 -13
- package/dist/const/fonts.d.ts +0 -7
- package/dist/gui/context-menu/viral-context-menu.d.ts +0 -17
- package/dist/gui/draggable-modal/viral-draggable-modal.d.ts +0 -11
- package/dist/gui/fonts/fonts.d.ts +0 -2
- package/dist/gui/navigation-cube/components/cube-camera.d.ts +0 -15
- package/dist/gui/navigation-cube/components/cube-renderer.d.ts +0 -9
- package/dist/gui/navigation-cube/components/cube-scene.d.ts +0 -13
- package/dist/gui/navigation-cube/components/cube.mouse.d.ts +0 -9
- package/dist/gui/navigation-cube/viral-navigation-cube.d.ts +0 -16
- package/dist/gui/spinner/viral-spinner.d.ts +0 -10
- package/dist/gui/tools/tools/viral-tool-ambient-occlusion.d.ts +0 -7
- package/dist/gui/tools/tools/viral-tool-dark-mode.d.ts +0 -7
- package/dist/gui/tools/tools/viral-tool-elevation.d.ts +0 -11
- package/dist/gui/tools/tools/viral-tool-measure.d.ts +0 -33
- package/dist/gui/tools/tools/viral-tool-sunlight.d.ts +0 -7
- package/dist/gui/tools/viral-tools.d.ts +0 -32
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -19
- package/dist/services/local-storage.service.d.ts +0 -14
- package/dist/threejs-addon/n8ao/n8ao.d.ts +0 -303
- package/dist/threejs-addon/n8ao/post-processing.d.ts +0 -73558
- package/dist/threejs-addon/stats.d.ts +0 -21
- package/dist/types.d.ts +0 -120
- package/dist/utils/html.d.ts +0 -3
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/log.d.ts +0 -4
- package/dist/utils/threejs.d.ts +0 -8
- package/dist/viral-viewer-api.d.ts +0 -52
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export default Stats;
|
|
2
|
-
/**
|
|
3
|
-
* @author mrdoob / http://mrdoob.com/
|
|
4
|
-
*/
|
|
5
|
-
declare function Stats(): {
|
|
6
|
-
REVISION: number;
|
|
7
|
-
dom: HTMLDivElement;
|
|
8
|
-
addPanel: (panel: any) => any;
|
|
9
|
-
showPanel: (id: any) => void;
|
|
10
|
-
begin: () => void;
|
|
11
|
-
end: () => number;
|
|
12
|
-
update: () => void;
|
|
13
|
-
domElement: HTMLDivElement;
|
|
14
|
-
setMode: (id: any) => void;
|
|
15
|
-
};
|
|
16
|
-
declare namespace Stats {
|
|
17
|
-
function Panel(name: any, fg: any, bg: any): {
|
|
18
|
-
dom: HTMLCanvasElement;
|
|
19
|
-
update: (value: any, maxValue: any) => void;
|
|
20
|
-
};
|
|
21
|
-
}
|
package/dist/types.d.ts
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
export interface ViewerOptions {
|
|
2
|
-
container: HTMLElement;
|
|
3
|
-
cameraZUp: boolean;
|
|
4
|
-
isDev: boolean;
|
|
5
|
-
numberOfWorker: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ViralViewerRevitProject {
|
|
8
|
-
Materials: RenderMaterial[];
|
|
9
|
-
StructuralGeometries: ViralViewerRevitStructuralGeometry[];
|
|
10
|
-
NoneStructuralGeometries: ViralViewerRevitNoneStructuralGeometry[];
|
|
11
|
-
}
|
|
12
|
-
export interface RenderMaterial {
|
|
13
|
-
Name: string;
|
|
14
|
-
Opacity: number;
|
|
15
|
-
Metalness: number;
|
|
16
|
-
Roughness: number;
|
|
17
|
-
Red: number;
|
|
18
|
-
Green: number;
|
|
19
|
-
Blue: number;
|
|
20
|
-
}
|
|
21
|
-
export interface ViralViewerRevitStructuralGeometry {
|
|
22
|
-
MaterialIndex: number;
|
|
23
|
-
Vertices: ViralPoint[];
|
|
24
|
-
Indices: number[];
|
|
25
|
-
}
|
|
26
|
-
export declare class ViralViewerRevitNoneStructuralGeometry {
|
|
27
|
-
MaterialIndex: number;
|
|
28
|
-
Vertices: ViralPoint[];
|
|
29
|
-
Indices: number[];
|
|
30
|
-
Name: string;
|
|
31
|
-
Instances: RevitTransform[];
|
|
32
|
-
}
|
|
33
|
-
export declare class ViralViewerRevitGeometry {
|
|
34
|
-
Vertices: ViralPoint[];
|
|
35
|
-
Indices: number[];
|
|
36
|
-
Transform: RevitTransform | null;
|
|
37
|
-
}
|
|
38
|
-
export declare class ViralPoint {
|
|
39
|
-
X: number;
|
|
40
|
-
Y: number;
|
|
41
|
-
Z: number;
|
|
42
|
-
}
|
|
43
|
-
export interface RevitTransform {
|
|
44
|
-
BasisX: ViralPoint;
|
|
45
|
-
BasisY: ViralPoint;
|
|
46
|
-
BasisZ: ViralPoint;
|
|
47
|
-
Offset: ViralPoint;
|
|
48
|
-
Id: string;
|
|
49
|
-
}
|
|
50
|
-
export interface ViralViewerState {
|
|
51
|
-
CameraPoint: ViralPoint;
|
|
52
|
-
TargetPoint: ViralPoint;
|
|
53
|
-
}
|
|
54
|
-
export interface ViralViewerTool {
|
|
55
|
-
svg: string;
|
|
56
|
-
index: number;
|
|
57
|
-
activate: boolean;
|
|
58
|
-
name: string;
|
|
59
|
-
}
|
|
60
|
-
export declare enum ViralMouseEventType {
|
|
61
|
-
ON_MOUSE_MOVE = 0,
|
|
62
|
-
ON_MOUSE_DOWN_LEFT = 1,
|
|
63
|
-
ON_MOUSE_UP_LEFT = 2,
|
|
64
|
-
ON_MOUSE_DOWN_RIGHT = 3,
|
|
65
|
-
ON_MOUSE_UP_RIGHT = 4
|
|
66
|
-
}
|
|
67
|
-
export declare enum ViralCameraEventType {
|
|
68
|
-
ON_WAKE = 0,
|
|
69
|
-
ON_SLEEP = 1
|
|
70
|
-
}
|
|
71
|
-
export declare enum ViralKeyboardEventType {
|
|
72
|
-
KEYDOWN = 0,
|
|
73
|
-
KEYUP = 1
|
|
74
|
-
}
|
|
75
|
-
export declare enum ViralutionEvent {
|
|
76
|
-
LOADED_SCENE = 0,
|
|
77
|
-
LOADED_MATERIAL_MANAGER = 1,
|
|
78
|
-
LOADED_RENDERER = 2,
|
|
79
|
-
LOADED_CAMERA = 3,
|
|
80
|
-
LOADED_CUBE = 4,
|
|
81
|
-
LOADED_TOOLS = 5
|
|
82
|
-
}
|
|
83
|
-
export declare class Dictionary<TKey, TValue> {
|
|
84
|
-
private items;
|
|
85
|
-
add(key: TKey, value: TValue): void;
|
|
86
|
-
get(key: TKey): TValue | undefined;
|
|
87
|
-
remove(key: TKey): void;
|
|
88
|
-
containsKey(key: TKey): boolean;
|
|
89
|
-
keys(): TKey[];
|
|
90
|
-
values(): TValue[];
|
|
91
|
-
count(): number;
|
|
92
|
-
}
|
|
93
|
-
export declare class ViralutionElement {
|
|
94
|
-
Solids: ViralutionSolid[];
|
|
95
|
-
Id: string;
|
|
96
|
-
Instances: RevitTransform[];
|
|
97
|
-
}
|
|
98
|
-
export declare class ViralutionSolid {
|
|
99
|
-
MaterialIndex: number;
|
|
100
|
-
Vertices: ViralPoint[];
|
|
101
|
-
Indices: number[];
|
|
102
|
-
Buffer: number[];
|
|
103
|
-
}
|
|
104
|
-
export declare class ViralutionCamera {
|
|
105
|
-
scale: number;
|
|
106
|
-
eyePosition: ViralPoint;
|
|
107
|
-
upDirection: ViralPoint;
|
|
108
|
-
forwardDirection: ViralPoint;
|
|
109
|
-
}
|
|
110
|
-
export declare class ViralutionTrackingModel {
|
|
111
|
-
Data: Dictionary<number, number[][]>;
|
|
112
|
-
CameraData: ViralutionCamera;
|
|
113
|
-
}
|
|
114
|
-
export declare class DebouncedEventHandler<T> {
|
|
115
|
-
private delay;
|
|
116
|
-
private eventHandler;
|
|
117
|
-
private timerId;
|
|
118
|
-
constructor(delay: number, eventHandler: (event: T) => void);
|
|
119
|
-
handleEvent: (event: T) => void;
|
|
120
|
-
}
|
package/dist/utils/html.d.ts
DELETED
package/dist/utils/index.d.ts
DELETED
package/dist/utils/log.d.ts
DELETED
package/dist/utils/threejs.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Mesh, Vector3 } from "three";
|
|
2
|
-
export declare class THREEUtil {
|
|
3
|
-
static middlePoint(point1: Vector3, point2: Vector3): Vector3;
|
|
4
|
-
static clearChildren(mesh: Mesh): void;
|
|
5
|
-
static hexToThreejsColor(hexColor: string): string;
|
|
6
|
-
static rgbToThreejsColor(r: number, g: number, b: number): string;
|
|
7
|
-
private static componentToHex;
|
|
8
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ViewerOptions } from "./types";
|
|
2
|
-
import { ViralCompressProcessor } from "./components/compress/viral-compress.processor";
|
|
3
|
-
import { ViralCamera } from "./components/camera/viral-camera";
|
|
4
|
-
import { ViralMouse } from "./components/event-handler/mouse/viral-mouse";
|
|
5
|
-
import { ViralScene } from "./components/scene/viral-scene";
|
|
6
|
-
import { ViralRenderer } from "./components/renderer/viral-renderer";
|
|
7
|
-
import { ViralAnimation } from "./components/animation/viral-animation";
|
|
8
|
-
import { LocalStorageService } from "./services/local-storage.service";
|
|
9
|
-
import { ViralKeyboard } from "./components/event-handler/keyboard/viral-keyboard";
|
|
10
|
-
import { ViralContextMenu } from "./gui/context-menu/viral-context-menu";
|
|
11
|
-
import { ViralCentralizedEventHandler } from "./components/event-handler/viral-centralized-event-handler";
|
|
12
|
-
import { ViralLoader } from "./components/loader/viral.loader";
|
|
13
|
-
import { ViralStats } from "./components/stats/viral-stats";
|
|
14
|
-
import { ViralBVH } from "./components/bvh/viral-bvh";
|
|
15
|
-
import { ViralViewerWorker4 } from "./components/worker/viral-viewer-4.worker";
|
|
16
|
-
import { ViralMaterialManager } from "./components/material/viral-material-manager";
|
|
17
|
-
import { EventDispatcher } from "./components/event-handler/base/event-dispatcher";
|
|
18
|
-
import { ViralLifecycleEventHandler } from "./components/event-handler/viral-lifecycle-event-handler";
|
|
19
|
-
import { ViralVisibilityManager } from "./components/visibility-manager/viral-visibility-manager";
|
|
20
|
-
import { ViralDataManager } from "./components/data-manager/viral-data-manager";
|
|
21
|
-
import { ViralSpinner } from "./gui/spinner/viral-spinner";
|
|
22
|
-
import { ViralDraggableModal } from "./gui/draggable-modal/viral-draggable-modal";
|
|
23
|
-
import { ViralTools } from "./gui/tools/viral-tools";
|
|
24
|
-
import { ViralNavigationCube } from "./gui/navigation-cube/viral-navigation-cube";
|
|
25
|
-
export declare class ViralViewerApi {
|
|
26
|
-
lifeCycleEvent: EventDispatcher;
|
|
27
|
-
options: ViewerOptions;
|
|
28
|
-
viralLifecycleEventHandler: ViralLifecycleEventHandler;
|
|
29
|
-
targetElement: HTMLElement;
|
|
30
|
-
viralNavigationCube: ViralNavigationCube;
|
|
31
|
-
viralTools: ViralTools;
|
|
32
|
-
viralSpinner: ViralSpinner;
|
|
33
|
-
viralDraggableModal: ViralDraggableModal;
|
|
34
|
-
viralContextMenu: ViralContextMenu;
|
|
35
|
-
viralScene: ViralScene;
|
|
36
|
-
viralMaterialManager: ViralMaterialManager;
|
|
37
|
-
viralRenderer: ViralRenderer;
|
|
38
|
-
viralCamera: ViralCamera;
|
|
39
|
-
viralMouse: ViralMouse;
|
|
40
|
-
viralKeyboard: ViralKeyboard;
|
|
41
|
-
viralAnimation: ViralAnimation;
|
|
42
|
-
viralVisibilityManager: ViralVisibilityManager;
|
|
43
|
-
viralCentralizedEventHandler: ViralCentralizedEventHandler;
|
|
44
|
-
viralLoader: ViralLoader;
|
|
45
|
-
viralCompressProcessor: ViralCompressProcessor;
|
|
46
|
-
viralBVH: ViralBVH;
|
|
47
|
-
viralDataManager: ViralDataManager;
|
|
48
|
-
worker4: ViralViewerWorker4;
|
|
49
|
-
localStorageService: LocalStorageService;
|
|
50
|
-
viralStats: ViralStats | null;
|
|
51
|
-
constructor(options?: ViewerOptions);
|
|
52
|
-
}
|