vim-web 0.3.44-dev.3 → 0.3.44-dev.31

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 (43) hide show
  1. package/README.md +2 -2
  2. package/dist/style.css +9 -8
  3. package/dist/types/core-viewers/ultra/index.d.ts +1 -1
  4. package/dist/types/core-viewers/ultra/viewer/camera.d.ts +2 -1
  5. package/dist/types/core-viewers/ultra/viewer/inputs/{inputKeyboard.d.ts → keyboardHandler.d.ts} +1 -1
  6. package/dist/types/core-viewers/ultra/viewer/inputs/{inputMouse.d.ts → mouseHandler.d.ts} +7 -6
  7. package/dist/types/core-viewers/ultra/viewer/inputs/{InputTouch.d.ts → touchHandler.d.ts} +1 -1
  8. package/dist/types/core-viewers/ultra/viewer/marshal.d.ts +1 -1
  9. package/dist/types/core-viewers/ultra/viewer/sectionBox.d.ts +1 -0
  10. package/dist/types/core-viewers/ultra/viewer/selection.d.ts +3 -0
  11. package/dist/types/core-viewers/ultra/viewer/vim.d.ts +1 -1
  12. package/dist/types/core-viewers/webgl/loader/materials/viewerMaterials.d.ts +1 -1
  13. package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBoxHandle.d.ts +2 -0
  14. package/dist/types/core-viewers/webgl/viewer/inputs/inputHandler.d.ts +1 -0
  15. package/dist/types/react-viewers/bim/bimPanel.d.ts +3 -3
  16. package/dist/types/react-viewers/bim/bimTree.d.ts +2 -2
  17. package/dist/types/react-viewers/controlbar/controlBar.d.ts +1 -0
  18. package/dist/types/react-viewers/controlbar/controlBarIds.d.ts +29 -0
  19. package/dist/types/react-viewers/helpers/{inputs.d.ts → componentInputs.d.ts} +2 -2
  20. package/dist/types/react-viewers/helpers/isolation.d.ts +2 -2
  21. package/dist/types/react-viewers/helpers/reactUtils.d.ts +39 -0
  22. package/dist/types/react-viewers/index.d.ts +4 -0
  23. package/dist/types/react-viewers/panels/axesPanel.d.ts +2 -2
  24. package/dist/types/react-viewers/panels/contextMenu.d.ts +2 -2
  25. package/dist/types/react-viewers/panels/icons.d.ts +1 -0
  26. package/dist/types/react-viewers/state/cameraState.d.ts +22 -0
  27. package/dist/types/react-viewers/state/controlBarState.d.ts +31 -33
  28. package/dist/types/react-viewers/state/sectionBoxState.d.ts +12 -14
  29. package/dist/types/react-viewers/ultra/errors/ultraErrors.d.ts +1 -1
  30. package/dist/types/react-viewers/ultra/index.d.ts +1 -0
  31. package/dist/types/react-viewers/ultra/ultraCameraState.d.ts +2 -0
  32. package/dist/types/react-viewers/ultra/ultraComponent.d.ts +1 -7
  33. package/dist/types/react-viewers/ultra/ultraComponentRef.d.ts +36 -0
  34. package/dist/types/react-viewers/ultra/ultraControlBarState.d.ts +14 -1
  35. package/dist/types/react-viewers/urls.d.ts +1 -0
  36. package/dist/types/react-viewers/webgl/webglCameraState.d.ts +2 -0
  37. package/dist/types/react-viewers/webgl/webglComponentRef.d.ts +7 -2
  38. package/dist/vim-web.iife.js +529 -396
  39. package/dist/vim-web.iife.js.map +1 -1
  40. package/dist/vim-web.js +529 -396
  41. package/dist/vim-web.js.map +1 -1
  42. package/package.json +1 -1
  43. package/dist/types/react-viewers/helpers/camera.d.ts +0 -37
@@ -0,0 +1,36 @@
1
+ import * as Ultra from '../../core-viewers/ultra';
2
+ import { ModalRef } from '../panels/modal';
3
+ import { CameraRef } from '../state/cameraState';
4
+ import { SectionBoxRef } from '../state/sectionBoxState';
5
+ import { ControlBarRef } from '../webgl/webglComponentRef';
6
+ export type UltraComponentRef = {
7
+ /**
8
+ * The Vim viewer instance associated with the component.
9
+ */
10
+ viewer: Ultra.Viewer;
11
+ /**
12
+ * API to manage the modal dialog.
13
+ */
14
+ modal: ModalRef;
15
+ /**
16
+ * API to manage the section box.
17
+ */
18
+ sectionBox: SectionBoxRef;
19
+ /**
20
+ * API to customize the control.
21
+ */
22
+ controlBar: ControlBarRef;
23
+ /**
24
+ * Camera API to interact with the viewer camera at a higher level.
25
+ */
26
+ camera: CameraRef;
27
+ /**
28
+ * Disposes of the component and its resources.
29
+ */
30
+ dispose: () => void;
31
+ /**
32
+ * Loads a file into the viewer.
33
+ * @param url The URL of the file to load.
34
+ */
35
+ load(url: Ultra.VimSource): Ultra.ILoadRequest;
36
+ };
@@ -1,6 +1,19 @@
1
1
  import { ControlBarCustomization } from '../controlbar/controlBar';
2
2
  import { SectionBoxRef } from '../state/sectionBoxState';
3
3
  import * as Ultra from '../../core-viewers/ultra/index';
4
+ import { CameraRef } from '../state/cameraState';
4
5
  export { buttonDefaultStyle, buttonBlueStyle } from '../controlbar/controlBarButton';
5
6
  export { sectionDefaultStyle, sectionBlueStyle } from '../controlbar/controlBarSection';
6
- export declare function useUltraControlBar(viewer: Ultra.Viewer, section: SectionBoxRef, customization: ControlBarCustomization | undefined): import("../controlbar/controlBarSection").IControlBarSection[];
7
+ export declare function useUltraControlBar(viewer: Ultra.Viewer, section: SectionBoxRef, camera: CameraRef, customization: ControlBarCustomization | undefined): (import("../controlbar/controlBarSection").IControlBarSection | {
8
+ id: string;
9
+ enable: () => boolean;
10
+ style: string;
11
+ buttons: {
12
+ id: string;
13
+ tip: string;
14
+ isOn: () => boolean;
15
+ action: () => void;
16
+ icon: typeof import("../panels/icons").autoCamera;
17
+ style: typeof import("../controlbar/controlBarButton").buttonDefaultStyle;
18
+ }[];
19
+ })[];
@@ -1,2 +1,3 @@
1
1
  export declare const support = "https://docs.vimaec.com";
2
+ export declare const supportUltra = "https://docs.vimaec.com/docs/vim-for-windows/configuring-vim-ultra";
2
3
  export declare const supportControls = "https://docs.vimaec.com/docs/vim-cloud/webgl-navigation-and-controls-guide";
@@ -0,0 +1,2 @@
1
+ import { WebglViewer } from "../..";
2
+ export declare function useWebglCamera(viewer: WebglViewer.Viewer): import("../..").CameraRef;
@@ -5,12 +5,13 @@ import * as VIM from '../../core-viewers/webgl/index';
5
5
  import { ContextMenuCustomization } from '../panels/contextMenu';
6
6
  import { ComponentSettings } from '../settings/settings';
7
7
  import { Isolation } from '../helpers/isolation';
8
- import { ComponentCamera } from '../helpers/camera';
8
+ import { CameraRef } from '../state/cameraState';
9
9
  import { Container } from '../container';
10
10
  import { BimInfoPanelRef } from '../bim/bimInfoData';
11
11
  import { ControlBarCustomization } from '../controlbar/controlBar';
12
12
  import { ComponentLoader } from './webglLoading';
13
13
  import { ModalRef } from '../panels/modal';
14
+ import { SectionBoxRef } from '../state/sectionBoxState';
14
15
  /**
15
16
  * Settings API managing settings applied to the component.
16
17
  */
@@ -82,6 +83,10 @@ export type VimComponentRef = {
82
83
  * Isolation API managing isolation state in the component.
83
84
  */
84
85
  isolation: Isolation;
86
+ /**
87
+ * Section box API managing the section box in the component.
88
+ */
89
+ sectionBox: SectionBoxRef;
85
90
  /**
86
91
  * Context menu API managing the content and behavior of the context menu.
87
92
  */
@@ -101,7 +106,7 @@ export type VimComponentRef = {
101
106
  /**
102
107
  * Camera API to interact with the viewer camera at a higher level.
103
108
  */
104
- camera: ComponentCamera;
109
+ camera: CameraRef;
105
110
  /**
106
111
  * API To interact with the BIM info panel.
107
112
  */