From 09b75d0912cce05274fee046af72f792f14670ef Mon Sep 17 00:00:00 2001 From: cavencj Date: Thu, 9 Jan 2025 14:51:22 +0800 Subject: [PATCH] add the loading mask --- examples/info/three_scene.html | 1 + examples/list.js | 4 ++ examples/widget/compass.html | 17 +++++- examples/widget/distance_legend.html | 16 +++++- examples/widget/hawk_eye_map.html | 18 +++++- examples/widget/loading_mask.html | 64 ++++++++++++++++++++++ examples/widget/zoom_controller.html | 17 +++++- src/modules/event/types/MouseEvent.js | 16 +++--- src/modules/viewer/Viewer.js | 2 +- src/modules/widget/index.js | 4 +- src/modules/widget/types/Compass.js | 20 ++++--- src/modules/widget/types/DistanceLegend.js | 7 ++- src/modules/widget/types/HawkEyeMap.js | 7 ++- src/modules/widget/types/LoadingMask.js | 40 ++++++++++++++ src/themes/index.scss | 8 ++- src/themes/loading-mask.scss | 63 +++++++++++++++++++++ src/themes/viewer.scss | 4 ++ 17 files changed, 276 insertions(+), 32 deletions(-) create mode 100644 examples/widget/loading_mask.html create mode 100644 src/themes/loading-mask.scss create mode 100644 src/themes/viewer.scss diff --git a/examples/info/three_scene.html b/examples/info/three_scene.html index 7c6a3cf..134ecd0 100644 --- a/examples/info/three_scene.html +++ b/examples/info/three_scene.html @@ -9,6 +9,7 @@ three scene + + + +
+ + + + diff --git a/examples/widget/zoom_controller.html b/examples/widget/zoom_controller.html index e0b0b41..b6a6b7e 100644 --- a/examples/widget/zoom_controller.html +++ b/examples/widget/zoom_controller.html @@ -9,7 +9,9 @@ zoom controller - + + +