If you have a closer look, how jszip is implemented, you should be able to use the same mechanism.
TiddlyWiki uses the "commonjs" modul loader convention. The hammer.js checks for this mechanims and should do the right things.
So it should be possible to include hammer.js as a library, that can be used similar too: JSZip = require("$:/plugins/tiddlywiki/jszip/jszip.js") .. as in xlsutils. <- click!
There will be some testing needed. But imo this should be a starting point.
-m
On 16 Feb 2018, at 11:10, Simon Huber <hypnotize...@gmail.com> wrote:
Hi Mario,
If you have a closer look, how jszip is implemented, you should be able to use the same mechanism.yes, I use it the same 'require("...hammer.js");' way
TiddlyWiki uses the "commonjs" modul loader convention. The hammer.js checks for this mechanims and should do the right things.
So it should be possible to include hammer.js as a library, that can be used similar too: JSZip = require("$:/plugins/tiddlywiki/jszip/jszip.js") .. as in xlsutils. <- click!
I've seen that the JSZip plugin contains the license, a description and the minified library without further modifications. That would do it the hammer.js case, too
There will be some testing needed. But imo this should be a starting point.I'd test it, sure thing! Beyond the starting point, what else is expected from my point?
-mSimon
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/c34debdd-ed0d-42b5-bbb4-c99c3ae0a538%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.