Skip to content

Commit

Permalink
adds ng changes for overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
dxenes1 committed May 16, 2022
1 parent 5de2ac8 commit 1afe4e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions neuvue_project/workspace/static/workspace/main.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -72869,13 +72869,16 @@ const defaultEventMap = neuroglancer_util_keyboard_bindings__WEBPACK_IMPORTED_MO
'escape': { action: 'close' },
});
class Overlay extends neuroglancer_util_disposable__WEBPACK_IMPORTED_MODULE_1__["RefCounted"] {
constructor() {
constructor(hidden = false) {
super();
this.keyMap = new neuroglancer_util_keyboard_bindings__WEBPACK_IMPORTED_MODULE_2__["EventActionMap"]();
this.keyMap.addParent(defaultEventMap, Number.NEGATIVE_INFINITY);
++overlaysOpen;
let container = this.container = document.createElement('div');
container.className = 'overlay';
if (hidden) {
container.className = 'overlay overlay-hidden';
}
let content = this.content = document.createElement('div');
this.registerDisposer(new neuroglancer_util_automatic_focus__WEBPACK_IMPORTED_MODULE_0__["AutomaticallyFocusedElement"](content));
content.className = 'overlay-content';
Expand Down Expand Up @@ -74782,8 +74785,8 @@ class SaveState extends neuroglancer_util_disposable__WEBPACK_IMPORTED_MODULE_6_
overwriteHistory(newHistory = []) {
this.robustSet(historyKey, JSON.stringify(newHistory));
}
showSaveDialog(viewer, jsonString, get) {
new SaveDialog(viewer, jsonString, get);
showSaveDialog(viewer, jsonString, get, hidden = true) {
new SaveDialog(viewer, jsonString, get, hidden);
}
showHistory(viewer) {
new SaveHistoryDialog(viewer, this);
Expand Down Expand Up @@ -74877,8 +74880,8 @@ class SaveState extends neuroglancer_util_disposable__WEBPACK_IMPORTED_MODULE_6_
}
}
class SaveDialog extends neuroglancer_overlay__WEBPACK_IMPORTED_MODULE_3__["Overlay"] {
constructor(viewer, jsonString, getUrlType) {
super();
constructor(viewer, jsonString, getUrlType, hidden = false) {
super(hidden);
this.viewer = viewer;
const br = () => document.createElement('br');
const jsonURLDefault = `LINK SHORTNER INACCESSIBLE`;
Expand Down Expand Up @@ -74911,6 +74914,7 @@ class SaveDialog extends neuroglancer_overlay__WEBPACK_IMPORTED_MODULE_3__["Over
let { content } = this;
content.style.overflow = 'visible';
content.classList.add('ng-dark');
content.classList.add('save-state-overlay');
const title = document.createElement('h1');
title.innerText = 'Share Link';
const descr = document.createElement('div');
Expand Down Expand Up @@ -95194,7 +95198,7 @@ class Viewer extends neuroglancer_util_disposable__WEBPACK_IMPORTED_MODULE_33__[
new neuroglancer_user_report_user_report__WEBPACK_IMPORTED_MODULE_30__["UserReportDialog"](this, image);
}
showSaveDialog(getUrlType, jsonString) {
this.saver.showSaveDialog(this, jsonString, getUrlType);
this.saver.showSaveDialog(this, jsonString, getUrlType, true);
}
showHistory() {
this.saver.showHistory(this);
Expand Down

Large diffs are not rendered by default.

0 comments on commit 1afe4e2

Please sign in to comment.