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 2053876 commit c9ad18d
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 c9ad18d

Please sign in to comment.