vis-core 0.30.0-beta.54 → 0.30.0-beta.55
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 +2 -2
- package/dist/index.module.js +13 -8
- package/dist/version.d.ts +1 -1
- package/dist/vis/map/index.d.ts +1 -2
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -63,7 +63,7 @@ import { EventEmitter } from "events";
|
|
|
63
63
|
Array.prototype.at || (Array.prototype.at = function(_) {
|
|
64
64
|
return _ < 0 && (_ = this.length + _), this[_];
|
|
65
65
|
});
|
|
66
|
-
const version = "0.30.0-beta.
|
|
66
|
+
const version = "0.30.0-beta.55", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
|
|
67
67
|
token: void 0,
|
|
68
68
|
getInfo() {
|
|
69
69
|
if (!this.token)
|
|
@@ -144437,8 +144437,7 @@ const getLabelElement = (_) => {
|
|
|
144437
144437
|
setWaterMaterial: !1,
|
|
144438
144438
|
showCityOnMapInnerLine: !1,
|
|
144439
144439
|
nearbyCities: !1,
|
|
144440
|
-
citySSAO: !1
|
|
144441
|
-
disabelCityVis: [71e4]
|
|
144440
|
+
citySSAO: !1
|
|
144442
144441
|
}, n), {
|
|
144443
144442
|
geojsonMap: r,
|
|
144444
144443
|
extrudeLineGeojsonMap: fe
|
|
@@ -144476,8 +144475,6 @@ const getLabelElement = (_) => {
|
|
|
144476
144475
|
}
|
|
144477
144476
|
initCityVis(n, r = !1) {
|
|
144478
144477
|
return J0(this, null, function* () {
|
|
144479
|
-
if (this.options.disabelCityVis.includes(n))
|
|
144480
|
-
return this.settings.mouseLeft = Xi.SCREEN_PAN, yield this.settings.mouseLeft, this.pencil.camera.userData.up = "0,0,1", null;
|
|
144481
144478
|
const fe = new City({
|
|
144482
144479
|
container: this.container,
|
|
144483
144480
|
editor: !1
|
|
@@ -144498,9 +144495,17 @@ const getLabelElement = (_) => {
|
|
|
144498
144495
|
setWaterMaterial: this.options.setWaterMaterial,
|
|
144499
144496
|
ssao: this.options.citySSAO,
|
|
144500
144497
|
pencil2: this.pencil
|
|
144501
|
-
})
|
|
144502
|
-
|
|
144503
|
-
|
|
144498
|
+
});
|
|
144499
|
+
try {
|
|
144500
|
+
yield fe.init();
|
|
144501
|
+
const Fe = this.projection(
|
|
144502
|
+
ze.center
|
|
144503
|
+
);
|
|
144504
|
+
Fe && fe.group.position.set(Fe[0], -Fe[1], 0);
|
|
144505
|
+
} catch (Fe) {
|
|
144506
|
+
console.error("城市可视化初始化失败", Fe), this.settings.mouseLeft = Xi.SCREEN_PAN, yield this.settings.mouseLeft, this.pencil.camera.userData.up = "0,0,1";
|
|
144507
|
+
}
|
|
144508
|
+
return this.cityVis.push(fe), this.emit("initCityVis", n), fe;
|
|
144504
144509
|
});
|
|
144505
144510
|
}
|
|
144506
144511
|
initCityOnMap(n) {
|
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.55";
|
|
2
2
|
export default _default;
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -64,7 +64,6 @@ interface MapCityOptions extends MapOptions {
|
|
|
64
64
|
showCityOnMapInnerLine?: boolean;
|
|
65
65
|
bloom?: boolean;
|
|
66
66
|
citySSAO?: boolean;
|
|
67
|
-
disabelCityVis?: number[];
|
|
68
67
|
}
|
|
69
68
|
export default class extends Base {
|
|
70
69
|
static VisName: string;
|
|
@@ -169,7 +168,7 @@ export default class extends Base {
|
|
|
169
168
|
initSettingsObj: Record<string, any>;
|
|
170
169
|
handleSetting(key: string, value: any): Promise<any>;
|
|
171
170
|
init(): Promise<void>;
|
|
172
|
-
initCityVis(adcode: number, grey?: boolean): Promise<City
|
|
171
|
+
initCityVis(adcode: number, grey?: boolean): Promise<City>;
|
|
173
172
|
initCityOnMap(adcode: number): Promise<void>;
|
|
174
173
|
initVisBg(): Promise<void>;
|
|
175
174
|
initVis(adcode: number): Promise<void>;
|