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.
- package/dist/types/react-viewers/controlbar/controlBar.d.ts +10 -0
- package/dist/types/react-viewers/controlbar/index.d.ts +2 -1
- package/dist/types/react-viewers/panels/contextMenu.d.ts +10 -0
- package/dist/types/react-viewers/ultra/viewerRef.d.ts +1 -1
- package/dist/types/react-viewers/webgl/viewerRef.d.ts +2 -22
- package/dist/vim-web.iife.js +15 -14
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +15 -14
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -61495,11 +61495,6 @@ const style = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
61495
61495
|
sectionDefaultStyle,
|
|
61496
61496
|
sectionNoPadStyle
|
|
61497
61497
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
61498
|
-
const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
61499
|
-
__proto__: null,
|
|
61500
|
-
Ids: controlBarIds,
|
|
61501
|
-
Style: style
|
|
61502
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
61503
61498
|
var jsxRuntime = { exports: {} };
|
|
61504
61499
|
var reactJsxRuntime_production_min = {};
|
|
61505
61500
|
/**
|
|
@@ -62438,6 +62433,21 @@ function requireJsxRuntime() {
|
|
|
62438
62433
|
return jsxRuntime.exports;
|
|
62439
62434
|
}
|
|
62440
62435
|
var jsxRuntimeExports = requireJsxRuntime();
|
|
62436
|
+
function isControlBarButtonItem(button) {
|
|
62437
|
+
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");
|
|
62438
|
+
}
|
|
62439
|
+
function createButton(button) {
|
|
62440
|
+
var _a3;
|
|
62441
|
+
if (button.enabled !== void 0 && !button.enabled()) return null;
|
|
62442
|
+
const style$1 = (button.style ?? buttonDefaultStyle)((_a3 = button.isOn) == null ? void 0 : _a3.call(button));
|
|
62443
|
+
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);
|
|
62444
|
+
}
|
|
62445
|
+
const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62446
|
+
__proto__: null,
|
|
62447
|
+
Ids: controlBarIds,
|
|
62448
|
+
Style: style,
|
|
62449
|
+
isControlBarButtonItem
|
|
62450
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
62441
62451
|
function pointer({ height, width, fill: fill2, className }) {
|
|
62442
62452
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { className, height, width, viewBox: "0 0 50 50", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
62443
62453
|
"path",
|
|
@@ -67300,15 +67310,6 @@ function AxesPanel(props) {
|
|
|
67300
67310
|
}
|
|
67301
67311
|
);
|
|
67302
67312
|
}
|
|
67303
|
-
function isControlBarButtonItem(button) {
|
|
67304
|
-
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");
|
|
67305
|
-
}
|
|
67306
|
-
function createButton(button) {
|
|
67307
|
-
var _a3;
|
|
67308
|
-
if (button.enabled !== void 0 && !button.enabled()) return null;
|
|
67309
|
-
const style$1 = (button.style ?? buttonDefaultStyle)((_a3 = button.isOn) == null ? void 0 : _a3.call(button));
|
|
67310
|
-
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);
|
|
67311
|
-
}
|
|
67312
67313
|
function createSection$1(section) {
|
|
67313
67314
|
if (section.enable !== void 0 && !section.enable()) return null;
|
|
67314
67315
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `vim-control-bar-section ${section.style ?? sectionDefaultStyle}`, children: section.buttons.map((b) => {
|