viral-viewer-2 6.2.6 → 6.2.7
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/components/animation/viral-animation.d.ts +9 -0
- package/dist/components/bvh/viral-bvh.d.ts +5 -0
- package/dist/components/camera/viral-camera.d.ts +40 -0
- package/dist/components/compress/viral-compress.processor.d.ts +3 -0
- package/dist/components/custom-objects/index.d.ts +2 -0
- package/dist/components/custom-objects/viral-instanced-mesh.d.ts +31 -0
- package/dist/components/data-manager/viral-data-manager.d.ts +18 -0
- package/dist/components/event-handler/base/event-dispatcher.d.ts +9 -0
- package/dist/components/event-handler/keyboard/viral-keyboard.d.ts +17 -0
- package/dist/components/event-handler/mouse/viral-mouse.d.ts +31 -0
- package/dist/components/event-handler/viral-centralized-event-handler.d.ts +12 -0
- package/dist/components/event-handler/viral-lifecycle-event-handler.d.ts +13 -0
- package/dist/components/loader/viral-point-cloud.loader.d.ts +16 -0
- package/dist/components/loader/viral-revit.loader.d.ts +11 -0
- package/dist/components/loader/viral-three.loader.d.ts +11 -0
- package/dist/components/loader/viral.loader.d.ts +11 -0
- package/dist/components/material/viral-material-manager.d.ts +14 -0
- package/dist/components/post-processing/post-processing-renderer.d.ts +19 -0
- package/dist/components/renderer/viral-renderer.d.ts +11 -0
- package/dist/components/scene/viral-scene.d.ts +27 -0
- package/dist/components/stats/viral-stats.d.ts +6 -0
- package/dist/components/visibility-manager/viral-visibility-manager.d.ts +20 -0
- package/dist/components/worker/base/worker-pool.d.ts +23 -0
- package/dist/components/worker/base/worker-thread.d.ts +10 -0
- package/dist/components/worker/fetch-data.worker.d.ts +12 -0
- package/dist/components/worker/viral-viewer-2.worker.d.ts +17 -0
- package/dist/components/worker/viral-viewer-3.worker.d.ts +14 -0
- package/dist/components/worker/viral-viewer-4.worker.d.ts +10 -0
- package/dist/components/worker/viral-viewer.worker.d.ts +8 -0
- package/dist/components/worker-script/fetch-data-worker.script.d.ts +1 -0
- package/dist/components/worker-script/load-model-worker-2.script.d.ts +1 -0
- package/dist/components/worker-script/load-model-worker-3.script.d.ts +1 -0
- package/dist/components/worker-script/load-model-worker.script.d.ts +1 -0
- package/dist/components/worker-script/threejs.types.d.ts +1 -0
- package/dist/const/colors.d.ts +13 -0
- package/dist/const/fonts.d.ts +7 -0
- package/dist/gui/context-menu/viral-context-menu.d.ts +17 -0
- package/dist/gui/draggable-modal/viral-draggable-modal.d.ts +11 -0
- package/dist/gui/fonts/fonts.d.ts +2 -0
- package/dist/gui/navigation-cube/components/cube-camera.d.ts +15 -0
- package/dist/gui/navigation-cube/components/cube-renderer.d.ts +9 -0
- package/dist/gui/navigation-cube/components/cube-scene.d.ts +13 -0
- package/dist/gui/navigation-cube/components/cube.mouse.d.ts +9 -0
- package/dist/gui/navigation-cube/viral-navigation-cube.d.ts +16 -0
- package/dist/gui/spinner/viral-spinner.d.ts +10 -0
- package/dist/gui/tools/tools/viral-tool-ambient-occlusion.d.ts +7 -0
- package/dist/gui/tools/tools/viral-tool-dark-mode.d.ts +7 -0
- package/dist/gui/tools/tools/viral-tool-elevation.d.ts +11 -0
- package/dist/gui/tools/tools/viral-tool-measure.d.ts +33 -0
- package/dist/gui/tools/tools/viral-tool-sunlight.d.ts +7 -0
- package/dist/gui/tools/viral-tools.d.ts +32 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +36613 -0
- package/dist/services/local-storage.service.d.ts +14 -0
- package/dist/threejs-addon/n8ao/n8ao.d.ts +303 -0
- package/dist/threejs-addon/n8ao/post-processing.d.ts +73558 -0
- package/dist/threejs-addon/stats.d.ts +21 -0
- package/dist/types.d.ts +120 -0
- package/dist/utils/html.d.ts +3 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/log.d.ts +4 -0
- package/dist/utils/threejs.d.ts +8 -0
- package/dist/viral-viewer-api.d.ts +52 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Vector2 } from "three";
|
|
2
|
+
import { ViralViewerTool } from "../../../types";
|
|
3
|
+
import { ViralTools } from "../viral-tools";
|
|
4
|
+
export declare class ViralToolElevation {
|
|
5
|
+
viralTools: ViralTools;
|
|
6
|
+
isActivated: boolean;
|
|
7
|
+
constructor(viralTools: ViralTools);
|
|
8
|
+
activate(input: ViralViewerTool): void;
|
|
9
|
+
onMouseMove(mousePoint: Vector2): void;
|
|
10
|
+
onMouseClick(mousePoint: Vector2): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Scene, Vector2, Vector3 } from "three";
|
|
2
|
+
import { ViralViewerTool } from "../../../types";
|
|
3
|
+
import { ViralTools } from "../viral-tools";
|
|
4
|
+
interface ViralMeasure {
|
|
5
|
+
point1: Vector3;
|
|
6
|
+
point2: Vector3;
|
|
7
|
+
}
|
|
8
|
+
export declare class ViralToolMeasure {
|
|
9
|
+
viralTools: ViralTools;
|
|
10
|
+
viralToolMeasureScene: Scene;
|
|
11
|
+
isActivated: boolean;
|
|
12
|
+
measures: ViralMeasure[];
|
|
13
|
+
private point1;
|
|
14
|
+
private point2;
|
|
15
|
+
private tempPoint2;
|
|
16
|
+
private defaultSprite;
|
|
17
|
+
private measureObject;
|
|
18
|
+
private tempMeasure;
|
|
19
|
+
private tempSprite1;
|
|
20
|
+
private tempLine;
|
|
21
|
+
private tempSprite2;
|
|
22
|
+
constructor(viralTools: ViralTools);
|
|
23
|
+
activate(input: ViralViewerTool): void;
|
|
24
|
+
onMouseMove(mousePoint: Vector2): void;
|
|
25
|
+
onMouseClick(mousePoint: Vector2): void;
|
|
26
|
+
private resetPickedPoints;
|
|
27
|
+
private makeSprite;
|
|
28
|
+
private makeLine;
|
|
29
|
+
private makeDistanceSprite;
|
|
30
|
+
private dispose;
|
|
31
|
+
onKeyPress(evt: KeyboardEvent): void;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ViralViewerTool } from "../..";
|
|
2
|
+
import { ViralViewerApi } from "../../viral-viewer-api";
|
|
3
|
+
import { ViralToolAmbientOcclusion } from "./tools/viral-tool-ambient-occlusion";
|
|
4
|
+
import { ViralToolDarkMode } from "./tools/viral-tool-dark-mode";
|
|
5
|
+
import { ViralToolElevation } from "./tools/viral-tool-elevation";
|
|
6
|
+
import { ViralToolMeasure } from "./tools/viral-tool-measure";
|
|
7
|
+
import { ViralToolSunlight } from "./tools/viral-tool-sunlight";
|
|
8
|
+
export declare class ViralTools {
|
|
9
|
+
viralViewerApi: ViralViewerApi;
|
|
10
|
+
viralToolDarkMode: ViralToolDarkMode;
|
|
11
|
+
viralToolSunlight: ViralToolSunlight;
|
|
12
|
+
viralToolElevation: ViralToolElevation;
|
|
13
|
+
viralToolMeasure: ViralToolMeasure;
|
|
14
|
+
viralToolAmbientOcclusion: ViralToolAmbientOcclusion;
|
|
15
|
+
tools: {
|
|
16
|
+
name: string;
|
|
17
|
+
tools: {
|
|
18
|
+
svg: string;
|
|
19
|
+
index: number;
|
|
20
|
+
activate: boolean;
|
|
21
|
+
allowDehydrated: boolean;
|
|
22
|
+
name: string;
|
|
23
|
+
action: (model: ViralViewerTool) => void;
|
|
24
|
+
}[];
|
|
25
|
+
}[];
|
|
26
|
+
items: HTMLElement[];
|
|
27
|
+
constructor(viralViewerApi: ViralViewerApi);
|
|
28
|
+
private injectTools;
|
|
29
|
+
private dehydratedCachedData;
|
|
30
|
+
executeToolsByDefault(): void;
|
|
31
|
+
private handleClick;
|
|
32
|
+
}
|
package/dist/index.d.ts
ADDED