Skip to content

Commit d885849

Browse files
committed
Use in examples path to latest jsroot
1 parent 3e2b491 commit d885849

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

modules/base/BasePainter.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,8 @@ function makeTranslate(x,y) {
699699
return null;
700700
}
701701

702-
/** @summary Configure special style used for highlight or dragging elements */
702+
/** @summary Configure special style used for highlight or dragging elements
703+
* @private */
703704
function addHighlightStyle(elem, drag) {
704705
if (drag)
705706
elem.style('stroke', 'steelblue')

modules/core.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ const prROOT = 'ROOT.', clTObject = 'TObject', clTNamed = 'TNamed', clTString =
10191019
* @desc Supported classes: `TObject`, `TNamed`, `TList`, `TAxis`, `TLine`, `TText`, `TLatex`, `TPad`, `TCanvas`
10201020
* @param {string} typename - ROOT class name
10211021
* @example
1022-
* import { create } from 'path_to_jsroot/modules/core.mjs';
1022+
* import { create } from 'https://root.cern/js/latest/modules/core.mjs';
10231023
* let obj = create('TNamed');
10241024
* obj.fName = 'name';
10251025
* obj.fTitle = 'title'; */

modules/gui.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function readStyleFromURL(url) {
146146
* @param {String} gui_kind - either 'online', 'nobrowser', 'draw'
147147
* @return {Promise} with {@link HierarchyPainter} instance
148148
* @example
149-
* import { buildGUI } from '/path_to_jsroot/modules/gui.mjs';
149+
* import { buildGUI } from 'https://root.cern/js/latest/modules/gui.mjs';
150150
* buildGUI('guiDiv'); */
151151
async function buildGUI(gui_element, gui_kind = '') {
152152
let myDiv = d3_select(isStr(gui_element) ? `#${gui_element}` : gui_element);

modules/gui/menu.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ class StandaloneMenu extends JSRootMenu {
13691369
* @param {object} [handler] - object with handling function, in this case one not need to bind function
13701370
* @param {string} [menuname] - optional menu name
13711371
* @example
1372-
* import { createMenu } from 'path_to_jsroot/modules/gui/menu.mjs';
1372+
* import { createMenu } from 'https://root.cern/js/latest/modules/gui/menu.mjs';
13731373
* let menu = await createMenu());
13741374
* menu.add('First', () => console.log('Click first'));
13751375
* let flag = true;

modules/io.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3853,7 +3853,7 @@ class TProxyFile extends TFile {
38533853
* @return {object} - Promise with {@link TFile} instance when file is opened
38543854
* @example
38553855
*
3856-
* import { openFile } from '/path_to_jsroot/modules/io.mjs';
3856+
* import { openFile } from 'https://root.cern/js/latest/modules/io.mjs';
38573857
* let f = await openFile('https://root.cern/js/files/hsimple.root');
38583858
* console.log(`Open file ${f.getFileName()}`); */
38593859
function openFile(arg) {

0 commit comments

Comments
 (0)