Skip to content

Commit f37449f

Browse files
lobislinev
authored andcommitted
Update geomsvg.js
MakeSVG function seems to be deprecated, should instead use makeSVG. This example doesn't run on my install unless I make the change (`JSROOT version 6.0.1 1/03/2021`)
1 parent fc0effd commit f37449f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/node/geomsvg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ console.log('JSROOT version', jsroot.version);
88
// r3d_svg uses SVGRenderer, can produce large output
99

1010
jsroot.httpRequest("https://root.cern/js/files/geom/simple_alice.json.gz", 'object')
11-
.then(obj => jsroot.MakeSVG({ object: obj, width: 1200, height: 800 /*, option: "r3d_svg" */ }))
11+
.then(obj => jsroot.makeSVG({ object: obj, width: 1200, height: 800 /*, option: "r3d_svg" */ }))
1212
.then(svg => { fs.writeFileSync("alice_geom.svg", svg); console.log(`Create alice_geom.svg size ${svg.length}`); });

0 commit comments

Comments
 (0)