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
95126493
Commit
95126493
authored
3 months ago
by
Percen
Browse files
Options
Download
Email Patches
Plain Diff
Update public/index.html
parent
e1ffcabb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+7
-3
public/index.html
with
7 additions
and
3 deletions
+7
-3
public/index.html
+
7
-
3
View file @
95126493
...
...
@@ -582,14 +582,17 @@ function calculateMaxScale(object) {
const
viewportWidth
=
window
.
innerWidth
;
const
viewportHeight
=
window
.
innerHeight
;
// Berechne d
en Skalierungsfaktor für Breite und Höhe
// Berechne d
as Verhältnis zwischen der Größe des Viewports und der Größe des Objekts
const
scaleWidth
=
viewportWidth
/
boundingBox
.
x
;
const
scaleHeight
=
viewportHeight
/
boundingBox
.
y
;
// Wähle den kleineren Faktor, um sicherzustellen, dass das Objekt nicht aus dem Bildschirm herausragt
return
Math
.
min
(
scaleWidth
,
scaleHeight
);
// Reduziere den Wert, um sicherzustellen, dass das Objekt nicht zu groß wird
const
safeScaleFactor
=
0.9
;
// Reduziert die Skalierung um 10%, um sicher zu sein
return
Math
.
min
(
scaleWidth
,
scaleHeight
)
*
safeScaleFactor
;
}
function
openScaleMenu
()
{
if
(
!
selectedPlacedModel
)
{
showInfoDialog
(
"
Kein Modell ausgewählt. Bitte wählen Sie ein Modell aus, bevor Sie es bearbeiten.
"
);
...
...
@@ -611,6 +614,7 @@ function openScaleMenu() {
`
;
}
/**
*
function openScaleMenu() {
...
...
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