Skip to content

Commit 65581b5

Browse files
committed
Fix JSRoot.core.js with hpainter
1 parent f6e9d39 commit 65581b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/JSRoot.core.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,18 @@ if ((typeof globalThis !== 'undefined') && !globalThis.JSROOT) {
324324

325325
globalThis.JSROOT._complete_loading = _sync;
326326

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

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

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

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

335-
globalThis.JSROOT.hpainter = arr[2].getHPainter();
336+
getHPainter = arr[3].getHPainter;
337+
338+
globalThis.JSROOT.hpainter = getHPainter();
336339
});
337340

338341
sync_promises.push(pr);

0 commit comments

Comments
 (0)