@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 1.64 kB
JavaScript
module.exports=function(o){function t(r){if(e[r])return e[r].exports;var n=e[r]={exports:{},id:r,loaded:!1};return o[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var e={};return t.m=o,t.c=e,t.p="",t(0)}({0:function(o,t,e){e(1486),o.exports=e(1486)},3:function(o,t){o.exports=function(){throw Error("define cannot be used indirect")}},19:function(o,t){o.exports=require("../kendo.core")},1486:function(o,t,e){var r,n,c;!function(i,define){n=[e(19)],r=i,c="function"==typeof r?r.apply(t,n):r,!(void 0!==c&&(o.exports=c))}(function(){!function(o){var t,e,r;o.support.browser.msie&&o.support.browser.version<9||(t=o.spreadsheet.RangeRef,e=o.spreadsheet.CellRef,r=o.Class.extend({init:function(o){this._grid=o},rectIsVertical:function(o,t,e,r){var n=this._grid.rectangle(o.toRangeRef()),c=this._grid.rectangle(t.toRangeRef());return Math.abs(c[r]-n[r])>Math.abs(n[e]-c[e])},autoFillDest:function(o,r){var n,c,i,l,s,a,w,u=o.topLeft,f=o.bottomRight,p=r.row>=u.row,d=r.col>=u.col;return n=p?d?4:3:d?2:1,4===n?(c=u,i=f,s=r.row>i.row||r.col>i.col,s&&(r=new e(Math.max(r.row,i.row),Math.max(r.col,i.col))),l=this.rectIsVertical(i,r,"right","bottom")?new e(r.row,i.col):new e(i.row,r.col)):3===n?(a=new e(u.col,f.row),r.row>f.row&&this.rectIsVertical(a,r,"left","bottom")?(c=u,l=new e(r.row,f.col)):(c=f,l=new e(u.row,r.col))):2===n?(w=new e(u.row,f.col),r.col>f.col&&!this.rectIsVertical(w,r,"right","top")?(c=u,l=new e(f.row,r.col)):(c=f,l=new e(r.row,u.col))):(c=f,l=this.rectIsVertical(u,r,"left","top")?new e(r.row,u.col):new e(u.row,r.col)),this._grid.normalize(new t(c,l))}}),o.spreadsheet.AutoFillCalculator=r)}(kendo)},e(3))}});