Skip to content

Commit

Permalink
feat(event-display): use latest version of JSROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed Mar 3, 2021
1 parent 8cbcaa5 commit fbd584e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/phoenix-event-display/src/loaders/script-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export class ScriptLoader {

/**
* Synchronously load all JSRoot scripts. ONLY CALL ONCE.
* @param jsrootVersion Version of JSROOT to use. Defaults to 6.0.0.
* @param jsrootVersion Version of JSROOT to use. Defaults to latest.
* @returns Promise resolved with JSROOT global varilable.
*/
public static async loadJSRootScripts(
jsrootVersion: string = '6.0.0'
jsrootVersion: string = 'latest'
): Promise<typeof JSROOT> {
const loadingManager = new LoadingManager();
loadingManager.addLoadableItem('jsroot_scripts');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class CMSComponent implements OnInit {

this.eventDisplay.init(configuration);

ScriptLoader.loadJSRootScripts((JSROOT) => {
ScriptLoader.loadJSRootScripts().then((JSROOT) => {
this.eventDisplay.loadRootJSONGeometry(JSROOT, 'https://root.cern/js/files/geom/cms.json.gz', 'CMS Detector', undefined, 10, true);
});

Expand Down

0 comments on commit fbd584e

Please sign in to comment.