Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NianBroken/Firework_Simulator
/ getDefaultScaleFactor
Function
getDefaultScaleFactor
js/script.js:34–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
32
let
simSpeed = 1;
33
34
function
getDefaultScaleFactor() {
35
if
(IS_MOBILE)
return
0.9;
36
if
(IS_HEADER)
return
0.75;
37
return
1;
38
}
39
40
//考虑比例的宽度/高度值。
41
//使用这些来绘制位置
Callers
1
script.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected