GraphAlchemist / Alchemy

Other
517 stars 232 forks source link

Uncaught TypeError: conf.graphWidth is not a function #584

Closed myxibrium closed 6 years ago

myxibrium commented 6 years ago

I copied the HTML from the homepage here: http://graphalchemist.github.io/Alchemy/#/

And copied the individual files from the download link on the same page, which points here: https://github.com/GraphAlchemist/Alchemy/releases/download/0.4.1/0.4.1.zip

And I get the following error: Uncaught TypeError: conf.graphWidth is not a function at alchemy.js:sourcemap:1281 at vendor.js:4 at Object. (vendor.js:4) at Object.b (vendor.js:4) at XMLHttpRequest.e (vendor.js:4)

In the HTML example, graphWidth and graphHeight are not defined as functions. But why should they be?

myxibrium commented 6 years ago

I fixed the issue by changing the html: graphHeight: function() {return 260}, graphWidth: function() {return 300},

Home page should be updated with latest example.

hdngr commented 6 years ago

@myxibrium this library is not supported. That should be obvious from the Readme.