strathausen / dracula

JavaScript layout and representation of connected graphs.
https://www.graphdracula.net
MIT License
834 stars 132 forks source link

Error on importing the library #53

Closed strdr4605 closed 5 years ago

strdr4605 commented 5 years ago

In got an error at

Raphael.fn.connection = function Connection(obj1, obj2, style) {
screen shot 2019-02-26 at 21 52 46
strathausen commented 5 years ago

Did you include Raphaeljs before including dracula?

strdr4605 commented 5 years ago

@strathausen In this example, no, but included earlier and still got the error! Can you show the right way?!

strathausen commented 5 years ago

You need to do it every time, also in this example! Just insert another <script> tag with Raphael in it. Also, the HTML seems to be only the script tag, better to have a complete HTML file! With <head>, <body> and everything.

You may also want to take look at the examples in the repository!

If you still have issues, let me know.