all repos — onyx @ 30766accd61c704d72399bcfdc2591155ae25e53

minimal map annotation and location data sharing tool

src/29-modalCollection.ts (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class ModalCollection {
  createOverlay: CreateOverlayModal;
  cancel: CancelModal;
  okCancel: OKCancelModal;
  info: InfoModal;
  overlayMgr: OverlayManagementModal;
  
  constructor(
    createOverlay: CreateOverlayModal,
    cancel: CancelModal,
    okCancel: OKCancelModal,
    info: InfoModal,
    overlayMgr: OverlayManagementModal
  ) {
    this.createOverlay = createOverlay;
    this.cancel = cancel;
    this.okCancel = okCancel;
    this.info = info;
    this.overlayMgr = overlayMgr;
  }
  
  closeAll(): void {
    this.createOverlay.setVisible(false);
    this.cancel.setVisible(false);
    this.okCancel.setVisible(false);
    this.overlayMgr.setVisible(false);
  }
}