vis-core 0.29.1 → 0.29.3
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/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.module.js +18 -10
- package/dist/version.d.ts +1 -1
- package/package.json +6 -5
package/dist/index.module.js
CHANGED
|
@@ -63,7 +63,7 @@ import { continentsCountriesIso2 } from "geojson-cn";
|
|
|
63
63
|
Array.prototype.at || (Array.prototype.at = function(v) {
|
|
64
64
|
return v < 0 && (v = this.length + v), this[v];
|
|
65
65
|
});
|
|
66
|
-
const version = "0.29.
|
|
66
|
+
const version = "0.29.3", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
|
|
67
67
|
token: void 0,
|
|
68
68
|
getInfo() {
|
|
69
69
|
if (!this.token)
|
|
@@ -57144,7 +57144,7 @@ class li {
|
|
|
57144
57144
|
n[w] = E;
|
|
57145
57145
|
else {
|
|
57146
57146
|
if (e.materialList && Object.values(e.materialList).includes(E)) {
|
|
57147
|
-
n[w] = E;
|
|
57147
|
+
n[w] = E, e.handleMaterialChange(E);
|
|
57148
57148
|
return;
|
|
57149
57149
|
}
|
|
57150
57150
|
this.rmBaseObjectMap(e), n[w] = E, E && this.applyColorSpaceToMaterials(E), this.addBaseObjectMap(e);
|
|
@@ -60857,7 +60857,7 @@ class Viewport {
|
|
|
60857
60857
|
this.editor.changeSelectOption(), this.editor.emit("visShow", !0);
|
|
60858
60858
|
}), yield this.vis.init();
|
|
60859
60859
|
const { pencil: w } = this.vis;
|
|
60860
|
-
w.userData.EditorEnv = !this.editor.playing, this.editor.pencil = w, this.editor.changeSelectOption(), this.editor.changeMListOptions(), this.editor.config.setConfig("__template", C.__template), this.editor.playing || (this.initEvent(), this.editor.emit("visChanged", this.vis)), this.editor.on("baseObjectListChange", () => {
|
|
60860
|
+
w.userData.EditorEnv = !this.editor.playing, this.editor.pencil = w, this.editor.changeSelectOption(), this.editor.changeMListOptions(), C.__template && this.editor.config.setConfig("__template", C.__template), this.editor.playing || (this.initEvent(), this.editor.emit("visChanged", this.vis)), this.editor.on("baseObjectListChange", () => {
|
|
60861
60861
|
this.editor.changeSelectOption();
|
|
60862
60862
|
}), this.editor.on("mListChange", () => {
|
|
60863
60863
|
this.editor.changeMListOptions();
|
|
@@ -61704,7 +61704,7 @@ class Base extends Camera {
|
|
|
61704
61704
|
}
|
|
61705
61705
|
initSceneUserData() {
|
|
61706
61706
|
var le, fe, Se, ze, ke, Ue;
|
|
61707
|
-
const n = this.pencil, r = n.scene.background, C = r instanceof Color$1 ? "Color" : r instanceof Texture ? "Texture" : "None", w = C === "Texture" ? r : null, E = (w == null ? void 0 : w.mapping) === EquirectangularReflectionMapping, O = C === "Color" ?
|
|
61707
|
+
const n = this.pencil, r = n.scene.background, C = r instanceof Color$1 ? "Color" : r instanceof Texture ? "Texture" : "None", w = C === "Texture" ? r : null, E = (w == null ? void 0 : w.mapping) === EquirectangularReflectionMapping, O = C === "Color" ? r.getHexString() : "000000";
|
|
61708
61708
|
n.scene.userData = new Proxy(
|
|
61709
61709
|
{
|
|
61710
61710
|
backgroundType: C,
|
|
@@ -61730,12 +61730,20 @@ class Base extends Camera {
|
|
|
61730
61730
|
}
|
|
61731
61731
|
});
|
|
61732
61732
|
else if (Lt === "backgroundType")
|
|
61733
|
-
bt === "None"
|
|
61734
|
-
n.scene.
|
|
61735
|
-
|
|
61736
|
-
|
|
61737
|
-
|
|
61738
|
-
|
|
61733
|
+
if (bt === "None")
|
|
61734
|
+
n.scene.background = null;
|
|
61735
|
+
else if (n.scene.userData.backgroundColor && bt === "Color") {
|
|
61736
|
+
const Fe = n.scene.userData.backgroundColor.replace("#", "");
|
|
61737
|
+
n.scene.background = new Color$1().setHex(
|
|
61738
|
+
parseInt(Fe, 16)
|
|
61739
|
+
);
|
|
61740
|
+
} else n.scene.userData.backgroundTexture && bt === "Texture" && (n.scene.background = n.scene.userData.backgroundTexture);
|
|
61741
|
+
else if (Lt === "backgroundColor") {
|
|
61742
|
+
const Fe = bt.replace("#", "");
|
|
61743
|
+
n.scene.background = new Color$1().setHex(
|
|
61744
|
+
parseInt(Fe, 16)
|
|
61745
|
+
);
|
|
61746
|
+
} else if (Lt === "backgroundTexture")
|
|
61739
61747
|
n.scene.background = bt, n.scene.userData.backgroundEquirectangular ? bt.mapping = EquirectangularReflectionMapping : bt.mapping = UVMapping;
|
|
61740
61748
|
else if (Lt === "backgroundEquirectangular") {
|
|
61741
61749
|
const Fe = n.scene.background;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.29.
|
|
1
|
+
declare const _default: "0.29.3";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@ant-design/icons-vue": "^7.0.1",
|
|
35
34
|
"@biomejs/biome": "^2.0.6",
|
|
35
|
+
"@primeuix/themes": "^1.2.3",
|
|
36
36
|
"@tailwindcss/typography": "^0.5.10",
|
|
37
37
|
"@tweenjs/tween.js": "^23.1.2",
|
|
38
38
|
"@types/events": "^3.0.0",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"@types/jsrsasign": "^10.5.14",
|
|
41
41
|
"@types/lodash-es": "^4.17.9",
|
|
42
42
|
"@types/node": "^20.6.0",
|
|
43
|
-
"ant-design-vue": "^4.2.6",
|
|
44
43
|
"archiver": "^7.0.1",
|
|
45
44
|
"dayjs": "^1.11.12",
|
|
46
45
|
"esus": "^0.4.40",
|
|
@@ -48,6 +47,7 @@
|
|
|
48
47
|
"idb-keyval": "^6.2.1",
|
|
49
48
|
"jszip": "^3.10.1",
|
|
50
49
|
"pinia": "^2.2.4",
|
|
50
|
+
"primevue": "^4.3.9",
|
|
51
51
|
"tailwind-config-bundler": "^0.4.6",
|
|
52
52
|
"three": "^0.180.0",
|
|
53
53
|
"vite-plugin-javascript-obfuscator": "^3.1.0",
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"vue": "^3.5.11",
|
|
57
57
|
"vue-bundler": "^0.4.10",
|
|
58
58
|
"vue-router": "^4.4.5",
|
|
59
|
-
"vue3-colorpicker": "^2.3.0"
|
|
59
|
+
"vue3-colorpicker": "^2.3.0",
|
|
60
|
+
"primeicons": "^7.0.0"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"@turf/turf": "^6.5.0",
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
"esus-lite": "^0.2.8",
|
|
67
68
|
"events": "^3.3.0",
|
|
68
69
|
"geojson-cn": "^0.2.5",
|
|
69
|
-
"gl-draw": "0.16.
|
|
70
|
+
"gl-draw": "0.16.1",
|
|
70
71
|
"jsrsasign": "^11.1.0",
|
|
71
72
|
"lodash-es": "^4.17.21"
|
|
72
73
|
},
|