vis-core 0.28.16 → 0.28.17
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 +11 -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.17";
|
|
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() {
|
|
@@ -58524,7 +58524,7 @@ class SetMaterialMap extends Command {
|
|
|
58524
58524
|
super.fromJSON(t), this.object = this.editor.materialObjectByUuid(t.objectUuid), this.materialSlot = t.materialSlot, this.material = this.editor.getObjectMaterial(
|
|
58525
58525
|
this.object,
|
|
58526
58526
|
this.materialSlot
|
|
58527
|
-
), this.mapName = t.mapName, this.oldMap = this.object && this.material ? this.material[this.mapName] : void 0, this.newMap = parseTexture(t.newMap);
|
|
58527
|
+
), this.mapName = t.mapName, this.oldMap = this.object && this.material ? this.material[this.mapName] : void 0, t.newMap.name === "PMREM.cubeUv" ? this.newMap = this.editor.viewport.vis.getRoomEnvMap() : this.newMap = parseTexture(t.newMap);
|
|
58528
58528
|
}
|
|
58529
58529
|
fixJSON() {
|
|
58530
58530
|
const t = this.json;
|
|
@@ -58571,6 +58571,10 @@ const parseVideoTextures = (g, t) => {
|
|
|
58571
58571
|
};
|
|
58572
58572
|
function serializeMap(g) {
|
|
58573
58573
|
if (g == null) return null;
|
|
58574
|
+
if (g.name === "PMREM.cubeUv")
|
|
58575
|
+
return {
|
|
58576
|
+
name: "PMREM.cubeUv"
|
|
58577
|
+
};
|
|
58574
58578
|
const t = {
|
|
58575
58579
|
geometries: {},
|
|
58576
58580
|
materials: {},
|
|
@@ -59707,7 +59711,7 @@ function applyFixes(g, t) {
|
|
|
59707
59711
|
version: "0.21.24",
|
|
59708
59712
|
fix: () => {
|
|
59709
59713
|
var _, w;
|
|
59710
|
-
t.h.u[0] && t.h.u[0].visType === "map" && ((w = (_ = t.v) == null ? void 0 : _.eo) != null && w.parentBgCurvatureResolution) &&
|
|
59714
|
+
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
59715
|
}
|
|
59712
59716
|
},
|
|
59713
59717
|
{
|
|
@@ -141463,7 +141467,7 @@ const objs$1 = Bi(Q0({}, objs$3), {
|
|
|
141463
141467
|
greyFull: g.options.greyFull
|
|
141464
141468
|
// ...this.extendsOptions,
|
|
141465
141469
|
// initCity: this.options.initCity,
|
|
141466
|
-
}, g.options.parentBg && (g.extendsOptions.parentBgDepth = () => g.options.parentBgDepth
|
|
141470
|
+
}, g.options.parentBg && (g.extendsOptions.parentBgDepth = () => g.options.parentBgDepth), g.loaderAdd = function() {
|
|
141467
141471
|
this.loader.add(["/image/map2/side.png"]);
|
|
141468
141472
|
}, g.initMaterial = function() {
|
|
141469
141473
|
return H0(this, null, function* () {
|
|
@@ -141721,7 +141725,7 @@ const objs$1 = Bi(Q0({}, objs$3), {
|
|
|
141721
141725
|
continentsBg: !1,
|
|
141722
141726
|
continentsBgDepth: 0,
|
|
141723
141727
|
parentBgDepth: 0,
|
|
141724
|
-
|
|
141728
|
+
topSegments: 0,
|
|
141725
141729
|
clickHandleDrillDown: !1,
|
|
141726
141730
|
drillDownSecondLevelMats: !1,
|
|
141727
141731
|
drillDownFirstLevelUseBgMats: !1,
|
|
@@ -141766,7 +141770,7 @@ const objs$1 = Bi(Q0({}, objs$3), {
|
|
|
141766
141770
|
}, r), {
|
|
141767
141771
|
geojsonMap: m,
|
|
141768
141772
|
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
|
|
141773
|
+
})), 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
141774
|
}
|
|
141771
141775
|
handleSetting(r, m) {
|
|
141772
141776
|
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.17";
|
|
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.17",
|
|
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"
|