vis-core 0.21.24 → 0.21.25
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.js +2 -2
- package/dist/index.module.js +16 -3
- package/dist/version.d.ts +1 -1
- package/dist/vis/earth/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -48248,7 +48248,7 @@ function createAreaLightMaterial(st) {
|
|
|
48248
48248
|
const e = new MeshBasicMaterial();
|
|
48249
48249
|
return e.color.setScalar(st), e;
|
|
48250
48250
|
}
|
|
48251
|
-
const version = "0.21.
|
|
48251
|
+
const version = "0.21.25";
|
|
48252
48252
|
class Event {
|
|
48253
48253
|
constructor() {
|
|
48254
48254
|
N0(this, "event", new EventEmitter());
|
|
@@ -54000,6 +54000,7 @@ const objs$1 = on(Ci({}, objs$5), {
|
|
|
54000
54000
|
mapDepth: () => this.options.mapDepth
|
|
54001
54001
|
});
|
|
54002
54002
|
N0(this, "map");
|
|
54003
|
+
N0(this, "autoRotateSpeed", 0);
|
|
54003
54004
|
N0(this, "barArr", []);
|
|
54004
54005
|
}
|
|
54005
54006
|
get mapArea() {
|
|
@@ -54014,12 +54015,24 @@ const objs$1 = on(Ci({}, objs$5), {
|
|
|
54014
54015
|
}, c)), this.pencilConfig = PENCIL_CONFIG$1, this.initSettingsObj = {
|
|
54015
54016
|
"测试板块颜色.color": "#000000",
|
|
54016
54017
|
"测试边框颜色.color": "#ffffff",
|
|
54017
|
-
测试立柱: ""
|
|
54018
|
+
测试立柱: "",
|
|
54019
|
+
autoRotate: !1
|
|
54018
54020
|
}, styles[this.options.style](this);
|
|
54019
54021
|
}
|
|
54020
54022
|
handleSetting(c, it) {
|
|
54021
54023
|
return mi(this, null, function* () {
|
|
54022
|
-
return yield xn(Kn.prototype, this, "handleSetting").call(this, c, it), c === "测试板块颜色.color" ? this.setAreaEmissiveByProperty("ISO_A2", "CN", it) : c === "测试边框颜色.color" ? this.setLineColorByProperty("ISO_A2", "CN", it) : c === "测试立柱"
|
|
54024
|
+
return yield xn(Kn.prototype, this, "handleSetting").call(this, c, it), c === "测试板块颜色.color" ? this.setAreaEmissiveByProperty("ISO_A2", "CN", it) : c === "测试边框颜色.color" ? this.setLineColorByProperty("ISO_A2", "CN", it) : c === "测试立柱" ? (typeof it == "boolean" && (it = ""), it ? this.addBar(it) : this.removeBar()) : c === "autoRotate" && this.playing && (it ? this.autoRotateSpeed = -20 : this.autoRotateSpeed = 0, this.pencil.autoRotate(this.autoRotateSpeed)), it;
|
|
54025
|
+
});
|
|
54026
|
+
}
|
|
54027
|
+
show() {
|
|
54028
|
+
super.show(), this.animationIn();
|
|
54029
|
+
}
|
|
54030
|
+
animationIn() {
|
|
54031
|
+
const c = this.pencil.controls;
|
|
54032
|
+
c.addEventListener("controlstart", () => {
|
|
54033
|
+
this.pencil.autoRotate(0);
|
|
54034
|
+
}), c.addEventListener("controlend", () => {
|
|
54035
|
+
this.pencil.autoRotate(this.autoRotateSpeed);
|
|
54023
54036
|
});
|
|
54024
54037
|
}
|
|
54025
54038
|
initLight() {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.21.
|
|
1
|
+
declare const _default: "0.21.25";
|
|
2
2
|
export default _default;
|
|
@@ -51,7 +51,10 @@ export default class extends Base {
|
|
|
51
51
|
map: Countries;
|
|
52
52
|
get mapArea(): import("gl-draw/dist/objects").ConicPolygon[];
|
|
53
53
|
setOptions(options: EarthOptions): void;
|
|
54
|
+
autoRotateSpeed: number;
|
|
54
55
|
handleSetting(key: string, value: any): Promise<any>;
|
|
56
|
+
show(): void;
|
|
57
|
+
animationIn(): void;
|
|
55
58
|
initLight(): Promise<void>;
|
|
56
59
|
getLocationPosition(location: [number, number], dr?: number): [number, number, number];
|
|
57
60
|
setAreaColorByProperty(key: string, value: any, color: string, mix?: boolean): void;
|