vis-core 0.27.14 → 0.27.16
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 +3 -3
- package/dist/index.module.js +16 -12
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
88
88
|
).toString(CryptoJS.enc.Utf8), Fe = JSON.parse(Ne), at = Date.now();
|
|
89
89
|
return !Fe.s || Fe.s > at ? (this.token = void 0, "") : Fe.e && Fe.e < at ? (this.token = void 0, "") : (Fe.isValid = Le, Fe);
|
|
90
90
|
}
|
|
91
|
-
}, version = "0.27.
|
|
91
|
+
}, version = "0.27.16";
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2010-2025 Three.js Authors
|
|
@@ -59245,17 +59245,17 @@ function applyFixes(g, t) {
|
|
|
59245
59245
|
{
|
|
59246
59246
|
version: "0.27.8",
|
|
59247
59247
|
fix: () => {
|
|
59248
|
-
t.h.u[0] && t.h.u[0].visType === "map" && t.h.u[0].visOptions.style === "map2CityOnMap" &&
|
|
59248
|
+
t.h.u[0] && t.h.u[0].visType === "map" && t.h.u[0].visOptions.style === "map2CityOnMap" && (t.h.u[0].visOptions.mergeSide = !0, t.h.u.forEach((w) => {
|
|
59249
59249
|
w.objectUuid === "extrudeLine" ? w.objectUuid = "plane#lineMat" : w.objectUuid === "plane#lineMat" && (w.objectUuid = "extrudeLine");
|
|
59250
|
-
})
|
|
59250
|
+
}));
|
|
59251
59251
|
}
|
|
59252
59252
|
},
|
|
59253
59253
|
{
|
|
59254
59254
|
version: "0.27.9",
|
|
59255
59255
|
fix: () => {
|
|
59256
|
-
t.h.u[0] && t.h.u[0].visType === "map" && t.h.u[0].visOptions.style === "map2CityOnMap" &&
|
|
59256
|
+
t.h.u[0] && t.h.u[0].visType === "map" && t.h.u[0].visOptions.style === "map2CityOnMap" && t.h.u.forEach((w) => {
|
|
59257
59257
|
w.objectUuid === "plane#extrudeLineMat" && (w.objectUuid = "plane#lineMat");
|
|
59258
|
-
})
|
|
59258
|
+
});
|
|
59259
59259
|
}
|
|
59260
59260
|
},
|
|
59261
59261
|
{
|
|
@@ -59273,7 +59273,7 @@ function applyFixes(g, t) {
|
|
|
59273
59273
|
compareVersion(r[w].version, g) > 0 ? (C = w, v = w - 1) : d = w + 1;
|
|
59274
59274
|
}
|
|
59275
59275
|
for (let w = C; w < r.length; w++)
|
|
59276
|
-
r[w].fix();
|
|
59276
|
+
r[w].fix(), t.c.version = r[w].version;
|
|
59277
59277
|
}
|
|
59278
59278
|
const fixJSON = (g) => {
|
|
59279
59279
|
var t;
|
|
@@ -141360,16 +141360,18 @@ const objs$1 = Di(bi({}, objs$3), {
|
|
|
141360
141360
|
r = Fe.x, d = Fe.y, v.set(Ne.x, Ne.y, 0);
|
|
141361
141361
|
}
|
|
141362
141362
|
if (this.options.continentsBg) {
|
|
141363
|
-
this.continentsBg = yield this.lead.draw(
|
|
141363
|
+
if (this.continentsBg = yield this.lead.draw(
|
|
141364
141364
|
"ContinentsBg",
|
|
141365
141365
|
{
|
|
141366
141366
|
depth: this.options.continentsBgDepth,
|
|
141367
141367
|
scale: this.pscale
|
|
141368
141368
|
},
|
|
141369
141369
|
this.group
|
|
141370
|
-
)
|
|
141371
|
-
|
|
141372
|
-
|
|
141370
|
+
), this.options.style !== "map2CityOnMap" && this.options.style !== "map2Base") {
|
|
141371
|
+
const C = this.getLocationPosition([104, 37.5]);
|
|
141372
|
+
this.continentsBg.position.set(...C);
|
|
141373
|
+
}
|
|
141374
|
+
this.continentsBg.position.z = 0.1;
|
|
141373
141375
|
}
|
|
141374
141376
|
if (this.options.bottomPlane) {
|
|
141375
141377
|
const C = yield this.lead.draw(
|
|
@@ -141977,6 +141979,8 @@ const objs$1 = Di(bi({}, objs$3), {
|
|
|
141977
141979
|
);
|
|
141978
141980
|
return ot.object3d.name = ((Gt = findAdcodeInfo(E)) == null ? void 0 : Gt.name) || `${E}`, this.options.style === "map2CityOnMap" && !this.options.showCityOnMapInnerLine && (Ne.lineMat.colorWrite = !1, this.mList.setUserData("plane#lineMat", {
|
|
141979
141981
|
selectHide: !0
|
|
141982
|
+
}), ot.lineArr.forEach((ct) => {
|
|
141983
|
+
ct.userData.selectHide = !0;
|
|
141980
141984
|
})), ot.extrudelineArr && ot.extrudelineArr.forEach((ct) => {
|
|
141981
141985
|
ct.object3d.name = "板块边线", this.lead.updateBaseObjectKey(ct, "extrudeLine"), this.initBaseObjectUserData(ct), w && (ct.object3d.userData.bloom = !0);
|
|
141982
141986
|
}), ot;
|
|
@@ -142685,7 +142689,7 @@ const getMapConfig = (v, ...C) => D0(void 0, [v, ...C], function* (g, t = b, r,
|
|
|
142685
142689
|
var ot, Gt;
|
|
142686
142690
|
if (g.adcode === 0 && g.adcode === 1e5)
|
|
142687
142691
|
return bi({}, g);
|
|
142688
|
-
const w = g.adcode, E = findAdcodeInfo(w).level === "province", ye = findAdcodeInfo(w).level === "city", Le = (ot = g.fixGeojson) == null ? void 0 : ot[w], Re = (Gt = g.fixGeojson) == null ? void 0 : Gt[w + "-lite"];
|
|
142692
|
+
const w = g.adcode, E = findAdcodeInfo(w).level === "province", ye = findAdcodeInfo(w).level === "city" || findAdcodeInfo(w).level === "district" && findAdcodeInfo(findAdcodeInfo(w).parent).level === "province", Le = (ot = g.fixGeojson) == null ? void 0 : ot[w], Re = (Gt = g.fixGeojson) == null ? void 0 : Gt[w + "-lite"];
|
|
142689
142693
|
let { res: Ne } = yield jsonFetch(
|
|
142690
142694
|
t + `/geojson/${Le || "json"}/${w}.json`
|
|
142691
142695
|
);
|
|
@@ -142731,7 +142735,7 @@ const getMapConfig = (v, ...C) => D0(void 0, [v, ...C], function* (g, t = b, r,
|
|
|
142731
142735
|
const ct = yield png2webp(`/template/l7ojr7nqc06u24f/${w}.jpg`), ke = yield png2webp(
|
|
142732
142736
|
`/template/l7ojr7nqc06u24f/${w}-自发光.jpg`
|
|
142733
142737
|
);
|
|
142734
|
-
d[
|
|
142738
|
+
d[7] = ct.src, d[6] = ke.src, console.log("替换 map emissiveMap");
|
|
142735
142739
|
}
|
|
142736
142740
|
if (g.parentBg) {
|
|
142737
142741
|
const ct = findAdcodeInfo(w).parent;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.27.
|
|
1
|
+
declare const _default: "0.27.16";
|
|
2
2
|
export default _default;
|