File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 33
44
55import { version , HierarchyPainter , draw , addDrawFunc } from 'jsroot' ;
6- import { writeFileSync } from 'fs' ;
6+ // import { writeFileSync } from 'fs';
77
88console . log ( `JSROOT version ${ version } ` ) ;
99
@@ -33,16 +33,17 @@ await hp.display('hpxpy');
3333await hp . expandItem ( 'ntuple' ) ;
3434
3535// invoking TTree::Draw
36- console . log ( 'Invoke TLeaf drawing' ) ;
36+ console . log ( 'Invoke TBranch drawing' ) ;
3737await hp . display ( 'ntuple/pz' ) ;
3838
3939// should be BatchDisplay
4040const disp = hp . getDisplay ( ) ;
4141
4242for ( let id = 0 ; id < disp . numFrames ( ) ; ++ id ) {
4343 const svg = await disp . makeSVG ( id ) ;
44+
4445 console . log ( `Frame ${ id } create svg size ${ svg . length } ` ) ;
4546
4647 // one can save svg plain file
47- writeFileSync ( `frame${ id } .svg` , svg ) ;
48+ // writeFileSync(`frame${id}.svg`, svg);
4849}
You can’t perform that action at this time.
0 commit comments