@senlinz/import-export-wasm 0.0.1-beta.5 → 0.1.0-beta.11
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/LICENSE +13 -1
- package/README.md +2 -109
- package/package.json +4 -3
- package/pkg/imexport_wasm.d.ts +188 -91
- package/pkg/imexport_wasm.js +1295 -188
- package/pkg/imexport_wasm_bg.wasm +0 -0
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2024, senlinz
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -19,3 +19,15 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
This project includes third-party software licensed under the MIT License and the Apache License 2.0:
|
|
26
|
+
|
|
27
|
+
## rust_xlsxwriter
|
|
28
|
+
|
|
29
|
+
MIT License (MIT) or Apache License, Version 2.0
|
|
30
|
+
|
|
31
|
+
## calamine
|
|
32
|
+
|
|
33
|
+
MIT License
|
package/README.md
CHANGED
|
@@ -9,112 +9,5 @@
|
|
|
9
9
|
- Write using [rust_xlsxwriter](https://docs.rs/rust_xlsxwriter/).
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<html lang="en">
|
|
15
|
-
|
|
16
|
-
<head>
|
|
17
|
-
<meta charset="UTF-8">
|
|
18
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
19
|
-
<title>Demo (@senlin/import-export-wasm)</title>
|
|
20
|
-
</head>
|
|
21
|
-
|
|
22
|
-
<button id="downloadTemplate">Download Template</button>
|
|
23
|
-
<button id="exportWithData">Export With Data</button>
|
|
24
|
-
<button id="importWithData">Import With Data</button>
|
|
25
|
-
<a id="download" style="display: none"></a>
|
|
26
|
-
<input type="file" accept=".xlsx" id="file" style="display: none">
|
|
27
|
-
|
|
28
|
-
<body>
|
|
29
|
-
<script type="module">
|
|
30
|
-
import initAsync, { createTemplate, exportData, importData, ExcelInfo, ExcelColumnInfo, ExcelData, ExcelRowData, ExcelColumnData } from 'https://cdn.jsdelivr.net/npm/@senlinz/import-export-wasm/pkg/imexport_wasm.js';
|
|
31
|
-
await initAsync({ path: 'https://cdn.jsdelivr.net/npm/@senlinz/import-export-wasm/pkg/imexport_wasm_bg.wasm' });
|
|
32
|
-
|
|
33
|
-
const downloadEl = document.getElementById('download');
|
|
34
|
-
const fileEl = document.getElementById('file');
|
|
35
|
-
|
|
36
|
-
fileEl.addEventListener('change', fileChange);
|
|
37
|
-
document.getElementById('downloadTemplate').addEventListener('click', downloadTemplate);
|
|
38
|
-
document.getElementById('exportWithData').addEventListener('click', exportWithData);
|
|
39
|
-
document.getElementById('importWithData').addEventListener('click', importWithData);
|
|
40
|
-
|
|
41
|
-
const res = await fetch('https://cdn.jsdelivr.net/npm/@senlinz/import-export-wasm/pkg/imexport_wasm_bg.wasm');
|
|
42
|
-
const bytes = await res.arrayBuffer();
|
|
43
|
-
|
|
44
|
-
function downloadTemplate() {
|
|
45
|
-
const info = getExcelInfo();
|
|
46
|
-
download(info.name, createTemplate(info));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function exportWithData() {
|
|
50
|
-
const info = getExcelInfo();
|
|
51
|
-
const data = new ExcelData([
|
|
52
|
-
new ExcelRowData([
|
|
53
|
-
new ExcelColumnData("name", "Tom"),
|
|
54
|
-
new ExcelColumnData("age", "12"),
|
|
55
|
-
new ExcelColumnData("category", "Cat")
|
|
56
|
-
]),
|
|
57
|
-
new ExcelRowData([
|
|
58
|
-
new ExcelColumnData("name", "Jerry"),
|
|
59
|
-
new ExcelColumnData("age", "10"),
|
|
60
|
-
new ExcelColumnData("category", "Mouse")
|
|
61
|
-
])
|
|
62
|
-
]);
|
|
63
|
-
download(info.name, exportData(info, data));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function importWithData() {
|
|
67
|
-
fileEl.click();
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function fileChange(e) {
|
|
71
|
-
const file = e.target.files[0];
|
|
72
|
-
const reader = new FileReader();
|
|
73
|
-
reader.onload = (e) => {
|
|
74
|
-
const data = new Uint8Array(e.target.result);
|
|
75
|
-
const info = getExcelInfo();
|
|
76
|
-
const excelData = importData(info, data);
|
|
77
|
-
console.log(toJson(excelData));
|
|
78
|
-
};
|
|
79
|
-
reader.readAsArrayBuffer(file);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function download(name, excelData) {
|
|
83
|
-
const blob = new Blob([excelData], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
|
|
84
|
-
const url = URL.createObjectURL(blob);
|
|
85
|
-
downloadEl.download = `${name}.xlsx`;
|
|
86
|
-
downloadEl.href = url;
|
|
87
|
-
downloadEl.click();
|
|
88
|
-
URL.revokeObjectURL(url);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function getExcelInfo() {
|
|
92
|
-
const excelName = "TomAndJerry";
|
|
93
|
-
const columns = [
|
|
94
|
-
new ExcelColumnInfo("name", "Name", 20),
|
|
95
|
-
new ExcelColumnInfo("age", "Age"),
|
|
96
|
-
new ExcelColumnInfo("category", "Category")
|
|
97
|
-
];
|
|
98
|
-
const info = new ExcelInfo(excelName, "sheet1", columns);
|
|
99
|
-
return info;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function toJson(excelData) {
|
|
103
|
-
const data = [];
|
|
104
|
-
const info = getExcelInfo();
|
|
105
|
-
for (let i = 0; i < excelData.rows.length; i++) {
|
|
106
|
-
const item = {};
|
|
107
|
-
let row = excelData.rows[i];
|
|
108
|
-
for (let j = 0; j < row.columns.length; j++) {
|
|
109
|
-
let column = row.columns[j];
|
|
110
|
-
item[column.key] = column.value;
|
|
111
|
-
}
|
|
112
|
-
data.push(item);
|
|
113
|
-
}
|
|
114
|
-
return data;
|
|
115
|
-
}
|
|
116
|
-
</script>
|
|
117
|
-
</body>
|
|
118
|
-
|
|
119
|
-
</html>
|
|
120
|
-
```
|
|
12
|
+
Directly use WebAssembly in browser environments.
|
|
13
|
+
[Example](./tests/index.html)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@senlinz/import-export-wasm",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0-beta.11",
|
|
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",
|
|
@@ -32,8 +32,9 @@
|
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "wasm-pack build --release --target web",
|
|
35
|
-
"test": "wasm-pack test --headless --firefox",
|
|
36
35
|
"publish-dry-run": "pnpm publish --dry-run --no-git-checks",
|
|
37
|
-
"cargo-test": "cargo test"
|
|
36
|
+
"cargo-test": "cargo test --lib",
|
|
37
|
+
"e2e-serve": "wasm-pack build --release --target web -d tests/dist && serve -l 8080 ./tests",
|
|
38
|
+
"e2e-test": "playwright test"
|
|
38
39
|
}
|
|
39
40
|
}
|
package/pkg/imexport_wasm.d.ts
CHANGED
|
@@ -1,100 +1,102 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* @param {ExcelInfo} info
|
|
5
|
-
* @returns {Uint8Array}
|
|
6
|
-
*/
|
|
7
3
|
export function createTemplate(info: ExcelInfo): Uint8Array;
|
|
8
|
-
/**
|
|
9
|
-
* @param {ExcelInfo} info
|
|
10
|
-
* @param {Uint8Array} excel_bytes
|
|
11
|
-
* @returns {ExcelData}
|
|
12
|
-
*/
|
|
13
4
|
export function importData(info: ExcelInfo, excel_bytes: Uint8Array): ExcelData;
|
|
14
|
-
/**
|
|
15
|
-
* @param {ExcelInfo} info
|
|
16
|
-
* @param {ExcelData} data
|
|
17
|
-
* @returns {Uint8Array}
|
|
18
|
-
*/
|
|
19
5
|
export function exportData(info: ExcelInfo, data: ExcelData): Uint8Array;
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
export class ExcelCellFormat {
|
|
7
|
+
free(): void;
|
|
8
|
+
constructor();
|
|
9
|
+
withRule(rule: string): ExcelCellFormat;
|
|
10
|
+
withValue(value: string): ExcelCellFormat;
|
|
11
|
+
withColor(color: string): ExcelCellFormat;
|
|
12
|
+
withBold(bold: boolean): ExcelCellFormat;
|
|
13
|
+
withItalic(italic: boolean): ExcelCellFormat;
|
|
14
|
+
withUnderline(underline: boolean): ExcelCellFormat;
|
|
15
|
+
withStrikethrough(strikethrough: boolean): ExcelCellFormat;
|
|
16
|
+
withFontSize(font_size: number): ExcelCellFormat;
|
|
17
|
+
withBackgroundColor(background_color: string): ExcelCellFormat;
|
|
18
|
+
withAlign(align: string): ExcelCellFormat;
|
|
19
|
+
withAlignVertical(align_vertical: string): ExcelCellFormat;
|
|
20
|
+
withDateFormat(date_format: string): ExcelCellFormat;
|
|
21
|
+
withBorderColor(border_color: string): ExcelCellFormat;
|
|
22
|
+
rule: string;
|
|
23
|
+
value: string;
|
|
24
|
+
color: string;
|
|
25
|
+
bold: boolean;
|
|
26
|
+
italic: boolean;
|
|
27
|
+
underline: boolean;
|
|
28
|
+
strikethrough: boolean;
|
|
29
|
+
font_size: number;
|
|
30
|
+
background_color: string;
|
|
31
|
+
align: string;
|
|
32
|
+
align_vertical: string;
|
|
33
|
+
date_format?: string;
|
|
34
|
+
border_color?: string;
|
|
35
|
+
}
|
|
22
36
|
export class ExcelColumnData {
|
|
23
37
|
free(): void;
|
|
24
|
-
/**
|
|
25
|
-
* @param {string} key
|
|
26
|
-
* @param {string} value
|
|
27
|
-
*/
|
|
28
38
|
constructor(key: string, value: string);
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
static newGroup(group_name: string, value: string, children: (ExcelRowData)[]): ExcelColumnData;
|
|
40
|
+
static newRootGroup(group_name: string, children: (ExcelRowData)[]): ExcelColumnData;
|
|
41
|
+
withChildren(children: (ExcelRowData)[]): ExcelColumnData;
|
|
31
42
|
key: string;
|
|
32
|
-
/**
|
|
33
|
-
*/
|
|
34
43
|
value: string;
|
|
44
|
+
children: (ExcelRowData)[];
|
|
35
45
|
}
|
|
36
|
-
/**
|
|
37
|
-
*/
|
|
38
46
|
export class ExcelColumnInfo {
|
|
39
47
|
free(): void;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
constructor(key: string, name: string);
|
|
49
|
+
withNote(note: string): ExcelColumnInfo;
|
|
50
|
+
withDataType(data_type: string): ExcelColumnInfo;
|
|
51
|
+
withAllowedValues(allowed_values: (string)[]): ExcelColumnInfo;
|
|
52
|
+
withWidth(width: number): ExcelColumnInfo;
|
|
53
|
+
withFormat(format: ExcelCellFormat): ExcelColumnInfo;
|
|
54
|
+
withParent(parent: string): ExcelColumnInfo;
|
|
55
|
+
withValueFormat(value_format: (ExcelCellFormat)[]): ExcelColumnInfo;
|
|
56
|
+
withDataGroup(group: string): ExcelColumnInfo;
|
|
57
|
+
withDataGroupParent(group_parent: string): ExcelColumnInfo;
|
|
48
58
|
key: string;
|
|
49
|
-
/**
|
|
50
|
-
*/
|
|
51
59
|
name: string;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
width: number;
|
|
61
|
+
note?: string;
|
|
62
|
+
data_type: string;
|
|
63
|
+
allowed_values: (string)[];
|
|
64
|
+
parent: string;
|
|
65
|
+
format?: ExcelCellFormat;
|
|
66
|
+
value_format: (ExcelCellFormat)[];
|
|
67
|
+
data_group: string;
|
|
68
|
+
data_group_parent: string;
|
|
55
69
|
}
|
|
56
|
-
/**
|
|
57
|
-
*/
|
|
58
70
|
export class ExcelData {
|
|
59
71
|
free(): void;
|
|
60
|
-
/**
|
|
61
|
-
* @param {(ExcelRowData)[]} rows
|
|
62
|
-
*/
|
|
63
72
|
constructor(rows: (ExcelRowData)[]);
|
|
64
|
-
/**
|
|
65
|
-
*/
|
|
66
73
|
rows: (ExcelRowData)[];
|
|
67
74
|
}
|
|
68
|
-
/**
|
|
69
|
-
*/
|
|
70
75
|
export class ExcelInfo {
|
|
71
76
|
free(): void;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
*/
|
|
80
|
-
columns: (ExcelColumnInfo)[];
|
|
81
|
-
/**
|
|
82
|
-
*/
|
|
77
|
+
constructor(name: string, sheet_name: string, columns: (ExcelColumnInfo)[], author: string, create_time: string);
|
|
78
|
+
withTitle(title: string): ExcelInfo;
|
|
79
|
+
withDefaultRowHeight(row_height: number): ExcelInfo;
|
|
80
|
+
withTitleHeight(title_height: number): ExcelInfo;
|
|
81
|
+
withTitleFormat(title_format: ExcelCellFormat): ExcelInfo;
|
|
82
|
+
withOffset(dx: number, dy: number): ExcelInfo;
|
|
83
|
+
withIsHeaderFreeze(is_header_freeze: boolean): ExcelInfo;
|
|
83
84
|
name: string;
|
|
84
|
-
/**
|
|
85
|
-
*/
|
|
86
85
|
sheet_name: string;
|
|
86
|
+
columns: (ExcelColumnInfo)[];
|
|
87
|
+
author: string;
|
|
88
|
+
create_time: string;
|
|
89
|
+
title?: string;
|
|
90
|
+
title_format?: ExcelCellFormat;
|
|
91
|
+
title_height?: number;
|
|
92
|
+
default_row_height?: number;
|
|
93
|
+
dx: number;
|
|
94
|
+
dy: number;
|
|
95
|
+
is_header_freeze: boolean;
|
|
87
96
|
}
|
|
88
|
-
/**
|
|
89
|
-
*/
|
|
90
97
|
export class ExcelRowData {
|
|
91
98
|
free(): void;
|
|
92
|
-
/**
|
|
93
|
-
* @param {(ExcelColumnData)[]} columns
|
|
94
|
-
*/
|
|
95
99
|
constructor(columns: (ExcelColumnData)[]);
|
|
96
|
-
/**
|
|
97
|
-
*/
|
|
98
100
|
columns: (ExcelColumnData)[];
|
|
99
101
|
}
|
|
100
102
|
|
|
@@ -102,43 +104,138 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
102
104
|
|
|
103
105
|
export interface InitOutput {
|
|
104
106
|
readonly memory: WebAssembly.Memory;
|
|
107
|
+
readonly createTemplate: (a: number, b: number) => void;
|
|
108
|
+
readonly importData: (a: number, b: number, c: number, d: number) => void;
|
|
109
|
+
readonly exportData: (a: number, b: number, c: number) => void;
|
|
105
110
|
readonly __wbg_exceldata_free: (a: number, b: number) => void;
|
|
106
111
|
readonly __wbg_get_exceldata_rows: (a: number, b: number) => void;
|
|
107
112
|
readonly __wbg_set_exceldata_rows: (a: number, b: number, c: number) => void;
|
|
108
113
|
readonly exceldata_new: (a: number, b: number) => number;
|
|
109
|
-
readonly __wbg_excelrowdata_free: (a: number, b: number) => void;
|
|
110
|
-
readonly __wbg_get_excelrowdata_columns: (a: number, b: number) => void;
|
|
111
|
-
readonly __wbg_set_excelrowdata_columns: (a: number, b: number, c: number) => void;
|
|
112
|
-
readonly excelrowdata_new: (a: number, b: number) => number;
|
|
113
|
-
readonly __wbg_excelcolumndata_free: (a: number, b: number) => void;
|
|
114
|
-
readonly __wbg_get_excelcolumndata_key: (a: number, b: number) => void;
|
|
115
|
-
readonly __wbg_set_excelcolumndata_key: (a: number, b: number, c: number) => void;
|
|
116
|
-
readonly __wbg_get_excelcolumndata_value: (a: number, b: number) => void;
|
|
117
|
-
readonly __wbg_set_excelcolumndata_value: (a: number, b: number, c: number) => void;
|
|
118
|
-
readonly excelcolumndata_new: (a: number, b: number, c: number, d: number) => number;
|
|
119
114
|
readonly __wbg_excelinfo_free: (a: number, b: number) => void;
|
|
120
|
-
readonly __wbg_get_excelinfo_name: (a: number, b: number) => void;
|
|
121
|
-
readonly __wbg_set_excelinfo_name: (a: number, b: number, c: number) => void;
|
|
122
|
-
readonly __wbg_get_excelinfo_sheet_name: (a: number, b: number) => void;
|
|
123
|
-
readonly __wbg_set_excelinfo_sheet_name: (a: number, b: number, c: number) => void;
|
|
124
115
|
readonly __wbg_get_excelinfo_columns: (a: number, b: number) => void;
|
|
125
116
|
readonly __wbg_set_excelinfo_columns: (a: number, b: number, c: number) => void;
|
|
126
|
-
readonly
|
|
117
|
+
readonly __wbg_get_excelinfo_create_time: (a: number, b: number) => void;
|
|
118
|
+
readonly __wbg_set_excelinfo_create_time: (a: number, b: number, c: number) => void;
|
|
119
|
+
readonly __wbg_get_excelinfo_title: (a: number, b: number) => void;
|
|
120
|
+
readonly __wbg_set_excelinfo_title: (a: number, b: number, c: number) => void;
|
|
121
|
+
readonly __wbg_get_excelinfo_title_format: (a: number) => number;
|
|
122
|
+
readonly __wbg_set_excelinfo_title_format: (a: number, b: number) => void;
|
|
123
|
+
readonly __wbg_get_excelinfo_title_height: (a: number, b: number) => void;
|
|
124
|
+
readonly __wbg_set_excelinfo_title_height: (a: number, b: number, c: number) => void;
|
|
125
|
+
readonly __wbg_get_excelinfo_default_row_height: (a: number, b: number) => void;
|
|
126
|
+
readonly __wbg_set_excelinfo_default_row_height: (a: number, b: number, c: number) => void;
|
|
127
|
+
readonly __wbg_get_excelinfo_dx: (a: number) => number;
|
|
128
|
+
readonly __wbg_set_excelinfo_dx: (a: number, b: number) => void;
|
|
129
|
+
readonly __wbg_get_excelinfo_dy: (a: number) => number;
|
|
130
|
+
readonly __wbg_set_excelinfo_dy: (a: number, b: number) => void;
|
|
131
|
+
readonly __wbg_get_excelinfo_is_header_freeze: (a: number) => number;
|
|
132
|
+
readonly __wbg_set_excelinfo_is_header_freeze: (a: number, b: number) => void;
|
|
133
|
+
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;
|
|
134
|
+
readonly excelinfo_withTitle: (a: number, b: number, c: number) => number;
|
|
135
|
+
readonly excelinfo_withDefaultRowHeight: (a: number, b: number) => number;
|
|
136
|
+
readonly excelinfo_withTitleHeight: (a: number, b: number) => number;
|
|
137
|
+
readonly excelinfo_withTitleFormat: (a: number, b: number) => number;
|
|
138
|
+
readonly excelinfo_withOffset: (a: number, b: number, c: number) => number;
|
|
139
|
+
readonly excelinfo_withIsHeaderFreeze: (a: number, b: number) => number;
|
|
140
|
+
readonly __wbg_excelcellformat_free: (a: number, b: number) => void;
|
|
141
|
+
readonly __wbg_get_excelcellformat_rule: (a: number, b: number) => void;
|
|
142
|
+
readonly __wbg_set_excelcellformat_rule: (a: number, b: number, c: number) => void;
|
|
143
|
+
readonly __wbg_get_excelcellformat_value: (a: number, b: number) => void;
|
|
144
|
+
readonly __wbg_set_excelcellformat_value: (a: number, b: number, c: number) => void;
|
|
145
|
+
readonly __wbg_get_excelcellformat_color: (a: number, b: number) => void;
|
|
146
|
+
readonly __wbg_set_excelcellformat_color: (a: number, b: number, c: number) => void;
|
|
147
|
+
readonly __wbg_get_excelcellformat_bold: (a: number) => number;
|
|
148
|
+
readonly __wbg_set_excelcellformat_bold: (a: number, b: number) => void;
|
|
149
|
+
readonly __wbg_get_excelcellformat_italic: (a: number) => number;
|
|
150
|
+
readonly __wbg_set_excelcellformat_italic: (a: number, b: number) => void;
|
|
151
|
+
readonly __wbg_get_excelcellformat_underline: (a: number) => number;
|
|
152
|
+
readonly __wbg_set_excelcellformat_underline: (a: number, b: number) => void;
|
|
153
|
+
readonly __wbg_get_excelcellformat_strikethrough: (a: number) => number;
|
|
154
|
+
readonly __wbg_set_excelcellformat_strikethrough: (a: number, b: number) => void;
|
|
155
|
+
readonly __wbg_get_excelcellformat_font_size: (a: number) => number;
|
|
156
|
+
readonly __wbg_set_excelcellformat_font_size: (a: number, b: number) => void;
|
|
157
|
+
readonly __wbg_get_excelcellformat_background_color: (a: number, b: number) => void;
|
|
158
|
+
readonly __wbg_set_excelcellformat_background_color: (a: number, b: number, c: number) => void;
|
|
159
|
+
readonly __wbg_get_excelcellformat_align: (a: number, b: number) => void;
|
|
160
|
+
readonly __wbg_set_excelcellformat_align: (a: number, b: number, c: number) => void;
|
|
161
|
+
readonly __wbg_get_excelcellformat_align_vertical: (a: number, b: number) => void;
|
|
162
|
+
readonly __wbg_set_excelcellformat_align_vertical: (a: number, b: number, c: number) => void;
|
|
163
|
+
readonly __wbg_get_excelcellformat_date_format: (a: number, b: number) => void;
|
|
164
|
+
readonly __wbg_set_excelcellformat_date_format: (a: number, b: number, c: number) => void;
|
|
165
|
+
readonly __wbg_get_excelcellformat_border_color: (a: number, b: number) => void;
|
|
166
|
+
readonly __wbg_set_excelcellformat_border_color: (a: number, b: number, c: number) => void;
|
|
167
|
+
readonly excelcellformat_new: () => number;
|
|
168
|
+
readonly excelcellformat_withRule: (a: number, b: number, c: number) => number;
|
|
169
|
+
readonly excelcellformat_withValue: (a: number, b: number, c: number) => number;
|
|
170
|
+
readonly excelcellformat_withColor: (a: number, b: number, c: number) => number;
|
|
171
|
+
readonly excelcellformat_withBold: (a: number, b: number) => number;
|
|
172
|
+
readonly excelcellformat_withItalic: (a: number, b: number) => number;
|
|
173
|
+
readonly excelcellformat_withUnderline: (a: number, b: number) => number;
|
|
174
|
+
readonly excelcellformat_withStrikethrough: (a: number, b: number) => number;
|
|
175
|
+
readonly excelcellformat_withFontSize: (a: number, b: number) => number;
|
|
176
|
+
readonly excelcellformat_withBackgroundColor: (a: number, b: number, c: number) => number;
|
|
177
|
+
readonly excelcellformat_withAlign: (a: number, b: number, c: number) => number;
|
|
178
|
+
readonly excelcellformat_withAlignVertical: (a: number, b: number, c: number) => number;
|
|
179
|
+
readonly excelcellformat_withDateFormat: (a: number, b: number, c: number) => number;
|
|
180
|
+
readonly excelcellformat_withBorderColor: (a: number, b: number, c: number) => number;
|
|
127
181
|
readonly __wbg_excelcolumninfo_free: (a: number, b: number) => void;
|
|
128
182
|
readonly __wbg_get_excelcolumninfo_key: (a: number, b: number) => void;
|
|
129
183
|
readonly __wbg_set_excelcolumninfo_key: (a: number, b: number, c: number) => void;
|
|
130
184
|
readonly __wbg_get_excelcolumninfo_name: (a: number, b: number) => void;
|
|
131
185
|
readonly __wbg_set_excelcolumninfo_name: (a: number, b: number, c: number) => void;
|
|
132
|
-
readonly __wbg_get_excelcolumninfo_width: (a: number
|
|
133
|
-
readonly __wbg_set_excelcolumninfo_width: (a: number, b: number
|
|
134
|
-
readonly
|
|
135
|
-
readonly
|
|
136
|
-
readonly
|
|
137
|
-
readonly
|
|
138
|
-
readonly
|
|
139
|
-
readonly
|
|
186
|
+
readonly __wbg_get_excelcolumninfo_width: (a: number) => number;
|
|
187
|
+
readonly __wbg_set_excelcolumninfo_width: (a: number, b: number) => void;
|
|
188
|
+
readonly __wbg_get_excelcolumninfo_note: (a: number, b: number) => void;
|
|
189
|
+
readonly __wbg_set_excelcolumninfo_note: (a: number, b: number, c: number) => void;
|
|
190
|
+
readonly __wbg_get_excelcolumninfo_data_type: (a: number, b: number) => void;
|
|
191
|
+
readonly __wbg_set_excelcolumninfo_data_type: (a: number, b: number, c: number) => void;
|
|
192
|
+
readonly __wbg_get_excelcolumninfo_allowed_values: (a: number, b: number) => void;
|
|
193
|
+
readonly __wbg_set_excelcolumninfo_allowed_values: (a: number, b: number, c: number) => void;
|
|
194
|
+
readonly __wbg_get_excelcolumninfo_parent: (a: number, b: number) => void;
|
|
195
|
+
readonly __wbg_set_excelcolumninfo_parent: (a: number, b: number, c: number) => void;
|
|
196
|
+
readonly __wbg_get_excelcolumninfo_format: (a: number) => number;
|
|
197
|
+
readonly __wbg_set_excelcolumninfo_format: (a: number, b: number) => void;
|
|
198
|
+
readonly __wbg_get_excelcolumninfo_value_format: (a: number, b: number) => void;
|
|
199
|
+
readonly __wbg_set_excelcolumninfo_value_format: (a: number, b: number, c: number) => void;
|
|
200
|
+
readonly __wbg_get_excelcolumninfo_data_group: (a: number, b: number) => void;
|
|
201
|
+
readonly __wbg_set_excelcolumninfo_data_group: (a: number, b: number, c: number) => void;
|
|
202
|
+
readonly __wbg_get_excelcolumninfo_data_group_parent: (a: number, b: number) => void;
|
|
203
|
+
readonly __wbg_set_excelcolumninfo_data_group_parent: (a: number, b: number, c: number) => void;
|
|
204
|
+
readonly excelcolumninfo_bind_new: (a: number, b: number, c: number, d: number) => number;
|
|
205
|
+
readonly excelcolumninfo_withNote: (a: number, b: number, c: number) => number;
|
|
206
|
+
readonly excelcolumninfo_withDataType: (a: number, b: number, c: number) => number;
|
|
207
|
+
readonly excelcolumninfo_withAllowedValues: (a: number, b: number, c: number) => number;
|
|
208
|
+
readonly excelcolumninfo_withWidth: (a: number, b: number) => number;
|
|
209
|
+
readonly excelcolumninfo_withFormat: (a: number, b: number) => number;
|
|
210
|
+
readonly excelcolumninfo_withParent: (a: number, b: number, c: number) => number;
|
|
211
|
+
readonly excelcolumninfo_withValueFormat: (a: number, b: number, c: number) => number;
|
|
212
|
+
readonly excelcolumninfo_withDataGroup: (a: number, b: number, c: number) => number;
|
|
213
|
+
readonly excelcolumninfo_withDataGroupParent: (a: number, b: number, c: number) => number;
|
|
214
|
+
readonly __wbg_get_excelinfo_name: (a: number, b: number) => void;
|
|
215
|
+
readonly __wbg_get_excelinfo_sheet_name: (a: number, b: number) => void;
|
|
216
|
+
readonly __wbg_get_excelinfo_author: (a: number, b: number) => void;
|
|
217
|
+
readonly __wbg_set_excelinfo_name: (a: number, b: number, c: number) => void;
|
|
218
|
+
readonly __wbg_set_excelinfo_sheet_name: (a: number, b: number, c: number) => void;
|
|
219
|
+
readonly __wbg_set_excelinfo_author: (a: number, b: number, c: number) => void;
|
|
220
|
+
readonly __wbg_excelcolumndata_free: (a: number, b: number) => void;
|
|
221
|
+
readonly __wbg_get_excelcolumndata_key: (a: number, b: number) => void;
|
|
222
|
+
readonly __wbg_set_excelcolumndata_key: (a: number, b: number, c: number) => void;
|
|
223
|
+
readonly __wbg_get_excelcolumndata_value: (a: number, b: number) => void;
|
|
224
|
+
readonly __wbg_set_excelcolumndata_value: (a: number, b: number, c: number) => void;
|
|
225
|
+
readonly __wbg_get_excelcolumndata_children: (a: number, b: number) => void;
|
|
226
|
+
readonly __wbg_set_excelcolumndata_children: (a: number, b: number, c: number) => void;
|
|
227
|
+
readonly excelcolumndata_bind_new: (a: number, b: number, c: number, d: number) => number;
|
|
228
|
+
readonly excelcolumndata_newGroup: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
229
|
+
readonly excelcolumndata_newRootGroup: (a: number, b: number, c: number, d: number) => number;
|
|
230
|
+
readonly excelcolumndata_withChildren: (a: number, b: number, c: number) => number;
|
|
231
|
+
readonly __wbg_excelrowdata_free: (a: number, b: number) => void;
|
|
232
|
+
readonly __wbg_get_excelrowdata_columns: (a: number, b: number) => void;
|
|
233
|
+
readonly __wbg_set_excelrowdata_columns: (a: number, b: number, c: number) => void;
|
|
234
|
+
readonly excelrowdata_new: (a: number, b: number) => number;
|
|
140
235
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
141
236
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
237
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
238
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
142
239
|
}
|
|
143
240
|
|
|
144
241
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|