treant-js
treant-js copied to clipboard
Raphael is missing in package.json
When you install treant-js you have to explicitly install raphael. Could you please add raphael to package.json so explicit raphael installation step can be skipped.
You don't need to install Raphael. It's in vendor/raphael.js
@jirkapinkas Any idea why I'm getting an Uncaught ReferenceError: Raphael is not defined
error?
You need to load Raphael as described in documentation: http://fperucic.github.io/treant-js/
What if treant-js was installed via npm?
This is what I have in my project:
require("treantjs/Treant.css")
window.Raphael = require("treantjs/vendor/raphael")
require("treantjs")
new Treant({ ... })
Installation should definitely be made easier.