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
a3b39a44
Commit
a3b39a44
authored
Aug 07, 2023
by
wangmingming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
7777
parent
8f1c663b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5565 additions
and
1714 deletions
+5565
-1714
collect.js
env/collect.js
+4
-1
js_dom_run.js
js_dom_run.js
+949
-145
Window.js
jsdom/lib/jsdom/browser/Window.js
+4
-4
utils.js
jsdom/lib/jsdom/living/generated/utils.js
+3
-3
HTMLCanvasElement-impl.js
jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
+5
-3
2.log
logs/2.log
+4600
-1558
No files found.
env/collect.js
View file @
a3b39a44
...
...
@@ -63,12 +63,15 @@ let sss = [{
"fillStyle"
:
"#000000"
,
"fillText"
:
[
"⛎"
,
-
1
,
96
],
"imageData"
:
[
62
,
28
,
1
,
1
]
}]
}
]
let
imgRes
=
{};
for
(
let
i
=
0
;
i
<
sss
.
length
;
i
++
)
{
var
a
=
document
.
createElement
(
'canvas'
)
a
.
width
=
96
a
.
height
=
96
let
ctx
=
a
.
getContext
(
'2d'
);
let
s
=
sss
[
i
];
ctx
.
font
=
s
.
font
;
...
...
js_dom_run.js
View file @
a3b39a44
This diff is collapsed.
Click to expand it.
jsdom/lib/jsdom/browser/Window.js
View file @
a3b39a44
...
...
@@ -266,12 +266,12 @@ function Window(options) {
// }
let
res
=
Reflect
.
get
(
target
,
p
,
receiver
);
if
(
p
!==
'debug'
&&
p
!==
'Object'
){
//
console.log('window get', p, typeof res)
console
.
log
(
'window get'
,
p
,
typeof
res
)
}
if
(
p
===
'StyleSheet'
){
debugger
;
}
//
if (p === 'StyleSheet'){
//
debugger;
//
}
// console.log(Reflect.get(target, '_cf_chl_ctx', receiver))
if
(
!
[
'_registeredHandlers'
,
'window'
,
'_currentEvent'
,
'debug'
,
'_eventListenerss'
,
'top'
,
'JSON'
,
'Math'
].
includes
(
p
)
&&
res
&&
typeof
res
===
'object'
&&
typeof
p
!==
'symbol'
)
{
...
...
jsdom/lib/jsdom/living/generated/utils.js
View file @
a3b39a44
...
...
@@ -138,9 +138,9 @@ const proxy = function (tt, name) {
// }
// console.log(Reflect.get(target, '_cf_chl_ctx', receiver))
//
if (!['_registeredHandlers', 'window', '_currentEvent', 'performance', 'debug', '_eventListenerss', 'top', 'prototype'].includes(p) && res && typeof res === 'object' && typeof p !== 'symbol') {
//
return proxy(res, p)
//
}
if
(
!
[
'_registeredHandlers'
,
'window'
,
'_currentEvent'
,
'performance'
,
'debug'
,
'_eventListenerss'
,
'top'
,
'prototype'
].
includes
(
p
)
&&
res
&&
typeof
res
===
'object'
&&
typeof
p
!==
'symbol'
)
{
return
proxy
(
res
,
p
)
}
return
res
;
},
// getPrototypeOf(target) {
...
...
jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
View file @
a3b39a44
...
...
@@ -2813,9 +2813,9 @@ class CanvasRenderingContext2D {
console
.
log
(
'CanvasRenderingContext2D.ellipse'
)
}
fillRect
()
{
fillRect
(
a
,
b
,
c
,
d
)
{
console
.
log
(
'CanvasRenderingContext2D.fillRect'
)
return
this
.
_context
.
fillRect
(
...
arguments
)
return
this
.
_context
.
fillRect
(
a
,
b
,
c
,
d
)
}
lineTo
()
{
...
...
@@ -3776,12 +3776,14 @@ canvas: {writable: undefined, enumerable: true, configurable: true},
configurable
:
true
},
})
window
.
WebGLRenderingContext
=
WebGLRenderingContext
let
t
=
proxy
(
new
WebGLRenderingContext
(),
'WebGLRenderingContext11'
)
// let t = new WebGLRenderingContext()
this
.
_context
=
t
;
}
// console.log('contextId res', this._context)
this
.
_context
=
idlUtils
.
proxy
(
this
.
_context
,
'context'
+
contextId
)
//
this._context = idlUtils.proxy(this._context, 'context' + contextId)
return
this
.
_context
;
}
...
...
logs/2.log
View file @
a3b39a44
This diff is collapsed.
Click to expand it.
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