Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
80da7816
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
80da7816
编写于
4月 10, 2016
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated to stats.js r15 (bis).
上级
fc4687ac
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
4 addition
and
4 deletion
+4
-4
examples/js/libs/stats.min.js
examples/js/libs/stats.min.js
+4
-4
未找到文件。
examples/js/libs/stats.min.js
浏览文件 @
80da7816
// stats.js - http://github.com/mrdoob/stats.js
var
Stats
=
function
(){
function
c
(
a
){
b
.
appendChild
(
a
.
dom
);
return
a
}
function
d
(
a
){
for
(
var
c
=
0
;
c
<
b
.
children
.
length
;
c
++
)
b
.
children
[
c
].
style
.
display
=
c
===
a
?
"
block
"
:
"
none
"
}
var
g
=
0
,
b
=
document
.
createElement
(
"
div
"
);
b
.
style
.
cssText
=
"
opacity:0.9;cursor:pointer
"
;
b
.
addEventListener
(
"
click
"
,
function
(
a
){
a
.
preventDefault
();
d
(
++
g
%
b
.
children
.
length
)},
!
1
);
var
a
=
(
performance
||
Date
).
now
(),
e
=
a
,
f
=
0
,
h
=
c
(
new
Stats
.
Panel
(
"
FPS
"
,
"
#0ff
"
,
"
#002
"
)),
k
=
c
(
new
Stats
.
Panel
(
"
MS
"
,
"
#0f0
"
,
"
#020
"
));
if
(
self
.
performance
&&
self
.
performance
.
memory
)
var
l
=
c
(
new
Stats
.
Panel
(
"
MB
"
,
"
#f08
"
,
"
#201
"
));
d
(
0
);
return
{
REVISION
:
15
,
domElement
:
b
,
addPanel
:
c
,
showPanel
:
d
,
setMode
:
d
,
begin
:
function
(){
a
=
(
performance
||
Date
).
now
()},
end
:
function
(){
f
++
;
var
b
=
(
performance
||
Date
).
now
();
k
.
update
(
b
-
a
,
200
);
if
(
b
>
e
+
1
E3
&&
(
h
.
update
(
1
E3
*
f
/
(
b
-
e
),
100
),
e
=
b
,
f
=
0
,
void
0
!==
l
)){
var
c
=
performance
.
memory
;
l
.
update
(
c
.
usedJSHeapSize
/
1048576
,
c
.
jsHeapSizeLimit
/
1048576
)}
return
b
},
update
:
function
(){
a
=
this
.
end
()}}};
Stats
.
Panel
=
function
(
c
,
d
,
g
){
var
b
=
document
.
createElement
(
"
canvas
"
);
b
.
width
=
80
;
b
.
height
=
48
;
var
a
=
b
.
getContext
(
"
2d
"
);
a
.
fillStyle
=
g
;
a
.
fillRect
(
0
,
0
,
80
,
48
);
a
.
font
=
"
bold 9px Helvetica,Arial,sans-serif
"
;
a
.
fillStyle
=
d
;
a
.
fillText
(
c
,
3
,
10
);
a
.
fillRect
(
3
,
15
,
74
,
30
);
a
.
fillStyle
=
g
;
a
.
globalAlpha
=
.
9
;
a
.
fillRect
(
3
,
15
,
74
,
30
);
var
e
=
Infinity
,
f
=
0
;
return
{
dom
:
b
,
update
:
function
(
h
,
k
){
e
=
Math
.
min
(
e
,
h
);
f
=
Math
.
max
(
f
,
h
);
a
.
globalAlpha
=
1
;
a
.
fillStyle
=
g
;
a
.
fillRect
(
0
,
0
,
80
,
15
);
a
.
fillStyle
=
d
;
a
.
fillText
((
h
|
0
)
+
"
"
+
c
+
"
(
"
+
(
e
|
0
)
+
"
-
"
+
(
f
|
0
)
+
"
)
"
,
3
,
10
);
a
.
drawImage
(
b
,
4
,
15
,
74
,
30
,
3
,
15
,
74
,
30
);
a
.
fillRect
(
76
,
15
,
1
,
30
);
a
.
fillStyle
=
g
;
a
.
globalAlpha
=
.
9
;
a
.
fillRect
(
76
,
15
,
1
,
30
-
h
/
k
*
30
|
0
)}}};
"
object
"
===
typeof
module
&&
(
module
.
exports
=
Stats
);
var
Stats
=
function
(){
function
c
(
a
){
b
.
appendChild
(
a
.
dom
);
return
a
}
function
d
(
a
){
for
(
var
c
=
0
;
c
<
b
.
children
.
length
;
c
++
)
b
.
children
[
c
].
style
.
display
=
c
===
a
?
"
block
"
:
"
none
"
;
e
=
a
}
var
e
=
0
,
b
=
document
.
createElement
(
"
div
"
);
b
.
style
.
cssText
=
"
opacity:0.9;cursor:pointer
"
;
b
.
addEventListener
(
"
click
"
,
function
(
a
){
a
.
preventDefault
();
d
(
++
e
%
b
.
children
.
length
)},
!
1
);
var
a
=
(
performance
||
Date
).
now
(),
f
=
a
,
g
=
0
,
h
=
c
(
new
Stats
.
Panel
(
"
FPS
"
,
"
#0ff
"
,
"
#002
"
)),
k
=
c
(
new
Stats
.
Panel
(
"
MS
"
,
"
#0f0
"
,
"
#020
"
));
if
(
self
.
performance
&&
self
.
performance
.
memory
)
var
l
=
c
(
new
Stats
.
Panel
(
"
MB
"
,
"
#f08
"
,
"
#201
"
));
d
(
0
);
return
{
REVISION
:
15
,
domElement
:
b
,
addPanel
:
c
,
showPanel
:
d
,
setMode
:
d
,
begin
:
function
(){
a
=
(
performance
||
Date
).
now
()},
end
:
function
(){
g
++
;
var
b
=
(
performance
||
Date
).
now
();
k
.
update
(
b
-
a
,
200
);
if
(
b
>
f
+
1
E3
&&
(
h
.
update
(
1
E3
*
g
/
(
b
-
f
),
100
),
f
=
b
,
g
=
0
,
void
0
!==
l
)){
var
c
=
performance
.
memory
;
l
.
update
(
c
.
usedJSHeapSize
/
1048576
,
c
.
jsHeapSizeLimit
/
1048576
)}
return
b
},
update
:
function
(){
a
=
this
.
end
()}}};
Stats
.
Panel
=
function
(
c
,
d
,
e
){
var
b
=
document
.
createElement
(
"
canvas
"
);
b
.
width
=
80
;
b
.
height
=
48
;
var
a
=
b
.
getContext
(
"
2d
"
);
a
.
fillStyle
=
e
;
a
.
fillRect
(
0
,
0
,
80
,
48
);
a
.
font
=
"
bold 9px Helvetica,Arial,sans-serif
"
;
a
.
fillStyle
=
d
;
a
.
fillText
(
c
,
3
,
10
);
a
.
fillRect
(
3
,
15
,
74
,
30
);
a
.
fillStyle
=
e
;
a
.
globalAlpha
=
.
9
;
a
.
fillRect
(
3
,
15
,
74
,
30
);
var
f
=
Infinity
,
g
=
0
,
h
=
Math
.
round
;
return
{
dom
:
b
,
update
:
function
(
k
,
l
){
f
=
Math
.
min
(
f
,
k
);
g
=
Math
.
max
(
g
,
k
);
a
.
globalAlpha
=
1
;
a
.
fillStyle
=
e
;
a
.
fillRect
(
0
,
0
,
80
,
15
);
a
.
fillStyle
=
d
;
a
.
fillText
(
h
(
k
)
+
"
"
+
c
+
"
(
"
+
h
(
f
)
+
"
-
"
+
h
(
g
)
+
"
)
"
,
3
,
10
);
a
.
drawImage
(
b
,
4
,
15
,
74
,
30
,
3
,
15
,
74
,
30
);
a
.
fillRect
(
76
,
15
,
1
,
30
);
a
.
fillStyle
=
e
;
a
.
globalAlpha
=
.
9
;
a
.
fillRect
(
76
,
15
,
1
,
30
-
h
(
k
/
l
*
30
)
)}}};
"
object
"
===
typeof
module
&&
(
module
.
exports
=
Stats
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录