canvasSpliner
canvasSpliner copied to clipboard
Uncaught TypeError: CanvasSpliner is not a constructor
I know this error comes from not importing the CanvasSpliner
what I did is include it before the script
<script src="/static/js/CanvasSpliner.min.js"></script>
<script>
$(function() {
var cs = new CanvasSpliner("can", 300, 300);
});
then try to run it and I get this error. It might be I need to compile the code since my setup is using django as the backend and mainly jquery on the front-end. Running on a fairly up to date browser.
This is the error:
color-editor:89 Uncaught TypeError: CanvasSpliner is not a constructor
at HTMLDocument.<anonymous> (color-editor:89)
at k (jquery.js:15)
at Object.fireWith [as resolveWith] (jquery.js:15)
at Function.ready (jquery.js:15)
at HTMLDocument.D (jquery.js:15)
as the repo maker I'd like your take on possible ways to fix this.