Commit 32d3359a authored by Percen's avatar Percen
Browse files

Merge branch '21pesi1bif-master-patch-16168' into 'master'

Update public/index.html

See merge request !158
1 merge request!158Update public/index.html
Pipeline #10890 passed with stage
in 35 seconds
Showing with 5 additions and 5 deletions
+5 -5
...@@ -568,7 +568,8 @@ ...@@ -568,7 +568,8 @@
} }
} }
} }
/**
*
function calculateBoundingBox(object) { function calculateBoundingBox(object) {
const box = new THREE.Box3().setFromObject(object); const box = new THREE.Box3().setFromObject(object);
const size = new THREE.Vector3(); const size = new THREE.Vector3();
...@@ -614,9 +615,8 @@ function openScaleMenu() { ...@@ -614,9 +615,8 @@ function openScaleMenu() {
`; `;
} }
}*/
/**
*
function openScaleMenu() { function openScaleMenu() {
if (!selectedPlacedModel) { if (!selectedPlacedModel) {
showInfoDialog("Kein Modell ausgewählt. Bitte wählen Sie ein Modell aus, bevor Sie es bearbeiten."); showInfoDialog("Kein Modell ausgewählt. Bitte wählen Sie ein Modell aus, bevor Sie es bearbeiten.");
...@@ -630,10 +630,10 @@ function openScaleMenu() { ...@@ -630,10 +630,10 @@ function openScaleMenu() {
dynamicMenu.style.display = "flex"; dynamicMenu.style.display = "flex";
dynamicMenu.innerHTML = ` dynamicMenu.innerHTML = `
<h3>Skalierung anpassen</h3> <h3>Skalierung anpassen</h3>
<label>Größe: <span id="scale-value">${currentScale.toFixed(2)}</span><input type="range" min="0.01" max="3" step="0.01" value="${currentScale}" onchange="updateScale(this.value)"></label> <label>Größe: <span id="scale-value">${currentScale.toFixed(2)}</span><input type="range" min="0.01" max="3" step="0.001" value="${currentScale}" onchange="updateScale(this.value)"></label>
<button onclick="closeDynamicMenu()">Zurück</button> <button onclick="closeDynamicMenu()">Zurück</button>
`; `;
}*/
function updateScale(value) { function updateScale(value) {
if (selectedPlacedModel) { if (selectedPlacedModel) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment