docx-wasm 0.4.13 → 0.4.14-beta2
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/dist/node/border.d.ts +1 -1
- package/dist/node/break.d.ts +1 -1
- package/dist/node/builder.d.ts +1 -1
- package/dist/node/hyperlink.d.ts +1 -1
- package/dist/node/json/bindings/Bold.d.ts +1 -1
- package/dist/node/json/bindings/BoldCs.d.ts +1 -1
- package/dist/node/json/bindings/BorderType.d.ts +1 -1
- package/dist/node/json/bindings/BreakType.d.ts +1 -1
- package/dist/node/json/bindings/Caps.d.ts +1 -1
- package/dist/node/json/bindings/CharacterSpacing.d.ts +1 -1
- package/dist/node/json/bindings/Color.d.ts +1 -1
- package/dist/node/json/bindings/DeleteChild.d.ts +1 -1
- package/dist/node/json/bindings/DrawingPosition.d.ts +1 -1
- package/dist/node/json/bindings/DrawingPositionType.d.ts +1 -1
- package/dist/node/json/bindings/FieldCharType.d.ts +1 -1
- package/dist/node/json/bindings/Highlight.d.ts +1 -1
- package/dist/node/json/bindings/HyperlinkType.d.ts +1 -1
- package/dist/node/json/bindings/InsertChild.d.ts +1 -1
- package/dist/node/json/bindings/InstrText.d.ts +1 -1
- package/dist/node/json/bindings/Italic.d.ts +1 -1
- package/dist/node/json/bindings/ItalicCs.d.ts +1 -1
- package/dist/node/json/bindings/PicAlign.d.ts +1 -1
- package/dist/node/json/bindings/RelativeFromHType.d.ts +1 -1
- package/dist/node/json/bindings/RelativeFromVType.d.ts +1 -1
- package/dist/node/json/bindings/RunStyle.d.ts +1 -1
- package/dist/node/json/bindings/SpecVanish.d.ts +1 -1
- package/dist/node/json/bindings/Strike.d.ts +1 -1
- package/dist/node/json/bindings/StyleWithLevel.d.ts +1 -1
- package/dist/node/json/bindings/Sz.d.ts +1 -1
- package/dist/node/json/bindings/SzCs.d.ts +1 -1
- package/dist/node/json/bindings/TabLeaderType.d.ts +1 -1
- package/dist/node/json/bindings/TabLeaderType.js +0 -1
- package/dist/node/json/bindings/TabLeaderType.js.map +1 -1
- package/dist/node/json/bindings/TabValueType.d.ts +1 -1
- package/dist/node/json/bindings/TabValueType.js +0 -1
- package/dist/node/json/bindings/TabValueType.js.map +1 -1
- package/dist/node/json/bindings/TableCellBorderPosition.d.ts +1 -1
- package/dist/node/json/bindings/TextAlignmentType.d.ts +1 -1
- package/dist/node/json/bindings/Underline.d.ts +1 -1
- package/dist/node/json/bindings/Vanish.d.ts +1 -1
- package/dist/node/json/bindings/VertAlign.d.ts +1 -1
- package/dist/node/json/border.d.ts +1 -1
- package/dist/node/json/comment.d.ts +4 -4
- package/dist/node/json/document.d.ts +2 -2
- package/dist/node/json/drawing.d.ts +8 -8
- package/dist/node/json/footer.d.ts +2 -2
- package/dist/node/json/header.d.ts +2 -2
- package/dist/node/json/indent.d.ts +1 -1
- package/dist/node/json/index.d.ts +2 -2
- package/dist/node/json/line_spacing.d.ts +1 -1
- package/dist/node/json/numbering.d.ts +5 -5
- package/dist/node/json/paragraph.d.ts +15 -15
- package/dist/node/json/run.d.ts +13 -13
- package/dist/node/json/section-property.d.ts +4 -4
- package/dist/node/json/shading.d.ts +1 -1
- package/dist/node/json/shape.d.ts +1 -1
- package/dist/node/json/structured-data-tag.d.ts +2 -2
- package/dist/node/json/styles.d.ts +2 -2
- package/dist/node/json/table.d.ts +11 -11
- package/dist/node/json/textbox-content.d.ts +2 -2
- package/dist/node/json/web-settings.d.ts +2 -2
- package/dist/node/level.d.ts +1 -1
- package/dist/node/page-num.d.ts +1 -1
- package/dist/node/paragraph-property.d.ts +6 -4
- package/dist/node/paragraph-property.js +60 -0
- package/dist/node/paragraph-property.js.map +1 -1
- package/dist/node/paragraph.d.ts +8 -1
- package/dist/node/paragraph.js +4 -0
- package/dist/node/paragraph.js.map +1 -1
- package/dist/node/pkg/docx_wasm.d.ts +288 -274
- package/dist/node/pkg/docx_wasm.js +217 -196
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +173 -171
- package/dist/node/run.d.ts +7 -7
- package/dist/node/section-property.d.ts +4 -4
- package/dist/node/settings.d.ts +2 -2
- package/dist/node/style.d.ts +1 -1
- package/dist/node/table-cell-border.d.ts +1 -1
- package/dist/node/table-cell-borders.d.ts +1 -1
- package/dist/node/table-cell.d.ts +4 -4
- package/dist/node/table-row.d.ts +1 -1
- package/dist/node/table.d.ts +3 -3
- package/dist/web/border.d.ts +1 -1
- package/dist/web/break.d.ts +1 -1
- package/dist/web/builder.d.ts +1 -1
- package/dist/web/hyperlink.d.ts +1 -1
- package/dist/web/json/bindings/Bold.d.ts +1 -1
- package/dist/web/json/bindings/BoldCs.d.ts +1 -1
- package/dist/web/json/bindings/BorderType.d.ts +1 -1
- package/dist/web/json/bindings/BreakType.d.ts +1 -1
- package/dist/web/json/bindings/Caps.d.ts +1 -1
- package/dist/web/json/bindings/CharacterSpacing.d.ts +1 -1
- package/dist/web/json/bindings/Color.d.ts +1 -1
- package/dist/web/json/bindings/DeleteChild.d.ts +1 -1
- package/dist/web/json/bindings/DrawingPosition.d.ts +1 -1
- package/dist/web/json/bindings/DrawingPositionType.d.ts +1 -1
- package/dist/web/json/bindings/FieldCharType.d.ts +1 -1
- package/dist/web/json/bindings/Highlight.d.ts +1 -1
- package/dist/web/json/bindings/HyperlinkType.d.ts +1 -1
- package/dist/web/json/bindings/InsertChild.d.ts +1 -1
- package/dist/web/json/bindings/InstrText.d.ts +1 -1
- package/dist/web/json/bindings/Italic.d.ts +1 -1
- package/dist/web/json/bindings/ItalicCs.d.ts +1 -1
- package/dist/web/json/bindings/PicAlign.d.ts +1 -1
- package/dist/web/json/bindings/RelativeFromHType.d.ts +1 -1
- package/dist/web/json/bindings/RelativeFromVType.d.ts +1 -1
- package/dist/web/json/bindings/RunStyle.d.ts +1 -1
- package/dist/web/json/bindings/SpecVanish.d.ts +1 -1
- package/dist/web/json/bindings/Strike.d.ts +1 -1
- package/dist/web/json/bindings/StyleWithLevel.d.ts +1 -1
- package/dist/web/json/bindings/Sz.d.ts +1 -1
- package/dist/web/json/bindings/SzCs.d.ts +1 -1
- package/dist/web/json/bindings/TabLeaderType.d.ts +1 -1
- package/dist/web/json/bindings/TabLeaderType.js +0 -1
- package/dist/web/json/bindings/TabLeaderType.js.map +1 -1
- package/dist/web/json/bindings/TabValueType.d.ts +1 -1
- package/dist/web/json/bindings/TabValueType.js +0 -1
- package/dist/web/json/bindings/TabValueType.js.map +1 -1
- package/dist/web/json/bindings/TableCellBorderPosition.d.ts +1 -1
- package/dist/web/json/bindings/TextAlignmentType.d.ts +1 -1
- package/dist/web/json/bindings/Underline.d.ts +1 -1
- package/dist/web/json/bindings/Vanish.d.ts +1 -1
- package/dist/web/json/bindings/VertAlign.d.ts +1 -1
- package/dist/web/json/border.d.ts +1 -1
- package/dist/web/json/comment.d.ts +4 -4
- package/dist/web/json/document.d.ts +2 -2
- package/dist/web/json/drawing.d.ts +8 -8
- package/dist/web/json/footer.d.ts +2 -2
- package/dist/web/json/header.d.ts +2 -2
- package/dist/web/json/indent.d.ts +1 -1
- package/dist/web/json/index.d.ts +2 -2
- package/dist/web/json/line_spacing.d.ts +1 -1
- package/dist/web/json/numbering.d.ts +5 -5
- package/dist/web/json/paragraph.d.ts +15 -15
- package/dist/web/json/run.d.ts +13 -13
- package/dist/web/json/section-property.d.ts +4 -4
- package/dist/web/json/shading.d.ts +1 -1
- package/dist/web/json/shape.d.ts +1 -1
- package/dist/web/json/structured-data-tag.d.ts +2 -2
- package/dist/web/json/styles.d.ts +2 -2
- package/dist/web/json/table.d.ts +11 -11
- package/dist/web/json/textbox-content.d.ts +2 -2
- package/dist/web/json/web-settings.d.ts +2 -2
- package/dist/web/level.d.ts +1 -1
- package/dist/web/page-num.d.ts +1 -1
- package/dist/web/paragraph-property.d.ts +6 -4
- package/dist/web/paragraph-property.js +60 -0
- package/dist/web/paragraph-property.js.map +1 -1
- package/dist/web/paragraph.d.ts +8 -1
- package/dist/web/paragraph.js +4 -0
- package/dist/web/paragraph.js.map +1 -1
- package/dist/web/pkg/docx_wasm.d.ts +288 -274
- package/dist/web/pkg/docx_wasm_bg.js +215 -194
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +173 -171
- package/dist/web/run.d.ts +7 -7
- package/dist/web/section-property.d.ts +4 -4
- package/dist/web/settings.d.ts +2 -2
- package/dist/web/style.d.ts +1 -1
- package/dist/web/table-cell-border.d.ts +1 -1
- package/dist/web/table-cell-borders.d.ts +1 -1
- package/dist/web/table-cell.d.ts +4 -4
- package/dist/web/table-row.d.ts +1 -1
- package/dist/web/table.d.ts +3 -3
- package/js/json/bindings/Tab.ts +0 -1
- package/js/json/bindings/TabLeaderType.ts +1 -2
- package/js/json/bindings/TabValueType.ts +0 -1
- package/js/paragraph-property.ts +63 -0
- package/js/paragraph.ts +13 -0
- package/package.json +1 -1
|
@@ -47,25 +47,12 @@ function takeObject(idx) {
|
|
|
47
47
|
return ret;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
* @
|
|
51
|
-
|
|
52
|
-
export function createHeader() {
|
|
53
|
-
var ret = wasm.createHeader();
|
|
54
|
-
return Header.__wrap(ret);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function _assertClass(instance, klass) {
|
|
58
|
-
if (!(instance instanceof klass)) {
|
|
59
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
60
|
-
}
|
|
61
|
-
return instance.ptr;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @returns {ParagraphPropertyChange}
|
|
50
|
+
* @param {number} id
|
|
51
|
+
* @returns {Comment}
|
|
65
52
|
*/
|
|
66
|
-
export function
|
|
67
|
-
var ret = wasm.
|
|
68
|
-
return
|
|
53
|
+
export function createComment(id) {
|
|
54
|
+
var ret = wasm.createComment(id);
|
|
55
|
+
return Comment.__wrap(ret);
|
|
69
56
|
}
|
|
70
57
|
|
|
71
58
|
let WASM_VECTOR_LEN = 0;
|
|
@@ -125,23 +112,49 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
125
112
|
return ptr;
|
|
126
113
|
}
|
|
127
114
|
|
|
128
|
-
function
|
|
129
|
-
|
|
115
|
+
function _assertClass(instance, klass) {
|
|
116
|
+
if (!(instance instanceof klass)) {
|
|
117
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
118
|
+
}
|
|
119
|
+
return instance.ptr;
|
|
130
120
|
}
|
|
131
121
|
/**
|
|
132
|
-
* @
|
|
122
|
+
* @param {string} v
|
|
123
|
+
* @param {number} t
|
|
124
|
+
* @returns {Hyperlink}
|
|
133
125
|
*/
|
|
134
|
-
export function
|
|
135
|
-
var
|
|
136
|
-
|
|
126
|
+
export function createHyperlink(v, t) {
|
|
127
|
+
var ptr0 = passStringToWasm0(v, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
128
|
+
var len0 = WASM_VECTOR_LEN;
|
|
129
|
+
var ret = wasm.createHyperlink(ptr0, len0, t);
|
|
130
|
+
return Hyperlink.__wrap(ret);
|
|
137
131
|
}
|
|
138
132
|
|
|
139
133
|
/**
|
|
140
|
-
* @returns {
|
|
134
|
+
* @returns {PageNum}
|
|
141
135
|
*/
|
|
142
|
-
export function
|
|
143
|
-
var ret = wasm.
|
|
144
|
-
return
|
|
136
|
+
export function createPageNum() {
|
|
137
|
+
var ret = wasm.createPageNum();
|
|
138
|
+
return PageNum.__wrap(ret);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @returns {TableOfContents}
|
|
143
|
+
*/
|
|
144
|
+
export function createTableOfContents() {
|
|
145
|
+
var ret = wasm.createTableOfContents();
|
|
146
|
+
return TableOfContents.__wrap(ret);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @param {string} s
|
|
151
|
+
* @returns {TableOfContents}
|
|
152
|
+
*/
|
|
153
|
+
export function createTableOfContentsWithInstrText(s) {
|
|
154
|
+
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
155
|
+
var len0 = WASM_VECTOR_LEN;
|
|
156
|
+
var ret = wasm.createTableOfContentsWithInstrText(ptr0, len0);
|
|
157
|
+
return TableOfContents.__wrap(ret);
|
|
145
158
|
}
|
|
146
159
|
|
|
147
160
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -170,46 +183,62 @@ export function createTableCell() {
|
|
|
170
183
|
}
|
|
171
184
|
|
|
172
185
|
/**
|
|
173
|
-
* @
|
|
174
|
-
* @returns {Delete}
|
|
186
|
+
* @returns {Footer}
|
|
175
187
|
*/
|
|
176
|
-
export function
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
run.ptr = 0;
|
|
180
|
-
var ret = wasm.createDelete(ptr0);
|
|
181
|
-
return Delete.__wrap(ret);
|
|
188
|
+
export function createFooter() {
|
|
189
|
+
var ret = wasm.createFooter();
|
|
190
|
+
return Footer.__wrap(ret);
|
|
182
191
|
}
|
|
183
192
|
|
|
184
193
|
/**
|
|
185
|
-
* @returns {
|
|
194
|
+
* @returns {ParagraphPropertyChange}
|
|
186
195
|
*/
|
|
187
|
-
export function
|
|
188
|
-
var ret = wasm.
|
|
189
|
-
return
|
|
196
|
+
export function createParagraphPropertyChange() {
|
|
197
|
+
var ret = wasm.createParagraphPropertyChange();
|
|
198
|
+
return ParagraphPropertyChange.__wrap(ret);
|
|
190
199
|
}
|
|
191
200
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
201
|
+
function isLikeNone(x) {
|
|
202
|
+
return x === undefined || x === null;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @returns {Paragraph}
|
|
206
|
+
*/
|
|
207
|
+
export function createParagraph() {
|
|
208
|
+
var ret = wasm.createParagraph();
|
|
209
|
+
return Paragraph.__wrap(ret);
|
|
198
210
|
}
|
|
199
211
|
|
|
200
|
-
|
|
201
|
-
|
|
212
|
+
/**
|
|
213
|
+
* @param {string} id
|
|
214
|
+
* @param {string} reference_id
|
|
215
|
+
* @param {string} version
|
|
216
|
+
* @param {string} store
|
|
217
|
+
* @param {string} store_type
|
|
218
|
+
* @returns {WebExtension}
|
|
219
|
+
*/
|
|
220
|
+
export function createWebExtension(id, reference_id, version, store, store_type) {
|
|
221
|
+
var ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
222
|
+
var len0 = WASM_VECTOR_LEN;
|
|
223
|
+
var ptr1 = passStringToWasm0(reference_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
224
|
+
var len1 = WASM_VECTOR_LEN;
|
|
225
|
+
var ptr2 = passStringToWasm0(version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
226
|
+
var len2 = WASM_VECTOR_LEN;
|
|
227
|
+
var ptr3 = passStringToWasm0(store, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
228
|
+
var len3 = WASM_VECTOR_LEN;
|
|
229
|
+
var ptr4 = passStringToWasm0(store_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
230
|
+
var len4 = WASM_VECTOR_LEN;
|
|
231
|
+
var ret = wasm.createWebExtension(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
232
|
+
return WebExtension.__wrap(ret);
|
|
202
233
|
}
|
|
234
|
+
|
|
203
235
|
/**
|
|
204
|
-
* @param {
|
|
205
|
-
* @returns {
|
|
236
|
+
* @param {number} id
|
|
237
|
+
* @returns {AbstractNumbering}
|
|
206
238
|
*/
|
|
207
|
-
export function
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
run.ptr = 0;
|
|
211
|
-
var ret = wasm.createInsert(ptr0);
|
|
212
|
-
return Insert.__wrap(ret);
|
|
239
|
+
export function createAbstractNumbering(id) {
|
|
240
|
+
var ret = wasm.createAbstractNumbering(id);
|
|
241
|
+
return AbstractNumbering.__wrap(ret);
|
|
213
242
|
}
|
|
214
243
|
|
|
215
244
|
/**
|
|
@@ -235,20 +264,39 @@ export function createStyle(style_id, style_type) {
|
|
|
235
264
|
}
|
|
236
265
|
|
|
237
266
|
/**
|
|
238
|
-
* @
|
|
267
|
+
* @param {number} position
|
|
268
|
+
* @returns {TableCellBorder}
|
|
239
269
|
*/
|
|
240
|
-
export function
|
|
241
|
-
var ret = wasm.
|
|
242
|
-
return
|
|
270
|
+
export function createTableCellBorder(position) {
|
|
271
|
+
var ret = wasm.createTableCellBorder(position);
|
|
272
|
+
return TableCellBorder.__wrap(ret);
|
|
243
273
|
}
|
|
244
274
|
|
|
275
|
+
let cachegetInt32Memory0 = null;
|
|
276
|
+
function getInt32Memory0() {
|
|
277
|
+
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
|
|
278
|
+
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
279
|
+
}
|
|
280
|
+
return cachegetInt32Memory0;
|
|
281
|
+
}
|
|
245
282
|
/**
|
|
246
|
-
* @
|
|
247
|
-
* @returns {AbstractNumbering}
|
|
283
|
+
* @returns {LineSpacing}
|
|
248
284
|
*/
|
|
249
|
-
export function
|
|
250
|
-
var ret = wasm.
|
|
251
|
-
return
|
|
285
|
+
export function createLineSpacing() {
|
|
286
|
+
var ret = wasm.createLineSpacing();
|
|
287
|
+
return LineSpacing.__wrap(ret);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @param {Run} run
|
|
292
|
+
* @returns {Insert}
|
|
293
|
+
*/
|
|
294
|
+
export function createInsert(run) {
|
|
295
|
+
_assertClass(run, Run);
|
|
296
|
+
var ptr0 = run.ptr;
|
|
297
|
+
run.ptr = 0;
|
|
298
|
+
var ret = wasm.createInsert(ptr0);
|
|
299
|
+
return Insert.__wrap(ret);
|
|
252
300
|
}
|
|
253
301
|
|
|
254
302
|
/**
|
|
@@ -271,89 +319,34 @@ export function readDocx(buf) {
|
|
|
271
319
|
}
|
|
272
320
|
|
|
273
321
|
/**
|
|
274
|
-
* @
|
|
275
|
-
|
|
276
|
-
export function createFooter() {
|
|
277
|
-
var ret = wasm.createFooter();
|
|
278
|
-
return Footer.__wrap(ret);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* @returns {PageMargin}
|
|
283
|
-
*/
|
|
284
|
-
export function createPageMargin() {
|
|
285
|
-
var ret = wasm.createPageMargin();
|
|
286
|
-
return PageMargin.__wrap(ret);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* @returns {PageNum}
|
|
291
|
-
*/
|
|
292
|
-
export function createPageNum() {
|
|
293
|
-
var ret = wasm.createPageNum();
|
|
294
|
-
return PageNum.__wrap(ret);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* @param {number | undefined} start
|
|
299
|
-
* @param {string | undefined} chap_style
|
|
300
|
-
* @returns {PageNumType}
|
|
301
|
-
*/
|
|
302
|
-
export function createPageNumType(start, chap_style) {
|
|
303
|
-
var ptr0 = isLikeNone(chap_style) ? 0 : passStringToWasm0(chap_style, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
304
|
-
var len0 = WASM_VECTOR_LEN;
|
|
305
|
-
var ret = wasm.createPageNumType(!isLikeNone(start), isLikeNone(start) ? 0 : start, ptr0, len0);
|
|
306
|
-
return PageNumType.__wrap(ret);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* @returns {TableOfContents}
|
|
322
|
+
* @param {Run} run
|
|
323
|
+
* @returns {Delete}
|
|
311
324
|
*/
|
|
312
|
-
export function
|
|
313
|
-
|
|
314
|
-
|
|
325
|
+
export function createDelete(run) {
|
|
326
|
+
_assertClass(run, Run);
|
|
327
|
+
var ptr0 = run.ptr;
|
|
328
|
+
run.ptr = 0;
|
|
329
|
+
var ret = wasm.createDelete(ptr0);
|
|
330
|
+
return Delete.__wrap(ret);
|
|
315
331
|
}
|
|
316
332
|
|
|
317
333
|
/**
|
|
318
|
-
* @
|
|
319
|
-
* @returns {TableOfContents}
|
|
334
|
+
* @returns {Docx}
|
|
320
335
|
*/
|
|
321
|
-
export function
|
|
322
|
-
var
|
|
323
|
-
|
|
324
|
-
var ret = wasm.createTableOfContentsWithInstrText(ptr0, len0);
|
|
325
|
-
return TableOfContents.__wrap(ret);
|
|
336
|
+
export function createDocx() {
|
|
337
|
+
var ret = wasm.createDocx();
|
|
338
|
+
return Docx.__wrap(ret);
|
|
326
339
|
}
|
|
327
340
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
* @param {string} reference_id
|
|
331
|
-
* @param {string} version
|
|
332
|
-
* @param {string} store
|
|
333
|
-
* @param {string} store_type
|
|
334
|
-
* @returns {WebExtension}
|
|
335
|
-
*/
|
|
336
|
-
export function createWebExtension(id, reference_id, version, store, store_type) {
|
|
337
|
-
var ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
338
|
-
var len0 = WASM_VECTOR_LEN;
|
|
339
|
-
var ptr1 = passStringToWasm0(reference_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
340
|
-
var len1 = WASM_VECTOR_LEN;
|
|
341
|
-
var ptr2 = passStringToWasm0(version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
342
|
-
var len2 = WASM_VECTOR_LEN;
|
|
343
|
-
var ptr3 = passStringToWasm0(store, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
344
|
-
var len3 = WASM_VECTOR_LEN;
|
|
345
|
-
var ptr4 = passStringToWasm0(store_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
346
|
-
var len4 = WASM_VECTOR_LEN;
|
|
347
|
-
var ret = wasm.createWebExtension(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
348
|
-
return WebExtension.__wrap(ret);
|
|
341
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
342
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
349
343
|
}
|
|
350
|
-
|
|
351
344
|
/**
|
|
352
|
-
* @returns {
|
|
345
|
+
* @returns {Header}
|
|
353
346
|
*/
|
|
354
|
-
export function
|
|
355
|
-
var ret = wasm.
|
|
356
|
-
return
|
|
347
|
+
export function createHeader() {
|
|
348
|
+
var ret = wasm.createHeader();
|
|
349
|
+
return Header.__wrap(ret);
|
|
357
350
|
}
|
|
358
351
|
|
|
359
352
|
/**
|
|
@@ -365,12 +358,11 @@ export function createRun() {
|
|
|
365
358
|
}
|
|
366
359
|
|
|
367
360
|
/**
|
|
368
|
-
* @
|
|
369
|
-
* @returns {TableCellBorder}
|
|
361
|
+
* @returns {RunFonts}
|
|
370
362
|
*/
|
|
371
|
-
export function
|
|
372
|
-
var ret = wasm.
|
|
373
|
-
return
|
|
363
|
+
export function createRunFonts() {
|
|
364
|
+
var ret = wasm.createRunFonts();
|
|
365
|
+
return RunFonts.__wrap(ret);
|
|
374
366
|
}
|
|
375
367
|
|
|
376
368
|
/**
|
|
@@ -389,27 +381,6 @@ export function createTableRow() {
|
|
|
389
381
|
return TableRow.__wrap(ret);
|
|
390
382
|
}
|
|
391
383
|
|
|
392
|
-
/**
|
|
393
|
-
* @param {number} id
|
|
394
|
-
* @returns {Comment}
|
|
395
|
-
*/
|
|
396
|
-
export function createComment(id) {
|
|
397
|
-
var ret = wasm.createComment(id);
|
|
398
|
-
return Comment.__wrap(ret);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* @param {string} v
|
|
403
|
-
* @param {number} t
|
|
404
|
-
* @returns {Hyperlink}
|
|
405
|
-
*/
|
|
406
|
-
export function createHyperlink(v, t) {
|
|
407
|
-
var ptr0 = passStringToWasm0(v, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
408
|
-
var len0 = WASM_VECTOR_LEN;
|
|
409
|
-
var ret = wasm.createHyperlink(ptr0, len0, t);
|
|
410
|
-
return Hyperlink.__wrap(ret);
|
|
411
|
-
}
|
|
412
|
-
|
|
413
384
|
/**
|
|
414
385
|
* @param {number} id
|
|
415
386
|
* @param {number} start
|
|
@@ -438,6 +409,26 @@ export function createLevelOverride(level) {
|
|
|
438
409
|
return LevelOverride.__wrap(ret);
|
|
439
410
|
}
|
|
440
411
|
|
|
412
|
+
/**
|
|
413
|
+
* @returns {PageMargin}
|
|
414
|
+
*/
|
|
415
|
+
export function createPageMargin() {
|
|
416
|
+
var ret = wasm.createPageMargin();
|
|
417
|
+
return PageMargin.__wrap(ret);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @param {number | undefined} start
|
|
422
|
+
* @param {string | undefined} chap_style
|
|
423
|
+
* @returns {PageNumType}
|
|
424
|
+
*/
|
|
425
|
+
export function createPageNumType(start, chap_style) {
|
|
426
|
+
var ptr0 = isLikeNone(chap_style) ? 0 : passStringToWasm0(chap_style, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
427
|
+
var len0 = WASM_VECTOR_LEN;
|
|
428
|
+
var ret = wasm.createPageNumType(!isLikeNone(start), isLikeNone(start) ? 0 : start, ptr0, len0);
|
|
429
|
+
return PageNumType.__wrap(ret);
|
|
430
|
+
}
|
|
431
|
+
|
|
441
432
|
/**
|
|
442
433
|
* @returns {Table}
|
|
443
434
|
*/
|
|
@@ -461,20 +452,22 @@ function passArray32ToWasm0(arg, malloc) {
|
|
|
461
452
|
return ptr;
|
|
462
453
|
}
|
|
463
454
|
/**
|
|
455
|
+
* @returns {TableOfContentsItem}
|
|
464
456
|
*/
|
|
465
|
-
export
|
|
457
|
+
export function createTableOfContentsItem() {
|
|
458
|
+
var ret = wasm.createTableOfContentsItem();
|
|
459
|
+
return TableOfContentsItem.__wrap(ret);
|
|
460
|
+
}
|
|
461
|
+
|
|
466
462
|
/**
|
|
467
463
|
*/
|
|
468
464
|
export const SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
|
|
469
465
|
/**
|
|
470
466
|
*/
|
|
471
|
-
export const
|
|
472
|
-
/**
|
|
473
|
-
*/
|
|
474
|
-
export const PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
467
|
+
export const StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
|
|
475
468
|
/**
|
|
476
469
|
*/
|
|
477
|
-
export const
|
|
470
|
+
export const BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
|
|
478
471
|
/**
|
|
479
472
|
*/
|
|
480
473
|
export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
@@ -483,52 +476,64 @@ export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"
|
|
|
483
476
|
export const LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
|
|
484
477
|
/**
|
|
485
478
|
*/
|
|
486
|
-
export const
|
|
479
|
+
export const TextAlignmentType = Object.freeze({ Auto:0,"0":"Auto",Baseline:1,"1":"Baseline",Bottom:2,"2":"Bottom",Center:3,"3":"Center",Top:4,"4":"Top", });
|
|
487
480
|
/**
|
|
488
481
|
*/
|
|
489
|
-
export const
|
|
482
|
+
export const PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
490
483
|
/**
|
|
491
484
|
*/
|
|
492
|
-
export const
|
|
485
|
+
export const TableBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV", });
|
|
493
486
|
/**
|
|
494
487
|
*/
|
|
495
|
-
export const
|
|
488
|
+
export const TableCellBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
|
|
496
489
|
/**
|
|
497
490
|
*/
|
|
498
|
-
export const
|
|
491
|
+
export const ParagraphBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",Between:4,"4":"Between",Bar:5,"5":"Bar", });
|
|
499
492
|
/**
|
|
500
493
|
*/
|
|
501
|
-
export const
|
|
494
|
+
export const LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
495
|
+
/**
|
|
496
|
+
*/
|
|
497
|
+
export const SectionType = Object.freeze({ NextPage:0,"0":"NextPage",NextColumn:1,"1":"NextColumn",Continuous:2,"2":"Continuous",EvenPage:3,"3":"EvenPage",OddPage:4,"4":"OddPage", });
|
|
498
|
+
/**
|
|
499
|
+
*/
|
|
500
|
+
export const TabValueType = Object.freeze({ Bar:0,"0":"Bar",Center:1,"1":"Center",Clear:2,"2":"Clear",Decimal:3,"3":"Decimal",End:4,"4":"End",Right:5,"5":"Right",Num:6,"6":"Num",Start:7,"7":"Start",Left:8,"8":"Left", });
|
|
502
501
|
/**
|
|
503
502
|
*/
|
|
504
503
|
export const VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
|
|
505
504
|
/**
|
|
506
505
|
*/
|
|
507
|
-
export const
|
|
506
|
+
export const WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
|
|
508
507
|
/**
|
|
509
508
|
*/
|
|
510
|
-
export const
|
|
509
|
+
export const CharacterSpacingValues = Object.freeze({ DoNotCompress:0,"0":"DoNotCompress",CompressPunctuation:1,"1":"CompressPunctuation",CompressPunctuationAndJapaneseKana:2,"2":"CompressPunctuationAndJapaneseKana",Unsupported:3,"3":"Unsupported", });
|
|
511
510
|
/**
|
|
512
511
|
*/
|
|
513
|
-
export const
|
|
512
|
+
export const DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
|
|
514
513
|
/**
|
|
515
514
|
*/
|
|
516
|
-
export const
|
|
515
|
+
export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
517
516
|
/**
|
|
518
517
|
*/
|
|
519
|
-
export const
|
|
518
|
+
export const FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
|
|
520
519
|
/**
|
|
521
520
|
*/
|
|
522
|
-
export const
|
|
521
|
+
export const TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy",Hyphen:2,"2":"Hyphen",MiddleDot:3,"3":"MiddleDot",None:4,"4":"None",Underscore:5,"5":"Underscore", });
|
|
523
522
|
/**
|
|
524
523
|
*/
|
|
525
|
-
export const
|
|
524
|
+
export const TextDirectionType = Object.freeze({ Lr:0,"0":"Lr",LrV:1,"1":"LrV",Rl:2,"2":"Rl",RlV:3,"3":"RlV",Tb:4,"4":"Tb",TbV:5,"5":"TbV",TbRlV:6,"6":"TbRlV",TbRl:7,"7":"TbRl",BtLr:8,"8":"BtLr",LrTbV:9,"9":"LrTbV", });
|
|
525
|
+
/**
|
|
526
|
+
*/
|
|
527
|
+
export const AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",Start:3,"3":"Start",End:4,"4":"End",Left:5,"5":"Left",Right:6,"6":"Right",Justified:7,"7":"Justified",Unsupported:8,"8":"Unsupported", });
|
|
526
528
|
/**
|
|
527
529
|
*/
|
|
528
530
|
export const HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
|
|
529
531
|
/**
|
|
530
532
|
*/
|
|
531
|
-
export const
|
|
533
|
+
export const VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
534
|
+
/**
|
|
535
|
+
*/
|
|
536
|
+
export const ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
532
537
|
/**
|
|
533
538
|
*/
|
|
534
539
|
export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
|
|
@@ -537,16 +542,16 @@ export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1"
|
|
|
537
542
|
export const VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
538
543
|
/**
|
|
539
544
|
*/
|
|
540
|
-
export const
|
|
545
|
+
export const BorderType = Object.freeze({ Nil:0,"0":"Nil",None:1,"1":"None",Single:2,"2":"Single",Thick:3,"3":"Thick",Double:4,"4":"Double",Dotted:5,"5":"Dotted",Dashed:6,"6":"Dashed",DotDash:7,"7":"DotDash",DotDotDash:8,"8":"DotDotDash",Triple:9,"9":"Triple",ThinThickSmallGap:10,"10":"ThinThickSmallGap",ThickThinSmallGap:11,"11":"ThickThinSmallGap",ThinThickThinSmallGap:12,"12":"ThinThickThinSmallGap",ThinThickMediumGap:13,"13":"ThinThickMediumGap",ThickThinMediumGap:14,"14":"ThickThinMediumGap",ThinThickThinMediumGap:15,"15":"ThinThickThinMediumGap",ThinThickLargeGap:16,"16":"ThinThickLargeGap",ThickThinLargeGap:17,"17":"ThickThinLargeGap",ThinThickThinLargeGap:18,"18":"ThinThickThinLargeGap",Wave:19,"19":"Wave",DoubleWave:20,"20":"DoubleWave",DashSmallGap:21,"21":"DashSmallGap",DashDotStroked:22,"22":"DashDotStroked",ThreeDEmboss:23,"23":"ThreeDEmboss",ThreeDEngrave:24,"24":"ThreeDEngrave",Outset:25,"25":"Outset",Inset:26,"26":"Inset",Apples:27,"27":"Apples",ArchedScallops:28,"28":"ArchedScallops",BabyPacifier:29,"29":"BabyPacifier",BabyRattle:30,"30":"BabyRattle", });
|
|
541
546
|
/**
|
|
542
547
|
*/
|
|
543
|
-
export const
|
|
548
|
+
export const DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:1,"1":"Inline", });
|
|
544
549
|
/**
|
|
545
550
|
*/
|
|
546
|
-
export const
|
|
551
|
+
export const PicAlign = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Center:2,"2":"Center",Bottom:3,"3":"Bottom",Top:4,"4":"Top", });
|
|
547
552
|
/**
|
|
548
553
|
*/
|
|
549
|
-
export const
|
|
554
|
+
export const HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
550
555
|
/**
|
|
551
556
|
*/
|
|
552
557
|
export const RelativeFromHType = Object.freeze({
|
|
@@ -599,12 +604,6 @@ RightMargin:7,"7":"RightMargin", });
|
|
|
599
604
|
export const RelativeFromVType = Object.freeze({ BottomMargin:0,"0":"BottomMargin",InsideMargin:1,"1":"InsideMargin",Line:2,"2":"Line",Margin:3,"3":"Margin",OutsizeMargin:4,"4":"OutsizeMargin",Page:5,"5":"Page",Paragraph:6,"6":"Paragraph",TopMargin:7,"7":"TopMargin", });
|
|
600
605
|
/**
|
|
601
606
|
*/
|
|
602
|
-
export const TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy",Hyphen:2,"2":"Hyphen",MiddleDot:3,"3":"MiddleDot",None:4,"4":"None",Underscore:5,"5":"Underscore", });
|
|
603
|
-
/**
|
|
604
|
-
*/
|
|
605
|
-
export const WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
|
|
606
|
-
/**
|
|
607
|
-
*/
|
|
608
607
|
export class AbstractNumbering {
|
|
609
608
|
|
|
610
609
|
static __wrap(ptr) {
|
|
@@ -2300,6 +2299,17 @@ export class Paragraph {
|
|
|
2300
2299
|
return Paragraph.__wrap(ret);
|
|
2301
2300
|
}
|
|
2302
2301
|
/**
|
|
2302
|
+
* @param {number | undefined} val
|
|
2303
|
+
* @param {number | undefined} leader
|
|
2304
|
+
* @param {number | undefined} pos
|
|
2305
|
+
* @returns {Paragraph}
|
|
2306
|
+
*/
|
|
2307
|
+
add_tab(val, leader, pos) {
|
|
2308
|
+
const ptr = this.__destroy_into_raw();
|
|
2309
|
+
var ret = wasm.paragraph_add_tab(ptr, isLikeNone(val) ? 9 : val, isLikeNone(leader) ? 6 : leader, !isLikeNone(pos), isLikeNone(pos) ? 0 : pos);
|
|
2310
|
+
return Paragraph.__wrap(ret);
|
|
2311
|
+
}
|
|
2312
|
+
/**
|
|
2303
2313
|
* @param {ParagraphPropertyChange} p
|
|
2304
2314
|
* @returns {Paragraph}
|
|
2305
2315
|
*/
|
|
@@ -2992,6 +3002,17 @@ export class Style {
|
|
|
2992
3002
|
return Style.__wrap(ret);
|
|
2993
3003
|
}
|
|
2994
3004
|
/**
|
|
3005
|
+
* @param {number | undefined} val
|
|
3006
|
+
* @param {number | undefined} leader
|
|
3007
|
+
* @param {number | undefined} pos
|
|
3008
|
+
* @returns {Style}
|
|
3009
|
+
*/
|
|
3010
|
+
add_tab(val, leader, pos) {
|
|
3011
|
+
const ptr = this.__destroy_into_raw();
|
|
3012
|
+
var ret = wasm.style_add_tab(ptr, isLikeNone(val) ? 9 : val, isLikeNone(leader) ? 6 : leader, !isLikeNone(pos), isLikeNone(pos) ? 0 : pos);
|
|
3013
|
+
return Style.__wrap(ret);
|
|
3014
|
+
}
|
|
3015
|
+
/**
|
|
2995
3016
|
* @param {number} left
|
|
2996
3017
|
* @param {number | undefined} special_indent_kind
|
|
2997
3018
|
* @param {number | undefined} special_indent_size
|
|
Binary file
|