Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GeoVistoogsi
AR
Commits
48f1b27a
Commit
48f1b27a
authored
3 months ago
by
Cantuerk
Browse files
Options
Download
Email Patches
Plain Diff
Update public/index.html
parent
fa7464e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+14
-13
public/index.html
with
14 additions
and
13 deletions
+14
-13
public/index.html
+
14
-
13
View file @
48f1b27a
...
@@ -195,7 +195,7 @@
...
@@ -195,7 +195,7 @@
/*padding: 20px 0;*/
/*padding: 20px 0;*/
border-radius
:
8px
;
border-radius
:
8px
;
}
}
#dynamic-menu
input
[
type
=
"range"
]
{
#dynamic-menu
input
[
type
=
"range"
]
{
width
:
100%
;
width
:
100%
;
...
@@ -483,7 +483,11 @@
...
@@ -483,7 +483,11 @@
}
}
model
.
position
.
copy
(
reticle
.
position
);
model
.
position
.
copy
(
reticle
.
position
);
scene
.
add
(
model
);
scene
.
add
(
model
);
// Speichere das platzierte Modell und die Konfiguration
selectedPlacedModel
=
model
;
selectedPlacedModel
=
model
;
selectedPlacedModel
.
modelConfig
=
modelConfig
;
highlightSelectedModel
();
highlightSelectedModel
();
showMenu
(
'
edit-menu
'
);
showMenu
(
'
edit-menu
'
);
},
},
...
@@ -630,12 +634,12 @@
...
@@ -630,12 +634,12 @@
<label>Größe: <span id="scale-value">${currentScale.toFixed(2)}</span><input type="range" min="0.01" max="${maxScale.toFixed(2)}" step="0.0001" 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="${maxScale.toFixed(2)}" step="0.0001" value="${currentScale}" onchange="updateScale(this.value)"></label>
<button onclick="closeDynamicMenu()">Zurück</button>
<button onclick="closeDynamicMenu()">Zurück</button>
`;
`;
}
}
* */
* */
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.
"
);
...
@@ -647,14 +651,11 @@
...
@@ -647,14 +651,11 @@
// Aktuelle Skalierung des Modells bestimmen
// Aktuelle Skalierung des Modells bestimmen
const
currentScale
=
selectedPlacedModel
.
scale
.
x
;
const
currentScale
=
selectedPlacedModel
.
scale
.
x
;
const
minScale
=
selectedPlacedModel
.
minScale
;
const
minScale
=
selectedPlacedModel
.
modelConfig
.
minScale
;
const
maxScale
=
selectedPlacedModel
.
maxScale
;
const
maxScale
=
selectedPlacedModel
.
modelConfig
.
maxScale
;
const
step
=
(
maxScale
-
minScale
)
/
100
;
// Dynamische Schrittgröße basierend auf Grenzen
const
step
=
(
maxScale
-
minScale
)
/
100
;
// Dynamische Schrittgröße basierend auf Grenzen
console
.
log
(
"
Die größen des ausgewählten Modells sind wie folgt:
"
)
console
.
log
(
"
Slider-Werte:
"
,
{
minScale
,
maxScale
,
currentScale
});
console
.
log
(
"
currentScale
"
,
currentScale
)
console
.
log
(
"
minScale
"
,
minScale
)
console
.
log
(
"
maxScale
"
,
maxScale
)
const
dynamicMenu
=
document
.
getElementById
(
"
dynamic-menu
"
);
const
dynamicMenu
=
document
.
getElementById
(
"
dynamic-menu
"
);
dynamicMenu
.
style
.
display
=
"
flex
"
;
dynamicMenu
.
style
.
display
=
"
flex
"
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets