vim-web 0.3.44-dev.4 → 0.3.44-dev.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.
@@ -2,7 +2,6 @@ import "./style.css";
2
2
  export * from './viewer/viewer';
3
3
  export * as utils from './utils/promise';
4
4
  export * from './viewer/vim';
5
- export * from './viewer/vim';
6
5
  export * from './utils/math3d';
7
6
  export * from './viewer/color';
8
7
  export type { ILoadRequest, VimRequestErrorType } from './viewer/loadRequest';
@@ -1,10 +1,28 @@
1
1
  import * as Ultra from '../../core-viewers/ultra/index';
2
2
  import { Container } from '../container';
3
3
  import { ModalRef } from '../panels/modal';
4
+ import { SectionBoxRef } from '../state/sectionBoxState';
4
5
  export type UltraComponentRef = {
6
+ /**
7
+ * The Vim viewer instance associated with the component.
8
+ */
5
9
  viewer: Ultra.Viewer;
10
+ /**
11
+ * API to manage the modal dialog.
12
+ */
6
13
  modal: ModalRef;
14
+ /**
15
+ * API to manage the section box.
16
+ */
17
+ sectionBox: SectionBoxRef;
18
+ /**
19
+ * Disposes of the component and its resources.
20
+ */
7
21
  dispose: () => void;
22
+ /**
23
+ * Loads a file into the viewer.
24
+ * @param url The URL of the file to load.
25
+ */
8
26
  load(url: Ultra.VimSource): Ultra.ILoadRequest;
9
27
  };
10
28
  /**
@@ -11,6 +11,7 @@ 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
  */
@@ -76000,6 +76000,7 @@ Averrage Date/Second ${avgDataRatePS} kb
76000
76000
  isolation,
76001
76001
  camera: camera2,
76002
76002
  settings: settings2,
76003
+ sectionBox: sectionBox2,
76003
76004
  contextMenu: {
76004
76005
  customize: (v) => setcontextMenu(() => v)
76005
76006
  },
@@ -76465,7 +76466,7 @@ Averrage Date/Second ${avgDataRatePS} kb
76465
76466
  props.viewer.selection.onValueChanged.subscribe(() => {
76466
76467
  setSelectState((i2) => (i2 + 1) % 2);
76467
76468
  });
76468
- props.onMount(createComponentRef(props.viewer, modal));
76469
+ props.onMount(createComponentRef(props.viewer, modal, sectionBox2));
76469
76470
  }, []);
76470
76471
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
76471
76472
  /* @__PURE__ */ jsxRuntimeExports.jsx(RestOfScreen, { side, content: () => {
@@ -76485,7 +76486,7 @@ Averrage Date/Second ${avgDataRatePS} kb
76485
76486
  /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { state: modal })
76486
76487
  ] });
76487
76488
  }
76488
- function createComponentRef(viewer, modal) {
76489
+ function createComponentRef(viewer, modal, sectionBox2) {
76489
76490
  function load(source) {
76490
76491
  const request2 = viewer.loadVim(source);
76491
76492
  void updateProgress(request2, modal);
@@ -76505,6 +76506,7 @@ Averrage Date/Second ${avgDataRatePS} kb
76505
76506
  return {
76506
76507
  viewer,
76507
76508
  modal,
76509
+ sectionBox: sectionBox2,
76508
76510
  dispose: () => {
76509
76511
  },
76510
76512
  load