UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

1 lines 1.57 kB
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(1591),o.exports=e(1591)},3:function(o,t){o.exports=function(){throw Error("define cannot be used indirect")}},20:function(o,t){o.exports=require("../kendo.core")},1591:function(o,t,e){var r,n,c;!function(i,define){n=[e(20)],r=i,c="function"==typeof r?r.apply(t,n):r,!(void 0!==c&&(o.exports=c))}(function(){!function(o){var 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,a,s,w,u=o.topLeft,f=o.bottomRight,d=r.row>=u.row,p=r.col>=u.col;return n=d?p?4:3:p?2:1,4===n?(c=u,i=f,a=r.row>i.row||r.col>i.col,a&&(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?(s=new e(u.col,f.row),r.row>f.row&&this.rectIsVertical(s,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))}});