Skip to content

Commit 1f87acd

Browse files
committed
Docs update
1 parent 5308e35 commit 1f87acd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/JSROOT.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -898,15 +898,15 @@ JSROOT provides [example](https://root.cern/js/latest/demo/openui5/) showing usa
898898

899899
### Migration v6 -> v7
900900

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:
902902

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';
904904

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
906906

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
908908

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
910910

911911
* Global hierarchy painter `JSROOT.hpainter` no longer existing, one can use `getHPainter` function:
912912

@@ -923,7 +923,7 @@ JSROOT provides [example](https://root.cern/js/latest/demo/openui5/) showing usa
923923
let was_batch = isBatchMode();
924924
if (!was_batch) setBatchMode(true);
925925

926-
* Function `JSROOT.extend` was remove, use `Object.assign` instead
926+
* `JSROOT.extend()` function was removed, use `Object.assign()` instead
927927

928928

929929
### Migration v5 -> v6

0 commit comments

Comments
 (0)