@senlinz/import-export-wasm 0.1.0-beta.17 → 0.1.0-beta.19

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senlinz/import-export-wasm",
3
- "version": "0.1.0-beta.17",
3
+ "version": "0.1.0-beta.19",
4
4
  "description": "Rust WebAssembly for import/export excel files",
5
5
  "main": "pkg/imexport_wasm.js",
6
6
  "types": "pkg/imexport_wasm.d.ts",
@@ -81,6 +81,7 @@ export class ExcelInfo {
81
81
  constructor(name: string, sheet_name: string, columns: ExcelColumnInfo[], author: string, create_time: string);
82
82
  withTitle(title: string): ExcelInfo;
83
83
  withDefaultRowHeight(row_height: number): ExcelInfo;
84
+ withHeaderRowHeight(row_height: number): ExcelInfo;
84
85
  withTitleHeight(title_height: number): ExcelInfo;
85
86
  withTitleFormat(title_format: ExcelCellFormat): ExcelInfo;
86
87
  withOffset(dx: number, dy: number): ExcelInfo;
@@ -100,6 +101,8 @@ export class ExcelInfo {
100
101
  set title_height(value: number | null | undefined);
101
102
  get default_row_height(): number | undefined;
102
103
  set default_row_height(value: number | null | undefined);
104
+ get header_row_height(): number | undefined;
105
+ set header_row_height(value: number | null | undefined);
103
106
  dx: number;
104
107
  dy: number;
105
108
  is_header_freeze: boolean;
@@ -117,14 +120,14 @@ export interface InitOutput {
117
120
  readonly createTemplate: (a: number, b: number) => void;
118
121
  readonly importData: (a: number, b: number, c: number, d: number) => void;
119
122
  readonly exportData: (a: number, b: number) => number;
120
- readonly __wbg_excelrowdata_free: (a: number, b: number) => void;
121
- readonly __wbg_get_excelrowdata_columns: (a: number, b: number) => void;
122
- readonly __wbg_set_excelrowdata_columns: (a: number, b: number, c: number) => void;
123
- readonly excelrowdata_new: (a: number, b: number) => number;
124
123
  readonly __wbg_exceldata_free: (a: number, b: number) => void;
125
124
  readonly __wbg_get_exceldata_rows: (a: number, b: number) => void;
126
125
  readonly __wbg_set_exceldata_rows: (a: number, b: number, c: number) => void;
127
126
  readonly exceldata_new: (a: number, b: number) => number;
127
+ readonly __wbg_excelrowdata_free: (a: number, b: number) => void;
128
+ readonly __wbg_get_excelrowdata_columns: (a: number, b: number) => void;
129
+ readonly __wbg_set_excelrowdata_columns: (a: number, b: number, c: number) => void;
130
+ readonly excelrowdata_new: (a: number, b: number) => number;
128
131
  readonly __wbg_excelinfo_free: (a: number, b: number) => void;
129
132
  readonly __wbg_get_excelinfo_name: (a: number, b: number) => void;
130
133
  readonly __wbg_set_excelinfo_name: (a: number, b: number, c: number) => void;
@@ -144,6 +147,8 @@ export interface InitOutput {
144
147
  readonly __wbg_set_excelinfo_title_height: (a: number, b: number, c: number) => void;
145
148
  readonly __wbg_get_excelinfo_default_row_height: (a: number, b: number) => void;
146
149
  readonly __wbg_set_excelinfo_default_row_height: (a: number, b: number, c: number) => void;
150
+ readonly __wbg_get_excelinfo_header_row_height: (a: number, b: number) => void;
151
+ readonly __wbg_set_excelinfo_header_row_height: (a: number, b: number, c: number) => void;
147
152
  readonly __wbg_get_excelinfo_dx: (a: number) => number;
148
153
  readonly __wbg_set_excelinfo_dx: (a: number, b: number) => void;
149
154
  readonly __wbg_get_excelinfo_dy: (a: number) => number;
@@ -153,6 +158,7 @@ export interface InitOutput {
153
158
  readonly excelinfo_bind_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
154
159
  readonly excelinfo_withTitle: (a: number, b: number, c: number) => number;
155
160
  readonly excelinfo_withDefaultRowHeight: (a: number, b: number) => number;
161
+ readonly excelinfo_withHeaderRowHeight: (a: number, b: number) => number;
156
162
  readonly excelinfo_withTitleHeight: (a: number, b: number) => number;
157
163
  readonly excelinfo_withTitleFormat: (a: number, b: number) => number;
158
164
  readonly excelinfo_withOffset: (a: number, b: number, c: number) => number;
@@ -323,7 +323,7 @@ function __wbg_adapter_28(arg0, arg1, arg2) {
323
323
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h34f632cd519c3a96(arg0, arg1, addHeapObject(arg2));
324
324
  }
325
325
 
326
- function __wbg_adapter_181(arg0, arg1, arg2, arg3) {
326
+ function __wbg_adapter_184(arg0, arg1, arg2, arg3) {
327
327
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h059b1e71ab984223(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
328
328
  }
329
329
 
@@ -1664,6 +1664,26 @@ export class ExcelInfo {
1664
1664
  set default_row_height(arg0) {
1665
1665
  wasm.__wbg_set_excelinfo_default_row_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
1666
1666
  }
1667
+ /**
1668
+ * @returns {number | undefined}
1669
+ */
1670
+ get header_row_height() {
1671
+ try {
1672
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1673
+ wasm.__wbg_get_excelinfo_header_row_height(retptr, this.__wbg_ptr);
1674
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1675
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1676
+ return r0 === 0 ? undefined : r2;
1677
+ } finally {
1678
+ wasm.__wbindgen_add_to_stack_pointer(16);
1679
+ }
1680
+ }
1681
+ /**
1682
+ * @param {number | null} [arg0]
1683
+ */
1684
+ set header_row_height(arg0) {
1685
+ wasm.__wbg_set_excelinfo_header_row_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
1686
+ }
1667
1687
  /**
1668
1688
  * @returns {number}
1669
1689
  */
@@ -1746,6 +1766,15 @@ export class ExcelInfo {
1746
1766
  const ret = wasm.excelinfo_withDefaultRowHeight(ptr, row_height);
1747
1767
  return ExcelInfo.__wrap(ret);
1748
1768
  }
1769
+ /**
1770
+ * @param {number} row_height
1771
+ * @returns {ExcelInfo}
1772
+ */
1773
+ withHeaderRowHeight(row_height) {
1774
+ const ptr = this.__destroy_into_raw();
1775
+ const ret = wasm.excelinfo_withHeaderRowHeight(ptr, row_height);
1776
+ return ExcelInfo.__wrap(ret);
1777
+ }
1749
1778
  /**
1750
1779
  * @param {number} title_height
1751
1780
  * @returns {ExcelInfo}
@@ -1963,7 +1992,7 @@ function __wbg_get_imports() {
1963
1992
  const a = state0.a;
1964
1993
  state0.a = 0;
1965
1994
  try {
1966
- return __wbg_adapter_181(a, state0.b, arg0, arg1);
1995
+ return __wbg_adapter_184(a, state0.b, arg0, arg1);
1967
1996
  } finally {
1968
1997
  state0.a = a;
1969
1998
  }
@@ -2037,7 +2066,7 @@ function __wbg_get_imports() {
2037
2066
  const ret = false;
2038
2067
  return ret;
2039
2068
  };
2040
- imports.wbg.__wbindgen_closure_wrapper814 = function(arg0, arg1, arg2) {
2069
+ imports.wbg.__wbindgen_closure_wrapper822 = function(arg0, arg1, arg2) {
2041
2070
  const ret = makeMutClosure(arg0, arg1, 230, __wbg_adapter_28);
2042
2071
  return addHeapObject(ret);
2043
2072
  };
Binary file