You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/JSROOT.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -898,15 +898,15 @@ JSROOT provides [example](https://root.cern/js/latest/demo/openui5/) showing usa
898
898
899
899
### Migration v6 -> v7
900
900
901
-
*Loading of `JSRoot.core.js` will provide very similar functionality as with `v6` via global `JSROOT` object, but not everything was ported
901
+
*Core functionality should be imported from `main.mjs` module like:
902
902
903
-
*`JSROOT.define()` and `JSROOT.require()` functions only available after `JSRoot.core.js` loading, normally functionality should be loaded from modules directly (in most cases from `main.mjs`)
903
+
import { create, parse, createHistogram, redraw } from 'https://root.cern/js/7.0.0/modules/main.mjs';
904
904
905
-
*Support of `require.js`and `openui5` loader was removed
905
+
*It is still possible to use `JSRoot.core.js`script, which provides very similar (but not identical!) functionality as with `v6` via global `JSROOT` object
906
906
907
-
*Core functionality should be imported from `main.mjs` module like:
907
+
*`JSROOT.define()` and `JSROOT.require()` functions only available after `JSRoot.core.js` loading
908
908
909
-
import { create, parse, createHistogram, redraw } from 'https://root.cern/js/7.0.0/modules/main.mjs';
909
+
* Support of `require.js` and `openui5` loaders was removed
910
910
911
911
* Global hierarchy painter `JSROOT.hpainter` no longer existing, one can use `getHPainter` function:
912
912
@@ -923,7 +923,7 @@ JSROOT provides [example](https://root.cern/js/latest/demo/openui5/) showing usa
923
923
let was_batch = isBatchMode();
924
924
if (!was_batch) setBatchMode(true);
925
925
926
-
*Function `JSROOT.extend`was remove, use `Object.assign` instead
926
+
*`JSROOT.extend()` function was removed, use `Object.assign()` instead
0 commit comments