Skip to content

Commit

Permalink
refactor(#5): ♻️ Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gautegf committed Oct 6, 2025
1 parent f04fabb commit 7af1807
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/MeasurementControl/measurementsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* entries with per-type numbering, syncs selection with Potree's jsTree, and
* dynamically mounts the native properties panel when a measurement is active.
*/
window.createMeasurementsPanel = function createMeasurementsPanel(viewer) {
export function initMeasurementsPanel(viewer) {
// Track last selected measurement label for dynamic data title
const lastSelection = { uuid: null, label: '' }
// Resolve or create measurements container in Potree menu
Expand Down Expand Up @@ -676,7 +676,3 @@ window.createMeasurementsPanel = function createMeasurementsPanel(viewer) {
}
}
}

export function initMeasurementsPanel(viewer) {
return window.createMeasurementsPanel(viewer)
}

0 comments on commit 7af1807

Please sign in to comment.