Layer BIM toolbar above workspace windows
This commit is contained in:
@@ -315,6 +315,8 @@ let commentLongPressStart = null;
|
||||
let suppressNextCanvasClick = false;
|
||||
let floatingWindowOrder = [];
|
||||
const floatingWindowElements = new Map();
|
||||
const WORKSPACE_WINDOW_Z_BASE = 30080;
|
||||
const WORKSPACE_WINDOW_Z_STEP = 10;
|
||||
let objectContextModal = null;
|
||||
let mathUtil = null;
|
||||
let selectionState = null; // { ids, modelId, pivotCenter, baseTransforms: Map, transform }
|
||||
@@ -554,10 +556,9 @@ const setCommentModalError = (message = "") => {
|
||||
const bringFloatingWindowToFront = (id) => {
|
||||
if (!id) return;
|
||||
floatingWindowOrder = [...floatingWindowOrder.filter((item) => item !== id), id];
|
||||
const zBase = 30080;
|
||||
floatingWindowOrder.forEach((item, index) => {
|
||||
const element = floatingWindowElements.get(item);
|
||||
if (element) element.style.zIndex = `${zBase + index * 10}`;
|
||||
if (element) element.style.zIndex = `${WORKSPACE_WINDOW_Z_BASE + index * WORKSPACE_WINDOW_Z_STEP}`;
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user