vim-web 0.3.44-dev.57 → 0.3.44-dev.59

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,6 +2,16 @@
2
2
  * @module viw-webgl-react
3
3
  */
4
4
  import { IControlBarSection } from './controlBarSection';
5
+ /**
6
+ * Reference to manage control bar functionality in the viewer.
7
+ */
8
+ export type ControlBarRef = {
9
+ /**
10
+ * Defines a callback function to dynamically customize the control bar.
11
+ * @param customization The configuration object specifying the customization options for the control bar.
12
+ */
13
+ customize: (customization: ControlBarCustomization) => void;
14
+ };
5
15
  /**
6
16
  * A map function that changes the context menu.
7
17
  */
@@ -1,5 +1,6 @@
1
1
  export * as Ids from './controlBarIds';
2
2
  export * as Style from './style';
3
- export type * from './controlBar';
4
3
  export type * from './controlBarButton';
4
+ export { isControlBarButtonItem } from './controlBarButton';
5
+ export type * from './controlBar';
5
6
  export type * from './controlBarSection';
@@ -8,6 +8,16 @@ import { ModalRef } from './modal';
8
8
  import { IsolationRef } from '../state/sharedIsolation';
9
9
  import * as Core from '../../core-viewers';
10
10
  type ClickCallback = React.MouseEvent<HTMLDivElement, MouseEvent>;
11
+ /**
12
+ * Reference to manage context menu functionality in the viewer.
13
+ */
14
+ export type ContextMenuRef = {
15
+ /**
16
+ * Defines a callback function to dynamically customize the context menu.
17
+ * @param customization The configuration object specifying the customization options for the context menu.
18
+ */
19
+ customize: (customization: ContextMenuCustomization) => void;
20
+ };
11
21
  export declare function showContextMenu(position: {
12
22
  x: number;
13
23
  y: number;
@@ -3,7 +3,7 @@ import { ModalRef } from '../panels/modal';
3
3
  import { CameraRef } from '../state/cameraState';
4
4
  import { SectionBoxRef } from '../state/sectionBoxState';
5
5
  import { IsolationRef } from '../state/sharedIsolation';
6
- import { ControlBarRef } from '../webgl/viewerRef';
6
+ import { ControlBarRef } from '../controlbar';
7
7
  export type ViewerRef = {
8
8
  /**
9
9
  * The Vim viewer instance associated with the viewer.
@@ -2,12 +2,12 @@
2
2
  * @module public-api
3
3
  */
4
4
  import * as Core from '../../core-viewers';
5
- import { ContextMenuCustomization } from '../panels/contextMenu';
5
+ import { ContextMenuRef } from '../panels/contextMenu';
6
6
  import { Settings } from '../settings/settings';
7
7
  import { CameraRef } from '../state/cameraState';
8
8
  import { Container } from '../container';
9
9
  import { BimInfoPanelRef } from '../bim/bimInfoData';
10
- import { ControlBarCustomization } from '../controlbar/controlBar';
10
+ import { ControlBarRef } from '../controlbar';
11
11
  import { ComponentLoader } from './loading';
12
12
  import { ModalRef } from '../panels/modal';
13
13
  import { SectionBoxRef } from '../state/sectionBoxState';
@@ -27,26 +27,6 @@ export type SettingsRef = {
27
27
  */
28
28
  register: (callback: (settings: Settings) => void) => void;
29
29
  };
30
- /**
31
- * Reference to manage context menu functionality in the viewer.
32
- */
33
- export type ContextMenuRef = {
34
- /**
35
- * Defines a callback function to dynamically customize the context menu.
36
- * @param customization The configuration object specifying the customization options for the context menu.
37
- */
38
- customize: (customization: ContextMenuCustomization) => void;
39
- };
40
- /**
41
- * Reference to manage control bar functionality in the viewer.
42
- */
43
- export type ControlBarRef = {
44
- /**
45
- * Defines a callback function to dynamically customize the control bar.
46
- * @param customization The configuration object specifying the customization options for the control bar.
47
- */
48
- customize: (customization: ControlBarCustomization) => void;
49
- };
50
30
  /**
51
31
  * Reference to manage help message functionality in the viewer.
52
32
  */
@@ -61511,11 +61511,6 @@ Averrage Date/Second ${avgDataRatePS} kb
61511
61511
  sectionDefaultStyle,
61512
61512
  sectionNoPadStyle
61513
61513
  }, Symbol.toStringTag, { value: "Module" }));
61514
- const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
61515
- __proto__: null,
61516
- Ids: controlBarIds,
61517
- Style: style
61518
- }, Symbol.toStringTag, { value: "Module" }));
61519
61514
  var jsxRuntime = { exports: {} };
61520
61515
  var reactJsxRuntime_production_min = {};
61521
61516
  /**
@@ -62454,6 +62449,21 @@ Averrage Date/Second ${avgDataRatePS} kb
62454
62449
  return jsxRuntime.exports;
62455
62450
  }
62456
62451
  var jsxRuntimeExports = requireJsxRuntime();
62452
+ function isControlBarButtonItem(button) {
62453
+ return button !== null && typeof button === "object" && typeof button.id === "string" && typeof button.tip === "string" && typeof button.action === "function" && typeof button.icon === "function" && (button.enabled === void 0 || typeof button.enabled === "function") && (button.isOn === void 0 || typeof button.isOn === "function") && (button.style === void 0 || typeof button.style === "function");
62454
+ }
62455
+ function createButton(button) {
62456
+ var _a3;
62457
+ if (button.enabled !== void 0 && !button.enabled()) return null;
62458
+ const style$1 = (button.style ?? buttonDefaultStyle)((_a3 = button.isOn) == null ? void 0 : _a3.call(button));
62459
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("button", { id: button.id, "data-tip": button.tip, onClick: button.action, className: style$1, type: "button", children: button.icon({ height: "20", width: "20", fill: "currentColor", className: "vc-max-h-[80%]" }) }, button.id);
62460
+ }
62461
+ const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
62462
+ __proto__: null,
62463
+ Ids: controlBarIds,
62464
+ Style: style,
62465
+ isControlBarButtonItem
62466
+ }, Symbol.toStringTag, { value: "Module" }));
62457
62467
  function pointer({ height, width, fill: fill2, className }) {
62458
62468
  return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { className, height, width, viewBox: "0 0 50 50", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
62459
62469
  "path",
@@ -67316,15 +67326,6 @@ Averrage Date/Second ${avgDataRatePS} kb
67316
67326
  }
67317
67327
  );
67318
67328
  }
67319
- function isControlBarButtonItem(button) {
67320
- return button !== null && typeof button === "object" && typeof button.id === "string" && typeof button.tip === "string" && typeof button.action === "function" && typeof button.icon === "function" && (button.enabled === void 0 || typeof button.enabled === "function") && (button.isOn === void 0 || typeof button.isOn === "function") && (button.style === void 0 || typeof button.style === "function");
67321
- }
67322
- function createButton(button) {
67323
- var _a3;
67324
- if (button.enabled !== void 0 && !button.enabled()) return null;
67325
- const style$1 = (button.style ?? buttonDefaultStyle)((_a3 = button.isOn) == null ? void 0 : _a3.call(button));
67326
- return /* @__PURE__ */ jsxRuntimeExports.jsx("button", { id: button.id, "data-tip": button.tip, onClick: button.action, className: style$1, type: "button", children: button.icon({ height: "20", width: "20", fill: "currentColor", className: "vc-max-h-[80%]" }) }, button.id);
67327
- }
67328
67329
  function createSection$1(section) {
67329
67330
  if (section.enable !== void 0 && !section.enable()) return null;
67330
67331
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `vim-control-bar-section ${section.style ?? sectionDefaultStyle}`, children: section.buttons.map((b) => {