xy-cesium3 0.0.28 → 0.0.29
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/package.json +1 -1
- package/xy-cesium3.es.js +8 -0
- package/xy-cesium3.umd.js +1 -1
package/package.json
CHANGED
package/xy-cesium3.es.js
CHANGED
|
@@ -14807,6 +14807,8 @@ class Popup {
|
|
|
14807
14807
|
this.type = option.type || 1;
|
|
14808
14808
|
this.animate = option.animate || false;
|
|
14809
14809
|
this.isClose = option.isClose == null ? true : option.isClose;
|
|
14810
|
+
this.onClose = option.onClose || null;
|
|
14811
|
+
this.onCloseAll = option.onCloseAll || null;
|
|
14810
14812
|
this.id = 0;
|
|
14811
14813
|
this.ctnList = {};
|
|
14812
14814
|
if (option.position && (option.html || option.content)) {
|
|
@@ -14901,6 +14903,9 @@ class Popup {
|
|
|
14901
14903
|
close(e) {
|
|
14902
14904
|
e.remove();
|
|
14903
14905
|
e.removeEventListener("click", this.handleFloatingClick);
|
|
14906
|
+
if (typeof this.onClose === "function") {
|
|
14907
|
+
this.onClose(e);
|
|
14908
|
+
}
|
|
14904
14909
|
delete this.ctnList[e.id];
|
|
14905
14910
|
if (Object.keys(this.ctnList).length == 0) {
|
|
14906
14911
|
if (this.eventListener)
|
|
@@ -14917,6 +14922,9 @@ class Popup {
|
|
|
14917
14922
|
if (this.eventListener)
|
|
14918
14923
|
this.viewer.clock.onTick.removeEventListener(this.eventListener);
|
|
14919
14924
|
this.eventListener = null;
|
|
14925
|
+
if (typeof this.onCloseAll === "function") {
|
|
14926
|
+
this.onCloseAll();
|
|
14927
|
+
}
|
|
14920
14928
|
}
|
|
14921
14929
|
}
|
|
14922
14930
|
var pageLoad_vue_vue_type_style_index_0_scoped_true_lang = "";
|