UNPKG
jsroot
Version:
latest (7.10.1)
7.10.1
7.10.0
7.9.3
7.9.2
7.9.1
7.9.0
7.8.2
7.8.1
7.8.0
7.7.6
7.7.5
7.7.4
7.7.3
7.7.2
7.7.1
7.7.0
7.6.1
7.6.0
7.5.5
7.5.4
7.5.3
7.5.2
7.5.1
7.5.0
7.4.3
7.4.2
7.4.1
7.4.0
7.3.4
7.3.2
7.3.1
7.3.0
7.2.1
7.2.0
7.1.0
7.0.2
7.0.1
7.0.0
6.4.0
6.3.4
6.3.3
6.3.2
6.3.1
6.3.0
6.2.2
6.2.1
6.2.0
6.1.1
6.1.0
6.0.2
6.0.1
6.0.0
5.9.1
5.9.0
5.8.2
5.8.1
5.8.0
5.7.2
5.7.1
5.7.0
5.6.4
5.6.3
5.6.1
5.6.0
5.5.2
5.5.1
5.5.0
5.4.3
5.4.2
5.4.1
5.4.0
5.3.5
5.3.4
5.3.3
5.3.2
5.3.1
5.3.0
5.2.4
5.2.3
5.2.2
5.2.1
5.2.0
5.1.2
JavaScript ROOT
root.cern/js/
root-project/jsroot
jsroot
/
modules
/
geom
/
geoworker.mjs
16 lines
(11 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import
{ runGeoWorker }
from
'./geobase.mjs'
;
const
ctxt = {}; onmessage =
function
(
e
) {
if
(!e?.
data
)
return
;
if
(
typeof
e.
data
===
'string'
) {
console
.
log
(
`Worker get message
${e.data}
`
);
return
; }
runGeoWorker
(ctxt, e.
data
, postMessage); };