|
1 | 1 | // initialization of EVE |
2 | 2 |
|
3 | | -function initEVE(source_dir) { |
| 3 | +function initEVE() { |
4 | 4 | if (globalThis.EVE) |
5 | 5 | return Promise.resolve(globalThis.EVE); |
6 | 6 |
|
7 | | - let mpath = source_dir + 'modules/'; |
8 | | - |
9 | | - return Promise.all([import(mpath+'three.mjs'), |
10 | | - import(mpath+'three_addons.mjs'), |
11 | | - import(mpath+'core.mjs'), |
12 | | - import(mpath+'draw.mjs'), |
13 | | - import(mpath+'base/TAttLineHandler.mjs'), |
14 | | - import(mpath+'gui/menu.mjs'), |
15 | | - import(mpath+'base/colors.mjs'), |
16 | | - import(mpath+'base/base3d.mjs'), |
17 | | - import(mpath+'geom/geobase.mjs'), |
18 | | - import(mpath+'geom/TGeoPainter.mjs')]) |
| 7 | + return Promise.all([import('jsrootsys/modules/three.mjs'), |
| 8 | + import('jsrootsys/modules/three_addons.mjs'), |
| 9 | + import('jsrootsys/modules/core.mjs'), |
| 10 | + import('jsrootsys/modules/draw.mjs'), |
| 11 | + import('jsrootsys/modules/base/TAttLineHandler.mjs'), |
| 12 | + import('jsrootsys/modules/gui/menu.mjs'), |
| 13 | + import('jsrootsys/modules/base/colors.mjs'), |
| 14 | + import('jsrootsys/modules/base/base3d.mjs'), |
| 15 | + import('jsrootsys/modules/geom/geobase.mjs'), |
| 16 | + import('jsrootsys/modules/geom/TGeoPainter.mjs')]) |
19 | 17 | .then(arr => { |
20 | 18 | globalThis.THREE = Object.assign({}, arr.shift(), arr.shift()); |
21 | 19 |
|
|
0 commit comments