Resolves #171. Although the weights parameter was added to SvgDrawer.draw() in f3693b3, the method call in Drawer.draw() wasn't updated correspondingly. Drawer.draw() could be amended to also take a weights argument, which it would pass to SvgDrawer.draw(), but this might break existing code even more and would require an update of the documentation of the README.
Before the proposed change, this gives an error (TypeError: this.svgWrapper is null). With the proposed change, the error is resolved and the structure is displayed correctly.
Resolves #171. Although the
weights
parameter was added toSvgDrawer.draw()
in f3693b3, the method call inDrawer.draw()
wasn't updated correspondingly.Drawer.draw()
could be amended to also take aweights
argument, which it would pass toSvgDrawer.draw()
, but this might break existing code even more and would require an update of the documentation of the README.Example to reproduce:
Before the proposed change, this gives an error (
TypeError: this.svgWrapper is null
). With the proposed change, the error is resolved and the structure is displayed correctly.