@grapecity-software/spread-sheets-spacing 18.2.5 → 19.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * SpreadJS Library 18.2.5
3
+ * SpreadJS Library 19.0.1
4
4
  *
5
5
  * Copyright(c) GrapeCity Software inc. All rights reserved.
6
6
  *
@@ -9,4 +9,4 @@
9
9
  * https://www.grapecity.com.cn/developer/spreadjs
10
10
  *
11
11
  */
12
- !function(i){var t;"object"==typeof module&&"object"==typeof module.exports?(t=require("@grapecity-software/spread-common"),require("@grapecity-software/spread-sheets-core"),module.exports=i(t)):"function"==typeof define&&define.amd?define(["@grapecity-software/spread-common","@grapecity-software/spread-sheets-core"],i):"object"==typeof exports?(t=require("@grapecity-software/spread-common"),require("@grapecity-software/spread-sheets-core"),exports.Spread=i(t)):i(GC)}((function(i){!function(){"use strict";var t,n={"./dist/plugins/spacing/rowSpacing.js":function(i,t,n){var r,s,o,e,u;Object.defineProperty(t,"__esModule",{value:!0}),t.RowSpacingModel=void 0,r=n("Core"),s=n("./dist/plugins/spacing/spacing.js"),o=void 0,e=function(i){return i===r.SheetArea.corner||i===r.SheetArea.colHeader},u=function(){function i(i,t,n){this.CMi=[],this.CMi[r.SheetArea.rowHeader]=this.CMi[r.SheetArea.viewport]=new r.ksr,this.HWt=[o,o,new r.Nsr(i,t),new r.Nsr(i,n)]}return i.prototype.add=function(i,t){this.HWt[r.SheetArea.rowHeader].rE(i,t),this.HWt[r.SheetArea.viewport].rE(i,t),this.CMi[r.SheetArea.viewport].kE(i,t)},i.prototype.getSpacingSize=function(i,t){var n;if(void 0===t&&(t=r.SheetArea.viewport),!e(t))return this.CMi[t].getSize(i)},i.prototype.setSpacingSize=function(i,t,n){var s;(void 0===n&&(n=r.SheetArea.viewport),e(n))||this.CMi[n].setSize(i,t)},i.prototype.getSpacingVisible=function(i,t){if(void 0===t&&(t=r.SheetArea.viewport),!e(t)){var n=this.CMi[t];return!n||n.getVisible(i)}},i.prototype.getCount=function(i){if(void 0===i&&(i=r.SheetArea.viewport),!e(i))return this.HWt[i].getRowCount()},i.prototype.setCount=function(i){this.HWt[r.SheetArea.viewport].setRowCount(i),this.HWt[r.SheetArea.rowHeader].setRowCount(i)},i.prototype.getValue=function(i,t,n){if(void 0===n&&(n=r.SheetArea.viewport),!e(n))return this.HWt[n].getValue(i,t)},i.prototype.setValue=function(i,t,n,s){void 0===s&&(s=r.SheetArea.viewport),e(s)||this.HWt[s].setValue(i,t,n,o,o)},i.prototype.getValueForKey=function(i,t,n,s){if(void 0===n&&(n=r.SheetArea.viewport),!e(n))return this.HWt[n].getValueForKey(i,t,s)},i.prototype.setValueForKey=function(i,t,n,s,o){void 0===s&&(s=r.SheetArea.viewport),e(s)||this.HWt[s].setValueForKey(i,t,o,n)},i.prototype.getStyle=function(i,t,n){if(void 0===n&&(n=r.SheetArea.viewport),!e(n))return this.HWt[n].getStyle(i,t,o)},i.prototype.setStyle=function(i,t,n,s){void 0===s&&(s=r.SheetArea.viewport),e(s)||this.HWt[s].setStyle(i,t,n,o,o,o)},i.prototype.toJSON=function(i,t){var n,s=this.HWt[r.SheetArea.viewport].getRowCount();return s>0&&(n||(n={}),n.data=this.HWt[r.SheetArea.viewport].toJSON(r.SheetArea.viewport,i,t),n.rowHeaderData=this.HWt[r.SheetArea.rowHeader].toJSON(r.SheetArea.rowHeader,i),n.rows=this.CMi[r.SheetArea.viewport].toJSON(i),n.count=this.getCount()),n},i.prototype.fromJSON=function(i,t,n){if(i){var o=i.data,e=i.rowHeaderData,u=i.rows,f=i.count;(0,s.q8)(f)&&this.setCount(f),o&&this.HWt[r.SheetArea.viewport].fromJSON(o,t,n),e&&this.HWt[r.SheetArea.rowHeader].fromJSON(e,t,n),u&&this.CMi[r.SheetArea.viewport].fromJSON(u)}},i}(),t.RowSpacingModel=u},"./dist/plugins/spacing/spacing.entry.js":function(i,t,n){var r=this&&this.JKr||(Object.create?function(i,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(i,r,s)}:function(i,t,n,r){void 0===r&&(r=n),i[r]=t[n]}),s=this&&this.XKr||function(i,t){for(var n in i)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,i,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n("./dist/plugins/spacing/spacing.js"),t),s(n("./dist/plugins/spacing/rowSpacing.js"),t),s(n("./dist/plugins/spacing/spacing.interface.js"),t)},"./dist/plugins/spacing/spacing.interface.js":function(i,t){Object.defineProperty(t,"__esModule",{value:!0})},"./dist/plugins/spacing/spacing.js":function(i,t,n){var r,s,o,e,u,f,c,a,h,v,g;Object.defineProperty(t,"__esModule",{value:!0}),t.SpacingManager=t.q8=void 0,r=n("Core"),s=n("./dist/plugins/spacing/rowSpacing.js"),o=null,e="before",u="after",f=r.mt.V0,c=r.mt.Z0,a=function(i){return null==i},h=function(i){return"number"==typeof i},t.q8=h,v=function(i){return i.Ut.Vsr},g=function(){function i(i){this.ayt=i,this.Hc()}return i.prototype.Hc=function(){this.clearRowSpacing()},i.prototype.zsr=function(i){return this.Ysr[i]},i.prototype.Zsr=function(i){return this.Ysr[i]={},this.Ysr[i]},i.prototype.Qsr=function(){var i=0;return new s.RowSpacingModel(0,this.ayt.getColumnCount(r.SheetArea.rowHeader),this.ayt.getColumnCount(r.SheetArea.viewport))},i.prototype.Wsr=function(i,t){var n;return n=t?this.Ysr[i][u]=this.Qsr():this.Ysr[i][e]=this.Qsr()},i.prototype.Jsr=function(i,t){var n,r=this.zsr(i);return r||this.Zsr(i),(n=this.getRowSpacingModel(i,t))||(n=this.Wsr(i,t)),n},i.prototype.getRowSpacingCount=function(i,t){if(!this.hasRowSpacing(i,t))return 0;var n=this.getRowSpacingModel(i,t);return n?n.getCount():0},i.prototype.getRowSpacingModel=function(i,t,n){if(void 0===n&&(n=r.SheetArea.viewport),n===r.SheetArea.corner||n===r.SheetArea.colHeader)return o;var s=this.Ysr[i];return s?t?s[u]:s[e]:void 0},i.prototype.hasRowSpacing=function(i,t,n){return void 0===n&&(n=r.SheetArea.viewport),!!this.getRowSpacingModel(i,t,n)},i.prototype.addRowSpacing=function(i,t,n,r){var s;this.Jsr(i,r).add(t,n)},i.prototype.getRowSpacingHeight=function(i,t,n,s){void 0===s&&(s=r.SheetArea.viewport);var o=this.getRowSpacingModel(i,n,s);if(o)return o.getSpacingSize(t,s)},i.prototype.setRowSpacingHeight=function(i,t,n,r){var s=this.getRowSpacingModel(i,r);s&&s.setSpacingSize(t,n)},i.prototype.getRowSpacingVisible=function(i,t,n,s){void 0===s&&(s=r.SheetArea.viewport);var o=this.getRowSpacingModel(i,n);if(o)return o.getSpacingVisible(t,s)},i.prototype.getRowSpacingValue=function(i,t,n,r,s){var e=this.getRowSpacingModel(i,r);return e?e.getValue(t,n,s):o},i.prototype.setRowSpacingValue=function(i,t,n,r,s,o){var e=this.getRowSpacingModel(i,s);e&&e.setValue(t,n,r,o)},i.prototype.getRowSpacingValueForKey=function(i,t,n,r,s,e){var u,c=this.getRowSpacingModel(i,r);return c?(u=c.getValueForKey(t,n,s,e),f(u)):o},i.prototype.setRowSpacingValueForKey=function(i,t,n,r,s,o,e){var u,f=this.getRowSpacingModel(i,s);f&&(u=c(r),f.setValueForKey(t,n,u,o,e))},i.prototype.getRowSpacingStyle=function(i,t,n,r,s){var e=this.getRowSpacingModel(i,r);return e?e.getStyle(t,n,s):o},i.prototype.setRowSpacingStyle=function(i,t,n,r,s,o){var e=this.getRowSpacingModel(i,s);e&&e.setStyle(t,n,r,o)},i.prototype.clearRowSpacing=function(){this.Ysr={}},i.prototype.toJSON=function(i,t){var n,r,s,o,e,u,f;for(r in this.Ysr)this.Ysr[r]&&(o=(s=this.Ysr[r]).before,e=s.after,o&&(u=o.toJSON(i,t))&&(n||(n={}),n[r]||(n[r]={}),n[r].before=u),e&&(f=e.toJSON(i,t))&&(n||(n={}),n[r]||(n[r]={}),n[r].after=f));return n},i.prototype.fromJSON=function(i,t,n){var r,s,o,e,u,f;for(r in i)i[r]&&(o=(s=i[r]).before,e=s.after,o&&(u=this.Jsr(Number(r))).fromJSON(o,t,n),e&&(f=this.Jsr(Number(r),!0)).fromJSON(e,t,n))},i}(),t.SpacingManager=g,r.Worksheet.ch("spacing",{toJson:function(i,t){var n,r;t&&t.gp&&(r=(n=v(this)).toJSON(t,this))&&(i.spacing=r)},fromJson:function(i,t,n){var r,s;n&&n.gp&&(r=i.spacing)&&(n.sheet||(n.sheet=this),(s=v(this)).fromJSON(r,t,n))},preProcessMouseDbClick:function(i){i.target&&(a(i.target.rowSpacingIndex)||(i.r=!0))}}),r.Y8.ch("spacing",{priority:9e3,init:function(){this.Vsr=new g(this)},getValue:function(i){var n,r,s,o,e,u=i.rowSpacingIndex,f=(0,t.q8)(u);f&&(n=i.row,r=i.col,s=i.isAfterRowSpacing,o=i.sheetArea,e=this.Vsr,i.isValueGet=!0,i.value=e.getRowSpacingValue(n,u,r,s,o))},getStyle:function(i){var n,r,s,o,e,u=i.rowSpacingIndex,f=(0,t.q8)(u);f&&(n=i.row,r=i.col,s=i.isAfterRowSpacing,o=i.sheetArea,e=this.Vsr,i.isStyleGet=!0,i.style=e.getRowSpacingStyle(n,u,r,s,o))}}),r.GC$.extend(r.Worksheet.prototype,{Csr:function(i,t,n){var s;return void 0===n&&(n=r.SheetArea.viewport),v(this).hasRowSpacing(i,t,n)},Ksr:function(i,t,n,r){var s;this.suspendPaint(),v(this).addRowSpacing(i,t,n,r),this.Ww=!0,this.resumePaint()},Xsr:function(i,t,n,s){var o,e,u,f,c,h,g;for(void 0===s&&(s=r.SheetArea.viewport),e=0,u=o=this.$L;e<u.length;e++)if(c={spacingIndex:t,isAfter:n},!(f=u[e]).tF(i,c))return 0;return g=(h=v(this)).getRowSpacingHeight(i,t,n,s),a(g)&&(g=this.defaults.rowHeight),g},qsr:function(i,t,n,r){var s;this.suspendPaint(),v(this).setRowSpacingHeight(i,t,n,r),this.Ww=!0,this.resumePaint()},Asr:function(i,t,n,s){var o,e,u,f,c,a,h;for(void 0===s&&(s=r.SheetArea.viewport),e=0,u=o=this.$L;e<u.length;e++)if(c={spacingIndex:t,isAfter:n},!(f=u[e]).tF(i,c))return 0;return a=this.zoom(),h=this.Xsr(i,t,n,s),1!==a&&(h*=a),Math.ceil(h)},Msr:function(i,t){var n,r,s=v(this),o=s.getRowSpacingModel(i,t),e=0;if(o&&(n=o.getCount())>0)for(r=0;r<n;r++)e+=this.Asr(i,r,t);return e},Rsr:function(i,t,n){var s,o,e;return void 0===n&&(n=r.SheetArea.viewport),o=0,(e=(s=v(this)).getRowSpacingModel(i,t,n))&&(o=e.getCount()),o},$sr:function(i,t,n,s,o,e){var u,f,c,a,h;void 0===e&&(e=r.SheetArea.viewport),u=this.Ut,c=(f=v(this)).getRowSpacingCount(i,o),a=u.getRowCount(e),h=u.getColumnCount(e),i<0||i>=a||n<0||n>=h||t<0||t>=c||f.setRowSpacingValue(i,t,n,s,o,e)},tcr:function(i,t,n,s,o,e){var u,f,c,a,h;void 0===e&&(e=r.SheetArea.viewport),u=this.Ut,c=(f=v(this)).getRowSpacingCount(i,o),a=u.getRowCount(e),h=u.getColumnCount(e),i<0||i>=a||n>=h||t>=c||f.setRowSpacingStyle(i,t,n,s,o,e)},Dsr:function(i){var t,n,r,s,o=this._y(3);if(o&&o.length>0)for(t=0;t<o.length;t++)if(n=o[t]){if(r=n.y,s=n.height,r>i)break;if(r<i&&r+s>i)return!0}return!1},jsr:function(i,t){var n=this.Osr(i,t);if(n)return n.spacingIndex},_sr:function(i,t){var n=this.Osr(i,t);if(n)return n.isAfterSpacing},xsr:function(i,t,n){var r=v(this),s=r.getRowSpacingCount(i,n);return t===s-1},ncr:function(i,t,n,s,o,e){var u;return void 0===o&&(o=r.SheetArea.viewport),void 0===e&&(e="tag"),v(this).getRowSpacingValueForKey(i,t,n,s,o,e)},ecr:function(i,t,n,s,o,e,u){var f;void 0===e&&(e=r.SheetArea.viewport),void 0===u&&(u="tag"),v(this).setRowSpacingValueForKey(i,t,n,s,o,e,u)},icr:function(){var i;v(this).clearRowSpacing()},rcr:function(i,t,n,s){var o,e,u,f,c,a;for(void 0===s&&(s=r.SheetArea.viewport),o=v(this),u=0,f=e=this.$L;u<f.length;u++)if(a={spacingIndex:t,isAfter:n},!(c=f[u]).tF(i,a))return!1;return o.getRowSpacingVisible(i,t,n,s)},Bsr:function(i,t,n){var s,o,e,u;if(void 0===n&&(n=r.SheetArea.viewport),n===r.SheetArea.colHeader||n===r.SheetArea.corner)return!0;if(o=(s=v(this)).getRowSpacingModel(i,t)){for(e=o.getCount(),u=0;u<e;u++)if(this.rcr(i,u,t,n)&&this.Asr(i,u,t,n))return!0;return!1}}}),r.GC$.extend(r.Yx.prototype,{Tsr:function(i,t,n,r){var s,f,c,a,h,v,g,p;if(void 0===r&&(r={}),s=r.rowSpacingIndex,f=r.isAfterRowSpacing,c=r.noCreate,!(a=n[i])){if(c)return o;n[i]=a={}}if(!(v=a[h=f?u:e])){if(c)return o;a[h]=v={}}if(!(g=v[s])){if(c)return o;v[s]=g={}}if(!(p=g[t])){if(c)return o;g[t]=p={}}return p},Isr:function(i,t){var n,r,s,o,e,u,f,c,a,h,v;for(n in t)if(t[n])for(s in r=t[n])if(r[s])for(e in o=r[s])if(o[e])for(f in u=o[e])if(u[f])if(a=(c=u[f]).line,(h=c.splitLines)&&h.length>0)for(v=0;v<h.length;v++)h[v]&&h[v]._e(i);else a&&a._e(i)}})},Core:function(t){t.exports=i.Spread.Sheets}},r={};function s(i){var t,o=r[i];return void 0!==o?o.exports:(t=r[i]={exports:{}},n[i].call(t.exports,t,t.exports,s),t.exports)}t=s("./dist/plugins/spacing/spacing.entry.js"),(((i=void 0===i?{}:i).Spread=i.Spread||{}).Sheets=i.Spread.Sheets||{}).Spacing=t}()}));
12
+ !function(i){var t;"object"==typeof module&&"object"==typeof module.exports?(t=require("@grapecity-software/spread-common"),require("@grapecity-software/spread-sheets-core"),module.exports=i(t)):"function"==typeof define&&define.amd?define(["@grapecity-software/spread-common","@grapecity-software/spread-sheets-core"],i):"object"==typeof exports?(t=require("@grapecity-software/spread-common"),require("@grapecity-software/spread-sheets-core"),exports.Spread=i(t)):i(GC)}((function(i){!function(){"use strict";var t,n={375:function(i,t){Object.defineProperty(t,"__esModule",{value:!0})},376:function(t){t.exports=i.Spread.Sheets},482:function(i,t,n){var r,o,e,u,s,f,c,h,a,v,d;Object.defineProperty(t,"__esModule",{value:!0}),t.SpacingManager=t.q8=void 0,r=n(376),o=n(654),e=null,u="before",s="after",f=r.mt.V0,c=r.mt.Z0,h=function(i){return null==i},a=function(i){return"number"==typeof i},t.q8=a,v=function(i){return i.Ut.Vsr},d=function(){function i(i){this.ayt=i,this.Hc()}return i.prototype.Hc=function(){this.clearRowSpacing()},i.prototype.zsr=function(i){return this.Ysr[i]},i.prototype.Zsr=function(i){return this.Ysr[i]={},this.Ysr[i]},i.prototype.Qsr=function(){var i=0;return new o.RowSpacingModel(0,this.ayt.getColumnCount(r.SheetArea.rowHeader),this.ayt.getColumnCount(r.SheetArea.viewport))},i.prototype.Wsr=function(i,t){var n;return n=t?this.Ysr[i][s]=this.Qsr():this.Ysr[i][u]=this.Qsr()},i.prototype.Jsr=function(i,t){var n,r=this.zsr(i);return r||this.Zsr(i),(n=this.getRowSpacingModel(i,t))||(n=this.Wsr(i,t)),n},i.prototype.getRowSpacingCount=function(i,t){if(!this.hasRowSpacing(i,t))return 0;var n=this.getRowSpacingModel(i,t);return n?n.getCount():0},i.prototype.getRowSpacingModel=function(i,t,n){if(void 0===n&&(n=r.SheetArea.viewport),n===r.SheetArea.corner||n===r.SheetArea.colHeader)return e;var o=this.Ysr[i];return o?t?o[s]:o[u]:void 0},i.prototype.hasRowSpacing=function(i,t,n){return void 0===n&&(n=r.SheetArea.viewport),!!this.getRowSpacingModel(i,t,n)},i.prototype.addRowSpacing=function(i,t,n,r){var o;this.Jsr(i,r).add(t,n)},i.prototype.getRowSpacingHeight=function(i,t,n,o){void 0===o&&(o=r.SheetArea.viewport);var e=this.getRowSpacingModel(i,n,o);if(e)return e.getSpacingSize(t,o)},i.prototype.setRowSpacingHeight=function(i,t,n,r){var o=this.getRowSpacingModel(i,r);o&&o.setSpacingSize(t,n)},i.prototype.getRowSpacingVisible=function(i,t,n,o){void 0===o&&(o=r.SheetArea.viewport);var e=this.getRowSpacingModel(i,n);if(e)return e.getSpacingVisible(t,o)},i.prototype.getRowSpacingValue=function(i,t,n,r,o){var u=this.getRowSpacingModel(i,r);return u?u.getValue(t,n,o):e},i.prototype.setRowSpacingValue=function(i,t,n,r,o,e){var u=this.getRowSpacingModel(i,o);u&&u.setValue(t,n,r,e)},i.prototype.getRowSpacingValueForKey=function(i,t,n,r,o,u){var s,c=this.getRowSpacingModel(i,r);return c?(s=c.getValueForKey(t,n,o,u),f(s)):e},i.prototype.setRowSpacingValueForKey=function(i,t,n,r,o,e,u){var s,f=this.getRowSpacingModel(i,o);f&&(s=c(r),f.setValueForKey(t,n,s,e,u))},i.prototype.getRowSpacingStyle=function(i,t,n,r,o){var u=this.getRowSpacingModel(i,r);return u?u.getStyle(t,n,o):e},i.prototype.setRowSpacingStyle=function(i,t,n,r,o,e){var u=this.getRowSpacingModel(i,o);u&&u.setStyle(t,n,r,e)},i.prototype.clearRowSpacing=function(){this.Ysr={}},i.prototype.toJSON=function(i,t){var n,r,o,e,u,s,f;for(r in this.Ysr)this.Ysr[r]&&(e=(o=this.Ysr[r]).before,u=o.after,e&&(s=e.toJSON(i,t))&&(n||(n={}),n[r]||(n[r]={}),n[r].before=s),u&&(f=u.toJSON(i,t))&&(n||(n={}),n[r]||(n[r]={}),n[r].after=f));return n},i.prototype.fromJSON=function(i,t,n){var r,o,e,u,s,f;for(r in i)i[r]&&(e=(o=i[r]).before,u=o.after,e&&(s=this.Jsr(Number(r))).fromJSON(e,t,n),u&&(f=this.Jsr(Number(r),!0)).fromJSON(u,t,n))},i}(),t.SpacingManager=d,r.Worksheet.ch("spacing",{toJson:function(i,t){var n,r;t&&t.gp&&(r=(n=v(this)).toJSON(t,this))&&(i.spacing=r)},fromJson:function(i,t,n){var r,o;n&&n.gp&&(r=i.spacing)&&(n.sheet||(n.sheet=this),(o=v(this)).fromJSON(r,t,n))},preProcessMouseDbClick:function(i){i.target&&(h(i.target.rowSpacingIndex)||(i.r=!0))}}),r.Y8.ch("spacing",{priority:9e3,init:function(){this.Vsr=new d(this)},getValue:function(i){var n,r,o,e,u,s=i.rowSpacingIndex,f=(0,t.q8)(s);f&&(n=i.row,r=i.col,o=i.isAfterRowSpacing,e=i.sheetArea,u=this.Vsr,i.isValueGet=!0,i.value=u.getRowSpacingValue(n,s,r,o,e))},getStyle:function(i){var n,r,o,e,u,s=i.rowSpacingIndex,f=(0,t.q8)(s);f&&(n=i.row,r=i.col,o=i.isAfterRowSpacing,e=i.sheetArea,u=this.Vsr,i.isStyleGet=!0,i.style=u.getRowSpacingStyle(n,s,r,o,e))}}),r.GC$.extend(r.Worksheet.prototype,{Csr:function(i,t,n){var o;return void 0===n&&(n=r.SheetArea.viewport),v(this).hasRowSpacing(i,t,n)},Ksr:function(i,t,n,r){var o;this.suspendPaint(),v(this).addRowSpacing(i,t,n,r),this.Ww=!0,this.resumePaint()},Xsr:function(i,t,n,o){var e,u,s,f,c,a,d;for(void 0===o&&(o=r.SheetArea.viewport),u=0,s=e=this.$L;u<s.length;u++)if(c={spacingIndex:t,isAfter:n},!(f=s[u]).tF(i,c))return 0;return d=(a=v(this)).getRowSpacingHeight(i,t,n,o),h(d)&&(d=this.defaults.rowHeight),d},qsr:function(i,t,n,r){var o;this.suspendPaint(),v(this).setRowSpacingHeight(i,t,n,r),this.Ww=!0,this.resumePaint()},Asr:function(i,t,n,o){var e,u,s,f,c,h,a;for(void 0===o&&(o=r.SheetArea.viewport),u=0,s=e=this.$L;u<s.length;u++)if(c={spacingIndex:t,isAfter:n},!(f=s[u]).tF(i,c))return 0;return h=this.zoom(),a=this.Xsr(i,t,n,o),1!==h&&(a*=h),Math.ceil(a)},Msr:function(i,t){var n,r,o=v(this),e=o.getRowSpacingModel(i,t),u=0;if(e&&(n=e.getCount())>0)for(r=0;r<n;r++)u+=this.Asr(i,r,t);return u},Rsr:function(i,t,n){var o,e,u;return void 0===n&&(n=r.SheetArea.viewport),e=0,(u=(o=v(this)).getRowSpacingModel(i,t,n))&&(e=u.getCount()),e},$sr:function(i,t,n,o,e,u){var s,f,c,h,a;void 0===u&&(u=r.SheetArea.viewport),s=this.Ut,c=(f=v(this)).getRowSpacingCount(i,e),h=s.getRowCount(u),a=s.getColumnCount(u),i<0||i>=h||n<0||n>=a||t<0||t>=c||f.setRowSpacingValue(i,t,n,o,e,u)},tcr:function(i,t,n,o,e,u){var s,f,c,h,a;void 0===u&&(u=r.SheetArea.viewport),s=this.Ut,c=(f=v(this)).getRowSpacingCount(i,e),h=s.getRowCount(u),a=s.getColumnCount(u),i<0||i>=h||n>=a||t>=c||f.setRowSpacingStyle(i,t,n,o,e,u)},Dsr:function(i){var t,n,r,o,e=this._y(3);if(e&&e.length>0)for(t=0;t<e.length;t++)if(n=e[t]){if(r=n.y,o=n.height,r>i)break;if(r<i&&r+o>i)return!0}return!1},jsr:function(i,t){var n=this.Osr(i,t);if(n)return n.spacingIndex},_sr:function(i,t){var n=this.Osr(i,t);if(n)return n.isAfterSpacing},xsr:function(i,t,n){var r=v(this),o=r.getRowSpacingCount(i,n);return t===o-1},ncr:function(i,t,n,o,e,u){var s;return void 0===e&&(e=r.SheetArea.viewport),void 0===u&&(u="tag"),v(this).getRowSpacingValueForKey(i,t,n,o,e,u)},ecr:function(i,t,n,o,e,u,s){var f;void 0===u&&(u=r.SheetArea.viewport),void 0===s&&(s="tag"),v(this).setRowSpacingValueForKey(i,t,n,o,e,u,s)},icr:function(){var i;v(this).clearRowSpacing()},rcr:function(i,t,n,o){var e,u,s,f,c,h;for(void 0===o&&(o=r.SheetArea.viewport),e=v(this),s=0,f=u=this.$L;s<f.length;s++)if(h={spacingIndex:t,isAfter:n},!(c=f[s]).tF(i,h))return!1;return e.getRowSpacingVisible(i,t,n,o)},Bsr:function(i,t,n){var o,e,u,s;if(void 0===n&&(n=r.SheetArea.viewport),n===r.SheetArea.colHeader||n===r.SheetArea.corner)return!0;if(e=(o=v(this)).getRowSpacingModel(i,t)){for(u=e.getCount(),s=0;s<u;s++)if(this.rcr(i,s,t,n)&&this.Asr(i,s,t,n))return!0;return!1}}}),r.GC$.extend(r.Yx.prototype,{Tsr:function(i,t,n,r){var o,f,c,h,a,v,d,g;if(void 0===r&&(r={}),o=r.rowSpacingIndex,f=r.isAfterRowSpacing,c=r.noCreate,!(h=n[i])){if(c)return e;n[i]=h={}}if(!(v=h[a=f?s:u])){if(c)return e;h[a]=v={}}if(!(d=v[o])){if(c)return e;v[o]=d={}}if(!(g=d[t])){if(c)return e;d[t]=g={}}return g},Isr:function(i,t){var n,r,o,e,u,s,f,c,h,a,v;for(n in t)if(t[n])for(o in r=t[n])if(r[o])for(u in e=r[o])if(e[u])for(f in s=e[u])if(s[f])if(h=(c=s[f]).line,(a=c.splitLines)&&a.length>0)for(v=0;v<a.length;v++)a[v]&&a[v]._e(i);else h&&h._e(i)}})},568:function(i,t,n){var r=this&&this.hJr||(Object.create?function(i,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(i,r,o)}:function(i,t,n,r){void 0===r&&(r=n),i[r]=t[n]}),o=this&&this.dJr||function(i,t){for(var n in i)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,i,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(482),t),o(n(654),t),o(n(375),t)},654:function(i,t,n){var r,o,e,u,s;Object.defineProperty(t,"__esModule",{value:!0}),t.RowSpacingModel=void 0,r=n(376),o=n(482),e=void 0,u=function(i){return i===r.SheetArea.corner||i===r.SheetArea.colHeader},s=function(){function i(i,t,n){this.CMi=[],this.CMi[r.SheetArea.rowHeader]=this.CMi[r.SheetArea.viewport]=new r.ksr,this.HWt=[e,e,new r.Nsr(i,t),new r.Nsr(i,n)]}return i.prototype.add=function(i,t){this.HWt[r.SheetArea.rowHeader].rE(i,t),this.HWt[r.SheetArea.viewport].rE(i,t),this.CMi[r.SheetArea.viewport].kE(i,t)},i.prototype.getSpacingSize=function(i,t){var n;if(void 0===t&&(t=r.SheetArea.viewport),!u(t))return this.CMi[t].getSize(i)},i.prototype.setSpacingSize=function(i,t,n){var o;(void 0===n&&(n=r.SheetArea.viewport),u(n))||this.CMi[n].setSize(i,t)},i.prototype.getSpacingVisible=function(i,t){if(void 0===t&&(t=r.SheetArea.viewport),!u(t)){var n=this.CMi[t];return!n||n.getVisible(i)}},i.prototype.getCount=function(i){if(void 0===i&&(i=r.SheetArea.viewport),!u(i))return this.HWt[i].getRowCount()},i.prototype.setCount=function(i){this.HWt[r.SheetArea.viewport].setRowCount(i),this.HWt[r.SheetArea.rowHeader].setRowCount(i)},i.prototype.getValue=function(i,t,n){if(void 0===n&&(n=r.SheetArea.viewport),!u(n))return this.HWt[n].getValue(i,t)},i.prototype.setValue=function(i,t,n,o){void 0===o&&(o=r.SheetArea.viewport),u(o)||this.HWt[o].setValue(i,t,n,e,e)},i.prototype.getValueForKey=function(i,t,n,o){if(void 0===n&&(n=r.SheetArea.viewport),!u(n))return this.HWt[n].getValueForKey(i,t,o)},i.prototype.setValueForKey=function(i,t,n,o,e){void 0===o&&(o=r.SheetArea.viewport),u(o)||this.HWt[o].setValueForKey(i,t,e,n)},i.prototype.getStyle=function(i,t,n){if(void 0===n&&(n=r.SheetArea.viewport),!u(n))return this.HWt[n].getStyle(i,t,e)},i.prototype.setStyle=function(i,t,n,o){void 0===o&&(o=r.SheetArea.viewport),u(o)||this.HWt[o].setStyle(i,t,n,e,e,e)},i.prototype.toJSON=function(i,t){var n,o=this.HWt[r.SheetArea.viewport].getRowCount();return o>0&&(n||(n={}),n.data=this.HWt[r.SheetArea.viewport].toJSON(r.SheetArea.viewport,i,t),n.rowHeaderData=this.HWt[r.SheetArea.rowHeader].toJSON(r.SheetArea.rowHeader,i),n.rows=this.CMi[r.SheetArea.viewport].toJSON(i),n.count=this.getCount()),n},i.prototype.fromJSON=function(i,t,n){if(i){var e=i.data,u=i.rowHeaderData,s=i.rows,f=i.count;(0,o.q8)(f)&&this.setCount(f),e&&this.HWt[r.SheetArea.viewport].fromJSON(e,t,n),u&&this.HWt[r.SheetArea.rowHeader].fromJSON(u,t,n),s&&this.CMi[r.SheetArea.viewport].fromJSON(s)}},i}(),t.RowSpacingModel=s}},r={};function o(i){var t,e=r[i];return void 0!==e?e.exports:(t=r[i]={exports:{}},n[i].call(t.exports,t,t.exports,o),t.exports)}t=o(568),(((i=void 0===i?{}:i).Spread=i.Spread||{}).Sheets=i.Spread.Sheets||{}).Spacing=t}()}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapecity-software/spread-sheets-spacing",
3
- "version": "18.2.5",
3
+ "version": "19.0.1",
4
4
  "main": "index.js",
5
5
  "description":"SpreadJS spacing module",
6
6
  "scripts": {},
@@ -16,7 +16,7 @@
16
16
  "spreadjs"
17
17
  ],
18
18
  "dependencies": {
19
- "@grapecity-software/spread-sheets-core": "18.2.5"
19
+ "@grapecity-software/spread-sheets-core": "19.0.1"
20
20
  },
21
21
  "author": {
22
22
  "email": "info.xa@grapecity.com",