template.js.base.droppable.min.js Maven / Gradle / Ivy
'use strict';(function(d){"function"===typeof define&&define.amd?define(["jquery","./draggable","./mouse","../version","../widget"],d):d(jQuery)})(function(d){d.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var a,b=this.options,c=b.accept;this.isover=!1;this.isout=!0;this.accept=d.isFunction(c)?c:function(a){return a.is(c)};
this.proportions=function(){if(arguments.length)a=arguments[0];else return a?a:a={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}};this._addToManager(b.scope);b.addClasses&&this._addClass("ui-droppable")},_addToManager:function(a){d.ui.ddmanager.droppables[a]=d.ui.ddmanager.droppables[a]||[];d.ui.ddmanager.droppables[a].push(this)},_splice:function(a){for(var b=0;b=g&&a=l&&d=g&&f<=p||m>=g&&m<=p||fp)&&(e>=l&&e<=n||k>=l&&k<=n||en);default:return!1}}}();d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c,h,e=d.ui.ddmanager.droppables[a.options.scope]||[],f=b?b.type:null,k=(a.currentItem||a.element).find(":data(ui-droppable)").addBack();c=0;a:for(;c
© 2015 - 2024 Weber Informatics LLC | Privacy Policy