anseki / plain-draggable

The simple and high performance library to allow HTML/SVG element to be dragged.
https://anseki.github.io/plain-draggable/
MIT License
765 stars 96 forks source link

Unminified plain-draggable.min.js #110

Closed David-Carty closed 2 years ago

David-Carty commented 2 years ago

Hi Anseki,

npm i plain-draggable cd node_modules/plain-draggable npm i

Got quite a few errors. Really speaking I just need the unminified version of plain-draggable.min.js. Typically the only file on GitHub that does not have an unminified version. Is there any chance that you could push this to GitHub? The work I'm doing is just a prototype in vanilla and doesn't even need a build system. Best David

anseki commented 2 years ago

Hi @David-Carty, thank you for the comment. I don't know why you failed the installing because you didn't tell about the errors. Anyway, the .min in a file name means minified file. That is, a file name that doesn't include .min is not minified. You can get all files of PlainDraggable at this repository. And you can do git clone to get data of the repository.

David-Carty commented 2 years ago

The error message from npm is huge, so I didn't include it. Its related to babel and I'm just so busy at mo, to analyse. Unfortunately, there is only a minified version of this file: https://github.com/anseki/plain-draggable/blob/master/plain-draggable.min.js So, none of the unminfied files run in the browsers because they contain imports relevant to the build, which I can't run on my local machine. I need to work on an unminified version because it doesn't support a feature that I need. Any chance that you can transpile but not minify so there is an unminified version that runs in the browser? Thanks again for your time. David.

anseki commented 2 years ago

If you want the unminified code for test, you can find the test version in test directory.

David-Carty commented 2 years ago

Thanks again Anseki works a treat. Really appreciate that. Best David.

anseki commented 2 years ago

:smile: