From c9ad18d32f2da09e20a2f09ec5f6ae514528ed36 Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Wed, 23 Oct 2024 13:51:02 +0200 Subject: [PATCH] Fix JSRoot.core.js with hpainter --- scripts/JSRoot.core.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/JSRoot.core.js b/scripts/JSRoot.core.js index a7fd7c978..e9a2029ab 100644 --- a/scripts/JSRoot.core.js +++ b/scripts/JSRoot.core.js @@ -324,7 +324,8 @@ 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]); @@ -332,7 +333,9 @@ if ((typeof globalThis !== 'undefined') && !globalThis.JSROOT) { globalThis.JSROOT._ = arr[0].internals; - globalThis.JSROOT.hpainter = arr[2].getHPainter(); + getHPainter = arr[3].getHPainter; + + globalThis.JSROOT.hpainter = getHPainter(); }); sync_promises.push(pr);