Skip to content

Commit

Permalink
style(#47): 🎨 moved stylings to .css
Browse files Browse the repository at this point in the history
  • Loading branch information
franmagn committed Nov 5, 2025
1 parent e382e64 commit 7d2fb71
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 11 additions & 0 deletions src/MeasurementControl/measurementsPanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,14 @@
white-space: nowrap;
z-index: 2100;
}

/* Container overlay for on-canvas measurement labels. */
.measurement-label-overlay {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 2000;
}
8 changes: 1 addition & 7 deletions src/MeasurementControl/measurementsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,7 @@ export function initMeasurementsPanel(viewer) {
if (renderArea) {
overlay = document.createElement('div')
overlay.id = 'measurement_label_overlay'
overlay.style.position = 'absolute'
overlay.style.left = '0'
overlay.style.top = '0'
overlay.style.width = '100%'
overlay.style.height = '100%'
overlay.style.pointerEvents = 'none'
overlay.style.zIndex = '2000'
overlay.classList.add('measurement-label-overlay')
renderArea.appendChild(overlay)
}
const listDivider = document.createElement('div')
Expand Down

0 comments on commit 7d2fb71

Please sign in to comment.