Skip to content

Commit

Permalink
Build with more imports from main.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Aug 30, 2024
1 parent f9e8692 commit 2ace44f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
14 changes: 5 additions & 9 deletions build/jsroot.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const version_id = 'dev',

/** @summary version date
* @desc Release date in format day/month/year like '14/04/2022' */
version_date = '29/08/2024',
version_date = '30/08/2024',

/** @summary version id and date
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
Expand Down Expand Up @@ -107704,14 +107704,8 @@ class HierarchyPainter extends BasePainter {
if (!scripts?.length && !modules?.length)
return true;

if (use_inject && scripts.indexOf('.mjs') > 0) {
const arr = scripts.split(';'), prefix = '$jsroot$/';
arr.forEach((name, indx) => {
if (name.indexOf(prefix) === 0)
arr[indx] = (exports.source_dir || '../') + name.slice(prefix.length);
});
return loadModules(arr);
}
if (use_inject && scripts.indexOf('.mjs') > 0)
return loadModules(scripts.split(';'));

if (use_inject && !globalThis.JSROOT) {
globalThis.JSROOT = {
Expand Down Expand Up @@ -127500,6 +127494,7 @@ exports.addDrawFunc = addDrawFunc;
exports.addHighlightStyle = addHighlightStyle;
exports.addMethods = addMethods;
exports.addMoveHandler = addMoveHandler;
exports.addUserStreamer = addUserStreamer;
exports.assignContextMenu = assignContextMenu;
exports.atob_func = atob_func;
exports.browser = browser;
Expand Down Expand Up @@ -127661,6 +127656,7 @@ exports.showPainterMenu = showPainterMenu;
exports.svgToImage = svgToImage;
exports.toJSON = toJSON;
exports.treeDraw = treeDraw;
exports.treeProcess = treeProcess;
exports.version = version;
exports.version_date = version_date;
exports.version_id = version_id;
Expand Down
2 changes: 1 addition & 1 deletion changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
17. Adjust node.js implementation to produce identical output with normal browser
18. Create necessary infrastructure for testing with 'puppeteer'
19. Support inject of ES6 modules via '&inject=path.mjs'
20. Using importmap for 'jsroot' in all major HTML files
20. Using importmap for 'jsroot' in all major HTML files and in demos
21. Fix - properly save zoomed ranges in drawingJSON()
22. Fix - properly redraw TMultuGraph
23. Fix - show empty bin in TProfile2D if it has entries #316
Expand Down
2 changes: 1 addition & 1 deletion modules/core.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const version_id = 'dev',

/** @summary version date
* @desc Release date in format day/month/year like '14/04/2022' */
version_date = '29/08/2024',
version_date = '30/08/2024',

/** @summary version id and date
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
Expand Down

0 comments on commit 2ace44f

Please sign in to comment.