@rhwp/core 0.7.12 → 0.7.14
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 +2 -2
- package/rhwp.d.ts +150 -14
- package/rhwp.js +765 -134
- package/rhwp_bg.wasm +0 -0
- package/rhwp_bg.wasm.d.ts +27 -5
package/rhwp.js
CHANGED
|
@@ -140,6 +140,32 @@ export class HwpDocument {
|
|
|
140
140
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* 미주 모양을 적용한다.
|
|
145
|
+
* @param {number} section_idx
|
|
146
|
+
* @param {string} props_json
|
|
147
|
+
* @returns {string}
|
|
148
|
+
*/
|
|
149
|
+
applyEndnoteShape(section_idx, props_json) {
|
|
150
|
+
let deferred3_0;
|
|
151
|
+
let deferred3_1;
|
|
152
|
+
try {
|
|
153
|
+
const ptr0 = passStringToWasm0(props_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
154
|
+
const len0 = WASM_VECTOR_LEN;
|
|
155
|
+
const ret = wasm.hwpdocument_applyEndnoteShape(this.__wbg_ptr, section_idx, ptr0, len0);
|
|
156
|
+
var ptr2 = ret[0];
|
|
157
|
+
var len2 = ret[1];
|
|
158
|
+
if (ret[3]) {
|
|
159
|
+
ptr2 = 0; len2 = 0;
|
|
160
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
161
|
+
}
|
|
162
|
+
deferred3_0 = ptr2;
|
|
163
|
+
deferred3_1 = len2;
|
|
164
|
+
return getStringFromWasm0(ptr2, len2);
|
|
165
|
+
} finally {
|
|
166
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
143
169
|
/**
|
|
144
170
|
* 머리말/꼬리말 마당(템플릿)을 적용한다.
|
|
145
171
|
* @param {number} section_idx
|
|
@@ -222,6 +248,35 @@ export class HwpDocument {
|
|
|
222
248
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
223
249
|
}
|
|
224
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* 각주/미주 내부 문단 속성 적용
|
|
253
|
+
* @param {number} section_idx
|
|
254
|
+
* @param {number} para_idx
|
|
255
|
+
* @param {number} control_idx
|
|
256
|
+
* @param {number} fn_para_idx
|
|
257
|
+
* @param {string} props_json
|
|
258
|
+
* @returns {string}
|
|
259
|
+
*/
|
|
260
|
+
applyParaFormatInFootnote(section_idx, para_idx, control_idx, fn_para_idx, props_json) {
|
|
261
|
+
let deferred3_0;
|
|
262
|
+
let deferred3_1;
|
|
263
|
+
try {
|
|
264
|
+
const ptr0 = passStringToWasm0(props_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
265
|
+
const len0 = WASM_VECTOR_LEN;
|
|
266
|
+
const ret = wasm.hwpdocument_applyParaFormatInFootnote(this.__wbg_ptr, section_idx, para_idx, control_idx, fn_para_idx, ptr0, len0);
|
|
267
|
+
var ptr2 = ret[0];
|
|
268
|
+
var len2 = ret[1];
|
|
269
|
+
if (ret[3]) {
|
|
270
|
+
ptr2 = 0; len2 = 0;
|
|
271
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
272
|
+
}
|
|
273
|
+
deferred3_0 = ptr2;
|
|
274
|
+
deferred3_1 = len2;
|
|
275
|
+
return getStringFromWasm0(ptr2, len2);
|
|
276
|
+
} finally {
|
|
277
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
225
280
|
/**
|
|
226
281
|
* 머리말/꼬리말 문단에 문단 서식을 적용한다.
|
|
227
282
|
* @param {number} section_idx
|
|
@@ -373,27 +428,33 @@ export class HwpDocument {
|
|
|
373
428
|
}
|
|
374
429
|
/**
|
|
375
430
|
* 컨트롤 객체(표, 이미지, 도형)를 내부 클립보드에 복사한다.
|
|
431
|
+
*
|
|
432
|
+
* [Task #1161] `cell_path_json` 이 빈 문자열/`"[]"` 면 본문, 그 외에는 셀/글상자
|
|
433
|
+
* 경로(`[{"controlIndex","cellIndex","cellParaIndex"}, ...]`)의 컨트롤을 복사한다.
|
|
376
434
|
* @param {number} section_idx
|
|
377
435
|
* @param {number} para_idx
|
|
436
|
+
* @param {string} cell_path_json
|
|
378
437
|
* @param {number} control_idx
|
|
379
438
|
* @returns {string}
|
|
380
439
|
*/
|
|
381
|
-
copyControl(section_idx, para_idx, control_idx) {
|
|
382
|
-
let
|
|
383
|
-
let
|
|
440
|
+
copyControl(section_idx, para_idx, cell_path_json, control_idx) {
|
|
441
|
+
let deferred3_0;
|
|
442
|
+
let deferred3_1;
|
|
384
443
|
try {
|
|
385
|
-
const
|
|
386
|
-
|
|
387
|
-
|
|
444
|
+
const ptr0 = passStringToWasm0(cell_path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
445
|
+
const len0 = WASM_VECTOR_LEN;
|
|
446
|
+
const ret = wasm.hwpdocument_copyControl(this.__wbg_ptr, section_idx, para_idx, ptr0, len0, control_idx);
|
|
447
|
+
var ptr2 = ret[0];
|
|
448
|
+
var len2 = ret[1];
|
|
388
449
|
if (ret[3]) {
|
|
389
|
-
|
|
450
|
+
ptr2 = 0; len2 = 0;
|
|
390
451
|
throw takeFromExternrefTable0(ret[2]);
|
|
391
452
|
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
return getStringFromWasm0(
|
|
453
|
+
deferred3_0 = ptr2;
|
|
454
|
+
deferred3_1 = len2;
|
|
455
|
+
return getStringFromWasm0(ptr2, len2);
|
|
395
456
|
} finally {
|
|
396
|
-
wasm.__wbindgen_free(
|
|
457
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
397
458
|
}
|
|
398
459
|
}
|
|
399
460
|
/**
|
|
@@ -654,6 +715,34 @@ export class HwpDocument {
|
|
|
654
715
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
655
716
|
}
|
|
656
717
|
}
|
|
718
|
+
/**
|
|
719
|
+
* [Task #1171 / PR #1254] 표 셀/글상자 내부 Picture 삭제 (by_path).
|
|
720
|
+
* @param {number} section_idx
|
|
721
|
+
* @param {number} parent_para_idx
|
|
722
|
+
* @param {string} cell_path_json
|
|
723
|
+
* @param {number} inner_control_idx
|
|
724
|
+
* @returns {string}
|
|
725
|
+
*/
|
|
726
|
+
deleteCellPictureControlByPath(section_idx, parent_para_idx, cell_path_json, inner_control_idx) {
|
|
727
|
+
let deferred3_0;
|
|
728
|
+
let deferred3_1;
|
|
729
|
+
try {
|
|
730
|
+
const ptr0 = passStringToWasm0(cell_path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
731
|
+
const len0 = WASM_VECTOR_LEN;
|
|
732
|
+
const ret = wasm.hwpdocument_deleteCellPictureControlByPath(this.__wbg_ptr, section_idx, parent_para_idx, ptr0, len0, inner_control_idx);
|
|
733
|
+
var ptr2 = ret[0];
|
|
734
|
+
var len2 = ret[1];
|
|
735
|
+
if (ret[3]) {
|
|
736
|
+
ptr2 = 0; len2 = 0;
|
|
737
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
738
|
+
}
|
|
739
|
+
deferred3_0 = ptr2;
|
|
740
|
+
deferred3_1 = len2;
|
|
741
|
+
return getStringFromWasm0(ptr2, len2);
|
|
742
|
+
} finally {
|
|
743
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
657
746
|
/**
|
|
658
747
|
* 수식 컨트롤을 문단에서 삭제한다.
|
|
659
748
|
*
|
|
@@ -1200,25 +1289,28 @@ export class HwpDocument {
|
|
|
1200
1289
|
* 컨트롤 객체를 HTML 문자열로 변환한다.
|
|
1201
1290
|
* @param {number} section_idx
|
|
1202
1291
|
* @param {number} para_idx
|
|
1292
|
+
* @param {string} cell_path_json
|
|
1203
1293
|
* @param {number} control_idx
|
|
1204
1294
|
* @returns {string}
|
|
1205
1295
|
*/
|
|
1206
|
-
exportControlHtml(section_idx, para_idx, control_idx) {
|
|
1207
|
-
let
|
|
1208
|
-
let
|
|
1296
|
+
exportControlHtml(section_idx, para_idx, cell_path_json, control_idx) {
|
|
1297
|
+
let deferred3_0;
|
|
1298
|
+
let deferred3_1;
|
|
1209
1299
|
try {
|
|
1210
|
-
const
|
|
1211
|
-
|
|
1212
|
-
|
|
1300
|
+
const ptr0 = passStringToWasm0(cell_path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1301
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1302
|
+
const ret = wasm.hwpdocument_exportControlHtml(this.__wbg_ptr, section_idx, para_idx, ptr0, len0, control_idx);
|
|
1303
|
+
var ptr2 = ret[0];
|
|
1304
|
+
var len2 = ret[1];
|
|
1213
1305
|
if (ret[3]) {
|
|
1214
|
-
|
|
1306
|
+
ptr2 = 0; len2 = 0;
|
|
1215
1307
|
throw takeFromExternrefTable0(ret[2]);
|
|
1216
1308
|
}
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
return getStringFromWasm0(
|
|
1309
|
+
deferred3_0 = ptr2;
|
|
1310
|
+
deferred3_1 = len2;
|
|
1311
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1220
1312
|
} finally {
|
|
1221
|
-
wasm.__wbindgen_free(
|
|
1313
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1222
1314
|
}
|
|
1223
1315
|
}
|
|
1224
1316
|
/**
|
|
@@ -1471,9 +1563,11 @@ export class HwpDocument {
|
|
|
1471
1563
|
}
|
|
1472
1564
|
}
|
|
1473
1565
|
/**
|
|
1474
|
-
* CanvasKit direct replay
|
|
1566
|
+
* CanvasKit direct replay 정책 진단을 JSON 문자열로 반환한다.
|
|
1475
1567
|
*
|
|
1476
1568
|
* `mode` 는 `"default"` 또는 `"compat"` 를 받는다. 빈 문자열은 `"default"` 로 처리한다.
|
|
1569
|
+
* 현재 두 mode 모두 hidden Canvas2D overlay 없이 direct replay required 정책을 따른다.
|
|
1570
|
+
* `compat` 는 API/URL 호환성과 이후 보수적인 direct replay 튜닝을 위해 남겨 둔 선택지다.
|
|
1477
1571
|
* @param {number} page_num
|
|
1478
1572
|
* @param {string} mode
|
|
1479
1573
|
* @returns {string}
|
|
@@ -1697,6 +1791,34 @@ export class HwpDocument {
|
|
|
1697
1791
|
}
|
|
1698
1792
|
return ret[0] >>> 0;
|
|
1699
1793
|
}
|
|
1794
|
+
/**
|
|
1795
|
+
* [Task #1151 v4] 표 셀 내 Picture 속성 조회 (by_path). Shape 패턴 정합.
|
|
1796
|
+
* @param {number} section_idx
|
|
1797
|
+
* @param {number} parent_para_idx
|
|
1798
|
+
* @param {string} cell_path_json
|
|
1799
|
+
* @param {number} inner_control_idx
|
|
1800
|
+
* @returns {string}
|
|
1801
|
+
*/
|
|
1802
|
+
getCellPicturePropertiesByPath(section_idx, parent_para_idx, cell_path_json, inner_control_idx) {
|
|
1803
|
+
let deferred3_0;
|
|
1804
|
+
let deferred3_1;
|
|
1805
|
+
try {
|
|
1806
|
+
const ptr0 = passStringToWasm0(cell_path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1807
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1808
|
+
const ret = wasm.hwpdocument_getCellPicturePropertiesByPath(this.__wbg_ptr, section_idx, parent_para_idx, ptr0, len0, inner_control_idx);
|
|
1809
|
+
var ptr2 = ret[0];
|
|
1810
|
+
var len2 = ret[1];
|
|
1811
|
+
if (ret[3]) {
|
|
1812
|
+
ptr2 = 0; len2 = 0;
|
|
1813
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1814
|
+
}
|
|
1815
|
+
deferred3_0 = ptr2;
|
|
1816
|
+
deferred3_1 = len2;
|
|
1817
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1818
|
+
} finally {
|
|
1819
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1700
1822
|
/**
|
|
1701
1823
|
* 셀 속성을 조회한다.
|
|
1702
1824
|
*
|
|
@@ -1725,6 +1847,34 @@ export class HwpDocument {
|
|
|
1725
1847
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1726
1848
|
}
|
|
1727
1849
|
}
|
|
1850
|
+
/**
|
|
1851
|
+
* [Task #1138] 표 셀 내 Shape(글상자/사각형/도형) 속성 조회 (by_path).
|
|
1852
|
+
* @param {number} section_idx
|
|
1853
|
+
* @param {number} parent_para_idx
|
|
1854
|
+
* @param {string} cell_path_json
|
|
1855
|
+
* @param {number} inner_control_idx
|
|
1856
|
+
* @returns {string}
|
|
1857
|
+
*/
|
|
1858
|
+
getCellShapePropertiesByPath(section_idx, parent_para_idx, cell_path_json, inner_control_idx) {
|
|
1859
|
+
let deferred3_0;
|
|
1860
|
+
let deferred3_1;
|
|
1861
|
+
try {
|
|
1862
|
+
const ptr0 = passStringToWasm0(cell_path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1863
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1864
|
+
const ret = wasm.hwpdocument_getCellShapePropertiesByPath(this.__wbg_ptr, section_idx, parent_para_idx, ptr0, len0, inner_control_idx);
|
|
1865
|
+
var ptr2 = ret[0];
|
|
1866
|
+
var len2 = ret[1];
|
|
1867
|
+
if (ret[3]) {
|
|
1868
|
+
ptr2 = 0; len2 = 0;
|
|
1869
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1870
|
+
}
|
|
1871
|
+
deferred3_0 = ptr2;
|
|
1872
|
+
deferred3_1 = len2;
|
|
1873
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1874
|
+
} finally {
|
|
1875
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1728
1878
|
/**
|
|
1729
1879
|
* 셀 내부 문단의 스타일을 조회한다.
|
|
1730
1880
|
* @param {number} sec_idx
|
|
@@ -1850,41 +2000,47 @@ export class HwpDocument {
|
|
|
1850
2000
|
* 컨트롤의 이미지 바이너리 데이터를 반환한다 (Uint8Array).
|
|
1851
2001
|
* @param {number} section_idx
|
|
1852
2002
|
* @param {number} para_idx
|
|
2003
|
+
* @param {string} cell_path_json
|
|
1853
2004
|
* @param {number} control_idx
|
|
1854
2005
|
* @returns {Uint8Array}
|
|
1855
2006
|
*/
|
|
1856
|
-
getControlImageData(section_idx, para_idx, control_idx) {
|
|
1857
|
-
const
|
|
2007
|
+
getControlImageData(section_idx, para_idx, cell_path_json, control_idx) {
|
|
2008
|
+
const ptr0 = passStringToWasm0(cell_path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2009
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2010
|
+
const ret = wasm.hwpdocument_getControlImageData(this.__wbg_ptr, section_idx, para_idx, ptr0, len0, control_idx);
|
|
1858
2011
|
if (ret[3]) {
|
|
1859
2012
|
throw takeFromExternrefTable0(ret[2]);
|
|
1860
2013
|
}
|
|
1861
|
-
var
|
|
2014
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1862
2015
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1863
|
-
return
|
|
2016
|
+
return v2;
|
|
1864
2017
|
}
|
|
1865
2018
|
/**
|
|
1866
2019
|
* 컨트롤의 이미지 MIME 타입을 반환한다.
|
|
1867
2020
|
* @param {number} section_idx
|
|
1868
2021
|
* @param {number} para_idx
|
|
2022
|
+
* @param {string} cell_path_json
|
|
1869
2023
|
* @param {number} control_idx
|
|
1870
2024
|
* @returns {string}
|
|
1871
2025
|
*/
|
|
1872
|
-
getControlImageMime(section_idx, para_idx, control_idx) {
|
|
1873
|
-
let
|
|
1874
|
-
let
|
|
2026
|
+
getControlImageMime(section_idx, para_idx, cell_path_json, control_idx) {
|
|
2027
|
+
let deferred3_0;
|
|
2028
|
+
let deferred3_1;
|
|
1875
2029
|
try {
|
|
1876
|
-
const
|
|
1877
|
-
|
|
1878
|
-
|
|
2030
|
+
const ptr0 = passStringToWasm0(cell_path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2031
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2032
|
+
const ret = wasm.hwpdocument_getControlImageMime(this.__wbg_ptr, section_idx, para_idx, ptr0, len0, control_idx);
|
|
2033
|
+
var ptr2 = ret[0];
|
|
2034
|
+
var len2 = ret[1];
|
|
1879
2035
|
if (ret[3]) {
|
|
1880
|
-
|
|
2036
|
+
ptr2 = 0; len2 = 0;
|
|
1881
2037
|
throw takeFromExternrefTable0(ret[2]);
|
|
1882
2038
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
return getStringFromWasm0(
|
|
2039
|
+
deferred3_0 = ptr2;
|
|
2040
|
+
deferred3_1 = len2;
|
|
2041
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1886
2042
|
} finally {
|
|
1887
|
-
wasm.__wbindgen_free(
|
|
2043
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1888
2044
|
}
|
|
1889
2045
|
}
|
|
1890
2046
|
/**
|
|
@@ -2050,6 +2206,33 @@ export class HwpDocument {
|
|
|
2050
2206
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2051
2207
|
}
|
|
2052
2208
|
}
|
|
2209
|
+
/**
|
|
2210
|
+
* 각주/미주 내부 커서 렉트 계산
|
|
2211
|
+
* @param {number} section_idx
|
|
2212
|
+
* @param {number} para_idx
|
|
2213
|
+
* @param {number} control_idx
|
|
2214
|
+
* @param {number} note_para_idx
|
|
2215
|
+
* @param {number} char_offset
|
|
2216
|
+
* @returns {string}
|
|
2217
|
+
*/
|
|
2218
|
+
getCursorRectInNote(section_idx, para_idx, control_idx, note_para_idx, char_offset) {
|
|
2219
|
+
let deferred2_0;
|
|
2220
|
+
let deferred2_1;
|
|
2221
|
+
try {
|
|
2222
|
+
const ret = wasm.hwpdocument_getCursorRectInNote(this.__wbg_ptr, section_idx, para_idx, control_idx, note_para_idx, char_offset);
|
|
2223
|
+
var ptr1 = ret[0];
|
|
2224
|
+
var len1 = ret[1];
|
|
2225
|
+
if (ret[3]) {
|
|
2226
|
+
ptr1 = 0; len1 = 0;
|
|
2227
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2228
|
+
}
|
|
2229
|
+
deferred2_0 = ptr1;
|
|
2230
|
+
deferred2_1 = len1;
|
|
2231
|
+
return getStringFromWasm0(ptr1, len1);
|
|
2232
|
+
} finally {
|
|
2233
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2053
2236
|
/**
|
|
2054
2237
|
* 문서 정보를 JSON 문자열로 반환한다.
|
|
2055
2238
|
* @returns {string}
|
|
@@ -2074,6 +2257,29 @@ export class HwpDocument {
|
|
|
2074
2257
|
const ret = wasm.hwpdocument_getDpi(this.__wbg_ptr);
|
|
2075
2258
|
return ret;
|
|
2076
2259
|
}
|
|
2260
|
+
/**
|
|
2261
|
+
* 미주 모양을 조회한다.
|
|
2262
|
+
* @param {number} section_idx
|
|
2263
|
+
* @returns {string}
|
|
2264
|
+
*/
|
|
2265
|
+
getEndnoteShape(section_idx) {
|
|
2266
|
+
let deferred2_0;
|
|
2267
|
+
let deferred2_1;
|
|
2268
|
+
try {
|
|
2269
|
+
const ret = wasm.hwpdocument_getEndnoteShape(this.__wbg_ptr, section_idx);
|
|
2270
|
+
var ptr1 = ret[0];
|
|
2271
|
+
var len1 = ret[1];
|
|
2272
|
+
if (ret[3]) {
|
|
2273
|
+
ptr1 = 0; len1 = 0;
|
|
2274
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2275
|
+
}
|
|
2276
|
+
deferred2_0 = ptr1;
|
|
2277
|
+
deferred2_1 = len1;
|
|
2278
|
+
return getStringFromWasm0(ptr1, len1);
|
|
2279
|
+
} finally {
|
|
2280
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2077
2283
|
/**
|
|
2078
2284
|
* 수식 컨트롤의 속성을 조회한다.
|
|
2079
2285
|
*
|
|
@@ -2141,6 +2347,24 @@ export class HwpDocument {
|
|
|
2141
2347
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2142
2348
|
}
|
|
2143
2349
|
}
|
|
2350
|
+
/**
|
|
2351
|
+
* [Task #1142] 외부 file path 그림 reference 목록을 구조화된 JSON 배열로 반환한다.
|
|
2352
|
+
*
|
|
2353
|
+
* 반환: JSON 배열 `[{ key, binDataId, originalPath, basename, extension, loaded }, ...]`
|
|
2354
|
+
* @returns {string}
|
|
2355
|
+
*/
|
|
2356
|
+
getExternalImageReferences() {
|
|
2357
|
+
let deferred1_0;
|
|
2358
|
+
let deferred1_1;
|
|
2359
|
+
try {
|
|
2360
|
+
const ret = wasm.hwpdocument_getExternalImageReferences(this.__wbg_ptr);
|
|
2361
|
+
deferred1_0 = ret[0];
|
|
2362
|
+
deferred1_1 = ret[1];
|
|
2363
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2364
|
+
} finally {
|
|
2365
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2144
2368
|
/**
|
|
2145
2369
|
* 현재 대체 폰트 경로를 반환한다.
|
|
2146
2370
|
* @returns {string}
|
|
@@ -2608,6 +2832,61 @@ export class HwpDocument {
|
|
|
2608
2832
|
}
|
|
2609
2833
|
return ret[0] >>> 0;
|
|
2610
2834
|
}
|
|
2835
|
+
/**
|
|
2836
|
+
* 각주/미주 편집 모드 진입 대상 조회
|
|
2837
|
+
* @param {number} section_idx
|
|
2838
|
+
* @param {number} para_idx
|
|
2839
|
+
* @param {number} control_idx
|
|
2840
|
+
* @returns {string}
|
|
2841
|
+
*/
|
|
2842
|
+
getNoteEditInfo(section_idx, para_idx, control_idx) {
|
|
2843
|
+
let deferred2_0;
|
|
2844
|
+
let deferred2_1;
|
|
2845
|
+
try {
|
|
2846
|
+
const ret = wasm.hwpdocument_getNoteEditInfo(this.__wbg_ptr, section_idx, para_idx, control_idx);
|
|
2847
|
+
var ptr1 = ret[0];
|
|
2848
|
+
var len1 = ret[1];
|
|
2849
|
+
if (ret[3]) {
|
|
2850
|
+
ptr1 = 0; len1 = 0;
|
|
2851
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2852
|
+
}
|
|
2853
|
+
deferred2_0 = ptr1;
|
|
2854
|
+
deferred2_1 = len1;
|
|
2855
|
+
return getStringFromWasm0(ptr1, len1);
|
|
2856
|
+
} finally {
|
|
2857
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
/**
|
|
2861
|
+
* 각주/미주 내부 수식 컨트롤의 속성을 조회한다.
|
|
2862
|
+
* @param {string} kind
|
|
2863
|
+
* @param {number} section_idx
|
|
2864
|
+
* @param {number} parent_para_idx
|
|
2865
|
+
* @param {number} note_control_idx
|
|
2866
|
+
* @param {number} note_para_idx
|
|
2867
|
+
* @param {number} inner_control_idx
|
|
2868
|
+
* @returns {string}
|
|
2869
|
+
*/
|
|
2870
|
+
getNoteEquationProperties(kind, section_idx, parent_para_idx, note_control_idx, note_para_idx, inner_control_idx) {
|
|
2871
|
+
let deferred3_0;
|
|
2872
|
+
let deferred3_1;
|
|
2873
|
+
try {
|
|
2874
|
+
const ptr0 = passStringToWasm0(kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2875
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2876
|
+
const ret = wasm.hwpdocument_getNoteEquationProperties(this.__wbg_ptr, ptr0, len0, section_idx, parent_para_idx, note_control_idx, note_para_idx, inner_control_idx);
|
|
2877
|
+
var ptr2 = ret[0];
|
|
2878
|
+
var len2 = ret[1];
|
|
2879
|
+
if (ret[3]) {
|
|
2880
|
+
ptr2 = 0; len2 = 0;
|
|
2881
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2882
|
+
}
|
|
2883
|
+
deferred3_0 = ptr2;
|
|
2884
|
+
deferred3_1 = len2;
|
|
2885
|
+
return getStringFromWasm0(ptr2, len2);
|
|
2886
|
+
} finally {
|
|
2887
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2611
2890
|
/**
|
|
2612
2891
|
* 문서에 정의된 문단 번호(Numbering) 목록을 조회한다.
|
|
2613
2892
|
*
|
|
@@ -2627,6 +2906,29 @@ export class HwpDocument {
|
|
|
2627
2906
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2628
2907
|
}
|
|
2629
2908
|
}
|
|
2909
|
+
/**
|
|
2910
|
+
* 구역의 쪽 테두리/배경 설정을 JSON으로 반환한다.
|
|
2911
|
+
* @param {number} section_idx
|
|
2912
|
+
* @returns {string}
|
|
2913
|
+
*/
|
|
2914
|
+
getPageBorderFill(section_idx) {
|
|
2915
|
+
let deferred2_0;
|
|
2916
|
+
let deferred2_1;
|
|
2917
|
+
try {
|
|
2918
|
+
const ret = wasm.hwpdocument_getPageBorderFill(this.__wbg_ptr, section_idx);
|
|
2919
|
+
var ptr1 = ret[0];
|
|
2920
|
+
var len1 = ret[1];
|
|
2921
|
+
if (ret[3]) {
|
|
2922
|
+
ptr1 = 0; len1 = 0;
|
|
2923
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2924
|
+
}
|
|
2925
|
+
deferred2_0 = ptr1;
|
|
2926
|
+
deferred2_1 = len1;
|
|
2927
|
+
return getStringFromWasm0(ptr1, len1);
|
|
2928
|
+
} finally {
|
|
2929
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2630
2932
|
/**
|
|
2631
2933
|
* 컨트롤(표, 이미지 등) 레이아웃 정보를 반환한다.
|
|
2632
2934
|
* @param {number} page_num
|
|
@@ -2874,7 +3176,33 @@ export class HwpDocument {
|
|
|
2874
3176
|
let deferred2_0;
|
|
2875
3177
|
let deferred2_1;
|
|
2876
3178
|
try {
|
|
2877
|
-
const ret = wasm.hwpdocument_getParaPropertiesAt(this.__wbg_ptr, sec_idx, para_idx);
|
|
3179
|
+
const ret = wasm.hwpdocument_getParaPropertiesAt(this.__wbg_ptr, sec_idx, para_idx);
|
|
3180
|
+
var ptr1 = ret[0];
|
|
3181
|
+
var len1 = ret[1];
|
|
3182
|
+
if (ret[3]) {
|
|
3183
|
+
ptr1 = 0; len1 = 0;
|
|
3184
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
3185
|
+
}
|
|
3186
|
+
deferred2_0 = ptr1;
|
|
3187
|
+
deferred2_1 = len1;
|
|
3188
|
+
return getStringFromWasm0(ptr1, len1);
|
|
3189
|
+
} finally {
|
|
3190
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3191
|
+
}
|
|
3192
|
+
}
|
|
3193
|
+
/**
|
|
3194
|
+
* 각주/미주 내부 문단 속성 조회
|
|
3195
|
+
* @param {number} section_idx
|
|
3196
|
+
* @param {number} para_idx
|
|
3197
|
+
* @param {number} control_idx
|
|
3198
|
+
* @param {number} fn_para_idx
|
|
3199
|
+
* @returns {string}
|
|
3200
|
+
*/
|
|
3201
|
+
getParaPropertiesInFootnote(section_idx, para_idx, control_idx, fn_para_idx) {
|
|
3202
|
+
let deferred2_0;
|
|
3203
|
+
let deferred2_1;
|
|
3204
|
+
try {
|
|
3205
|
+
const ret = wasm.hwpdocument_getParaPropertiesInFootnote(this.__wbg_ptr, section_idx, para_idx, control_idx, fn_para_idx);
|
|
2878
3206
|
var ptr1 = ret[0];
|
|
2879
3207
|
var len1 = ret[1];
|
|
2880
3208
|
if (ret[3]) {
|
|
@@ -3081,6 +3409,62 @@ export class HwpDocument {
|
|
|
3081
3409
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3082
3410
|
}
|
|
3083
3411
|
}
|
|
3412
|
+
/**
|
|
3413
|
+
* 각주/미주 내부 선택 영역의 줄별 사각형을 반환한다.
|
|
3414
|
+
* @param {number} page_num
|
|
3415
|
+
* @param {number} footnote_index
|
|
3416
|
+
* @param {number} start_fn_para_idx
|
|
3417
|
+
* @param {number} start_char_offset
|
|
3418
|
+
* @param {number} end_fn_para_idx
|
|
3419
|
+
* @param {number} end_char_offset
|
|
3420
|
+
* @returns {string}
|
|
3421
|
+
*/
|
|
3422
|
+
getSelectionRectsInFootnote(page_num, footnote_index, start_fn_para_idx, start_char_offset, end_fn_para_idx, end_char_offset) {
|
|
3423
|
+
let deferred2_0;
|
|
3424
|
+
let deferred2_1;
|
|
3425
|
+
try {
|
|
3426
|
+
const ret = wasm.hwpdocument_getSelectionRectsInFootnote(this.__wbg_ptr, page_num, footnote_index, start_fn_para_idx, start_char_offset, end_fn_para_idx, end_char_offset);
|
|
3427
|
+
var ptr1 = ret[0];
|
|
3428
|
+
var len1 = ret[1];
|
|
3429
|
+
if (ret[3]) {
|
|
3430
|
+
ptr1 = 0; len1 = 0;
|
|
3431
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
3432
|
+
}
|
|
3433
|
+
deferred2_0 = ptr1;
|
|
3434
|
+
deferred2_1 = len1;
|
|
3435
|
+
return getStringFromWasm0(ptr1, len1);
|
|
3436
|
+
} finally {
|
|
3437
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
/**
|
|
3441
|
+
* [Task #919] 글상자/도형 컨트롤의 페이지 좌표 바운딩박스를 반환한다.
|
|
3442
|
+
*
|
|
3443
|
+
* 반환: JSON `{"pageIndex":<N>,"x":<f>,"y":<f>,"width":<f>,"height":<f>}`
|
|
3444
|
+
* studio 의 `isShapeBorderClick` 헬퍼에서 외곽 경계선 클릭 판별에 사용.
|
|
3445
|
+
* @param {number} section_idx
|
|
3446
|
+
* @param {number} parent_para_idx
|
|
3447
|
+
* @param {number} control_idx
|
|
3448
|
+
* @returns {string}
|
|
3449
|
+
*/
|
|
3450
|
+
getShapeBBox(section_idx, parent_para_idx, control_idx) {
|
|
3451
|
+
let deferred2_0;
|
|
3452
|
+
let deferred2_1;
|
|
3453
|
+
try {
|
|
3454
|
+
const ret = wasm.hwpdocument_getShapeBBox(this.__wbg_ptr, section_idx, parent_para_idx, control_idx);
|
|
3455
|
+
var ptr1 = ret[0];
|
|
3456
|
+
var len1 = ret[1];
|
|
3457
|
+
if (ret[3]) {
|
|
3458
|
+
ptr1 = 0; len1 = 0;
|
|
3459
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
3460
|
+
}
|
|
3461
|
+
deferred2_0 = ptr1;
|
|
3462
|
+
deferred2_1 = len1;
|
|
3463
|
+
return getStringFromWasm0(ptr1, len1);
|
|
3464
|
+
} finally {
|
|
3465
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3084
3468
|
/**
|
|
3085
3469
|
* Shape(글상자) 속성을 조회한다.
|
|
3086
3470
|
*
|
|
@@ -3719,6 +4103,26 @@ export class HwpDocument {
|
|
|
3719
4103
|
const ret = wasm.hwpdocument_injectExternalImage(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
3720
4104
|
return ret >>> 0;
|
|
3721
4105
|
}
|
|
4106
|
+
/**
|
|
4107
|
+
* [Task #1143] `getExternalImageReferences()` 의 key로 외부 이미지 bytes를 주입한다.
|
|
4108
|
+
*
|
|
4109
|
+
* 지원 key: `binData:<bin_data_id>`.
|
|
4110
|
+
* 잘못된 key, 존재하지 않는 key, 이미 loaded 상태인 reference는 0을 반환한다.
|
|
4111
|
+
* @param {string} key
|
|
4112
|
+
* @param {Uint8Array} data
|
|
4113
|
+
* @param {string} display_path
|
|
4114
|
+
* @returns {number}
|
|
4115
|
+
*/
|
|
4116
|
+
injectExternalImageByKey(key, data, display_path) {
|
|
4117
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4118
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4119
|
+
const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
4120
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4121
|
+
const ptr2 = passStringToWasm0(display_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4122
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4123
|
+
const ret = wasm.hwpdocument_injectExternalImageByKey(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
4124
|
+
return ret >>> 0;
|
|
4125
|
+
}
|
|
3722
4126
|
/**
|
|
3723
4127
|
* 단 나누기 삽입 (Ctrl+Shift+Enter)
|
|
3724
4128
|
* @param {number} section_idx
|
|
@@ -3744,6 +4148,31 @@ export class HwpDocument {
|
|
|
3744
4148
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3745
4149
|
}
|
|
3746
4150
|
}
|
|
4151
|
+
/**
|
|
4152
|
+
* 미주를 삽입한다.
|
|
4153
|
+
* @param {number} section_idx
|
|
4154
|
+
* @param {number} para_idx
|
|
4155
|
+
* @param {number} char_offset
|
|
4156
|
+
* @returns {string}
|
|
4157
|
+
*/
|
|
4158
|
+
insertEndnote(section_idx, para_idx, char_offset) {
|
|
4159
|
+
let deferred2_0;
|
|
4160
|
+
let deferred2_1;
|
|
4161
|
+
try {
|
|
4162
|
+
const ret = wasm.hwpdocument_insertEndnote(this.__wbg_ptr, section_idx, para_idx, char_offset);
|
|
4163
|
+
var ptr1 = ret[0];
|
|
4164
|
+
var len1 = ret[1];
|
|
4165
|
+
if (ret[3]) {
|
|
4166
|
+
ptr1 = 0; len1 = 0;
|
|
4167
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4168
|
+
}
|
|
4169
|
+
deferred2_0 = ptr1;
|
|
4170
|
+
deferred2_1 = len1;
|
|
4171
|
+
return getStringFromWasm0(ptr1, len1);
|
|
4172
|
+
} finally {
|
|
4173
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
4174
|
+
}
|
|
4175
|
+
}
|
|
3747
4176
|
/**
|
|
3748
4177
|
* 수식을 삽입한다.
|
|
3749
4178
|
* @param {number} section_idx
|
|
@@ -3908,10 +4337,21 @@ export class HwpDocument {
|
|
|
3908
4337
|
* width, height: HWPUNIT 단위 크기
|
|
3909
4338
|
* extension: 파일 확장자 (jpg, png 등)
|
|
3910
4339
|
*
|
|
3911
|
-
* 반환:
|
|
4340
|
+
* 반환:
|
|
4341
|
+
* - 본문 inline: `{"ok":true,"paraIdx":<N>,"controlIdx":0}`
|
|
4342
|
+
* - 셀 floating (#1151): `{"ok":true,"paraIdx":<table_para>,"controlIdx":<new_sibling_idx>}`
|
|
4343
|
+
*
|
|
4344
|
+
* `cell_path_json` 이 빈 문자열 또는 `"[]"` 면 본문 inline 삽입. 그 외에는
|
|
4345
|
+
* 표 셀 영역에 floating picture (한컴 정합) 로 삽입한다.
|
|
4346
|
+
* 예: `[{"controlIndex":0,"cellIndex":2,"cellParaIndex":0}]`
|
|
4347
|
+
* [Task #1151 v8 결함 C] `paper_offset_x_hu / paper_offset_y_hu` 는 사용자가 셀 안에
|
|
4348
|
+
* 클릭/드래그한 위치 (paper-relative HU). studio 의 finishImagePlacement 가 drag 좌표를
|
|
4349
|
+
* 변환하여 전달. JS 측에서 `undefined` 전달 시 (또는 음수) wasm 이 셀 좌상단을 default 사용
|
|
4350
|
+
* — 기존 동작 호환.
|
|
3912
4351
|
* @param {number} section_idx
|
|
3913
4352
|
* @param {number} para_idx
|
|
3914
4353
|
* @param {number} char_offset
|
|
4354
|
+
* @param {string} cell_path_json
|
|
3915
4355
|
* @param {Uint8Array} image_data
|
|
3916
4356
|
* @param {number} width
|
|
3917
4357
|
* @param {number} height
|
|
@@ -3919,30 +4359,34 @@ export class HwpDocument {
|
|
|
3919
4359
|
* @param {number} natural_height_px
|
|
3920
4360
|
* @param {string} extension
|
|
3921
4361
|
* @param {string} description
|
|
4362
|
+
* @param {number | null} [paper_offset_x_hu]
|
|
4363
|
+
* @param {number | null} [paper_offset_y_hu]
|
|
3922
4364
|
* @returns {string}
|
|
3923
4365
|
*/
|
|
3924
|
-
insertPicture(section_idx, para_idx, char_offset, image_data, width, height, natural_width_px, natural_height_px, extension, description) {
|
|
3925
|
-
let
|
|
3926
|
-
let
|
|
4366
|
+
insertPicture(section_idx, para_idx, char_offset, cell_path_json, image_data, width, height, natural_width_px, natural_height_px, extension, description, paper_offset_x_hu, paper_offset_y_hu) {
|
|
4367
|
+
let deferred6_0;
|
|
4368
|
+
let deferred6_1;
|
|
3927
4369
|
try {
|
|
3928
|
-
const ptr0 =
|
|
4370
|
+
const ptr0 = passStringToWasm0(cell_path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3929
4371
|
const len0 = WASM_VECTOR_LEN;
|
|
3930
|
-
const ptr1 =
|
|
4372
|
+
const ptr1 = passArray8ToWasm0(image_data, wasm.__wbindgen_malloc);
|
|
3931
4373
|
const len1 = WASM_VECTOR_LEN;
|
|
3932
|
-
const ptr2 = passStringToWasm0(
|
|
4374
|
+
const ptr2 = passStringToWasm0(extension, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3933
4375
|
const len2 = WASM_VECTOR_LEN;
|
|
3934
|
-
const
|
|
3935
|
-
|
|
3936
|
-
|
|
4376
|
+
const ptr3 = passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4377
|
+
const len3 = WASM_VECTOR_LEN;
|
|
4378
|
+
const ret = wasm.hwpdocument_insertPicture(this.__wbg_ptr, section_idx, para_idx, char_offset, ptr0, len0, ptr1, len1, width, height, natural_width_px, natural_height_px, ptr2, len2, ptr3, len3, isLikeNone(paper_offset_x_hu) ? Number.MAX_SAFE_INTEGER : (paper_offset_x_hu) >> 0, isLikeNone(paper_offset_y_hu) ? Number.MAX_SAFE_INTEGER : (paper_offset_y_hu) >> 0);
|
|
4379
|
+
var ptr5 = ret[0];
|
|
4380
|
+
var len5 = ret[1];
|
|
3937
4381
|
if (ret[3]) {
|
|
3938
|
-
|
|
4382
|
+
ptr5 = 0; len5 = 0;
|
|
3939
4383
|
throw takeFromExternrefTable0(ret[2]);
|
|
3940
4384
|
}
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
return getStringFromWasm0(
|
|
4385
|
+
deferred6_0 = ptr5;
|
|
4386
|
+
deferred6_1 = len5;
|
|
4387
|
+
return getStringFromWasm0(ptr5, len5);
|
|
3944
4388
|
} finally {
|
|
3945
|
-
wasm.__wbindgen_free(
|
|
4389
|
+
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
3946
4390
|
}
|
|
3947
4391
|
}
|
|
3948
4392
|
/**
|
|
@@ -4686,6 +5130,37 @@ export class HwpDocument {
|
|
|
4686
5130
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
4687
5131
|
}
|
|
4688
5132
|
}
|
|
5133
|
+
/**
|
|
5134
|
+
* HTML 문자열을 파싱하여 cellPath가 가리키는 중첩 표 셀에 삽입한다.
|
|
5135
|
+
* @param {number} section_idx
|
|
5136
|
+
* @param {number} parent_para_idx
|
|
5137
|
+
* @param {string} path_json
|
|
5138
|
+
* @param {number} char_offset
|
|
5139
|
+
* @param {string} html
|
|
5140
|
+
* @returns {string}
|
|
5141
|
+
*/
|
|
5142
|
+
pasteHtmlInCellByPath(section_idx, parent_para_idx, path_json, char_offset, html) {
|
|
5143
|
+
let deferred4_0;
|
|
5144
|
+
let deferred4_1;
|
|
5145
|
+
try {
|
|
5146
|
+
const ptr0 = passStringToWasm0(path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5147
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5148
|
+
const ptr1 = passStringToWasm0(html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5149
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5150
|
+
const ret = wasm.hwpdocument_pasteHtmlInCellByPath(this.__wbg_ptr, section_idx, parent_para_idx, ptr0, len0, char_offset, ptr1, len1);
|
|
5151
|
+
var ptr3 = ret[0];
|
|
5152
|
+
var len3 = ret[1];
|
|
5153
|
+
if (ret[3]) {
|
|
5154
|
+
ptr3 = 0; len3 = 0;
|
|
5155
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5156
|
+
}
|
|
5157
|
+
deferred4_0 = ptr3;
|
|
5158
|
+
deferred4_1 = len3;
|
|
5159
|
+
return getStringFromWasm0(ptr3, len3);
|
|
5160
|
+
} finally {
|
|
5161
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
5162
|
+
}
|
|
5163
|
+
}
|
|
4689
5164
|
/**
|
|
4690
5165
|
* 내부 클립보드의 내용을 캐럿 위치에 붙여넣는다 (본문 문단).
|
|
4691
5166
|
*
|
|
@@ -4743,6 +5218,36 @@ export class HwpDocument {
|
|
|
4743
5218
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
4744
5219
|
}
|
|
4745
5220
|
}
|
|
5221
|
+
/**
|
|
5222
|
+
* 내부 클립보드의 내용을 cellPath가 가리키는 중첩 표 셀에 붙여넣는다.
|
|
5223
|
+
*
|
|
5224
|
+
* 반환값: JSON `{"ok":true,"cellParaIdx":<idx>,"charOffset":<offset>}`
|
|
5225
|
+
* @param {number} section_idx
|
|
5226
|
+
* @param {number} parent_para_idx
|
|
5227
|
+
* @param {string} path_json
|
|
5228
|
+
* @param {number} char_offset
|
|
5229
|
+
* @returns {string}
|
|
5230
|
+
*/
|
|
5231
|
+
pasteInternalInCellByPath(section_idx, parent_para_idx, path_json, char_offset) {
|
|
5232
|
+
let deferred3_0;
|
|
5233
|
+
let deferred3_1;
|
|
5234
|
+
try {
|
|
5235
|
+
const ptr0 = passStringToWasm0(path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5236
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5237
|
+
const ret = wasm.hwpdocument_pasteInternalInCellByPath(this.__wbg_ptr, section_idx, parent_para_idx, ptr0, len0, char_offset);
|
|
5238
|
+
var ptr2 = ret[0];
|
|
5239
|
+
var len2 = ret[1];
|
|
5240
|
+
if (ret[3]) {
|
|
5241
|
+
ptr2 = 0; len2 = 0;
|
|
5242
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5243
|
+
}
|
|
5244
|
+
deferred3_0 = ptr2;
|
|
5245
|
+
deferred3_1 = len2;
|
|
5246
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5247
|
+
} finally {
|
|
5248
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
5249
|
+
}
|
|
5250
|
+
}
|
|
4746
5251
|
/**
|
|
4747
5252
|
* 사용자 명시 요청에 의한 lineseg 전체 reflow (#177).
|
|
4748
5253
|
*
|
|
@@ -4943,8 +5448,9 @@ export class HwpDocument {
|
|
|
4943
5448
|
* 다층 레이어 필터를 적용한 Canvas 렌더링 (Task #516, Stage 5.2).
|
|
4944
5449
|
*
|
|
4945
5450
|
* `layer_kind`:
|
|
4946
|
-
* - `"all"` → 모든
|
|
4947
|
-
* - `"
|
|
5451
|
+
* - `"all"` → 모든 PaintOp 렌더 (기본 `renderPageToCanvas` 와 동일)
|
|
5452
|
+
* - `"background"` → page background layer
|
|
5453
|
+
* - `"flow"` → 본문 layer (BehindText / InFrontOfText plane 제외)
|
|
4948
5454
|
* - `"behind"` → BehindText overlay layer
|
|
4949
5455
|
* - `"front"` → InFrontOfText overlay layer
|
|
4950
5456
|
*
|
|
@@ -5221,6 +5727,37 @@ export class HwpDocument {
|
|
|
5221
5727
|
const ret = wasm.hwpdocument_setActiveFieldInCell(this.__wbg_ptr, section_idx, parent_para_idx, control_idx, cell_idx, cell_para_idx, char_offset, is_textbox);
|
|
5222
5728
|
return ret !== 0;
|
|
5223
5729
|
}
|
|
5730
|
+
/**
|
|
5731
|
+
* [Task #1151 v4] 표 셀 내 Picture 속성 변경 (by_path). Shape 패턴 정합.
|
|
5732
|
+
* @param {number} section_idx
|
|
5733
|
+
* @param {number} parent_para_idx
|
|
5734
|
+
* @param {string} cell_path_json
|
|
5735
|
+
* @param {number} inner_control_idx
|
|
5736
|
+
* @param {string} props_json
|
|
5737
|
+
* @returns {string}
|
|
5738
|
+
*/
|
|
5739
|
+
setCellPicturePropertiesByPath(section_idx, parent_para_idx, cell_path_json, inner_control_idx, props_json) {
|
|
5740
|
+
let deferred4_0;
|
|
5741
|
+
let deferred4_1;
|
|
5742
|
+
try {
|
|
5743
|
+
const ptr0 = passStringToWasm0(cell_path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5744
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5745
|
+
const ptr1 = passStringToWasm0(props_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5746
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5747
|
+
const ret = wasm.hwpdocument_setCellPicturePropertiesByPath(this.__wbg_ptr, section_idx, parent_para_idx, ptr0, len0, inner_control_idx, ptr1, len1);
|
|
5748
|
+
var ptr3 = ret[0];
|
|
5749
|
+
var len3 = ret[1];
|
|
5750
|
+
if (ret[3]) {
|
|
5751
|
+
ptr3 = 0; len3 = 0;
|
|
5752
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5753
|
+
}
|
|
5754
|
+
deferred4_0 = ptr3;
|
|
5755
|
+
deferred4_1 = len3;
|
|
5756
|
+
return getStringFromWasm0(ptr3, len3);
|
|
5757
|
+
} finally {
|
|
5758
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
5759
|
+
}
|
|
5760
|
+
}
|
|
5224
5761
|
/**
|
|
5225
5762
|
* 셀 속성을 수정한다.
|
|
5226
5763
|
*
|
|
@@ -5252,6 +5789,37 @@ export class HwpDocument {
|
|
|
5252
5789
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
5253
5790
|
}
|
|
5254
5791
|
}
|
|
5792
|
+
/**
|
|
5793
|
+
* [Task #1138] 표 셀 내 Shape 속성 변경 (by_path).
|
|
5794
|
+
* @param {number} section_idx
|
|
5795
|
+
* @param {number} parent_para_idx
|
|
5796
|
+
* @param {string} cell_path_json
|
|
5797
|
+
* @param {number} inner_control_idx
|
|
5798
|
+
* @param {string} props_json
|
|
5799
|
+
* @returns {string}
|
|
5800
|
+
*/
|
|
5801
|
+
setCellShapePropertiesByPath(section_idx, parent_para_idx, cell_path_json, inner_control_idx, props_json) {
|
|
5802
|
+
let deferred4_0;
|
|
5803
|
+
let deferred4_1;
|
|
5804
|
+
try {
|
|
5805
|
+
const ptr0 = passStringToWasm0(cell_path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5806
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5807
|
+
const ptr1 = passStringToWasm0(props_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5808
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5809
|
+
const ret = wasm.hwpdocument_setCellShapePropertiesByPath(this.__wbg_ptr, section_idx, parent_para_idx, ptr0, len0, inner_control_idx, ptr1, len1);
|
|
5810
|
+
var ptr3 = ret[0];
|
|
5811
|
+
var len3 = ret[1];
|
|
5812
|
+
if (ret[3]) {
|
|
5813
|
+
ptr3 = 0; len3 = 0;
|
|
5814
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5815
|
+
}
|
|
5816
|
+
deferred4_0 = ptr3;
|
|
5817
|
+
deferred4_1 = len3;
|
|
5818
|
+
return getStringFromWasm0(ptr3, len3);
|
|
5819
|
+
} finally {
|
|
5820
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
5821
|
+
}
|
|
5822
|
+
}
|
|
5255
5823
|
/**
|
|
5256
5824
|
* @param {boolean} enabled
|
|
5257
5825
|
*/
|
|
@@ -5502,6 +6070,39 @@ export class HwpDocument {
|
|
|
5502
6070
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
5503
6071
|
}
|
|
5504
6072
|
}
|
|
6073
|
+
/**
|
|
6074
|
+
* 각주/미주 내부 수식 컨트롤의 속성을 변경한다.
|
|
6075
|
+
* @param {string} kind
|
|
6076
|
+
* @param {number} section_idx
|
|
6077
|
+
* @param {number} parent_para_idx
|
|
6078
|
+
* @param {number} note_control_idx
|
|
6079
|
+
* @param {number} note_para_idx
|
|
6080
|
+
* @param {number} inner_control_idx
|
|
6081
|
+
* @param {string} props_json
|
|
6082
|
+
* @returns {string}
|
|
6083
|
+
*/
|
|
6084
|
+
setNoteEquationProperties(kind, section_idx, parent_para_idx, note_control_idx, note_para_idx, inner_control_idx, props_json) {
|
|
6085
|
+
let deferred4_0;
|
|
6086
|
+
let deferred4_1;
|
|
6087
|
+
try {
|
|
6088
|
+
const ptr0 = passStringToWasm0(kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6089
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6090
|
+
const ptr1 = passStringToWasm0(props_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6091
|
+
const len1 = WASM_VECTOR_LEN;
|
|
6092
|
+
const ret = wasm.hwpdocument_setNoteEquationProperties(this.__wbg_ptr, ptr0, len0, section_idx, parent_para_idx, note_control_idx, note_para_idx, inner_control_idx, ptr1, len1);
|
|
6093
|
+
var ptr3 = ret[0];
|
|
6094
|
+
var len3 = ret[1];
|
|
6095
|
+
if (ret[3]) {
|
|
6096
|
+
ptr3 = 0; len3 = 0;
|
|
6097
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
6098
|
+
}
|
|
6099
|
+
deferred4_0 = ptr3;
|
|
6100
|
+
deferred4_1 = len3;
|
|
6101
|
+
return getStringFromWasm0(ptr3, len3);
|
|
6102
|
+
} finally {
|
|
6103
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
6104
|
+
}
|
|
6105
|
+
}
|
|
5505
6106
|
/**
|
|
5506
6107
|
* 문단 서식을 적용한다 (본문 문단).
|
|
5507
6108
|
* 문단 번호 시작 방식 설정
|
|
@@ -5529,6 +6130,32 @@ export class HwpDocument {
|
|
|
5529
6130
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
5530
6131
|
}
|
|
5531
6132
|
}
|
|
6133
|
+
/**
|
|
6134
|
+
* 구역의 쪽 테두리/배경 설정을 변경하고 재페이지네이션한다.
|
|
6135
|
+
* @param {number} section_idx
|
|
6136
|
+
* @param {string} json
|
|
6137
|
+
* @returns {string}
|
|
6138
|
+
*/
|
|
6139
|
+
setPageBorderFill(section_idx, json) {
|
|
6140
|
+
let deferred3_0;
|
|
6141
|
+
let deferred3_1;
|
|
6142
|
+
try {
|
|
6143
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6144
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6145
|
+
const ret = wasm.hwpdocument_setPageBorderFill(this.__wbg_ptr, section_idx, ptr0, len0);
|
|
6146
|
+
var ptr2 = ret[0];
|
|
6147
|
+
var len2 = ret[1];
|
|
6148
|
+
if (ret[3]) {
|
|
6149
|
+
ptr2 = 0; len2 = 0;
|
|
6150
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
6151
|
+
}
|
|
6152
|
+
deferred3_0 = ptr2;
|
|
6153
|
+
deferred3_1 = len2;
|
|
6154
|
+
return getStringFromWasm0(ptr2, len2);
|
|
6155
|
+
} finally {
|
|
6156
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
6157
|
+
}
|
|
6158
|
+
}
|
|
5532
6159
|
/**
|
|
5533
6160
|
* 구역의 용지 설정(PageDef)을 변경하고 재페이지네이션한다.
|
|
5534
6161
|
* @param {number} section_idx
|
|
@@ -6292,68 +6919,68 @@ export function version() {
|
|
|
6292
6919
|
function __wbg_get_imports() {
|
|
6293
6920
|
const import0 = {
|
|
6294
6921
|
__proto__: null,
|
|
6295
|
-
|
|
6922
|
+
__wbg___wbindgen_is_undefined_67b456be8673d3d7: function(arg0) {
|
|
6296
6923
|
const ret = arg0 === undefined;
|
|
6297
6924
|
return ret;
|
|
6298
6925
|
},
|
|
6299
|
-
|
|
6926
|
+
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
6300
6927
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
6301
6928
|
},
|
|
6302
|
-
|
|
6929
|
+
__wbg_addColorStop_327b92fde5be2a67: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
6303
6930
|
arg0.addColorStop(arg1, getStringFromWasm0(arg2, arg3));
|
|
6304
6931
|
}, arguments); },
|
|
6305
|
-
|
|
6932
|
+
__wbg_arcTo_6b47eaa88893c130: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
6306
6933
|
arg0.arcTo(arg1, arg2, arg3, arg4, arg5);
|
|
6307
6934
|
}, arguments); },
|
|
6308
|
-
|
|
6935
|
+
__wbg_arc_666e3efb470f705c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
6309
6936
|
arg0.arc(arg1, arg2, arg3, arg4, arg5);
|
|
6310
6937
|
}, arguments); },
|
|
6311
|
-
|
|
6938
|
+
__wbg_beginPath_1da975fa79b7c1b9: function(arg0) {
|
|
6312
6939
|
arg0.beginPath();
|
|
6313
6940
|
},
|
|
6314
|
-
|
|
6941
|
+
__wbg_bezierCurveTo_db8436369e181c44: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
6315
6942
|
arg0.bezierCurveTo(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
6316
6943
|
},
|
|
6317
|
-
|
|
6944
|
+
__wbg_clearRect_c6c4586d143d768c: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6318
6945
|
arg0.clearRect(arg1, arg2, arg3, arg4);
|
|
6319
6946
|
},
|
|
6320
|
-
|
|
6947
|
+
__wbg_clip_512aa0849d54e0d5: function(arg0) {
|
|
6321
6948
|
arg0.clip();
|
|
6322
6949
|
},
|
|
6323
|
-
|
|
6950
|
+
__wbg_closePath_6a67796205fda3c8: function(arg0) {
|
|
6324
6951
|
arg0.closePath();
|
|
6325
6952
|
},
|
|
6326
|
-
|
|
6953
|
+
__wbg_complete_be51db166b7d8f49: function(arg0) {
|
|
6327
6954
|
const ret = arg0.complete;
|
|
6328
6955
|
return ret;
|
|
6329
6956
|
},
|
|
6330
|
-
|
|
6957
|
+
__wbg_createElement_c3c16a9aa7f5cc74: function() { return handleError(function (arg0, arg1, arg2) {
|
|
6331
6958
|
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
6332
6959
|
return ret;
|
|
6333
6960
|
}, arguments); },
|
|
6334
|
-
|
|
6961
|
+
__wbg_createLinearGradient_420cb52eeee8a7b5: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6335
6962
|
const ret = arg0.createLinearGradient(arg1, arg2, arg3, arg4);
|
|
6336
6963
|
return ret;
|
|
6337
6964
|
},
|
|
6338
|
-
|
|
6965
|
+
__wbg_createPattern_67eadc263c88cfac: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
6339
6966
|
const ret = arg0.createPattern(arg1, getStringFromWasm0(arg2, arg3));
|
|
6340
6967
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6341
6968
|
}, arguments); },
|
|
6342
|
-
|
|
6969
|
+
__wbg_createRadialGradient_50fd152eec9510d1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
6343
6970
|
const ret = arg0.createRadialGradient(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
6344
6971
|
return ret;
|
|
6345
6972
|
}, arguments); },
|
|
6346
|
-
|
|
6973
|
+
__wbg_document_aceb08cd6489baf5: function(arg0) {
|
|
6347
6974
|
const ret = arg0.document;
|
|
6348
6975
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6349
6976
|
},
|
|
6350
|
-
|
|
6351
|
-
arg0.drawImage(arg1, arg2, arg3, arg4, arg5);
|
|
6352
|
-
}, arguments); },
|
|
6353
|
-
__wbg_drawImage_c6659f999961906f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
6977
|
+
__wbg_drawImage_1256ee5423e2545a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
6354
6978
|
arg0.drawImage(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
6355
6979
|
}, arguments); },
|
|
6356
|
-
|
|
6980
|
+
__wbg_drawImage_92a28897b8ab19b6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
6981
|
+
arg0.drawImage(arg1, arg2, arg3, arg4, arg5);
|
|
6982
|
+
}, arguments); },
|
|
6983
|
+
__wbg_ellipse_3fbf05a162a6d8bd: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
6357
6984
|
arg0.ellipse(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
6358
6985
|
}, arguments); },
|
|
6359
6986
|
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
@@ -6367,24 +6994,24 @@ function __wbg_get_imports() {
|
|
|
6367
6994
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
6368
6995
|
}
|
|
6369
6996
|
},
|
|
6370
|
-
|
|
6997
|
+
__wbg_fillRect_3916c35e6834cd1b: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6371
6998
|
arg0.fillRect(arg1, arg2, arg3, arg4);
|
|
6372
6999
|
},
|
|
6373
|
-
|
|
7000
|
+
__wbg_fillText_9a0aa2acf11b7d03: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
6374
7001
|
arg0.fillText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
6375
7002
|
}, arguments); },
|
|
6376
|
-
|
|
7003
|
+
__wbg_fill_e9ef1c011f58f948: function(arg0) {
|
|
6377
7004
|
arg0.fill();
|
|
6378
7005
|
},
|
|
6379
|
-
|
|
7006
|
+
__wbg_getContext_469d34698d869fc1: function() { return handleError(function (arg0, arg1, arg2) {
|
|
6380
7007
|
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
6381
7008
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6382
7009
|
}, arguments); },
|
|
6383
|
-
|
|
7010
|
+
__wbg_height_ef5b5950872773b5: function(arg0) {
|
|
6384
7011
|
const ret = arg0.height;
|
|
6385
7012
|
return ret;
|
|
6386
7013
|
},
|
|
6387
|
-
|
|
7014
|
+
__wbg_instanceof_CanvasRenderingContext2d_6f2951bc60fb6d97: function(arg0) {
|
|
6388
7015
|
let result;
|
|
6389
7016
|
try {
|
|
6390
7017
|
result = arg0 instanceof CanvasRenderingContext2D;
|
|
@@ -6394,7 +7021,7 @@ function __wbg_get_imports() {
|
|
|
6394
7021
|
const ret = result;
|
|
6395
7022
|
return ret;
|
|
6396
7023
|
},
|
|
6397
|
-
|
|
7024
|
+
__wbg_instanceof_HtmlCanvasElement_8325b7578cc1684c: function(arg0) {
|
|
6398
7025
|
let result;
|
|
6399
7026
|
try {
|
|
6400
7027
|
result = arg0 instanceof HTMLCanvasElement;
|
|
@@ -6404,7 +7031,7 @@ function __wbg_get_imports() {
|
|
|
6404
7031
|
const ret = result;
|
|
6405
7032
|
return ret;
|
|
6406
7033
|
},
|
|
6407
|
-
|
|
7034
|
+
__wbg_instanceof_Window_e093be59ee9a8e14: function(arg0) {
|
|
6408
7035
|
let result;
|
|
6409
7036
|
try {
|
|
6410
7037
|
result = arg0 instanceof Window;
|
|
@@ -6414,113 +7041,113 @@ function __wbg_get_imports() {
|
|
|
6414
7041
|
const ret = result;
|
|
6415
7042
|
return ret;
|
|
6416
7043
|
},
|
|
6417
|
-
|
|
7044
|
+
__wbg_lineTo_1c1d0e0fabd76dd5: function(arg0, arg1, arg2) {
|
|
6418
7045
|
arg0.lineTo(arg1, arg2);
|
|
6419
7046
|
},
|
|
6420
|
-
|
|
6421
|
-
const ret =
|
|
7047
|
+
__wbg_measureText_b7ba8e89644fa634: function() { return handleError(function (arg0, arg1, arg2) {
|
|
7048
|
+
const ret = arg0.measureText(getStringFromWasm0(arg1, arg2));
|
|
6422
7049
|
return ret;
|
|
6423
|
-
},
|
|
6424
|
-
|
|
7050
|
+
}, arguments); },
|
|
7051
|
+
__wbg_moveTo_3356d453f2b376d1: function(arg0, arg1, arg2) {
|
|
6425
7052
|
arg0.moveTo(arg1, arg2);
|
|
6426
7053
|
},
|
|
6427
|
-
|
|
7054
|
+
__wbg_naturalWidth_2111265fa11a1862: function(arg0) {
|
|
6428
7055
|
const ret = arg0.naturalWidth;
|
|
6429
7056
|
return ret;
|
|
6430
7057
|
},
|
|
6431
|
-
__wbg_new_14debec8e2dce208: function() { return handleError(function () {
|
|
6432
|
-
const ret = new Image();
|
|
6433
|
-
return ret;
|
|
6434
|
-
}, arguments); },
|
|
6435
7058
|
__wbg_new_227d7c05414eb861: function() {
|
|
6436
7059
|
const ret = new Error();
|
|
6437
7060
|
return ret;
|
|
6438
7061
|
},
|
|
6439
|
-
|
|
7062
|
+
__wbg_new_8846e7e032e73b15: function() { return handleError(function () {
|
|
7063
|
+
const ret = new Image();
|
|
7064
|
+
return ret;
|
|
7065
|
+
}, arguments); },
|
|
7066
|
+
__wbg_new_d90091b82fdf5b91: function() {
|
|
6440
7067
|
const ret = new Array();
|
|
6441
7068
|
return ret;
|
|
6442
7069
|
},
|
|
6443
|
-
|
|
7070
|
+
__wbg_of_f34f1ce50f299ee9: function(arg0, arg1) {
|
|
6444
7071
|
const ret = Array.of(arg0, arg1);
|
|
6445
7072
|
return ret;
|
|
6446
7073
|
},
|
|
6447
|
-
|
|
7074
|
+
__wbg_push_a6822215aa43e71c: function(arg0, arg1) {
|
|
6448
7075
|
const ret = arg0.push(arg1);
|
|
6449
7076
|
return ret;
|
|
6450
7077
|
},
|
|
6451
|
-
|
|
7078
|
+
__wbg_quadraticCurveTo_6c803a7678029e24: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6452
7079
|
arg0.quadraticCurveTo(arg1, arg2, arg3, arg4);
|
|
6453
7080
|
},
|
|
6454
|
-
|
|
7081
|
+
__wbg_rect_72dd146afd51fd1d: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6455
7082
|
arg0.rect(arg1, arg2, arg3, arg4);
|
|
6456
7083
|
},
|
|
6457
|
-
|
|
7084
|
+
__wbg_restore_35d33f272777a212: function(arg0) {
|
|
6458
7085
|
arg0.restore();
|
|
6459
7086
|
},
|
|
6460
|
-
|
|
7087
|
+
__wbg_rotate_404ece42a9f2263d: function() { return handleError(function (arg0, arg1) {
|
|
6461
7088
|
arg0.rotate(arg1);
|
|
6462
7089
|
}, arguments); },
|
|
6463
|
-
|
|
7090
|
+
__wbg_save_e8d837ef098cd6fc: function(arg0) {
|
|
6464
7091
|
arg0.save();
|
|
6465
7092
|
},
|
|
6466
|
-
|
|
7093
|
+
__wbg_scale_28884a905dff3c86: function() { return handleError(function (arg0, arg1, arg2) {
|
|
6467
7094
|
arg0.scale(arg1, arg2);
|
|
6468
7095
|
}, arguments); },
|
|
6469
|
-
|
|
7096
|
+
__wbg_setLineDash_df865b04e5ed4790: function() { return handleError(function (arg0, arg1) {
|
|
6470
7097
|
arg0.setLineDash(arg1);
|
|
6471
7098
|
}, arguments); },
|
|
6472
|
-
|
|
7099
|
+
__wbg_set_fillStyle_8a802b39592e50ac: function(arg0, arg1) {
|
|
6473
7100
|
arg0.fillStyle = arg1;
|
|
6474
7101
|
},
|
|
6475
|
-
|
|
7102
|
+
__wbg_set_fillStyle_ad834564981122a6: function(arg0, arg1) {
|
|
6476
7103
|
arg0.fillStyle = arg1;
|
|
6477
7104
|
},
|
|
6478
|
-
|
|
7105
|
+
__wbg_set_fillStyle_e96ce0e2e6d0bd13: function(arg0, arg1, arg2) {
|
|
6479
7106
|
arg0.fillStyle = getStringFromWasm0(arg1, arg2);
|
|
6480
7107
|
},
|
|
6481
|
-
|
|
7108
|
+
__wbg_set_filter_307bd6f64d4aba17: function(arg0, arg1, arg2) {
|
|
6482
7109
|
arg0.filter = getStringFromWasm0(arg1, arg2);
|
|
6483
7110
|
},
|
|
6484
|
-
|
|
7111
|
+
__wbg_set_font_3700823e473a6204: function(arg0, arg1, arg2) {
|
|
6485
7112
|
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
6486
7113
|
},
|
|
6487
|
-
|
|
7114
|
+
__wbg_set_globalAlpha_8ed66eb71dbee04d: function(arg0, arg1) {
|
|
6488
7115
|
arg0.globalAlpha = arg1;
|
|
6489
7116
|
},
|
|
6490
|
-
|
|
7117
|
+
__wbg_set_height_0739170de8653cc4: function(arg0, arg1) {
|
|
6491
7118
|
arg0.height = arg1 >>> 0;
|
|
6492
7119
|
},
|
|
6493
|
-
|
|
7120
|
+
__wbg_set_lineCap_4709bda4f8626b19: function(arg0, arg1, arg2) {
|
|
6494
7121
|
arg0.lineCap = getStringFromWasm0(arg1, arg2);
|
|
6495
7122
|
},
|
|
6496
|
-
|
|
7123
|
+
__wbg_set_lineWidth_57a9e0b365e06eba: function(arg0, arg1) {
|
|
6497
7124
|
arg0.lineWidth = arg1;
|
|
6498
7125
|
},
|
|
6499
|
-
|
|
7126
|
+
__wbg_set_shadowBlur_9a876dbc0f0e0e7d: function(arg0, arg1) {
|
|
6500
7127
|
arg0.shadowBlur = arg1;
|
|
6501
7128
|
},
|
|
6502
|
-
|
|
7129
|
+
__wbg_set_shadowColor_1b8fb4690ca58666: function(arg0, arg1, arg2) {
|
|
6503
7130
|
arg0.shadowColor = getStringFromWasm0(arg1, arg2);
|
|
6504
7131
|
},
|
|
6505
|
-
|
|
7132
|
+
__wbg_set_shadowOffsetX_d2689cb0ee49a06f: function(arg0, arg1) {
|
|
6506
7133
|
arg0.shadowOffsetX = arg1;
|
|
6507
7134
|
},
|
|
6508
|
-
|
|
7135
|
+
__wbg_set_shadowOffsetY_21d7b928ae23beec: function(arg0, arg1) {
|
|
6509
7136
|
arg0.shadowOffsetY = arg1;
|
|
6510
7137
|
},
|
|
6511
|
-
|
|
7138
|
+
__wbg_set_src_44ba1ad03eb5113d: function(arg0, arg1, arg2) {
|
|
6512
7139
|
arg0.src = getStringFromWasm0(arg1, arg2);
|
|
6513
7140
|
},
|
|
6514
|
-
|
|
7141
|
+
__wbg_set_strokeStyle_f44ddd692cbef122: function(arg0, arg1, arg2) {
|
|
6515
7142
|
arg0.strokeStyle = getStringFromWasm0(arg1, arg2);
|
|
6516
7143
|
},
|
|
6517
|
-
|
|
7144
|
+
__wbg_set_textAlign_2cf46493669911fa: function(arg0, arg1, arg2) {
|
|
6518
7145
|
arg0.textAlign = getStringFromWasm0(arg1, arg2);
|
|
6519
7146
|
},
|
|
6520
|
-
|
|
7147
|
+
__wbg_set_textBaseline_5a3fa8559d95dd95: function(arg0, arg1, arg2) {
|
|
6521
7148
|
arg0.textBaseline = getStringFromWasm0(arg1, arg2);
|
|
6522
7149
|
},
|
|
6523
|
-
|
|
7150
|
+
__wbg_set_width_87301412247f3343: function(arg0, arg1) {
|
|
6524
7151
|
arg0.width = arg1 >>> 0;
|
|
6525
7152
|
},
|
|
6526
7153
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
@@ -6530,35 +7157,39 @@ function __wbg_get_imports() {
|
|
|
6530
7157
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
6531
7158
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
6532
7159
|
},
|
|
6533
|
-
|
|
6534
|
-
const ret = typeof
|
|
7160
|
+
__wbg_static_accessor_GLOBAL_9d53f2689e622ca1: function() {
|
|
7161
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
6535
7162
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6536
7163
|
},
|
|
6537
|
-
|
|
6538
|
-
const ret = typeof
|
|
7164
|
+
__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a: function() {
|
|
7165
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
6539
7166
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6540
7167
|
},
|
|
6541
|
-
|
|
7168
|
+
__wbg_static_accessor_SELF_4c59f6c7ea29a144: function() {
|
|
6542
7169
|
const ret = typeof self === 'undefined' ? null : self;
|
|
6543
7170
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6544
7171
|
},
|
|
6545
|
-
|
|
7172
|
+
__wbg_static_accessor_WINDOW_e70ae9f2eb052253: function() {
|
|
6546
7173
|
const ret = typeof window === 'undefined' ? null : window;
|
|
6547
7174
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6548
7175
|
},
|
|
6549
|
-
|
|
7176
|
+
__wbg_strokeRect_0b35a3d8bed14f36: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6550
7177
|
arg0.strokeRect(arg1, arg2, arg3, arg4);
|
|
6551
7178
|
},
|
|
6552
|
-
|
|
7179
|
+
__wbg_strokeText_0c03fc18dca3b589: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
6553
7180
|
arg0.strokeText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
6554
7181
|
}, arguments); },
|
|
6555
|
-
|
|
7182
|
+
__wbg_stroke_298b6b02ba692298: function(arg0) {
|
|
6556
7183
|
arg0.stroke();
|
|
6557
7184
|
},
|
|
6558
|
-
|
|
7185
|
+
__wbg_translate_2ae35da53e449a37: function() { return handleError(function (arg0, arg1, arg2) {
|
|
6559
7186
|
arg0.translate(arg1, arg2);
|
|
6560
7187
|
}, arguments); },
|
|
6561
|
-
|
|
7188
|
+
__wbg_width_796e38875beab5e6: function(arg0) {
|
|
7189
|
+
const ret = arg0.width;
|
|
7190
|
+
return ret;
|
|
7191
|
+
},
|
|
7192
|
+
__wbg_width_a01fb50fdb566912: function(arg0) {
|
|
6562
7193
|
const ret = arg0.width;
|
|
6563
7194
|
return ret;
|
|
6564
7195
|
},
|