all repos — onyx @ main

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
29
30
31
32
33
class ModalCollection {
  createOverlay: CreateOverlayModal;
  cancel: CancelModal;
  okCancel: OKCancelModal;
  info: InfoModal;
  overlayMgr: OverlayManagementModal;
  importExport: ImportExportModal;
  
  constructor(
    createOverlay: CreateOverlayModal,
    cancel: CancelModal,
    okCancel: OKCancelModal,
    info: InfoModal,
    overlayMgr: OverlayManagementModal,
    importExport: ImportExportModal
  ) {
    this.createOverlay = createOverlay;
    this.cancel = cancel;
    this.okCancel = okCancel;
    this.info = info;
    this.overlayMgr = overlayMgr;
    this.importExport = importExport;
  }
  
  closeAll(): void {
    this.createOverlay.setVisible(false);
    this.cancel.setVisible(false);
    this.okCancel.setVisible(false);
    this.info.setVisible(false);
    this.overlayMgr.setVisible(false);
    this.importExport.setVisible(false);
  }
}