| | |
| | | |
| | | let app = null; |
| | | let mapContainer = null; |
| | | let notify = null; |
| | | let effectTick, effectHalfCircle, effectRectangle; |
| | | |
| | | export function syncApp(param) { |
| | |
| | | |
| | | export function syncMapContainer(param) { |
| | | mapContainer = param; |
| | | } |
| | | |
| | | export function syncNotify(param) { |
| | | notify = param; |
| | | } |
| | | |
| | | export function getMapContainer() { |
| | |
| | | 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: () => { } |
| | | }); |
| | | } |