#
luxiaotao1123
2024-03-20 467d7518ae2ce3ca22337ca60dceb8ce709915cf
zy-asrs-flow/src/pages/map/utils.js
@@ -9,6 +9,7 @@
let app = null;
let mapContainer = null;
let notify = null;
let effectTick, effectHalfCircle, effectRectangle;
export function syncApp(param) {
@@ -17,6 +18,10 @@
export function syncMapContainer(param) {
    mapContainer = param;
}
export function syncNotify(param) {
    notify = param;
}
export function getMapContainer() {
@@ -444,3 +449,14 @@
    new TWEEDLE.Tween(mapContainer.position).easing(TWEEDLE.Easing.Quadratic.Out)
        .to(targetPos, 500).start();
}
export const mapNotify = (msg) => {
    notify.open({
        description: msg,
        duration: 1.5,
        style: { width: 300 },
        placement: 'bottom',
        closeIcon: false,
        onClick: () => { }
    });
}