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.
Files changed (62) hide show
  1. package/dist/{batched-mesh-simplifier-Dg6taIi9.mjs → batched-mesh-simplifier-BFjj2CKy.mjs} +1 -1
  2. package/dist/components/camera/viral-camera.d.ts +1 -1
  3. package/dist/components/custom-objects/viral-batched-mesh.d.ts +47 -6
  4. package/dist/components/custom-objects/viral-instanced-mesh-v2.d.ts +43 -2
  5. package/dist/components/custom-objects/viral-merged-model.d.ts +8 -1
  6. package/dist/components/data-manager/viral-data-manager.d.ts +4 -9
  7. package/dist/components/duplication-analyzer/viral-duplication-analyzer.d.ts +1 -1
  8. package/dist/components/event-handler/base/event-dispatcher.d.ts +1 -1
  9. package/dist/components/event-handler/mouse/viral-mouse.d.ts +1 -1
  10. package/dist/components/event-handler/viral-lifecycle-event-handler.d.ts +1 -1
  11. package/dist/components/loader/viral-revit.loader.d.ts +2 -17
  12. package/dist/components/loader/viral.loader.d.ts +0 -2
  13. package/dist/components/visibility-manager/viral-visibility-manager.d.ts +8 -1
  14. package/dist/components/worker/bounding-box-intersect.worker.d.ts +1 -1
  15. package/dist/components/worker/bounding-box.worker.d.ts +1 -1
  16. package/dist/components/worker/load-element-batch.worker.d.ts +1 -1
  17. package/dist/entities/archive-elements.d.ts +59 -0
  18. package/dist/entities/base-elements.d.ts +61 -0
  19. package/dist/entities/configuration.d.ts +14 -0
  20. package/dist/entities/data-tree.d.ts +141 -0
  21. package/dist/entities/data.d.ts +15 -0
  22. package/dist/entities/event.d.ts +30 -0
  23. package/dist/entities/index.d.ts +9 -0
  24. package/dist/entities/results.d.ts +19 -0
  25. package/dist/entities/tool.d.ts +6 -0
  26. package/dist/entities/viewer-option.d.ts +18 -0
  27. package/dist/gui/draggable-modal/viral-draggable-modal.d.ts +6 -1
  28. package/dist/{index-BIlAmQvm.mjs → index-BRDaOYaY.mjs} +32664 -12347
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.mjs +23 -26
  31. package/dist/types.d.ts +0 -325
  32. package/dist/viral-viewer-api.d.ts +1 -1
  33. package/package.json +1 -2
  34. package/dist/components/loader/viral-flatbuffer.loader.d.ts +0 -13
  35. package/dist/components/worker/load-element-by-material-v2.worker.d.ts +0 -11
  36. package/dist/components/worker/load-element-by-material.worker.d.ts +0 -11
  37. package/dist/components/worker/load-element-standalone.worker.d.ts +0 -15
  38. package/dist/components/worker/viral-viewer-2.worker.d.ts +0 -17
  39. package/dist/components/worker/viral-viewer-3.worker.d.ts +0 -14
  40. package/dist/components/worker/viral-viewer.worker.d.ts +0 -8
  41. package/dist/components/worker-script/load-element-by-material.script.d.ts +0 -3
  42. package/dist/components/worker-script/load-element-standalone.script.d.ts +0 -1
  43. package/dist/components/worker-script/load-model-worker-2.script.d.ts +0 -1
  44. package/dist/components/worker-script/load-model-worker.script.d.ts +0 -1
  45. package/dist/components/worker-script/material-aproach/load-element-by-material-instanced-mesh.script.d.ts +0 -1
  46. package/dist/components/worker-script/material-aproach/load-element-by-material-mesh.script.d.ts +0 -3
  47. package/dist/components/worker-script/threejs.types.d.ts +0 -1
  48. package/dist/models/flat-buffer/model-management-camera-model.d.ts +0 -24
  49. package/dist/models/flat-buffer/parameter-dictionary.d.ts +0 -20
  50. package/dist/models/flat-buffer/point.d.ts +0 -11
  51. package/dist/models/flat-buffer/render-material.d.ts +0 -26
  52. package/dist/models/flat-buffer/revit-transform.d.ts +0 -22
  53. package/dist/models/flat-buffer/viralution-box.d.ts +0 -11
  54. package/dist/models/flat-buffer/viralution-element.d.ts +0 -27
  55. package/dist/models/flat-buffer/viralution-information.d.ts +0 -19
  56. package/dist/models/flat-buffer/viralution-parameter.d.ts +0 -35
  57. package/dist/models/flat-buffer/viralution-solid.d.ts +0 -28
  58. package/dist/models/flat-buffer/viralution-standalone-model.d.ts +0 -27
  59. package/dist/models/index.d.ts +0 -8
  60. package/dist/serializers/index.d.ts +0 -2
  61. package/dist/serializers/viralution-flatbuffer.serializer.d.ts +0 -92
  62. 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,6 @@
1
+ export interface ViralViewerTool {
2
+ svg: string;
3
+ index: number;
4
+ activate: boolean;
5
+ name: string;
6
+ }
@@ -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: any;
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;