mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
update libraries
This commit is contained in:
parent
a894c19c2b
commit
2f2d8327e4
32279
libraries/canvas-note/fabric.4.1.0.custom.js
Normal file
32279
libraries/canvas-note/fabric.4.1.0.custom.js
Normal file
File diff suppressed because it is too large
Load Diff
7
libraries/canvas-note/hammer.2.0.8.min.js
vendored
Normal file
7
libraries/canvas-note/hammer.2.0.8.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
33
libraries/canvas-note/jquery.hammer.js
Normal file
33
libraries/canvas-note/jquery.hammer.js
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
(function(factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
define(['jquery', 'hammerjs'], factory);
|
||||||
|
} else if (typeof exports === 'object') {
|
||||||
|
factory(require('jquery'), require('hammerjs'));
|
||||||
|
} else {
|
||||||
|
factory(jQuery, Hammer);
|
||||||
|
}
|
||||||
|
}(function($, Hammer) {
|
||||||
|
function hammerify(el, options) {
|
||||||
|
var $el = $(el);
|
||||||
|
if(!$el.data("hammer")) {
|
||||||
|
$el.data("hammer", new Hammer($el[0], options));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.hammer = function(options) {
|
||||||
|
return this.each(function() {
|
||||||
|
hammerify(this, options);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// extend the emit method to also trigger jQuery events
|
||||||
|
Hammer.Manager.prototype.emit = (function(originalEmit) {
|
||||||
|
return function(type, data) {
|
||||||
|
originalEmit.call(this, type, data);
|
||||||
|
$(this.element).trigger({
|
||||||
|
type: type,
|
||||||
|
gesture: data
|
||||||
|
});
|
||||||
|
};
|
||||||
|
})(Hammer.Manager.prototype.emit);
|
||||||
|
}));
|
@ -58,7 +58,9 @@ const MERMAID = {
|
|||||||
|
|
||||||
const CANVAS_NOTE = {
|
const CANVAS_NOTE = {
|
||||||
js: [
|
js: [
|
||||||
"libraries/canvas-note/fabric.4.0.0-beta.12.min.js",
|
"libraries/canvas-note/fabric.4.1.0.custom.js",
|
||||||
|
"libraries/canvas-note/hammer.2.0.8.min.js",
|
||||||
|
"libraries/canvas-note/jquery.hammer.js",
|
||||||
],
|
],
|
||||||
// css: [
|
// css: [
|
||||||
// "stylesheets/somestyle.css"
|
// "stylesheets/somestyle.css"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user