vis-core 0.30.0-beta.21 → 0.30.0-beta.23
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 +32 -25
- package/dist/version.d.ts +1 -1
- package/dist/vis/map/index.d.ts +1 -1
- package/package.json +1 -1
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.30.0-beta.
|
|
66
|
+
const version = "0.30.0-beta.23", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
|
|
67
67
|
token: void 0,
|
|
68
68
|
getInfo() {
|
|
69
69
|
if (!this.token)
|
|
@@ -140012,10 +140012,10 @@ class Viewport {
|
|
|
140012
140012
|
this.editor.changeSelectOption(), this.editor.emit("visShow", !0);
|
|
140013
140013
|
}), yield this.vis.init();
|
|
140014
140014
|
const { pencil: O } = this.vis;
|
|
140015
|
-
O.userData.EditorEnv = !this.editor.playing, this.editor.pencil = O, this.editor.changeSelectOption(), this.editor.changeMListOptions(), V.__template && this.editor.config.setConfig("__template", V.__template), this.editor.playing || (this.initEvent(), this.editor.emit("visChanged", this.vis)), this.editor.on("baseObjectListChange", () => {
|
|
140015
|
+
O.userData.EditorEnv = !this.editor.playing, this.editor.pencil = O, this.editor.changeSelectOption(), console.log("setVis 111"), this.editor.changeMListOptions(), V.__template && this.editor.config.setConfig("__template", V.__template), this.editor.playing || (this.initEvent(), this.editor.emit("visChanged", this.vis)), this.editor.on("baseObjectListChange", () => {
|
|
140016
140016
|
this.editor.changeSelectOption();
|
|
140017
140017
|
}), this.editor.on("mListChange", () => {
|
|
140018
|
-
this.editor.changeMListOptions();
|
|
140018
|
+
console.log("mListChange"), this.editor.changeMListOptions();
|
|
140019
140019
|
}), O.event.on("lead.updateKey", () => {
|
|
140020
140020
|
this.editor.emit("baseObjectListChange");
|
|
140021
140021
|
}), O.event.on("lead.draw", () => {
|
|
@@ -140023,13 +140023,13 @@ class Viewport {
|
|
|
140023
140023
|
}), O.event.on("lead.erase", () => {
|
|
140024
140024
|
this.editor.emit("baseObjectListChange");
|
|
140025
140025
|
}), O.event.on("mList.add", () => {
|
|
140026
|
-
this.editor.emit("mListChange");
|
|
140026
|
+
console.log("mList add event"), this.editor.emit("mListChange");
|
|
140027
140027
|
}), O.event.on("mList.remove", () => {
|
|
140028
|
-
this.editor.emit("mListChange");
|
|
140028
|
+
console.log("mList remove event"), this.editor.emit("mListChange");
|
|
140029
140029
|
}), O.event.on("mList.addBaseObjectMap", () => {
|
|
140030
|
-
this.editor.emit("mListChange");
|
|
140030
|
+
console.log("mList addBaseObjectMap event"), this.editor.emit("mListChange");
|
|
140031
140031
|
}), O.event.on("mList.rmBaseObjectMap", () => {
|
|
140032
|
-
this.editor.emit("mListChange");
|
|
140032
|
+
console.log("mList rmBaseObjectMap event"), this.editor.emit("mListChange");
|
|
140033
140033
|
});
|
|
140034
140034
|
});
|
|
140035
140035
|
}
|
|
@@ -140348,23 +140348,28 @@ class Editor {
|
|
|
140348
140348
|
return this._mListOptionsMaps[o].get(r);
|
|
140349
140349
|
}
|
|
140350
140350
|
changeMListOptions() {
|
|
140351
|
-
var r;
|
|
140351
|
+
var r, o, V, O;
|
|
140352
140352
|
if (!((r = this.pencil) != null && r.mList))
|
|
140353
|
-
return
|
|
140353
|
+
return console.log({
|
|
140354
|
+
_dispose: this._dispose,
|
|
140355
|
+
//@ts-ignore
|
|
140356
|
+
minDisabledLayer: (o = this.pencil) == null ? void 0 : o.pages.getMinDisabledLayer(),
|
|
140357
|
+
pencil: (O = (V = this.viewport) == null ? void 0 : V.vis) == null ? void 0 : O.pencil
|
|
140358
|
+
}), [];
|
|
140354
140359
|
this._mListOptionsMaps.key.clear(), this._mListOptionsMaps.material = /* @__PURE__ */ new WeakMap(), this._mListOptionsMaps.object = /* @__PURE__ */ new WeakMap();
|
|
140355
140360
|
const e = Array.from(this.pencil.mList.fixBaseObjects.entries());
|
|
140356
140361
|
this.mListOptions = new Array(e.length);
|
|
140357
|
-
for (let
|
|
140358
|
-
const [
|
|
140359
|
-
key:
|
|
140360
|
-
name:
|
|
140361
|
-
type:
|
|
140362
|
-
object:
|
|
140363
|
-
baseObject:
|
|
140364
|
-
material:
|
|
140365
|
-
use: this.pencil.mList.getBaseObjectMap(
|
|
140362
|
+
for (let j = 0; j < e.length; j++) {
|
|
140363
|
+
const [le, fe] = e[j], Se = this.pencil.mList.get(le), Ce = fe.object3d, Re = {
|
|
140364
|
+
key: le,
|
|
140365
|
+
name: Se.name,
|
|
140366
|
+
type: Se.type,
|
|
140367
|
+
object: Ce,
|
|
140368
|
+
baseObject: fe,
|
|
140369
|
+
material: Se,
|
|
140370
|
+
use: this.pencil.mList.getBaseObjectMap(Se).size
|
|
140366
140371
|
};
|
|
140367
|
-
this.mListOptions[
|
|
140372
|
+
this.mListOptions[j] = Re, this._mListOptionsMaps.key.set(le, Re), this._mListOptionsMaps.material.set(Se, Re), this._mListOptionsMaps.object.set(Ce, Re);
|
|
140368
140373
|
}
|
|
140369
140374
|
this.emit("mListGraphChanged");
|
|
140370
140375
|
}
|
|
@@ -144124,7 +144129,7 @@ const getLabelElement = (v) => {
|
|
|
144124
144129
|
v0(this, "pcenter", [104, 37.5]);
|
|
144125
144130
|
v0(this, "pscale", 5e4 / 1e3);
|
|
144126
144131
|
v0(this, "meters");
|
|
144127
|
-
v0(this, "cityVis",
|
|
144132
|
+
v0(this, "cityVis", []);
|
|
144128
144133
|
v0(this, "extendsOptions", {
|
|
144129
144134
|
mapDepth: () => this.getOptionsDepth(this.options.adcode),
|
|
144130
144135
|
equirectangular: () => this.options.projectionType === "equirectangular",
|
|
@@ -144287,7 +144292,7 @@ const getLabelElement = (v) => {
|
|
|
144287
144292
|
setWaterMaterial: this.options.setWaterMaterial,
|
|
144288
144293
|
ssao: this.options.citySSAO,
|
|
144289
144294
|
pencil2: this.pencil
|
|
144290
|
-
}), yield j.init(), this.cityVis
|
|
144295
|
+
}), yield j.init(), this.cityVis.push(j), this.settings.mouseLeft = Xi.SCREEN_PAN, yield this.settings.mouseLeft, this.emit("initCityVis", r), j;
|
|
144291
144296
|
});
|
|
144292
144297
|
}
|
|
144293
144298
|
initCityOnMap(r) {
|
|
@@ -145146,10 +145151,12 @@ const getLabelElement = (v) => {
|
|
|
145146
145151
|
return findAdcodeInfo(r);
|
|
145147
145152
|
}
|
|
145148
145153
|
dispose() {
|
|
145149
|
-
var r, o
|
|
145150
|
-
|
|
145151
|
-
|
|
145152
|
-
}), this.
|
|
145154
|
+
var r, o;
|
|
145155
|
+
this.cityVis.forEach((V) => {
|
|
145156
|
+
V.dispose();
|
|
145157
|
+
}), this.cityVis.length = 0, (r = this.map) == null || r.dispose(), this.parentBg.forEach((V) => {
|
|
145158
|
+
V.dispose();
|
|
145159
|
+
}), this.parentBg.length = 0, (o = this.continentsBg) == null || o.dispose(), this.continentsBg = void 0, this.mapHistory.length = 0, super.dispose();
|
|
145153
145160
|
}
|
|
145154
145161
|
};
|
|
145155
145162
|
v0(Mn, "VisName", "map"), v0(Mn, "getAdcodeShowLevel", getAdcodeShowLevel);
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.30.0-beta.
|
|
1
|
+
declare const _default: "0.30.0-beta.23";
|
|
2
2
|
export default _default;
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -165,7 +165,7 @@ export default class extends Base {
|
|
|
165
165
|
pcenter: [number, number];
|
|
166
166
|
pscale: number;
|
|
167
167
|
meters: number;
|
|
168
|
-
cityVis: City
|
|
168
|
+
cityVis: City[];
|
|
169
169
|
extendsOptions: Record<string, any>;
|
|
170
170
|
setOptions(options: MapOptions): void;
|
|
171
171
|
initSettingsObj: Record<string, any>;
|