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
package/dist/types/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @module viw-webgl-react
|
|
3
3
|
*/
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import * as VIM from '../../core-viewers/webgl/index';
|
|
5
6
|
import { ComponentCamera } from '../helpers/camera';
|
|
6
7
|
import { SettingsState } from '../settings/settingsState';
|
|
7
|
-
import { VIM } from '../webgl/webglComponent';
|
|
8
8
|
/**
|
|
9
9
|
* Memoized version of the AxesPanelMemo.
|
|
10
10
|
*/
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* @module viw-webgl-react
|
|
3
3
|
*/
|
|
4
4
|
import { ComponentSettings, PartialComponentSettings } from './settings';
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function getLocalSettings(settings?: PartialComponentSettings): {};
|
|
6
6
|
export declare function saveSettingsToLocal(value: ComponentSettings): void;
|
|
@@ -1 +1,11 @@
|
|
|
1
|
+
import '../style.css';
|
|
1
2
|
export * from './webglComponent';
|
|
3
|
+
export * as ContextMenu from '../panels/contextMenu';
|
|
4
|
+
export * as BimInfo from '../bim/bimInfoData';
|
|
5
|
+
export * as ControlBar from '../controlbar/controlBar';
|
|
6
|
+
export * as Icons from '../panels/icons';
|
|
7
|
+
export * from '../helpers/loadRequest';
|
|
8
|
+
export * from './webglComponentRef';
|
|
9
|
+
export { getLocalSettings as getLocalSettings } from '../settings/settingsStorage';
|
|
10
|
+
export { type ComponentSettings as Settings, type PartialComponentSettings as PartialSettings, defaultSettings } from '../settings/settings';
|
|
11
|
+
export * from '../container';
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module public-api
|
|
3
3
|
*/
|
|
4
|
-
import '../style.css';
|
|
5
|
-
import '../../core-viewers/webgl/style.css';
|
|
6
4
|
import * as VIM from '../../core-viewers/webgl/index';
|
|
7
5
|
import { PartialComponentSettings } from '../settings/settings';
|
|
8
6
|
import { VimComponentContainer } from '../container';
|
|
9
7
|
import { VimComponentRef } from './webglComponentRef';
|
|
10
|
-
export * as VIM from '../../core-viewers/webgl/index';
|
|
11
|
-
export * as THREE from 'three';
|
|
12
|
-
export * as ContextMenu from '../panels/contextMenu';
|
|
13
|
-
export * as BimInfo from '../bim/bimInfoData';
|
|
14
|
-
export * as ControlBar from '../controlbar/controlBar';
|
|
15
|
-
export * as Icons from '../panels/icons';
|
|
16
|
-
export * from '../helpers/loadRequest';
|
|
17
|
-
export * from './webglComponentRef';
|
|
18
|
-
export { getLocalComponentSettings as getLocalSettings } from '../settings/settingsStorage';
|
|
19
|
-
export { type ComponentSettings as Settings, type PartialComponentSettings as PartialSettings, defaultSettings } from '../settings/settings';
|
|
20
|
-
export * from '../container';
|
|
21
8
|
/**
|
|
22
9
|
* Creates a UI container along with a VIM.Viewer and its associated React component.
|
|
23
10
|
* @param container An optional container object. If none is provided, a container will be created.
|
package/dist/vim-web.iife.js
CHANGED
|
@@ -54143,7 +54143,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
54143
54143
|
matrices.forEach((m, i2) => mesh.setMatrixAt(i2, m));
|
|
54144
54144
|
return mesh;
|
|
54145
54145
|
}
|
|
54146
|
-
const
|
|
54146
|
+
const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
54147
54147
|
__proto__: null,
|
|
54148
54148
|
AxesSettings,
|
|
54149
54149
|
DefaultInputScheme,
|
|
@@ -58813,7 +58813,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
58813
58813
|
function arrowLeft({ height, width, fill, className }) {
|
|
58814
58814
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { className, height, width, viewBox: "0 0 256 256", children: [
|
|
58815
58815
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
58816
|
-
/* @__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" })
|
|
58816
|
+
/* @__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" })
|
|
58817
58817
|
] });
|
|
58818
58818
|
}
|
|
58819
58819
|
function fullArrowLeft({ height, width, fill, className }) {
|
|
@@ -66754,14 +66754,14 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
66754
66754
|
return this._default.onKeyAction(key);
|
|
66755
66755
|
}
|
|
66756
66756
|
}
|
|
66757
|
-
function
|
|
66757
|
+
function getLocalSettings(settings2 = {}) {
|
|
66758
66758
|
try {
|
|
66759
66759
|
const json = localStorage.getItem("component.settings");
|
|
66760
66760
|
const previous = JSON.parse(json);
|
|
66761
66761
|
applyPermission(previous, settings2);
|
|
66762
66762
|
return previous ?? {};
|
|
66763
66763
|
} catch (e) {
|
|
66764
|
-
console.error("Could not read local storage");
|
|
66764
|
+
console.error("Could not read local storage ", e);
|
|
66765
66765
|
return {};
|
|
66766
66766
|
}
|
|
66767
66767
|
}
|
|
@@ -66770,6 +66770,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
66770
66770
|
const save = removePermission(value);
|
|
66771
66771
|
localStorage.setItem("component.settings", JSON.stringify(save));
|
|
66772
66772
|
} catch (error) {
|
|
66773
|
+
console.error("Could not save settings to local storage ", error);
|
|
66773
66774
|
}
|
|
66774
66775
|
}
|
|
66775
66776
|
function applyPermission(previous, current) {
|
|
@@ -66787,15 +66788,15 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
66787
66788
|
}
|
|
66788
66789
|
function removePermission(settings2) {
|
|
66789
66790
|
const clone = structuredClone(settings2);
|
|
66791
|
+
const ui = clone.ui;
|
|
66790
66792
|
for (const k of Object.keys(clone.ui)) {
|
|
66791
|
-
|
|
66792
|
-
|
|
66793
|
-
u[k] = true;
|
|
66793
|
+
if (ui[k] === "AlwaysTrue") {
|
|
66794
|
+
ui[k] = true;
|
|
66794
66795
|
}
|
|
66795
|
-
if (
|
|
66796
|
-
|
|
66796
|
+
if (ui[k] === "AlwaysFalse") {
|
|
66797
|
+
ui[k] = false;
|
|
66797
66798
|
}
|
|
66798
|
-
|
|
66799
|
+
ui[k] = ui[k] === true;
|
|
66799
66800
|
}
|
|
66800
66801
|
return clone;
|
|
66801
66802
|
}
|
|
@@ -72741,23 +72742,22 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
72741
72742
|
ControlBar: controlBar,
|
|
72742
72743
|
Icons: icons,
|
|
72743
72744
|
LoadRequest: LoadRequest$1,
|
|
72744
|
-
THREE: three_module,
|
|
72745
|
-
VIM,
|
|
72746
72745
|
VimComponent,
|
|
72747
72746
|
createContainer,
|
|
72748
72747
|
createWebglComponent,
|
|
72749
72748
|
defaultSettings,
|
|
72750
|
-
getLocalSettings
|
|
72749
|
+
getLocalSettings
|
|
72751
72750
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
72752
72751
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72753
72752
|
__proto__: null,
|
|
72754
72753
|
UltraComponent,
|
|
72755
72754
|
createUltraComponent
|
|
72756
72755
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
72756
|
+
exports.THREE = three_module;
|
|
72757
72757
|
exports.UltraReact = index;
|
|
72758
72758
|
exports.UltraViewer = index$2;
|
|
72759
72759
|
exports.WebglReact = index$1;
|
|
72760
|
-
exports.WebglViewer =
|
|
72760
|
+
exports.WebglViewer = index$3;
|
|
72761
72761
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
72762
72762
|
return exports;
|
|
72763
72763
|
}({}, React, ReactDOM);
|