vim-web 0.3.27-dev.0 → 0.3.27-dev.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.
- package/dist/types/index.d.ts +1 -0
- package/dist/types/react-viewers/panels/axesPanel.d.ts +1 -1
- package/dist/types/react-viewers/settings/settingsStorage.d.ts +1 -1
- package/dist/types/react-viewers/webgl/index.d.ts +10 -0
- package/dist/types/react-viewers/webgl/webglComponent.d.ts +0 -13
- package/dist/vim-web.iife.js +14 -14
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/{vim-web.mjs → vim-web.js} +15 -15
- package/dist/vim-web.js.map +1 -0
- package/package.json +2 -1
- package/dist/vim-web.mjs.map +0 -1
|
@@ -54127,7 +54127,7 @@ function createBoxes(boxes) {
|
|
|
54127
54127
|
matrices.forEach((m, i) => mesh.setMatrixAt(i, m));
|
|
54128
54128
|
return mesh;
|
|
54129
54129
|
}
|
|
54130
|
-
const
|
|
54130
|
+
const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
54131
54131
|
__proto__: null,
|
|
54132
54132
|
AxesSettings,
|
|
54133
54133
|
DefaultInputScheme,
|
|
@@ -58797,7 +58797,7 @@ function collapse({ height, width, fill, className }) {
|
|
|
58797
58797
|
function arrowLeft({ height, width, fill, className }) {
|
|
58798
58798
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { className, height, width, viewBox: "0 0 256 256", children: [
|
|
58799
58799
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
58800
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m161.905 202.207.019-.017c6.547-5.937 7.04-16.057 1.102-22.602L118.457 128l44.569-51.588c5.938-6.546 5.444-16.666-1.102-22.602l-.019-.017c-6.545-5.935-16.662-5.442-22.599 1.102l-54.33 62.348c-5.536 6.103-5.536 15.411 0 21.514l54.33 62.348c5.936 6.544 16.054 7.038 22.599 1.102Z" })
|
|
58800
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill, d: "m161.905 202.207.019-.017c6.547-5.937 7.04-16.057 1.102-22.602L118.457 128l44.569-51.588c5.938-6.546 5.444-16.666-1.102-22.602l-.019-.017c-6.545-5.935-16.662-5.442-22.599 1.102l-54.33 62.348c-5.536 6.103-5.536 15.411 0 21.514l54.33 62.348c5.936 6.544 16.054 7.038 22.599 1.102Z" })
|
|
58801
58801
|
] });
|
|
58802
58802
|
}
|
|
58803
58803
|
function fullArrowLeft({ height, width, fill, className }) {
|
|
@@ -66738,14 +66738,14 @@ class ComponentInputs {
|
|
|
66738
66738
|
return this._default.onKeyAction(key);
|
|
66739
66739
|
}
|
|
66740
66740
|
}
|
|
66741
|
-
function
|
|
66741
|
+
function getLocalSettings(settings2 = {}) {
|
|
66742
66742
|
try {
|
|
66743
66743
|
const json = localStorage.getItem("component.settings");
|
|
66744
66744
|
const previous = JSON.parse(json);
|
|
66745
66745
|
applyPermission(previous, settings2);
|
|
66746
66746
|
return previous ?? {};
|
|
66747
66747
|
} catch (e) {
|
|
66748
|
-
console.error("Could not read local storage");
|
|
66748
|
+
console.error("Could not read local storage ", e);
|
|
66749
66749
|
return {};
|
|
66750
66750
|
}
|
|
66751
66751
|
}
|
|
@@ -66754,6 +66754,7 @@ function saveSettingsToLocal(value) {
|
|
|
66754
66754
|
const save = removePermission(value);
|
|
66755
66755
|
localStorage.setItem("component.settings", JSON.stringify(save));
|
|
66756
66756
|
} catch (error) {
|
|
66757
|
+
console.error("Could not save settings to local storage ", error);
|
|
66757
66758
|
}
|
|
66758
66759
|
}
|
|
66759
66760
|
function applyPermission(previous, current) {
|
|
@@ -66771,15 +66772,15 @@ function applyPermission(previous, current) {
|
|
|
66771
66772
|
}
|
|
66772
66773
|
function removePermission(settings2) {
|
|
66773
66774
|
const clone = structuredClone(settings2);
|
|
66775
|
+
const ui = clone.ui;
|
|
66774
66776
|
for (const k of Object.keys(clone.ui)) {
|
|
66775
|
-
|
|
66776
|
-
|
|
66777
|
-
u[k] = true;
|
|
66777
|
+
if (ui[k] === "AlwaysTrue") {
|
|
66778
|
+
ui[k] = true;
|
|
66778
66779
|
}
|
|
66779
|
-
if (
|
|
66780
|
-
|
|
66780
|
+
if (ui[k] === "AlwaysFalse") {
|
|
66781
|
+
ui[k] = false;
|
|
66781
66782
|
}
|
|
66782
|
-
|
|
66783
|
+
ui[k] = ui[k] === true;
|
|
66783
66784
|
}
|
|
66784
66785
|
return clone;
|
|
66785
66786
|
}
|
|
@@ -72725,13 +72726,11 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
72725
72726
|
ControlBar: controlBar,
|
|
72726
72727
|
Icons: icons,
|
|
72727
72728
|
LoadRequest: LoadRequest$1,
|
|
72728
|
-
THREE: three_module,
|
|
72729
|
-
VIM,
|
|
72730
72729
|
VimComponent,
|
|
72731
72730
|
createContainer,
|
|
72732
72731
|
createWebglComponent,
|
|
72733
72732
|
defaultSettings,
|
|
72734
|
-
getLocalSettings
|
|
72733
|
+
getLocalSettings
|
|
72735
72734
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
72736
72735
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72737
72736
|
__proto__: null,
|
|
@@ -72739,9 +72738,10 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
72739
72738
|
createUltraComponent
|
|
72740
72739
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
72741
72740
|
export {
|
|
72741
|
+
three_module as THREE,
|
|
72742
72742
|
index as UltraReact,
|
|
72743
72743
|
index$2 as UltraViewer,
|
|
72744
72744
|
index$1 as WebglReact,
|
|
72745
|
-
|
|
72745
|
+
index$3 as WebglViewer
|
|
72746
72746
|
};
|
|
72747
|
-
//# sourceMappingURL=vim-web.
|
|
72747
|
+
//# sourceMappingURL=vim-web.js.map
|