mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
Cleaning up
This commit is contained in:
@@ -39,7 +39,6 @@ export async function settings() {
|
|||||||
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEW6urpaLVq8AAAACklEQVQI" +
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEW6urpaLVq8AAAACklEQVQI" +
|
||||||
"12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg=="),
|
"12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg=="),
|
||||||
};
|
};
|
||||||
// settings.skybox = settings.background = ''; // Disable both skybox and background
|
|
||||||
|
|
||||||
// Auto-override any settings from the URL
|
// Auto-override any settings from the URL
|
||||||
const url = new URL(window.location.href);
|
const url = new URL(window.location.href);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export async function setupLighting(modelViewer: ModelViewerElement) {
|
|||||||
startPan();
|
startPan();
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
self.addEventListener('mousemove', (event) => {
|
document.addEventListener('mousemove', (event) => {
|
||||||
if (!panning)
|
if (!panning)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ export async function setupLighting(modelViewer: ModelViewerElement) {
|
|||||||
updatePan(thisX);
|
updatePan(thisX);
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
self.addEventListener('mouseup', (event) => {
|
document.addEventListener('mouseup', (event) => {
|
||||||
panning = false;
|
panning = false;
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user