Skip to content

Commit

Permalink
Fix JSRoot.core.js with hpainter
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 23, 2024
1 parent f6e9d39 commit 65581b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/JSRoot.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,18 @@ if ((typeof globalThis !== 'undefined') && !globalThis.JSROOT) {

globalThis.JSROOT._complete_loading = _sync;

let pr = Promise.all([import('../modules/core.mjs'), import('../modules/draw.mjs'), import('../modules/gui/HierarchyPainter.mjs')]).then(arr => {
let pr = Promise.all([import('../modules/core.mjs'), import('../modules/draw.mjs'),
import('../modules/gui/HierarchyPainter.mjs'), import('../modules/gui/display.mjs')]).then(arr => {

Object.assign(globalThis.JSROOT, arr[0], arr[1], arr[2]);

Object.assign(globalThis.JSROOT.settings, workaround_settings);

globalThis.JSROOT._ = arr[0].internals;

globalThis.JSROOT.hpainter = arr[2].getHPainter();
getHPainter = arr[3].getHPainter;

globalThis.JSROOT.hpainter = getHPainter();
});

sync_promises.push(pr);
Expand Down

0 comments on commit 65581b5

Please sign in to comment.