Layer BIM toolbar above workspace windows

This commit is contained in:
CODEX
2026-06-20 23:15:08 +03:00
parent f6ed7d18e0
commit eee3eecde3
3 changed files with 29 additions and 19 deletions
+3 -2
View File
@@ -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}`;
});
};