Skip to content

Commit

Permalink
[eve7] use three_addons.mjs from latest jsroot
Browse files Browse the repository at this point in the history
This module includes components from three.js extras
which provided in examples
  • Loading branch information
linev committed May 17, 2024
1 parent 4fa809e commit 04b5769
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui5/eve7/eve.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function initEVE(source_dir) {
let mpath = source_dir + 'modules/';

return Promise.all([import(mpath+'three.mjs'),
import(mpath+'three_addons.mjs'),
import(mpath+'core.mjs'),
import(mpath+'draw.mjs'),
import(mpath+'base/TAttLineHandler.mjs'),
Expand All @@ -16,7 +17,7 @@ function initEVE(source_dir) {
import(mpath+'geom/geobase.mjs'),
import(mpath+'geom/TGeoPainter.mjs')])
.then(arr => {
globalThis.THREE = Object.assign({}, arr.shift());
globalThis.THREE = Object.assign({}, arr.shift(), arr.shift());
globalThis.EVE = {};
globalThis.EVE.JSR = Object.assign({}, ...arr); // JSROOT functionality
return globalThis.EVE;
Expand Down

0 comments on commit 04b5769

Please sign in to comment.