Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
ea6d0260
Commit
ea6d0260
authored
Aug 30, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收集环境部分
parent
24726db0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
28 deletions
+29
-28
collect.js
env/templates/collect.js
+29
-28
No files found.
env/templates/collect.js
View file @
ea6d0260
let
fonts
=
[{
"font"
:
"50px sans-serif"
,
"text"
:
"0-_{w."
},
{
let
fonts
=
[
{
"font"
:
"50px sans-serif"
,
"text"
:
"0-_{w."
},
{
"font"
:
"50px serif"
,
"text"
:
"0-_{w."
},
{
"font"
:
"50px 'Andale Mono', sans-serif"
,
"text"
:
"0-_{w."
},
{
...
...
@@ -579,11 +580,11 @@ for (let i = 0; i < fonts.length; i++) {
}
fontsRes
[
fonts
[
i
].
font
][
fonts
[
i
].
text
]
=
{
width
:
met
.
width
,
actual
BoundingBoxA
scent
:
met
.
actualBoundingBoxAscent
,
actual
BoundingBoxL
eft
:
met
.
actualBoundingBoxLeft
,
actual
BoundingBoxR
ight
:
met
.
actualBoundingBoxRight
,
font
BoundingBoxA
scent
:
met
.
fontBoundingBoxAscent
,
actual
BoundingBoxD
escent
:
met
.
actualBoundingBoxDescent
,
actual
boundingboxa
scent
:
met
.
actualBoundingBoxAscent
,
actual
boundingboxl
eft
:
met
.
actualBoundingBoxLeft
,
actual
boundingboxr
ight
:
met
.
actualBoundingBoxRight
,
font
boundingboxa
scent
:
met
.
fontBoundingBoxAscent
,
actual
boundingboxd
escent
:
met
.
actualBoundingBoxDescent
,
}
}
...
...
@@ -694,26 +695,26 @@ for (let i = 0; i < glARgs.length; i++) {
delete
canvas
let
navigatorparams
=
{
app
N
ame
:
navigator
.
appName
,
app
V
ersion
:
navigator
.
appVersion
,
hardware
C
oncurrency
:
navigator
.
hardwareConcurrency
,
max
TouchP
oints
:
navigator
.
maxTouchPoints
,
app
n
ame
:
navigator
.
appName
,
app
v
ersion
:
navigator
.
appVersion
,
hardware
c
oncurrency
:
navigator
.
hardwareConcurrency
,
max
touchp
oints
:
navigator
.
maxTouchPoints
,
platform
:
navigator
.
platform
,
product
:
navigator
.
product
,
product
S
ub
:
navigator
.
productSub
,
user
A
gent
:
navigator
.
userAgent
,
product
s
ub
:
navigator
.
productSub
,
user
a
gent
:
navigator
.
userAgent
,
vendor
:
navigator
.
vendor
,
vendor
S
ub
:
navigator
.
vendorSub
,
do
NotT
rack
:
navigator
.
doNotTrack
,
vendor
s
ub
:
navigator
.
vendorSub
,
do
nott
rack
:
navigator
.
doNotTrack
,
}
let
screenparams
=
{
height
:
screen
.
height
,
width
:
screen
.
width
,
avail
H
eight
:
screen
.
availHeight
,
avail
W
idth
:
screen
.
availWidth
,
pixel
D
epth
:
screen
.
pixelDepth
,
color
D
epth
:
screen
.
colorDepth
,
avail
h
eight
:
screen
.
availHeight
,
avail
w
idth
:
screen
.
availWidth
,
pixel
d
epth
:
screen
.
pixelDepth
,
color
d
epth
:
screen
.
colorDepth
,
}
...
...
@@ -721,18 +722,18 @@ let featurePolicy;
if
(
document
.
featurePolicy
)
{
featurePolicy
=
{
features
:
document
.
featurePolicy
.
features
(),
allowed
F
eatures
:
document
.
featurePolicy
.
allowedFeatures
(),
allowed
f
eatures
:
document
.
featurePolicy
.
allowedFeatures
(),
}
}
let
windowparams
=
{
inner
H
eight
:
window
.
innerHeight
,
inner
W
idth
:
window
.
innerWidth
,
outer
H
eight
:
window
.
outerHeight
,
outer
W
idth
:
window
.
outerWidth
,
screen
X
:
window
.
screenX
,
screen
Y
:
window
.
screenY
,
page
YO
ffset
:
window
.
pageYOffset
,
device
PixelR
atio
:
window
.
devicePixelRatio
,
inner
h
eight
:
window
.
innerHeight
,
inner
w
idth
:
window
.
innerWidth
,
outer
h
eight
:
window
.
outerHeight
,
outer
w
idth
:
window
.
outerWidth
,
screen
x
:
window
.
screenX
,
screen
y
:
window
.
screenY
,
page
yo
ffset
:
window
.
pageYOffset
,
device
pixelr
atio
:
window
.
devicePixelRatio
,
}
...
...
@@ -960,7 +961,7 @@ setTimeout(function (){
glres
:
glArgs
,
jpg
:
getDataUrl
(),
jpg2
:
getDataUrl2
(),
can
P
lay
:
canplay
(),
can
p
lay
:
canplay
(),
useragentdata
:
userAgentData
,
webglimg
:
webglImg
,
}
...
...
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