@grapecity-software/spread-sheets-spacing 18.1.4 → 18.2.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.1.4
3
+ * SpreadJS Library 18.2.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(t){!function(){"use strict";var n,r,i;function s(i){var t,t,t=r[i];return void 0!==t||(t=r[i]={exports:{}},n[i].call(t.exports,t,t.exports,s)),t.exports}n={"./dist/plugins/spacing/rowSpacing.js":function(i,t,n){var e,u,s,o,r;function c(i,t,n){this.CMi=[],this.CMi[e.SheetArea.rowHeader]=this.CMi[e.SheetArea.viewport]=new e.ksr,this.HWt=[s,s,new e.Nsr(i,t),new e.Nsr(i,n)]}Object.defineProperty(t,"__esModule",{value:!0}),t.RowSpacingModel=void 0,e=n("Core"),u=n("./dist/plugins/spacing/spacing.js"),s=void 0,o=function(i){return i===e.SheetArea.corner||i===e.SheetArea.colHeader},c.prototype.add=function(i,t){this.HWt[e.SheetArea.rowHeader].rE(i,t),this.HWt[e.SheetArea.viewport].rE(i,t),this.CMi[e.SheetArea.viewport].kE(i,t)},c.prototype.getSpacingSize=function(i,t){var n;if(void 0===t&&(t=e.SheetArea.viewport),!o(t))return this.CMi[t].getSize(i)},c.prototype.setSpacingSize=function(i,t,n){var r;void 0===n&&(n=e.SheetArea.viewport),o(n)||this.CMi[n].setSize(i,t)},c.prototype.getSpacingVisible=function(i,t){var t;if(void 0===t&&(t=e.SheetArea.viewport),!o(t))return!(t=this.CMi[t])||t.getVisible(i)},c.prototype.getCount=function(i){if(void 0===i&&(i=e.SheetArea.viewport),!o(i))return this.HWt[i].getRowCount()},c.prototype.setCount=function(i){this.HWt[e.SheetArea.viewport].setRowCount(i),this.HWt[e.SheetArea.rowHeader].setRowCount(i)},c.prototype.getValue=function(i,t,n){if(void 0===n&&(n=e.SheetArea.viewport),!o(n))return this.HWt[n].getValue(i,t)},c.prototype.setValue=function(i,t,n,r){void 0===r&&(r=e.SheetArea.viewport),o(r)||this.HWt[r].setValue(i,t,n,s,s)},c.prototype.getValueForKey=function(i,t,n,r){if(void 0===n&&(n=e.SheetArea.viewport),!o(n))return this.HWt[n].getValueForKey(i,t,r)},c.prototype.setValueForKey=function(i,t,n,r,s){void 0===r&&(r=e.SheetArea.viewport),o(r)||this.HWt[r].setValueForKey(i,t,s,n)},c.prototype.getStyle=function(i,t,n){if(void 0===n&&(n=e.SheetArea.viewport),!o(n))return this.HWt[n].getStyle(i,t,s)},c.prototype.setStyle=function(i,t,n,r){void 0===r&&(r=e.SheetArea.viewport),o(r)||this.HWt[r].setStyle(i,t,n,s,s,s)},c.prototype.toJSON=function(i,t){var n,r,r;return 0<this.HWt[e.SheetArea.viewport].getRowCount()&&((n=n||{}).data=this.HWt[e.SheetArea.viewport].toJSON(e.SheetArea.viewport,i,t),n.rowHeaderData=this.HWt[e.SheetArea.rowHeader].toJSON(e.SheetArea.rowHeader,i),n.rows=this.CMi[e.SheetArea.viewport].toJSON(i),n.count=this.getCount()),n},c.prototype.fromJSON=function(i,t,n){var r,s,o,i;i&&(r=i.data,s=i.rowHeaderData,o=i.rows,i=i.count,(0,u.q8)(i)&&this.setCount(i),r&&this.HWt[e.SheetArea.viewport].fromJSON(r,t,n),s&&this.HWt[e.SheetArea.rowHeader].fromJSON(s,t,n),o)&&this.CMi[e.SheetArea.viewport].fromJSON(o)},t.RowSpacingModel=c},"./dist/plugins/spacing/spacing.entry.js":function(i,t,n){var r,s,r=this&&this.__createBinding||(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){i[r=void 0===r?n:r]=t[n]}),s=this&&this.__exportStar||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,c,t){var a,n,u,f,h,e,v,g,r,p,s;function o(i){this.ayt=i,this.Hc()}Object.defineProperty(c,"__esModule",{value:!0}),c.SpacingManager=c.q8=void 0,a=t("Core"),n=t("./dist/plugins/spacing/rowSpacing.js"),u=null,f="before",h="after",e=a.mt.V0,v=a.mt.Z0,g=function(i){return null==i},c.q8=r=function(i){return"number"==typeof i},p=function(i){return i.Ut.Vsr},o.prototype.Hc=function(){this.clearRowSpacing()},o.prototype.zsr=function(i){return this.Ysr[i]},o.prototype.Zsr=function(i){return this.Ysr[i]={},this.Ysr[i]},o.prototype.Qsr=function(){var i=0;return new n.RowSpacingModel(0,this.ayt.getColumnCount(a.SheetArea.rowHeader),this.ayt.getColumnCount(a.SheetArea.viewport))},o.prototype.Wsr=function(i,t){var t,t=t?this.Ysr[i][h]=this.Qsr():this.Ysr[i][f]=this.Qsr();return t},o.prototype.Jsr=function(i,t){var n,r,n;return this.zsr(i)||this.Zsr(i),r=(r=this.getRowSpacingModel(i,t))||this.Wsr(i,t)},o.prototype.getRowSpacingCount=function(i,t){var i;return this.hasRowSpacing(i,t)&&(i=this.getRowSpacingModel(i,t))?i.getCount():0},o.prototype.getRowSpacingModel=function(i,t,n){var n;return(n=void 0===n?a.SheetArea.viewport:n)===a.SheetArea.corner||n===a.SheetArea.colHeader?u:(n=this.Ysr[i])?t?n[h]:n[f]:void 0},o.prototype.hasRowSpacing=function(i,t,n){return void 0===n&&(n=a.SheetArea.viewport),!!this.getRowSpacingModel(i,t,n)},o.prototype.addRowSpacing=function(i,t,n,r){var s;this.Jsr(i,r).add(t,n)},o.prototype.getRowSpacingHeight=function(i,t,n,r){void 0===r&&(r=a.SheetArea.viewport);var i=this.getRowSpacingModel(i,n,r);if(i)return i.getSpacingSize(t,r)},o.prototype.setRowSpacingHeight=function(i,t,n,r){var i=this.getRowSpacingModel(i,r);i&&i.setSpacingSize(t,n)},o.prototype.getRowSpacingVisible=function(i,t,n,r){void 0===r&&(r=a.SheetArea.viewport);var i=this.getRowSpacingModel(i,n);if(i)return i.getSpacingVisible(t,r)},o.prototype.getRowSpacingValue=function(i,t,n,r,s){var i=this.getRowSpacingModel(i,r);return i?i.getValue(t,n,s):u},o.prototype.setRowSpacingValue=function(i,t,n,r,s,o){var i=this.getRowSpacingModel(i,s);i&&i.setValue(t,n,r,o)},o.prototype.getRowSpacingValueForKey=function(i,t,n,r,s,o){var i,r,i=this.getRowSpacingModel(i,r);return i?(r=i.getValueForKey(t,n,s,o),e(r)):u},o.prototype.setRowSpacingValueForKey=function(i,t,n,r,s,o,e){var i,s,i=this.getRowSpacingModel(i,s);i&&(s=v(r),i.setValueForKey(t,n,s,o,e))},o.prototype.getRowSpacingStyle=function(i,t,n,r,s){var i=this.getRowSpacingModel(i,r);return i?i.getStyle(t,n,s):u},o.prototype.setRowSpacingStyle=function(i,t,n,r,s,o){var i=this.getRowSpacingModel(i,s);i&&i.setStyle(t,n,r,o)},o.prototype.clearRowSpacing=function(){this.Ysr={}},o.prototype.toJSON=function(i,t){var n,r,s,o,s,o,o;for(r in this.Ysr)this.Ysr[r]&&(o=(s=this.Ysr[r]).before,s=s.after,o&&(o=o.toJSON(i,t))&&((n=n||{})[r]||(n[r]={}),n[r].before=o),s)&&(o=s.toJSON(i,t))&&((n=n||{})[r]||(n[r]={}),n[r].after=o);return n},o.prototype.fromJSON=function(i,t,n){var r,s,o,s,e,u;for(r in i)i[r]&&(o=(s=i[r]).before,s=s.after,o&&(e=this.Jsr(Number(r))).fromJSON(o,t,n),s)&&(u=this.Jsr(Number(r),!0)).fromJSON(s,t,n)},s=o,c.SpacingManager=s,a.Worksheet.ch("spacing",{toJson:function(i,t){var n,t;t&&t.gp&&(t=(n=p(this)).toJSON(t,this))&&(i.spacing=t)},fromJson:function(i,t,n){var i,r;n&&n.gp&&(i=i.spacing)&&(n.sheet||(n.sheet=this),(r=p(this)).fromJSON(i,t,n))},preProcessMouseDbClick:function(i){!i.target||g(i.target.rowSpacingIndex)||(i.r=!0)}}),a.Y8.ch("spacing",{priority:9e3,init:function(){this.Vsr=new s(this)},getValue:function(i){var t,n,r,s,o,e,u,t=i.rowSpacingIndex,n;(0,c.q8)(t)&&(r=i.row,s=i.col,o=i.isAfterRowSpacing,e=i.sheetArea,u=this.Vsr,i.isValueGet=!0,i.value=u.getRowSpacingValue(r,t,s,o,e))},getStyle:function(i){var t,n,r,s,o,e,u,t=i.rowSpacingIndex,n;(0,c.q8)(t)&&(r=i.row,s=i.col,o=i.isAfterRowSpacing,e=i.sheetArea,u=this.Vsr,i.isStyleGet=!0,i.style=u.getRowSpacingStyle(r,t,s,o,e))}}),a.GC$.extend(a.Worksheet.prototype,{Csr:function(i,t,n){var r;return void 0===n&&(n=a.SheetArea.viewport),p(this).hasRowSpacing(i,t,n)},Ksr:function(i,t,n,r){var s;this.suspendPaint(),p(this).addRowSpacing(i,t,n,r),this.Ww=!0,this.resumePaint()},Xsr:function(i,t,n,r){var s,o,e,u,c,f,r;for(void 0===r&&(r=a.SheetArea.viewport),o=0,e=s=this.$L;o<e.length;o++)if(!(u=e[o]).tF(i,c={spacingIndex:t,isAfter:n}))return 0;return r=(f=p(this)).getRowSpacingHeight(i,t,n,r),r=g(r)?this.defaults.rowHeight:r},qsr:function(i,t,n,r){var s;this.suspendPaint(),p(this).setRowSpacingHeight(i,t,n,r),this.Ww=!0,this.resumePaint()},Asr:function(i,t,n,r){var s,o,e,u,c,f,r;for(void 0===r&&(r=a.SheetArea.viewport),o=0,e=s=this.$L;o<e.length;o++)if(!(u=e[o]).tF(i,c={spacingIndex:t,isAfter:n}))return 0;return f=this.zoom(),r=this.Xsr(i,t,n,r),1!==f&&(r*=f),Math.ceil(r)},Msr:function(i,t){var n,r,s,o,e,n,r=p(this).getRowSpacingModel(i,t),s=0;if(r&&0<(o=r.getCount()))for(e=0;e<o;e++)s+=this.Asr(i,e,t);return s},Rsr:function(i,t,n){var r,s,i;return void 0===n&&(n=a.SheetArea.viewport),s=0,s=(i=(r=p(this)).getRowSpacingModel(i,t,n))?i.getCount():s},$sr:function(i,t,n,r,s,o){var e,u,c,f,e;void 0===o&&(o=a.SheetArea.viewport),e=this.Ut,c=(u=p(this)).getRowSpacingCount(i,s),f=e.getRowCount(o),e=e.getColumnCount(o),i<0||f<=i||n<0||e<=n||t<0||c<=t||u.setRowSpacingValue(i,t,n,r,s,o)},tcr:function(i,t,n,r,s,o){var e,u,c,f,e;void 0===o&&(o=a.SheetArea.viewport),e=this.Ut,c=(u=p(this)).getRowSpacingCount(i,s),f=e.getRowCount(o),e=e.getColumnCount(o),i<0||f<=i||e<=n||c<=t||u.setRowSpacingStyle(i,t,n,r,s,o)},Dsr:function(i){var t,n,r,s,r,t=this._y(3);if(t&&0<t.length)for(n=0;n<t.length;n++)if(r=t[n]){if(s=r.y,r=r.height,i<s)break;if(s<i&&i<s+r)return!0}return!1},jsr:function(i,t){var i=this.Osr(i,t);if(i)return i.spacingIndex},_sr:function(i,t){var i=this.Osr(i,t);if(i)return i.isAfterSpacing},xsr:function(i,t,n){var r,s,r,s;return t===p(this).getRowSpacingCount(i,n)-1},ncr:function(i,t,n,r,s,o){var e;return void 0===s&&(s=a.SheetArea.viewport),p(this).getRowSpacingValueForKey(i,t,n,r,s,o=void 0===o?"tag":o)},ecr:function(i,t,n,r,s,o,e){var u;void 0===o&&(o=a.SheetArea.viewport),p(this).setRowSpacingValueForKey(i,t,n,r,s,o,e=void 0===e?"tag":e)},icr:function(){var i;p(this).clearRowSpacing()},rcr:function(i,t,n,r){var s,o,e,u,c,f;for(void 0===r&&(r=a.SheetArea.viewport),s=p(this),e=0,u=o=this.$L;e<u.length;e++)if(!(c=u[e]).tF(i,f={spacingIndex:t,isAfter:n}))return!1;return s.getRowSpacingVisible(i,t,n,r)},Bsr:function(i,t,n){var r,s,o,e;if((n=void 0===n?a.SheetArea.viewport:n)===a.SheetArea.colHeader||n===a.SheetArea.corner)return!0;if(s=(r=p(this)).getRowSpacingModel(i,t)){for(o=s.getCount(),e=0;e<o;e++)if(this.rcr(i,e,t,n)&&this.Asr(i,e,t,n))return!0;return!1}}}),a.GC$.extend(a.Yx.prototype,{Tsr:function(i,t,n,r){var s,o,r,e,n,i,o,e,s=(r=void 0===r?{}:r).rowSpacingIndex,o=r.isAfterRowSpacing,r=r.noCreate;if(!(e=n[i])){if(r)return u;n[i]=e={}}if(!(i=e[n=o?h:f])){if(r)return u;e[n]=i={}}if(!(o=i[s])){if(r)return u;i[s]=o={}}if(!(e=o[t])){if(r)return u;o[t]=e={}}return e},Isr:function(i,t){var n,r,s,o,e,u,c,f,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(c in u=o[e])if(u[c])if(a=(f=u[c]).line,(h=f.splitLines)&&0<h.length)for(v=0;v<h.length;v++)h[v]&&h[v]._e(i);else a&&a._e(i)}})},Core:function(i){i.exports=t.Spread.Sheets}},r={},i=s("./dist/plugins/spacing/spacing.entry.js"),(((t=void 0===t?{}:t).Spread=t.Spread||{}).Sheets=t.Spread.Sheets||{}).Spacing=i}()});
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}()}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapecity-software/spread-sheets-spacing",
3
- "version": "18.1.4",
3
+ "version": "18.2.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.1.4"
19
+ "@grapecity-software/spread-sheets-core": "18.2.1"
20
20
  },
21
21
  "author": {
22
22
  "email": "info.xa@grapecity.com",