Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Full minified js, without depencencies. #545

Open
username1565 opened this issue Oct 15, 2019 · 3 comments
Open

Full minified js, without depencencies. #545

username1565 opened this issue Oct 15, 2019 · 3 comments

Comments

@username1565
Copy link

username1565 commented Oct 15, 2019

Is it possible to pack this all to one js or .min.js file, to make this full stable, in one script, and without any dependencies?

@username1565
Copy link
Author

Also, is this possible to resize canvas, like resizing this div: https://www.w3schools.com/cssref/tryit.asp?filename=trycss3_resize ???

@username1565
Copy link
Author

username1565 commented Oct 15, 2019

Wrote resizable canvas, myself: https://jsfiddle.net/8wf49bpo/
This is modification of this code: https://codepen.io/yananas/pen/rwvZvY
There is minimum dependencies, just bootstrap.min.css to load glyphicons and styles from there, by class name in the tags.
But there is no so much functionality, like in your literallycanvas,
and Alpha channel (transparency level) is not supporting there...

P.S.: Need to add event there, because there is some error in console in Mozilla Firefox:

...
canvas.addEventListener('mousedown', function(event) {mousedown(canvas, event);});
canvas.addEventListener('mousemove',function(event) {mousemove(canvas, event);});
canvas.addEventListener('mouseup',mouseup);
...

So, maybe, will be better to pack all code from all depenencies in one minified JS + css.

Have a nice day.

@irskep
Copy link
Member

irskep commented Nov 20, 2019

I used to do this back in early versions, but the overhead of the release process is too much compared to the tiny number of people who want it.

This library is pretty much unmaintained, but if you open a PR I'm likely to accept reasonable changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants