Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
freecad_x3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
freecad_x3d
Commits
963ba781
Commit
963ba781
authored
Dec 26, 2015
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. removed spread operatorfrom max function
parent
55768512
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
viewmodel.js
x3d_web_viewer/viewmodel.js
+7
-1
No files found.
x3d_web_viewer/viewmodel.js
View file @
963ba781
...
...
@@ -414,7 +414,13 @@ function place_camera(){
var
boxsize
;
boxsize
=
Math
.
max
(...
top_bboxsize
);
console
.
log
(
top_bboxsize
);
boxsize
=
0
;
for
(
var
k
=
0
;
k
<
top_bboxsize
.
length
;
k
++
){
if
(
parseFloat
(
top_bboxsize
[
k
])
>
boxsize
)
boxsize
=
parseFloat
(
top_bboxsize
[
k
]);
}
//boxsize = Math.max(...top_bboxsize);
var
view_distance
=
(
boxsize
/
2
)
/
Math
.
tan
(
fov
/
2
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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