vis-core 0.28.16 → 0.28.18
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 +4 -4
- package/dist/index.module.js +12 -7
- package/dist/version.d.ts +1 -1
- package/dist/vis/map/index.d.ts +1 -1
- package/package.json +1 -2
- package/dist/vis/map/styles/map2/map350000.d.ts +0 -2
package/dist/index.module.js
CHANGED
|
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
88
88
|
).toString(CryptoJS.enc.Utf8), Ne = JSON.parse(Pe), Ae = Date.now();
|
|
89
89
|
return !Ne.s || Ne.s > Ae ? (this.token = void 0, "") : Ne.e && Ne.e < Ae ? (this.token = void 0, "") : (Ne.isValid = O, Ne);
|
|
90
90
|
}
|
|
91
|
-
}, version = "0.28.
|
|
91
|
+
}, version = "0.28.18";
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2010-2025 Three.js Authors
|
|
@@ -58504,7 +58504,7 @@ class SetMaterialMap extends Command {
|
|
|
58504
58504
|
const t = new re$1();
|
|
58505
58505
|
t.track(this.oldMap), t.dispose();
|
|
58506
58506
|
}
|
|
58507
|
-
this.newMap && (this.newMap.anisotropy = this.editor.viewport.vis.tier0 ? 1 : this.editor.pencil.maxAnisotropy), this.material[this.mapName] = this.newMap, this.playVideo(this.newMap), this.material instanceof Te$1 && (this.material.useMap = !!this.newMap, this.newMap && this.newMap.wrapS !== RepeatWrapping && (this.newMap.wrapS = RepeatWrapping, this.newMap.wrapT = RepeatWrapping, this.newMap.needsUpdate = !0)), (!this.oldMap && this.newMap || this.oldMap && !this.newMap) && (this.material.needsUpdate = !0), this.editor.emit("materialChanged", this.material);
|
|
58507
|
+
this.newMap && (this.newMap.name === "PMREM.cubeUv" && (this.newMap = this.editor.viewport.vis.getRoomEnvMap()), this.newMap.anisotropy = this.editor.viewport.vis.tier0 ? 1 : this.editor.pencil.maxAnisotropy), this.material[this.mapName] = this.newMap, this.playVideo(this.newMap), this.material instanceof Te$1 && (this.material.useMap = !!this.newMap, this.newMap && this.newMap.wrapS !== RepeatWrapping && (this.newMap.wrapS = RepeatWrapping, this.newMap.wrapT = RepeatWrapping, this.newMap.needsUpdate = !0)), (!this.oldMap && this.newMap || this.oldMap && !this.newMap) && (this.material.needsUpdate = !0), this.editor.emit("materialChanged", this.material);
|
|
58508
58508
|
}
|
|
58509
58509
|
}
|
|
58510
58510
|
undo() {
|
|
@@ -58521,10 +58521,11 @@ class SetMaterialMap extends Command {
|
|
|
58521
58521
|
return t.objectUuid = this.editor.uuidByMaterialObject(this.object), t.materialSlot = this.materialSlot, t.mapName = this.mapName, t.newMap = serializeMap(this.newMap), t;
|
|
58522
58522
|
}
|
|
58523
58523
|
fromJSON(t) {
|
|
58524
|
+
var r;
|
|
58524
58525
|
super.fromJSON(t), this.object = this.editor.materialObjectByUuid(t.objectUuid), this.materialSlot = t.materialSlot, this.material = this.editor.getObjectMaterial(
|
|
58525
58526
|
this.object,
|
|
58526
58527
|
this.materialSlot
|
|
58527
|
-
), this.mapName = t.mapName, this.oldMap = this.object && this.material ? this.material[this.mapName] : void 0, this.newMap = parseTexture(t.newMap);
|
|
58528
|
+
), this.mapName = t.mapName, this.oldMap = this.object && this.material ? this.material[this.mapName] : void 0, ((r = t.newMap) == null ? void 0 : r.name) === "PMREM.cubeUv" ? this.newMap = this.editor.viewport.vis.getRoomEnvMap() : this.newMap = parseTexture(t.newMap);
|
|
58528
58529
|
}
|
|
58529
58530
|
fixJSON() {
|
|
58530
58531
|
const t = this.json;
|
|
@@ -58571,6 +58572,10 @@ const parseVideoTextures = (g, t) => {
|
|
|
58571
58572
|
};
|
|
58572
58573
|
function serializeMap(g) {
|
|
58573
58574
|
if (g == null) return null;
|
|
58575
|
+
if (g.name === "PMREM.cubeUv")
|
|
58576
|
+
return {
|
|
58577
|
+
name: "PMREM.cubeUv"
|
|
58578
|
+
};
|
|
58574
58579
|
const t = {
|
|
58575
58580
|
geometries: {},
|
|
58576
58581
|
materials: {},
|
|
@@ -59707,7 +59712,7 @@ function applyFixes(g, t) {
|
|
|
59707
59712
|
version: "0.21.24",
|
|
59708
59713
|
fix: () => {
|
|
59709
59714
|
var _, w;
|
|
59710
|
-
t.h.u[0] && t.h.u[0].visType === "map" && ((w = (_ = t.v) == null ? void 0 : _.eo) != null && w.parentBgCurvatureResolution) &&
|
|
59715
|
+
t.h.u[0] && t.h.u[0].visType === "map" && ((w = (_ = t.v) == null ? void 0 : _.eo) != null && w.parentBgCurvatureResolution) && delete t.v.eo.parentBgCurvatureResolution;
|
|
59711
59716
|
}
|
|
59712
59717
|
},
|
|
59713
59718
|
{
|
|
@@ -141463,7 +141468,7 @@ const objs$1 = Bi(Q0({}, objs$3), {
|
|
|
141463
141468
|
greyFull: g.options.greyFull
|
|
141464
141469
|
// ...this.extendsOptions,
|
|
141465
141470
|
// initCity: this.options.initCity,
|
|
141466
|
-
}, g.options.parentBg && (g.extendsOptions.parentBgDepth = () => g.options.parentBgDepth
|
|
141471
|
+
}, g.options.parentBg && (g.extendsOptions.parentBgDepth = () => g.options.parentBgDepth), g.loaderAdd = function() {
|
|
141467
141472
|
this.loader.add(["/image/map2/side.png"]);
|
|
141468
141473
|
}, g.initMaterial = function() {
|
|
141469
141474
|
return H0(this, null, function* () {
|
|
@@ -141721,7 +141726,7 @@ const objs$1 = Bi(Q0({}, objs$3), {
|
|
|
141721
141726
|
continentsBg: !1,
|
|
141722
141727
|
continentsBgDepth: 0,
|
|
141723
141728
|
parentBgDepth: 0,
|
|
141724
|
-
|
|
141729
|
+
topSegments: 0,
|
|
141725
141730
|
clickHandleDrillDown: !1,
|
|
141726
141731
|
drillDownSecondLevelMats: !1,
|
|
141727
141732
|
drillDownFirstLevelUseBgMats: !1,
|
|
@@ -141766,7 +141771,7 @@ const objs$1 = Bi(Q0({}, objs$3), {
|
|
|
141766
141771
|
}, r), {
|
|
141767
141772
|
geojsonMap: m,
|
|
141768
141773
|
extrudeLineGeojsonMap: v
|
|
141769
|
-
})), this.options.equirectangular && (this.options.projectionType = "equirectangular"), this.options.winkel3 && (this.options.projectionType = "winkel3"), this.options.adcode === 0 ? this.extendsOptions.winkel3 = () => this.options.winkel3 : (this.getAdcodeShowLevel(this.options.adcode) === "province" || this.getAdcodeShowLevel(this.options.adcode) === "country") && (this.extendsOptions.clickHandleDrillDown = () => this.options.clickHandleDrillDown, this.options.clickHandleDrillDown && (this.workerOnce = !1, this.extendsOptions.mapDepth = () => Array.isArray(this.options.mapDepth) ? this.options.mapDepth : new Array(3).fill(this.options.mapDepth), this.extendsOptions.drillDownFirstLevelUseBgMats = () => this.options.drillDownFirstLevelUseBgMats, this.extendsOptions.drillDownSecondLevelMats = () => this.options.drillDownSecondLevelMats, this.extendsOptions.drillDownThirdLevelMats = () => this.options.drillDownThirdLevelMats, this.extendsOptions.drillDownPlateInCenter = () => this.options.drillDownPlateInCenter, this.extendsOptions.clickOusideBack = () => this.options.clickOusideBack, this.extendsOptions.handleBackKeepCamvasState = () => this.options.handleBackKeepCamvasState, this.extendsOptions.showOneLevel = () => this.options.showOneLevel, this.extendsOptions.showDistrict = () => this.options.showDistrict, this.options.parentBg && (this.extendsOptions.drillDownHideParent = () => this.options.drillDownHideParent)), this.extendsOptions.parentBg = () => this.options.parentBg, this.options.parentBg && (this.extendsOptions.parentBgDepth = () => this.options.parentBgDepth
|
|
141774
|
+
})), this.options.equirectangular && (this.options.projectionType = "equirectangular"), this.options.winkel3 && (this.options.projectionType = "winkel3"), this.options.adcode === 0 ? this.extendsOptions.winkel3 = () => this.options.winkel3 : (this.getAdcodeShowLevel(this.options.adcode) === "province" || this.getAdcodeShowLevel(this.options.adcode) === "country") && (this.extendsOptions.clickHandleDrillDown = () => this.options.clickHandleDrillDown, this.options.clickHandleDrillDown && (this.workerOnce = !1, this.extendsOptions.mapDepth = () => Array.isArray(this.options.mapDepth) ? this.options.mapDepth : new Array(3).fill(this.options.mapDepth), this.extendsOptions.drillDownFirstLevelUseBgMats = () => this.options.drillDownFirstLevelUseBgMats, this.extendsOptions.drillDownSecondLevelMats = () => this.options.drillDownSecondLevelMats, this.extendsOptions.drillDownThirdLevelMats = () => this.options.drillDownThirdLevelMats, this.extendsOptions.drillDownPlateInCenter = () => this.options.drillDownPlateInCenter, this.extendsOptions.clickOusideBack = () => this.options.clickOusideBack, this.extendsOptions.handleBackKeepCamvasState = () => this.options.handleBackKeepCamvasState, this.extendsOptions.showOneLevel = () => this.options.showOneLevel, this.extendsOptions.showDistrict = () => this.options.showDistrict, this.options.parentBg && (this.extendsOptions.drillDownHideParent = () => this.options.drillDownHideParent)), this.extendsOptions.parentBg = () => this.options.parentBg, this.options.parentBg && (this.extendsOptions.parentBgDepth = () => this.options.parentBgDepth), this.extendsOptions.continentsBg = () => this.options.continentsBg, this.options.continentsBg && (this.extendsOptions.continentsBgDepth = () => this.options.continentsBgDepth)), this.options.adcode === 0 ? world(this) : this.options.style === "map2Base" || this.options.style === "map2CityOnMap" ? base$1(this) : this.options.adcode === 1e5 ? china(this) : base$2(this);
|
|
141770
141775
|
}
|
|
141771
141776
|
handleSetting(r, m) {
|
|
141772
141777
|
return H0(this, null, function* () {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.28.
|
|
1
|
+
declare const _default: "0.28.18";
|
|
2
2
|
export default _default;
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface MapOptions extends BaseOptions {
|
|
|
15
15
|
center?: [number, number];
|
|
16
16
|
parentBg?: boolean | number;
|
|
17
17
|
parentBgDepth?: number;
|
|
18
|
-
|
|
18
|
+
topSegments?: number;
|
|
19
19
|
fixCity?: Record<number, number>;
|
|
20
20
|
continentsBg?: boolean;
|
|
21
21
|
continentsBgDepth?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.18",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
"preview": "bundler-preview",
|
|
10
10
|
"version": "node ./scripts/generate-version",
|
|
11
11
|
"gzip": "node ./scripts/gzip",
|
|
12
|
-
"getPublic": "node ./scripts/getPublic",
|
|
13
12
|
"start:3dSite": "npm run version && VITE_SITE_3D=true bundler-dev",
|
|
14
13
|
"build:3dSite": "npm run version && VITE_SITE_3D=true bundler",
|
|
15
14
|
"pub": "npm publish"
|