viral-viewer-2 7.0.9 → 7.1.1
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-Dg6taIi9.mjs → batched-mesh-simplifier-BFjj2CKy.mjs} +1 -1
- package/dist/components/camera/viral-camera.d.ts +1 -1
- package/dist/components/custom-objects/viral-batched-mesh.d.ts +47 -6
- package/dist/components/custom-objects/viral-instanced-mesh-v2.d.ts +43 -2
- package/dist/components/custom-objects/viral-merged-model.d.ts +8 -1
- package/dist/components/data-manager/viral-data-manager.d.ts +4 -9
- package/dist/components/duplication-analyzer/viral-duplication-analyzer.d.ts +1 -1
- package/dist/components/event-handler/base/event-dispatcher.d.ts +1 -1
- package/dist/components/event-handler/mouse/viral-mouse.d.ts +1 -1
- package/dist/components/event-handler/viral-lifecycle-event-handler.d.ts +1 -1
- package/dist/components/loader/viral-revit.loader.d.ts +2 -17
- package/dist/components/loader/viral.loader.d.ts +0 -2
- package/dist/components/visibility-manager/viral-visibility-manager.d.ts +8 -1
- 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/load-element-batch.worker.d.ts +1 -1
- package/dist/entities/archive-elements.d.ts +59 -0
- package/dist/entities/base-elements.d.ts +61 -0
- package/dist/entities/configuration.d.ts +14 -0
- package/dist/entities/data-tree.d.ts +141 -0
- package/dist/entities/data.d.ts +15 -0
- package/dist/entities/event.d.ts +30 -0
- package/dist/entities/index.d.ts +9 -0
- package/dist/entities/results.d.ts +19 -0
- package/dist/entities/tool.d.ts +6 -0
- package/dist/entities/viewer-option.d.ts +18 -0
- package/dist/gui/draggable-modal/viral-draggable-modal.d.ts +6 -1
- package/dist/{index-BIlAmQvm.mjs → index-BRDaOYaY.mjs} +32664 -12347
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +23 -26
- package/dist/types.d.ts +0 -325
- package/dist/viral-viewer-api.d.ts +1 -1
- package/package.json +1 -2
- package/dist/components/loader/viral-flatbuffer.loader.d.ts +0 -13
- package/dist/components/worker/load-element-by-material-v2.worker.d.ts +0 -11
- package/dist/components/worker/load-element-by-material.worker.d.ts +0 -11
- package/dist/components/worker/load-element-standalone.worker.d.ts +0 -15
- 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.worker.d.ts +0 -8
- package/dist/components/worker-script/load-element-by-material.script.d.ts +0 -3
- package/dist/components/worker-script/load-element-standalone.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.script.d.ts +0 -1
- package/dist/components/worker-script/material-aproach/load-element-by-material-instanced-mesh.script.d.ts +0 -1
- package/dist/components/worker-script/material-aproach/load-element-by-material-mesh.script.d.ts +0 -3
- package/dist/components/worker-script/threejs.types.d.ts +0 -1
- package/dist/models/flat-buffer/model-management-camera-model.d.ts +0 -24
- package/dist/models/flat-buffer/parameter-dictionary.d.ts +0 -20
- package/dist/models/flat-buffer/point.d.ts +0 -11
- package/dist/models/flat-buffer/render-material.d.ts +0 -26
- package/dist/models/flat-buffer/revit-transform.d.ts +0 -22
- package/dist/models/flat-buffer/viralution-box.d.ts +0 -11
- package/dist/models/flat-buffer/viralution-element.d.ts +0 -27
- package/dist/models/flat-buffer/viralution-information.d.ts +0 -19
- package/dist/models/flat-buffer/viralution-parameter.d.ts +0 -35
- package/dist/models/flat-buffer/viralution-solid.d.ts +0 -28
- package/dist/models/flat-buffer/viralution-standalone-model.d.ts +0 -27
- package/dist/models/index.d.ts +0 -8
- package/dist/serializers/index.d.ts +0 -2
- package/dist/serializers/viralution-flatbuffer.serializer.d.ts +0 -92
- package/dist/serializers/viralution-standalone.serializer.d.ts +0 -16
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ViralutionInformation {
|
|
2
|
+
Data: {
|
|
3
|
+
[key: number]: {
|
|
4
|
+
[key: string]: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
Relationships?: ViralutionRelationship[];
|
|
10
|
+
}
|
|
11
|
+
export interface ViralutionRelationship {
|
|
12
|
+
FromId: string;
|
|
13
|
+
ToId: string;
|
|
14
|
+
Type: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare enum ViralMouseEventType {
|
|
2
|
+
ON_MOUSE_MOVE = 0,
|
|
3
|
+
ON_MOUSE_DOWN_LEFT = 1,
|
|
4
|
+
ON_MOUSE_UP_LEFT = 2,
|
|
5
|
+
ON_MOUSE_DOWN_RIGHT = 3,
|
|
6
|
+
ON_MOUSE_UP_RIGHT = 4,
|
|
7
|
+
ON_MOUSE_DOUBLE_CLICK = 5
|
|
8
|
+
}
|
|
9
|
+
export declare enum ViralCameraEventType {
|
|
10
|
+
ON_WAKE = 0,
|
|
11
|
+
ON_SLEEP = 1,
|
|
12
|
+
ON_UPDATE = 2
|
|
13
|
+
}
|
|
14
|
+
export declare enum ViralKeyboardEventType {
|
|
15
|
+
KEYDOWN = 0,
|
|
16
|
+
KEYUP = 1
|
|
17
|
+
}
|
|
18
|
+
export declare enum ViralutionEvent {
|
|
19
|
+
LOADED_SCENE = 0,
|
|
20
|
+
LOADED_MATERIAL_MANAGER = 1,
|
|
21
|
+
LOADED_RENDERER = 2,
|
|
22
|
+
LOADED_CAMERA = 3,
|
|
23
|
+
LOADED_CUBE = 4,
|
|
24
|
+
LOADED_TOOLS = 5,
|
|
25
|
+
LOADED_SEPERATE_MODEL = 6,
|
|
26
|
+
GENERATED_MERGE_MODEL = 7,
|
|
27
|
+
LOADED_DATA = 8,
|
|
28
|
+
SELECT_ELEMENTS = 9,
|
|
29
|
+
UNSELECT_ELEMENTS = 10
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 './tool';
|
|
8
|
+
export * from './viewer-option';
|
|
9
|
+
export * from './results';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Dictionary } from "../types";
|
|
2
|
+
export declare class CompareModelsResult {
|
|
3
|
+
deleted: number[];
|
|
4
|
+
added: number[];
|
|
5
|
+
modified: number[];
|
|
6
|
+
notChanged: number[];
|
|
7
|
+
}
|
|
8
|
+
export declare class CheckClashResult {
|
|
9
|
+
clashes: Dictionary<number, number[]>;
|
|
10
|
+
}
|
|
11
|
+
export declare class GroupByResult {
|
|
12
|
+
value: {
|
|
13
|
+
[key: string]: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
elementIds: number[];
|
|
18
|
+
modelId: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ViewerOptions {
|
|
2
|
+
container: HTMLElement;
|
|
3
|
+
cameraZUp: boolean;
|
|
4
|
+
isDev: boolean;
|
|
5
|
+
numberOfWorker: number;
|
|
6
|
+
enableNavigationCube: boolean;
|
|
7
|
+
enableTools: boolean;
|
|
8
|
+
enablePostProcessing?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Optimize Edge rendering, Show/ Hide edges base on camera movement
|
|
11
|
+
*/
|
|
12
|
+
adaptiveEdges?: boolean;
|
|
13
|
+
adaptiveAmbientOcclusion?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* from 0 to 1, step 0.1
|
|
16
|
+
*/
|
|
17
|
+
navigationCubeScale?: number;
|
|
18
|
+
}
|
|
@@ -6,11 +6,16 @@ export declare class ViralDraggableModal {
|
|
|
6
6
|
private modalBody;
|
|
7
7
|
private modalBodyLeft;
|
|
8
8
|
private modalBodyRight;
|
|
9
|
-
properties:
|
|
9
|
+
properties: {
|
|
10
|
+
[key: string]: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
} | null;
|
|
10
14
|
private rawModal;
|
|
11
15
|
private rawModalStyle;
|
|
12
16
|
isDragging: boolean;
|
|
13
17
|
isResizing: boolean;
|
|
18
|
+
isResizingColumns: boolean;
|
|
14
19
|
offsetX: number;
|
|
15
20
|
offsetY: number;
|
|
16
21
|
private minWidth;
|