vis-core 0.30.0-beta.21 → 0.30.0-beta.22
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 +26 -19
- 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.22", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
|
|
67
67
|
token: void 0,
|
|
68
68
|
getInfo() {
|
|
69
69
|
if (!this.token)
|
|
@@ -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;
|
|
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
|
+
vis: (V = this.viewport) == null ? void 0 : V.vis
|
|
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 O = 0; O < e.length; O++) {
|
|
140363
|
+
const [j, le] = e[O], fe = this.pencil.mList.get(j), Se = le.object3d, Ce = {
|
|
140364
|
+
key: j,
|
|
140365
|
+
name: fe.name,
|
|
140366
|
+
type: fe.type,
|
|
140367
|
+
object: Se,
|
|
140368
|
+
baseObject: le,
|
|
140369
|
+
material: fe,
|
|
140370
|
+
use: this.pencil.mList.getBaseObjectMap(fe).size
|
|
140366
140371
|
};
|
|
140367
|
-
this.mListOptions[
|
|
140372
|
+
this.mListOptions[O] = Ce, this._mListOptionsMaps.key.set(j, Ce), this._mListOptionsMaps.material.set(fe, Ce), this._mListOptionsMaps.object.set(Se, Ce);
|
|
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.22";
|
|
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>;
|