import LinkeditorUndo from './linkeditor.undo';
import LinkeditorClipboard from './linkeditor.clipboard';
import LinkeditorAccessControl from './linkeditor.accessControl';
+import FluidbookLinksAnimations from "./fluidbook.links.animations";
window.$ = window.jQuery = require('jquery');
window.key = require('keymaster-reloaded');
};
function keyfilter(event, disable = false) {
- if(disable) {
+ if (disable) {
return false
}
let tagName = (event.target || event.srcElement).tagName;
this.undo = new LinkeditorUndo(this);
this.accessControl = new LinkeditorAccessControl(this);
this.previewLinks = new LinkeditorPreviewLinks(this);
+ this.linksAnimations = new FluidbookLinksAnimations(false);
this.initEvents();
this.initIcons();
} else if (e.keyCode == 18) {
$("#linkeditor-main").addClass('duplicate');
- } else if (e.key == '>' || e.keyCode === 60 || e.keyCode === 226 || e.key==='<' || e.keyCode===188) {
+ } else if (e.key == '>' || e.keyCode === 60 || e.keyCode === 226 || e.key === '<' || e.keyCode === 188) {
$("#linkeditor-main").addClass('polygon');
}
$this.rulers.moveRuler();
$this.zoom.resetZoomDrag();
} else if (e.keyCode == 18) {
$("#linkeditor-main").removeClass('duplicate');
- } else if (e.key == '>' || e.keyCode === 60 || e.keyCode === 226 || e.key==='<' || e.keyCode===188) {
+ } else if (e.key == '>' || e.keyCode === 60 || e.keyCode === 226 || e.key === '<' || e.keyCode === 188) {
$("#linkeditor-main").removeClass('polygon');
$this.links.closePolygonShape();
}
let v = parseFloat($(e).attr('fb-' + dim));
if (dim === 'width' || dim === 'height') {
css[dim] = (v * ($this.fs * $this.zoom.zoom)) + 1;
- if(dim === 'height') {
- if(LINKS[$(e).attr('fb-uid')].type === '35') {
+ if (dim === 'height') {
+ if (LINKS[$(e).attr('fb-uid')].type === '35') {
$this.links.setFontSize(LINKS[$(e).attr('fb-uid')])
}
}
}
this.undo.updateIconsStates();
this.loader.preloadPages();
- if($("#preview-links").hasClass("active")) {
+ if ($("#preview-links").hasClass("active")) {
this.links.setPreview()
}
},