@rhwp/core 0.7.15 → 0.7.17
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/README.md +45 -0
- package/package.json +1 -1
- package/rhwp.d.ts +272 -2
- package/rhwp.js +1075 -93
- package/rhwp_bg.wasm +0 -0
- package/rhwp_bg.wasm.d.ts +35 -0
package/rhwp.js
CHANGED
|
@@ -140,6 +140,35 @@ export class HwpDocument {
|
|
|
140
140
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* `applyCharFormatInCell` 의 options object 변형 (#1413).
|
|
145
|
+
*
|
|
146
|
+
* options JSON 키: `{ secIdx, parentParaIdx, controlIdx, cellIdx, cellParaIdx,
|
|
147
|
+
* startOffset, endOffset, props: object }`. `props` 는 글자 서식 JSON 객체(positional
|
|
148
|
+
* 의 props_json 과 동일). positional 과 동일 동작.
|
|
149
|
+
* @param {string} options_json
|
|
150
|
+
* @returns {string}
|
|
151
|
+
*/
|
|
152
|
+
applyCharFormatInCellEx(options_json) {
|
|
153
|
+
let deferred3_0;
|
|
154
|
+
let deferred3_1;
|
|
155
|
+
try {
|
|
156
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
157
|
+
const len0 = WASM_VECTOR_LEN;
|
|
158
|
+
const ret = wasm.hwpdocument_applyCharFormatInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
159
|
+
var ptr2 = ret[0];
|
|
160
|
+
var len2 = ret[1];
|
|
161
|
+
if (ret[3]) {
|
|
162
|
+
ptr2 = 0; len2 = 0;
|
|
163
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
164
|
+
}
|
|
165
|
+
deferred3_0 = ptr2;
|
|
166
|
+
deferred3_1 = len2;
|
|
167
|
+
return getStringFromWasm0(ptr2, len2);
|
|
168
|
+
} finally {
|
|
169
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
143
172
|
/**
|
|
144
173
|
* 미주 모양을 적용한다.
|
|
145
174
|
* @param {number} section_idx
|
|
@@ -516,6 +545,34 @@ export class HwpDocument {
|
|
|
516
545
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
517
546
|
}
|
|
518
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* `copySelectionInCell` 의 options object 변형 (#1413).
|
|
550
|
+
*
|
|
551
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, startCellParaIdx,
|
|
552
|
+
* startCharOffset, endCellParaIdx, endCharOffset }`. positional 과 동일 동작.
|
|
553
|
+
* @param {string} options_json
|
|
554
|
+
* @returns {string}
|
|
555
|
+
*/
|
|
556
|
+
copySelectionInCellEx(options_json) {
|
|
557
|
+
let deferred3_0;
|
|
558
|
+
let deferred3_1;
|
|
559
|
+
try {
|
|
560
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
561
|
+
const len0 = WASM_VECTOR_LEN;
|
|
562
|
+
const ret = wasm.hwpdocument_copySelectionInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
563
|
+
var ptr2 = ret[0];
|
|
564
|
+
var len2 = ret[1];
|
|
565
|
+
if (ret[3]) {
|
|
566
|
+
ptr2 = 0; len2 = 0;
|
|
567
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
568
|
+
}
|
|
569
|
+
deferred3_0 = ptr2;
|
|
570
|
+
deferred3_1 = len2;
|
|
571
|
+
return getStringFromWasm0(ptr2, len2);
|
|
572
|
+
} finally {
|
|
573
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
519
576
|
/**
|
|
520
577
|
* 내장 템플릿에서 빈 문서를 생성한다.
|
|
521
578
|
*
|
|
@@ -543,6 +600,10 @@ export class HwpDocument {
|
|
|
543
600
|
}
|
|
544
601
|
/**
|
|
545
602
|
* 빈 문서 생성 (테스트/미리보기용)
|
|
603
|
+
*
|
|
604
|
+
* 기본 A4 구역 1개 + 빈 문단 1개를 포함한다. 구역 0개 문서는 모든
|
|
605
|
+
* 편집/조회 API가 "구역 인덱스 0 범위 초과"로 실패해 사용 불가하므로
|
|
606
|
+
* 생성 직후 바로 편집 가능한 최소 구조를 보장한다 (#1386).
|
|
546
607
|
* @returns {HwpDocument}
|
|
547
608
|
*/
|
|
548
609
|
static createEmpty() {
|
|
@@ -931,6 +992,34 @@ export class HwpDocument {
|
|
|
931
992
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
932
993
|
}
|
|
933
994
|
}
|
|
995
|
+
/**
|
|
996
|
+
* `deleteRangeInCell` 의 options object 변형 (#1413).
|
|
997
|
+
*
|
|
998
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, startCellParaIdx,
|
|
999
|
+
* startCharOffset, endCellParaIdx, endCharOffset }`. positional 과 동일 동작.
|
|
1000
|
+
* @param {string} options_json
|
|
1001
|
+
* @returns {string}
|
|
1002
|
+
*/
|
|
1003
|
+
deleteRangeInCellEx(options_json) {
|
|
1004
|
+
let deferred3_0;
|
|
1005
|
+
let deferred3_1;
|
|
1006
|
+
try {
|
|
1007
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1008
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1009
|
+
const ret = wasm.hwpdocument_deleteRangeInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
1010
|
+
var ptr2 = ret[0];
|
|
1011
|
+
var len2 = ret[1];
|
|
1012
|
+
if (ret[3]) {
|
|
1013
|
+
ptr2 = 0; len2 = 0;
|
|
1014
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1015
|
+
}
|
|
1016
|
+
deferred3_0 = ptr2;
|
|
1017
|
+
deferred3_1 = len2;
|
|
1018
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1019
|
+
} finally {
|
|
1020
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
934
1023
|
/**
|
|
935
1024
|
* Shape(글상자) 컨트롤을 문단에서 삭제한다.
|
|
936
1025
|
*
|
|
@@ -1141,6 +1230,34 @@ export class HwpDocument {
|
|
|
1141
1230
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1142
1231
|
}
|
|
1143
1232
|
}
|
|
1233
|
+
/**
|
|
1234
|
+
* `deleteTextInCell` 의 options object 변형 (#1413).
|
|
1235
|
+
*
|
|
1236
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, cellParaIdx,
|
|
1237
|
+
* charOffset?, count }`. positional 과 동일 동작.
|
|
1238
|
+
* @param {string} options_json
|
|
1239
|
+
* @returns {string}
|
|
1240
|
+
*/
|
|
1241
|
+
deleteTextInCellEx(options_json) {
|
|
1242
|
+
let deferred3_0;
|
|
1243
|
+
let deferred3_1;
|
|
1244
|
+
try {
|
|
1245
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1246
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1247
|
+
const ret = wasm.hwpdocument_deleteTextInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
1248
|
+
var ptr2 = ret[0];
|
|
1249
|
+
var len2 = ret[1];
|
|
1250
|
+
if (ret[3]) {
|
|
1251
|
+
ptr2 = 0; len2 = 0;
|
|
1252
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1253
|
+
}
|
|
1254
|
+
deferred3_0 = ptr2;
|
|
1255
|
+
deferred3_1 = len2;
|
|
1256
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1257
|
+
} finally {
|
|
1258
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1144
1261
|
/**
|
|
1145
1262
|
* 각주 내 텍스트를 삭제한다.
|
|
1146
1263
|
* @param {number} section_idx
|
|
@@ -1285,6 +1402,34 @@ export class HwpDocument {
|
|
|
1285
1402
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1286
1403
|
}
|
|
1287
1404
|
}
|
|
1405
|
+
/**
|
|
1406
|
+
* `evaluateTableFormula` 의 options object 변형 (#1413).
|
|
1407
|
+
*
|
|
1408
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, targetRow, targetCol,
|
|
1409
|
+
* formula: string, writeResult? }`. positional 과 동일 동작.
|
|
1410
|
+
* @param {string} options_json
|
|
1411
|
+
* @returns {string}
|
|
1412
|
+
*/
|
|
1413
|
+
evaluateTableFormulaEx(options_json) {
|
|
1414
|
+
let deferred3_0;
|
|
1415
|
+
let deferred3_1;
|
|
1416
|
+
try {
|
|
1417
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1418
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1419
|
+
const ret = wasm.hwpdocument_evaluateTableFormulaEx(this.__wbg_ptr, ptr0, len0);
|
|
1420
|
+
var ptr2 = ret[0];
|
|
1421
|
+
var len2 = ret[1];
|
|
1422
|
+
if (ret[3]) {
|
|
1423
|
+
ptr2 = 0; len2 = 0;
|
|
1424
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1425
|
+
}
|
|
1426
|
+
deferred3_0 = ptr2;
|
|
1427
|
+
deferred3_1 = len2;
|
|
1428
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1429
|
+
} finally {
|
|
1430
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1288
1433
|
/**
|
|
1289
1434
|
* 컨트롤 객체를 HTML 문자열로 변환한다.
|
|
1290
1435
|
* @param {number} section_idx
|
|
@@ -1436,6 +1581,34 @@ export class HwpDocument {
|
|
|
1436
1581
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1437
1582
|
}
|
|
1438
1583
|
}
|
|
1584
|
+
/**
|
|
1585
|
+
* `exportSelectionInCellHtml` 의 options object 변형 (#1413).
|
|
1586
|
+
*
|
|
1587
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, startCellParaIdx,
|
|
1588
|
+
* startCharOffset, endCellParaIdx, endCharOffset }`. positional 과 동일 동작.
|
|
1589
|
+
* @param {string} options_json
|
|
1590
|
+
* @returns {string}
|
|
1591
|
+
*/
|
|
1592
|
+
exportSelectionInCellHtmlEx(options_json) {
|
|
1593
|
+
let deferred3_0;
|
|
1594
|
+
let deferred3_1;
|
|
1595
|
+
try {
|
|
1596
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1597
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1598
|
+
const ret = wasm.hwpdocument_exportSelectionInCellHtmlEx(this.__wbg_ptr, ptr0, len0);
|
|
1599
|
+
var ptr2 = ret[0];
|
|
1600
|
+
var len2 = ret[1];
|
|
1601
|
+
if (ret[3]) {
|
|
1602
|
+
ptr2 = 0; len2 = 0;
|
|
1603
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1604
|
+
}
|
|
1605
|
+
deferred3_0 = ptr2;
|
|
1606
|
+
deferred3_1 = len2;
|
|
1607
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1608
|
+
} finally {
|
|
1609
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1439
1612
|
/**
|
|
1440
1613
|
* 커서에서 이전 방향으로 가장 가까운 선택 가능 컨트롤을 찾는다 (F11 키).
|
|
1441
1614
|
* @param {number} section_idx
|
|
@@ -1822,7 +1995,7 @@ export class HwpDocument {
|
|
|
1822
1995
|
/**
|
|
1823
1996
|
* 셀 속성을 조회한다.
|
|
1824
1997
|
*
|
|
1825
|
-
* 반환: JSON `{width, height, paddingLeft, paddingRight, paddingTop, paddingBottom, verticalAlign, textDirection, isHeader}`
|
|
1998
|
+
* 반환: JSON `{width, height, paddingLeft, paddingRight, paddingTop, paddingBottom, applyInnerMargin, verticalAlign, textDirection, isHeader, cellProtect, fieldName, editableInForm, ...borderFill}`
|
|
1826
1999
|
* @param {number} section_idx
|
|
1827
2000
|
* @param {number} parent_para_idx
|
|
1828
2001
|
* @param {number} control_idx
|
|
@@ -2233,6 +2406,40 @@ export class HwpDocument {
|
|
|
2233
2406
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2234
2407
|
}
|
|
2235
2408
|
}
|
|
2409
|
+
/**
|
|
2410
|
+
* 줄 경계 offset을 특정 시각 줄 기준으로 해석한 커서 좌표를 반환한다.
|
|
2411
|
+
*
|
|
2412
|
+
* `at_end=false`이면 lineIndex 줄의 시작, `at_end=true`이면 lineIndex 줄의 끝을 반환한다.
|
|
2413
|
+
* soft-wrap 경계에서는 같은 charOffset이 이전 줄 끝과 다음 줄 시작을 동시에 뜻할 수 있어
|
|
2414
|
+
* Home/End가 이 API로 시각 줄 affinity를 명시한다.
|
|
2415
|
+
* @param {number} section_idx
|
|
2416
|
+
* @param {number} para_idx
|
|
2417
|
+
* @param {number} line_index
|
|
2418
|
+
* @param {boolean} at_end
|
|
2419
|
+
* @param {number} parent_para_idx
|
|
2420
|
+
* @param {number} control_idx
|
|
2421
|
+
* @param {number} cell_idx
|
|
2422
|
+
* @param {number} cell_para_idx
|
|
2423
|
+
* @returns {string}
|
|
2424
|
+
*/
|
|
2425
|
+
getCursorRectOnLine(section_idx, para_idx, line_index, at_end, parent_para_idx, control_idx, cell_idx, cell_para_idx) {
|
|
2426
|
+
let deferred2_0;
|
|
2427
|
+
let deferred2_1;
|
|
2428
|
+
try {
|
|
2429
|
+
const ret = wasm.hwpdocument_getCursorRectOnLine(this.__wbg_ptr, section_idx, para_idx, line_index, at_end, parent_para_idx, control_idx, cell_idx, cell_para_idx);
|
|
2430
|
+
var ptr1 = ret[0];
|
|
2431
|
+
var len1 = ret[1];
|
|
2432
|
+
if (ret[3]) {
|
|
2433
|
+
ptr1 = 0; len1 = 0;
|
|
2434
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2435
|
+
}
|
|
2436
|
+
deferred2_0 = ptr1;
|
|
2437
|
+
deferred2_1 = len1;
|
|
2438
|
+
return getStringFromWasm0(ptr1, len1);
|
|
2439
|
+
} finally {
|
|
2440
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2236
2443
|
/**
|
|
2237
2444
|
* 문서 정보를 JSON 문자열로 반환한다.
|
|
2238
2445
|
* @returns {string}
|
|
@@ -2384,7 +2591,7 @@ export class HwpDocument {
|
|
|
2384
2591
|
/**
|
|
2385
2592
|
* 커서 위치의 필드 범위 정보를 조회한다 (본문 문단).
|
|
2386
2593
|
*
|
|
2387
|
-
* 반환: `{inField, fieldId?, startCharIdx?, endCharIdx?, isGuide?, guideName?}`
|
|
2594
|
+
* 반환: `{inField, fieldId?, startCharIdx?, endCharIdx?, isGuide?, guideName?, editableInForm?}`
|
|
2388
2595
|
* @param {number} section_idx
|
|
2389
2596
|
* @param {number} para_idx
|
|
2390
2597
|
* @param {number} char_offset
|
|
@@ -2447,6 +2654,28 @@ export class HwpDocument {
|
|
|
2447
2654
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2448
2655
|
}
|
|
2449
2656
|
}
|
|
2657
|
+
/**
|
|
2658
|
+
* `getFieldInfoAtInCell` 의 options object 변형 (#1413).
|
|
2659
|
+
*
|
|
2660
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, cellParaIdx,
|
|
2661
|
+
* charOffset?, isTextbox? }`. positional 과 동일 동작(String 반환).
|
|
2662
|
+
* @param {string} options_json
|
|
2663
|
+
* @returns {string}
|
|
2664
|
+
*/
|
|
2665
|
+
getFieldInfoAtInCellEx(options_json) {
|
|
2666
|
+
let deferred2_0;
|
|
2667
|
+
let deferred2_1;
|
|
2668
|
+
try {
|
|
2669
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2670
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2671
|
+
const ret = wasm.hwpdocument_getFieldInfoAtInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
2672
|
+
deferred2_0 = ret[0];
|
|
2673
|
+
deferred2_1 = ret[1];
|
|
2674
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2675
|
+
} finally {
|
|
2676
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2450
2679
|
/**
|
|
2451
2680
|
* 문서 내 모든 필드 목록을 JSON 배열로 반환한다.
|
|
2452
2681
|
*
|
|
@@ -3409,6 +3638,34 @@ export class HwpDocument {
|
|
|
3409
3638
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3410
3639
|
}
|
|
3411
3640
|
}
|
|
3641
|
+
/**
|
|
3642
|
+
* `getSelectionRectsInCell` 의 options object 변형 (#1413).
|
|
3643
|
+
*
|
|
3644
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, startCellParaIdx,
|
|
3645
|
+
* startCharOffset, endCellParaIdx, endCharOffset }`. positional 과 동일 동작.
|
|
3646
|
+
* @param {string} options_json
|
|
3647
|
+
* @returns {string}
|
|
3648
|
+
*/
|
|
3649
|
+
getSelectionRectsInCellEx(options_json) {
|
|
3650
|
+
let deferred3_0;
|
|
3651
|
+
let deferred3_1;
|
|
3652
|
+
try {
|
|
3653
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3654
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3655
|
+
const ret = wasm.hwpdocument_getSelectionRectsInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
3656
|
+
var ptr2 = ret[0];
|
|
3657
|
+
var len2 = ret[1];
|
|
3658
|
+
if (ret[3]) {
|
|
3659
|
+
ptr2 = 0; len2 = 0;
|
|
3660
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
3661
|
+
}
|
|
3662
|
+
deferred3_0 = ptr2;
|
|
3663
|
+
deferred3_1 = len2;
|
|
3664
|
+
return getStringFromWasm0(ptr2, len2);
|
|
3665
|
+
} finally {
|
|
3666
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3412
3669
|
/**
|
|
3413
3670
|
* 각주/미주 내부 선택 영역의 줄별 사각형을 반환한다.
|
|
3414
3671
|
* @param {number} page_num
|
|
@@ -3500,6 +3757,14 @@ export class HwpDocument {
|
|
|
3500
3757
|
const ret = wasm.hwpdocument_getShowControlCodes(this.__wbg_ptr);
|
|
3501
3758
|
return ret !== 0;
|
|
3502
3759
|
}
|
|
3760
|
+
/**
|
|
3761
|
+
* 문단부호(¶) 표시 여부를 반환한다.
|
|
3762
|
+
* @returns {boolean}
|
|
3763
|
+
*/
|
|
3764
|
+
getShowParagraphMarks() {
|
|
3765
|
+
const ret = wasm.hwpdocument_getShowParagraphMarks(this.__wbg_ptr);
|
|
3766
|
+
return ret !== 0;
|
|
3767
|
+
}
|
|
3503
3768
|
/**
|
|
3504
3769
|
* 투명선 표시 여부를 반환한다.
|
|
3505
3770
|
* @returns {boolean}
|
|
@@ -3816,6 +4081,34 @@ export class HwpDocument {
|
|
|
3816
4081
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
3817
4082
|
}
|
|
3818
4083
|
}
|
|
4084
|
+
/**
|
|
4085
|
+
* `getTextInCell` 의 options object 변형 (#1413).
|
|
4086
|
+
*
|
|
4087
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, cellParaIdx,
|
|
4088
|
+
* charOffset?, count }`. positional 과 동일 동작.
|
|
4089
|
+
* @param {string} options_json
|
|
4090
|
+
* @returns {string}
|
|
4091
|
+
*/
|
|
4092
|
+
getTextInCellEx(options_json) {
|
|
4093
|
+
let deferred3_0;
|
|
4094
|
+
let deferred3_1;
|
|
4095
|
+
try {
|
|
4096
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4097
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4098
|
+
const ret = wasm.hwpdocument_getTextInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
4099
|
+
var ptr2 = ret[0];
|
|
4100
|
+
var len2 = ret[1];
|
|
4101
|
+
if (ret[3]) {
|
|
4102
|
+
ptr2 = 0; len2 = 0;
|
|
4103
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4104
|
+
}
|
|
4105
|
+
deferred3_0 = ptr2;
|
|
4106
|
+
deferred3_1 = len2;
|
|
4107
|
+
return getStringFromWasm0(ptr2, len2);
|
|
4108
|
+
} finally {
|
|
4109
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
4110
|
+
}
|
|
4111
|
+
}
|
|
3819
4112
|
/**
|
|
3820
4113
|
* 문단에서 텍스트 부분 문자열을 반환한다 (Undo용 텍스트 보존).
|
|
3821
4114
|
* @param {number} section_idx
|
|
@@ -4124,32 +4417,228 @@ export class HwpDocument {
|
|
|
4124
4417
|
return ret >>> 0;
|
|
4125
4418
|
}
|
|
4126
4419
|
/**
|
|
4127
|
-
*
|
|
4420
|
+
* 현재 본문 위치에 ClickHere 누름틀 필드를 삽입한다.
|
|
4128
4421
|
* @param {number} section_idx
|
|
4129
4422
|
* @param {number} para_idx
|
|
4130
4423
|
* @param {number} char_offset
|
|
4424
|
+
* @param {string} guide
|
|
4425
|
+
* @param {string} memo
|
|
4426
|
+
* @param {string} name
|
|
4427
|
+
* @param {boolean} editable
|
|
4131
4428
|
* @returns {string}
|
|
4132
4429
|
*/
|
|
4133
|
-
|
|
4134
|
-
let
|
|
4135
|
-
let
|
|
4430
|
+
insertClickHereField(section_idx, para_idx, char_offset, guide, memo, name, editable) {
|
|
4431
|
+
let deferred5_0;
|
|
4432
|
+
let deferred5_1;
|
|
4136
4433
|
try {
|
|
4137
|
-
const
|
|
4138
|
-
|
|
4139
|
-
|
|
4434
|
+
const ptr0 = passStringToWasm0(guide, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4435
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4436
|
+
const ptr1 = passStringToWasm0(memo, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4437
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4438
|
+
const ptr2 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4439
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4440
|
+
const ret = wasm.hwpdocument_insertClickHereField(this.__wbg_ptr, section_idx, para_idx, char_offset, ptr0, len0, ptr1, len1, ptr2, len2, editable);
|
|
4441
|
+
var ptr4 = ret[0];
|
|
4442
|
+
var len4 = ret[1];
|
|
4140
4443
|
if (ret[3]) {
|
|
4141
|
-
|
|
4444
|
+
ptr4 = 0; len4 = 0;
|
|
4142
4445
|
throw takeFromExternrefTable0(ret[2]);
|
|
4143
4446
|
}
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
return getStringFromWasm0(
|
|
4447
|
+
deferred5_0 = ptr4;
|
|
4448
|
+
deferred5_1 = len4;
|
|
4449
|
+
return getStringFromWasm0(ptr4, len4);
|
|
4147
4450
|
} finally {
|
|
4148
|
-
wasm.__wbindgen_free(
|
|
4451
|
+
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
4149
4452
|
}
|
|
4150
4453
|
}
|
|
4151
4454
|
/**
|
|
4152
|
-
*
|
|
4455
|
+
* 현재 중첩 표 cellPath 위치에 ClickHere 누름틀 필드를 삽입한다.
|
|
4456
|
+
* @param {number} section_idx
|
|
4457
|
+
* @param {number} parent_para_idx
|
|
4458
|
+
* @param {string} path_json
|
|
4459
|
+
* @param {number} char_offset
|
|
4460
|
+
* @param {string} guide
|
|
4461
|
+
* @param {string} memo
|
|
4462
|
+
* @param {string} name
|
|
4463
|
+
* @param {boolean} editable
|
|
4464
|
+
* @returns {string}
|
|
4465
|
+
*/
|
|
4466
|
+
insertClickHereFieldByPath(section_idx, parent_para_idx, path_json, char_offset, guide, memo, name, editable) {
|
|
4467
|
+
let deferred6_0;
|
|
4468
|
+
let deferred6_1;
|
|
4469
|
+
try {
|
|
4470
|
+
const ptr0 = passStringToWasm0(path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4471
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4472
|
+
const ptr1 = passStringToWasm0(guide, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4473
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4474
|
+
const ptr2 = passStringToWasm0(memo, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4475
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4476
|
+
const ptr3 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4477
|
+
const len3 = WASM_VECTOR_LEN;
|
|
4478
|
+
const ret = wasm.hwpdocument_insertClickHereFieldByPath(this.__wbg_ptr, section_idx, parent_para_idx, ptr0, len0, char_offset, ptr1, len1, ptr2, len2, ptr3, len3, editable);
|
|
4479
|
+
var ptr5 = ret[0];
|
|
4480
|
+
var len5 = ret[1];
|
|
4481
|
+
if (ret[3]) {
|
|
4482
|
+
ptr5 = 0; len5 = 0;
|
|
4483
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4484
|
+
}
|
|
4485
|
+
deferred6_0 = ptr5;
|
|
4486
|
+
deferred6_1 = len5;
|
|
4487
|
+
return getStringFromWasm0(ptr5, len5);
|
|
4488
|
+
} finally {
|
|
4489
|
+
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4492
|
+
/**
|
|
4493
|
+
* `insertClickHereFieldByPath` 의 options object 변형 (#1413).
|
|
4494
|
+
*
|
|
4495
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, path: string, charOffset?, guide?,
|
|
4496
|
+
* memo?, name?, editable? }`. `path` 는 cell_path JSON 문자열. positional 과 동일 동작.
|
|
4497
|
+
* @param {string} options_json
|
|
4498
|
+
* @returns {string}
|
|
4499
|
+
*/
|
|
4500
|
+
insertClickHereFieldByPathEx(options_json) {
|
|
4501
|
+
let deferred3_0;
|
|
4502
|
+
let deferred3_1;
|
|
4503
|
+
try {
|
|
4504
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4505
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4506
|
+
const ret = wasm.hwpdocument_insertClickHereFieldByPathEx(this.__wbg_ptr, ptr0, len0);
|
|
4507
|
+
var ptr2 = ret[0];
|
|
4508
|
+
var len2 = ret[1];
|
|
4509
|
+
if (ret[3]) {
|
|
4510
|
+
ptr2 = 0; len2 = 0;
|
|
4511
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4512
|
+
}
|
|
4513
|
+
deferred3_0 = ptr2;
|
|
4514
|
+
deferred3_1 = len2;
|
|
4515
|
+
return getStringFromWasm0(ptr2, len2);
|
|
4516
|
+
} finally {
|
|
4517
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
4518
|
+
}
|
|
4519
|
+
}
|
|
4520
|
+
/**
|
|
4521
|
+
* `insertClickHereField` 의 options object 변형 (#1413).
|
|
4522
|
+
*
|
|
4523
|
+
* options JSON 키: `{ sectionIdx, paraIdx, charOffset?, guide?, memo?, name?, editable? }`.
|
|
4524
|
+
* positional 과 동일 동작.
|
|
4525
|
+
* @param {string} options_json
|
|
4526
|
+
* @returns {string}
|
|
4527
|
+
*/
|
|
4528
|
+
insertClickHereFieldEx(options_json) {
|
|
4529
|
+
let deferred3_0;
|
|
4530
|
+
let deferred3_1;
|
|
4531
|
+
try {
|
|
4532
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4533
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4534
|
+
const ret = wasm.hwpdocument_insertClickHereFieldEx(this.__wbg_ptr, ptr0, len0);
|
|
4535
|
+
var ptr2 = ret[0];
|
|
4536
|
+
var len2 = ret[1];
|
|
4537
|
+
if (ret[3]) {
|
|
4538
|
+
ptr2 = 0; len2 = 0;
|
|
4539
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4540
|
+
}
|
|
4541
|
+
deferred3_0 = ptr2;
|
|
4542
|
+
deferred3_1 = len2;
|
|
4543
|
+
return getStringFromWasm0(ptr2, len2);
|
|
4544
|
+
} finally {
|
|
4545
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
4546
|
+
}
|
|
4547
|
+
}
|
|
4548
|
+
/**
|
|
4549
|
+
* 현재 셀/글상자 위치에 ClickHere 누름틀 필드를 삽입한다.
|
|
4550
|
+
* @param {number} section_idx
|
|
4551
|
+
* @param {number} parent_para_idx
|
|
4552
|
+
* @param {number} control_idx
|
|
4553
|
+
* @param {number} cell_idx
|
|
4554
|
+
* @param {number} cell_para_idx
|
|
4555
|
+
* @param {number} char_offset
|
|
4556
|
+
* @param {boolean} is_textbox
|
|
4557
|
+
* @param {string} guide
|
|
4558
|
+
* @param {string} memo
|
|
4559
|
+
* @param {string} name
|
|
4560
|
+
* @param {boolean} editable
|
|
4561
|
+
* @returns {string}
|
|
4562
|
+
*/
|
|
4563
|
+
insertClickHereFieldInCell(section_idx, parent_para_idx, control_idx, cell_idx, cell_para_idx, char_offset, is_textbox, guide, memo, name, editable) {
|
|
4564
|
+
let deferred5_0;
|
|
4565
|
+
let deferred5_1;
|
|
4566
|
+
try {
|
|
4567
|
+
const ptr0 = passStringToWasm0(guide, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4568
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4569
|
+
const ptr1 = passStringToWasm0(memo, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4570
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4571
|
+
const ptr2 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4572
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4573
|
+
const ret = wasm.hwpdocument_insertClickHereFieldInCell(this.__wbg_ptr, section_idx, parent_para_idx, control_idx, cell_idx, cell_para_idx, char_offset, is_textbox, ptr0, len0, ptr1, len1, ptr2, len2, editable);
|
|
4574
|
+
var ptr4 = ret[0];
|
|
4575
|
+
var len4 = ret[1];
|
|
4576
|
+
if (ret[3]) {
|
|
4577
|
+
ptr4 = 0; len4 = 0;
|
|
4578
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4579
|
+
}
|
|
4580
|
+
deferred5_0 = ptr4;
|
|
4581
|
+
deferred5_1 = len4;
|
|
4582
|
+
return getStringFromWasm0(ptr4, len4);
|
|
4583
|
+
} finally {
|
|
4584
|
+
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
4585
|
+
}
|
|
4586
|
+
}
|
|
4587
|
+
/**
|
|
4588
|
+
* `insertClickHereFieldInCell` 의 options object 변형 (#1413).
|
|
4589
|
+
*
|
|
4590
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, cellParaIdx,
|
|
4591
|
+
* charOffset?, isTextbox?, guide?, memo?, name?, editable? }`. positional 과 동일 동작.
|
|
4592
|
+
* @param {string} options_json
|
|
4593
|
+
* @returns {string}
|
|
4594
|
+
*/
|
|
4595
|
+
insertClickHereFieldInCellEx(options_json) {
|
|
4596
|
+
let deferred3_0;
|
|
4597
|
+
let deferred3_1;
|
|
4598
|
+
try {
|
|
4599
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4600
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4601
|
+
const ret = wasm.hwpdocument_insertClickHereFieldInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
4602
|
+
var ptr2 = ret[0];
|
|
4603
|
+
var len2 = ret[1];
|
|
4604
|
+
if (ret[3]) {
|
|
4605
|
+
ptr2 = 0; len2 = 0;
|
|
4606
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4607
|
+
}
|
|
4608
|
+
deferred3_0 = ptr2;
|
|
4609
|
+
deferred3_1 = len2;
|
|
4610
|
+
return getStringFromWasm0(ptr2, len2);
|
|
4611
|
+
} finally {
|
|
4612
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
4613
|
+
}
|
|
4614
|
+
}
|
|
4615
|
+
/**
|
|
4616
|
+
* 단 나누기 삽입 (Ctrl+Shift+Enter)
|
|
4617
|
+
* @param {number} section_idx
|
|
4618
|
+
* @param {number} para_idx
|
|
4619
|
+
* @param {number} char_offset
|
|
4620
|
+
* @returns {string}
|
|
4621
|
+
*/
|
|
4622
|
+
insertColumnBreak(section_idx, para_idx, char_offset) {
|
|
4623
|
+
let deferred2_0;
|
|
4624
|
+
let deferred2_1;
|
|
4625
|
+
try {
|
|
4626
|
+
const ret = wasm.hwpdocument_insertColumnBreak(this.__wbg_ptr, section_idx, para_idx, char_offset);
|
|
4627
|
+
var ptr1 = ret[0];
|
|
4628
|
+
var len1 = ret[1];
|
|
4629
|
+
if (ret[3]) {
|
|
4630
|
+
ptr1 = 0; len1 = 0;
|
|
4631
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4632
|
+
}
|
|
4633
|
+
deferred2_0 = ptr1;
|
|
4634
|
+
deferred2_1 = len1;
|
|
4635
|
+
return getStringFromWasm0(ptr1, len1);
|
|
4636
|
+
} finally {
|
|
4637
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
4638
|
+
}
|
|
4639
|
+
}
|
|
4640
|
+
/**
|
|
4641
|
+
* 미주를 삽입한다.
|
|
4153
4642
|
* @param {number} section_idx
|
|
4154
4643
|
* @param {number} para_idx
|
|
4155
4644
|
* @param {number} char_offset
|
|
@@ -4389,6 +4878,45 @@ export class HwpDocument {
|
|
|
4389
4878
|
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
4390
4879
|
}
|
|
4391
4880
|
}
|
|
4881
|
+
/**
|
|
4882
|
+
* 커서 위치에 그림을 삽입한다 (확장, options object — #1413).
|
|
4883
|
+
*
|
|
4884
|
+
* positional `insertPicture` 와 동일 동작의 얇은 어댑터. 이미지 바이너리는 별도
|
|
4885
|
+
* `image_data` 인자(Uint8Array)로 받고, 나머지는 JSON options 로 받는다. 필드 추가/
|
|
4886
|
+
* 순서 변경 시 호출부 영향이 작다.
|
|
4887
|
+
*
|
|
4888
|
+
* options JSON 키 (positional 과 동일 의미, camelCase):
|
|
4889
|
+
* `{ sectionIdx, paraIdx, charOffset?, cellPath?: string, width, height,
|
|
4890
|
+
* naturalWidthPx, naturalHeightPx, extension?, description?,
|
|
4891
|
+
* paperOffsetXHu?: number|null, paperOffsetYHu?: number|null }`
|
|
4892
|
+
* - `cellPath` 는 cell_path_json 문자열(빈 문자열/`"[]"` 이면 본문 inline).
|
|
4893
|
+
* - 반환값은 `insertPicture` 와 동일.
|
|
4894
|
+
* @param {string} options_json
|
|
4895
|
+
* @param {Uint8Array} image_data
|
|
4896
|
+
* @returns {string}
|
|
4897
|
+
*/
|
|
4898
|
+
insertPictureEx(options_json, image_data) {
|
|
4899
|
+
let deferred4_0;
|
|
4900
|
+
let deferred4_1;
|
|
4901
|
+
try {
|
|
4902
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4903
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4904
|
+
const ptr1 = passArray8ToWasm0(image_data, wasm.__wbindgen_malloc);
|
|
4905
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4906
|
+
const ret = wasm.hwpdocument_insertPictureEx(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
4907
|
+
var ptr3 = ret[0];
|
|
4908
|
+
var len3 = ret[1];
|
|
4909
|
+
if (ret[3]) {
|
|
4910
|
+
ptr3 = 0; len3 = 0;
|
|
4911
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4912
|
+
}
|
|
4913
|
+
deferred4_0 = ptr3;
|
|
4914
|
+
deferred4_1 = len3;
|
|
4915
|
+
return getStringFromWasm0(ptr3, len3);
|
|
4916
|
+
} finally {
|
|
4917
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
4918
|
+
}
|
|
4919
|
+
}
|
|
4392
4920
|
/**
|
|
4393
4921
|
* 표에 열을 삽입한다.
|
|
4394
4922
|
*
|
|
@@ -4541,6 +5069,34 @@ export class HwpDocument {
|
|
|
4541
5069
|
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
4542
5070
|
}
|
|
4543
5071
|
}
|
|
5072
|
+
/**
|
|
5073
|
+
* `insertTextInCell` 의 options object 변형 (#1413).
|
|
5074
|
+
*
|
|
5075
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, cellParaIdx,
|
|
5076
|
+
* charOffset?, text: string }`. positional 과 동일 동작.
|
|
5077
|
+
* @param {string} options_json
|
|
5078
|
+
* @returns {string}
|
|
5079
|
+
*/
|
|
5080
|
+
insertTextInCellEx(options_json) {
|
|
5081
|
+
let deferred3_0;
|
|
5082
|
+
let deferred3_1;
|
|
5083
|
+
try {
|
|
5084
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5085
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5086
|
+
const ret = wasm.hwpdocument_insertTextInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
5087
|
+
var ptr2 = ret[0];
|
|
5088
|
+
var len2 = ret[1];
|
|
5089
|
+
if (ret[3]) {
|
|
5090
|
+
ptr2 = 0; len2 = 0;
|
|
5091
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5092
|
+
}
|
|
5093
|
+
deferred3_0 = ptr2;
|
|
5094
|
+
deferred3_1 = len2;
|
|
5095
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5096
|
+
} finally {
|
|
5097
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
5098
|
+
}
|
|
5099
|
+
}
|
|
4544
5100
|
/**
|
|
4545
5101
|
* 각주 내 텍스트를 삽입한다.
|
|
4546
5102
|
* @param {number} section_idx
|
|
@@ -4841,6 +5397,34 @@ export class HwpDocument {
|
|
|
4841
5397
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
4842
5398
|
}
|
|
4843
5399
|
}
|
|
5400
|
+
/**
|
|
5401
|
+
* `mergeTableCells` 의 options object 변형 (#1413).
|
|
5402
|
+
*
|
|
5403
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, startRow, startCol,
|
|
5404
|
+
* endRow, endCol }`. positional 과 동일 동작.
|
|
5405
|
+
* @param {string} options_json
|
|
5406
|
+
* @returns {string}
|
|
5407
|
+
*/
|
|
5408
|
+
mergeTableCellsEx(options_json) {
|
|
5409
|
+
let deferred3_0;
|
|
5410
|
+
let deferred3_1;
|
|
5411
|
+
try {
|
|
5412
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5413
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5414
|
+
const ret = wasm.hwpdocument_mergeTableCellsEx(this.__wbg_ptr, ptr0, len0);
|
|
5415
|
+
var ptr2 = ret[0];
|
|
5416
|
+
var len2 = ret[1];
|
|
5417
|
+
if (ret[3]) {
|
|
5418
|
+
ptr2 = 0; len2 = 0;
|
|
5419
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5420
|
+
}
|
|
5421
|
+
deferred3_0 = ptr2;
|
|
5422
|
+
deferred3_1 = len2;
|
|
5423
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5424
|
+
} finally {
|
|
5425
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
5426
|
+
}
|
|
5427
|
+
}
|
|
4844
5428
|
/**
|
|
4845
5429
|
* 직선 끝점 이동 (글로벌 HWPUNIT 좌표)
|
|
4846
5430
|
* @param {number} sec
|
|
@@ -4870,6 +5454,33 @@ export class HwpDocument {
|
|
|
4870
5454
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
4871
5455
|
}
|
|
4872
5456
|
}
|
|
5457
|
+
/**
|
|
5458
|
+
* `moveLineEndpoint` 의 options object 변형 (#1413).
|
|
5459
|
+
*
|
|
5460
|
+
* options JSON 키: `{ sec, para, ci, sx, sy, ex, ey }` (좌표는 i32). positional 과 동일 동작.
|
|
5461
|
+
* @param {string} options_json
|
|
5462
|
+
* @returns {string}
|
|
5463
|
+
*/
|
|
5464
|
+
moveLineEndpointEx(options_json) {
|
|
5465
|
+
let deferred3_0;
|
|
5466
|
+
let deferred3_1;
|
|
5467
|
+
try {
|
|
5468
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5469
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5470
|
+
const ret = wasm.hwpdocument_moveLineEndpointEx(this.__wbg_ptr, ptr0, len0);
|
|
5471
|
+
var ptr2 = ret[0];
|
|
5472
|
+
var len2 = ret[1];
|
|
5473
|
+
if (ret[3]) {
|
|
5474
|
+
ptr2 = 0; len2 = 0;
|
|
5475
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5476
|
+
}
|
|
5477
|
+
deferred3_0 = ptr2;
|
|
5478
|
+
deferred3_1 = len2;
|
|
5479
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5480
|
+
} finally {
|
|
5481
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
5482
|
+
}
|
|
5483
|
+
}
|
|
4873
5484
|
/**
|
|
4874
5485
|
* 표의 위치 오프셋(vertical_offset, horizontal_offset)을 이동한다.
|
|
4875
5486
|
*
|
|
@@ -4969,6 +5580,35 @@ export class HwpDocument {
|
|
|
4969
5580
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
4970
5581
|
}
|
|
4971
5582
|
}
|
|
5583
|
+
/**
|
|
5584
|
+
* `moveVertical` 의 options object 변형 (#1413).
|
|
5585
|
+
*
|
|
5586
|
+
* options JSON 키: `{ sectionIdx, paraIdx, charOffset?, delta, preferredX,
|
|
5587
|
+
* parentParaIdx?, controlIdx?, cellIdx?, cellParaIdx? }`. cell 컨텍스트 키가 모두
|
|
5588
|
+
* 생략되면 본문 이동(parentParaIdx=MAX 동작과 동일). positional 과 동일 동작.
|
|
5589
|
+
* @param {string} options_json
|
|
5590
|
+
* @returns {string}
|
|
5591
|
+
*/
|
|
5592
|
+
moveVerticalEx(options_json) {
|
|
5593
|
+
let deferred3_0;
|
|
5594
|
+
let deferred3_1;
|
|
5595
|
+
try {
|
|
5596
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5597
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5598
|
+
const ret = wasm.hwpdocument_moveVerticalEx(this.__wbg_ptr, ptr0, len0);
|
|
5599
|
+
var ptr2 = ret[0];
|
|
5600
|
+
var len2 = ret[1];
|
|
5601
|
+
if (ret[3]) {
|
|
5602
|
+
ptr2 = 0; len2 = 0;
|
|
5603
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5604
|
+
}
|
|
5605
|
+
deferred3_0 = ptr2;
|
|
5606
|
+
deferred3_1 = len2;
|
|
5607
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5608
|
+
} finally {
|
|
5609
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
5610
|
+
}
|
|
5611
|
+
}
|
|
4972
5612
|
/**
|
|
4973
5613
|
* 페이지 단위로 이전/다음 머리말·꼬리말로 이동한다.
|
|
4974
5614
|
*
|
|
@@ -5161,6 +5801,34 @@ export class HwpDocument {
|
|
|
5161
5801
|
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
5162
5802
|
}
|
|
5163
5803
|
}
|
|
5804
|
+
/**
|
|
5805
|
+
* `pasteHtmlInCell` 의 options object 변형 (#1413).
|
|
5806
|
+
*
|
|
5807
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, cellParaIdx,
|
|
5808
|
+
* charOffset?, html: string }`. positional 과 동일 동작.
|
|
5809
|
+
* @param {string} options_json
|
|
5810
|
+
* @returns {string}
|
|
5811
|
+
*/
|
|
5812
|
+
pasteHtmlInCellEx(options_json) {
|
|
5813
|
+
let deferred3_0;
|
|
5814
|
+
let deferred3_1;
|
|
5815
|
+
try {
|
|
5816
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5817
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5818
|
+
const ret = wasm.hwpdocument_pasteHtmlInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
5819
|
+
var ptr2 = ret[0];
|
|
5820
|
+
var len2 = ret[1];
|
|
5821
|
+
if (ret[3]) {
|
|
5822
|
+
ptr2 = 0; len2 = 0;
|
|
5823
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5824
|
+
}
|
|
5825
|
+
deferred3_0 = ptr2;
|
|
5826
|
+
deferred3_1 = len2;
|
|
5827
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5828
|
+
} finally {
|
|
5829
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
5830
|
+
}
|
|
5831
|
+
}
|
|
5164
5832
|
/**
|
|
5165
5833
|
* 내부 클립보드의 내용을 캐럿 위치에 붙여넣는다 (본문 문단).
|
|
5166
5834
|
*
|
|
@@ -5300,7 +5968,29 @@ export class HwpDocument {
|
|
|
5300
5968
|
deferred1_1 = ret[1];
|
|
5301
5969
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
5302
5970
|
} finally {
|
|
5303
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
5971
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
5972
|
+
}
|
|
5973
|
+
}
|
|
5974
|
+
/**
|
|
5975
|
+
* `removeFieldAtInCell` 의 options object 변형 (#1413).
|
|
5976
|
+
*
|
|
5977
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, cellParaIdx,
|
|
5978
|
+
* charOffset?, isTextbox? }`. positional 과 동일 동작(String 반환).
|
|
5979
|
+
* @param {string} options_json
|
|
5980
|
+
* @returns {string}
|
|
5981
|
+
*/
|
|
5982
|
+
removeFieldAtInCellEx(options_json) {
|
|
5983
|
+
let deferred2_0;
|
|
5984
|
+
let deferred2_1;
|
|
5985
|
+
try {
|
|
5986
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5987
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5988
|
+
const ret = wasm.hwpdocument_removeFieldAtInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
5989
|
+
deferred2_0 = ret[0];
|
|
5990
|
+
deferred2_1 = ret[1];
|
|
5991
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
5992
|
+
} finally {
|
|
5993
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
5304
5994
|
}
|
|
5305
5995
|
}
|
|
5306
5996
|
/**
|
|
@@ -5727,6 +6417,48 @@ export class HwpDocument {
|
|
|
5727
6417
|
const ret = wasm.hwpdocument_setActiveFieldInCell(this.__wbg_ptr, section_idx, parent_para_idx, control_idx, cell_idx, cell_para_idx, char_offset, is_textbox);
|
|
5728
6418
|
return ret !== 0;
|
|
5729
6419
|
}
|
|
6420
|
+
/**
|
|
6421
|
+
* `setActiveFieldInCell` 의 options object 변형 (#1413).
|
|
6422
|
+
*
|
|
6423
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, cellIdx, cellParaIdx,
|
|
6424
|
+
* charOffset?, isTextbox? }`. positional 과 동일 동작(bool 반환).
|
|
6425
|
+
* @param {string} options_json
|
|
6426
|
+
* @returns {boolean}
|
|
6427
|
+
*/
|
|
6428
|
+
setActiveFieldInCellEx(options_json) {
|
|
6429
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6430
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6431
|
+
const ret = wasm.hwpdocument_setActiveFieldInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
6432
|
+
return ret !== 0;
|
|
6433
|
+
}
|
|
6434
|
+
/**
|
|
6435
|
+
* 셀 내 문단의 paraShapeId를 직접 설정한다.
|
|
6436
|
+
* @param {number} sec_idx
|
|
6437
|
+
* @param {number} parent_para_idx
|
|
6438
|
+
* @param {number} control_idx
|
|
6439
|
+
* @param {number} cell_idx
|
|
6440
|
+
* @param {number} cell_para_idx
|
|
6441
|
+
* @param {number} para_shape_id
|
|
6442
|
+
* @returns {string}
|
|
6443
|
+
*/
|
|
6444
|
+
setCellParaShapeId(sec_idx, parent_para_idx, control_idx, cell_idx, cell_para_idx, para_shape_id) {
|
|
6445
|
+
let deferred2_0;
|
|
6446
|
+
let deferred2_1;
|
|
6447
|
+
try {
|
|
6448
|
+
const ret = wasm.hwpdocument_setCellParaShapeId(this.__wbg_ptr, sec_idx, parent_para_idx, control_idx, cell_idx, cell_para_idx, para_shape_id);
|
|
6449
|
+
var ptr1 = ret[0];
|
|
6450
|
+
var len1 = ret[1];
|
|
6451
|
+
if (ret[3]) {
|
|
6452
|
+
ptr1 = 0; len1 = 0;
|
|
6453
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
6454
|
+
}
|
|
6455
|
+
deferred2_0 = ptr1;
|
|
6456
|
+
deferred2_1 = len1;
|
|
6457
|
+
return getStringFromWasm0(ptr1, len1);
|
|
6458
|
+
} finally {
|
|
6459
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
6460
|
+
}
|
|
6461
|
+
}
|
|
5730
6462
|
/**
|
|
5731
6463
|
* [Task #1151 v4] 표 셀 내 Picture 속성 변경 (by_path). Shape 패턴 정합.
|
|
5732
6464
|
* @param {number} section_idx
|
|
@@ -5820,6 +6552,91 @@ export class HwpDocument {
|
|
|
5820
6552
|
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
5821
6553
|
}
|
|
5822
6554
|
}
|
|
6555
|
+
/**
|
|
6556
|
+
* 글자 서식 ID를 직접 복원한다 (본문 문단).
|
|
6557
|
+
* @param {number} sec_idx
|
|
6558
|
+
* @param {number} para_idx
|
|
6559
|
+
* @param {number} start_offset
|
|
6560
|
+
* @param {number} end_offset
|
|
6561
|
+
* @param {number} char_shape_id
|
|
6562
|
+
* @returns {string}
|
|
6563
|
+
*/
|
|
6564
|
+
setCharShapeId(sec_idx, para_idx, start_offset, end_offset, char_shape_id) {
|
|
6565
|
+
let deferred2_0;
|
|
6566
|
+
let deferred2_1;
|
|
6567
|
+
try {
|
|
6568
|
+
const ret = wasm.hwpdocument_setCharShapeId(this.__wbg_ptr, sec_idx, para_idx, start_offset, end_offset, char_shape_id);
|
|
6569
|
+
var ptr1 = ret[0];
|
|
6570
|
+
var len1 = ret[1];
|
|
6571
|
+
if (ret[3]) {
|
|
6572
|
+
ptr1 = 0; len1 = 0;
|
|
6573
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
6574
|
+
}
|
|
6575
|
+
deferred2_0 = ptr1;
|
|
6576
|
+
deferred2_1 = len1;
|
|
6577
|
+
return getStringFromWasm0(ptr1, len1);
|
|
6578
|
+
} finally {
|
|
6579
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
6580
|
+
}
|
|
6581
|
+
}
|
|
6582
|
+
/**
|
|
6583
|
+
* 글자 서식 ID를 직접 복원한다 (셀 내 문단).
|
|
6584
|
+
* @param {number} sec_idx
|
|
6585
|
+
* @param {number} parent_para_idx
|
|
6586
|
+
* @param {number} control_idx
|
|
6587
|
+
* @param {number} cell_idx
|
|
6588
|
+
* @param {number} cell_para_idx
|
|
6589
|
+
* @param {number} start_offset
|
|
6590
|
+
* @param {number} end_offset
|
|
6591
|
+
* @param {number} char_shape_id
|
|
6592
|
+
* @returns {string}
|
|
6593
|
+
*/
|
|
6594
|
+
setCharShapeIdInCell(sec_idx, parent_para_idx, control_idx, cell_idx, cell_para_idx, start_offset, end_offset, char_shape_id) {
|
|
6595
|
+
let deferred2_0;
|
|
6596
|
+
let deferred2_1;
|
|
6597
|
+
try {
|
|
6598
|
+
const ret = wasm.hwpdocument_setCharShapeIdInCell(this.__wbg_ptr, sec_idx, parent_para_idx, control_idx, cell_idx, cell_para_idx, start_offset, end_offset, char_shape_id);
|
|
6599
|
+
var ptr1 = ret[0];
|
|
6600
|
+
var len1 = ret[1];
|
|
6601
|
+
if (ret[3]) {
|
|
6602
|
+
ptr1 = 0; len1 = 0;
|
|
6603
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
6604
|
+
}
|
|
6605
|
+
deferred2_0 = ptr1;
|
|
6606
|
+
deferred2_1 = len1;
|
|
6607
|
+
return getStringFromWasm0(ptr1, len1);
|
|
6608
|
+
} finally {
|
|
6609
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
6610
|
+
}
|
|
6611
|
+
}
|
|
6612
|
+
/**
|
|
6613
|
+
* `setCharShapeIdInCell` 의 options object 변형 (#1413).
|
|
6614
|
+
*
|
|
6615
|
+
* options JSON 키: `{ secIdx, parentParaIdx, controlIdx, cellIdx, cellParaIdx,
|
|
6616
|
+
* startOffset, endOffset, charShapeId }`. positional 과 동일 동작.
|
|
6617
|
+
* @param {string} options_json
|
|
6618
|
+
* @returns {string}
|
|
6619
|
+
*/
|
|
6620
|
+
setCharShapeIdInCellEx(options_json) {
|
|
6621
|
+
let deferred3_0;
|
|
6622
|
+
let deferred3_1;
|
|
6623
|
+
try {
|
|
6624
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6625
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6626
|
+
const ret = wasm.hwpdocument_setCharShapeIdInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
6627
|
+
var ptr2 = ret[0];
|
|
6628
|
+
var len2 = ret[1];
|
|
6629
|
+
if (ret[3]) {
|
|
6630
|
+
ptr2 = 0; len2 = 0;
|
|
6631
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
6632
|
+
}
|
|
6633
|
+
deferred3_0 = ptr2;
|
|
6634
|
+
deferred3_1 = len2;
|
|
6635
|
+
return getStringFromWasm0(ptr2, len2);
|
|
6636
|
+
} finally {
|
|
6637
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
6638
|
+
}
|
|
6639
|
+
}
|
|
5823
6640
|
/**
|
|
5824
6641
|
* @param {boolean} enabled
|
|
5825
6642
|
*/
|
|
@@ -6040,6 +6857,34 @@ export class HwpDocument {
|
|
|
6040
6857
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
6041
6858
|
}
|
|
6042
6859
|
}
|
|
6860
|
+
/**
|
|
6861
|
+
* `setFormValueInCell` 의 options object 변형 (#1413).
|
|
6862
|
+
*
|
|
6863
|
+
* options JSON 키: `{ sec, tablePara, tableCi, cellIdx, cellPara, formCi, value: object }`.
|
|
6864
|
+
* positional 과 동일 동작.
|
|
6865
|
+
* @param {string} options_json
|
|
6866
|
+
* @returns {string}
|
|
6867
|
+
*/
|
|
6868
|
+
setFormValueInCellEx(options_json) {
|
|
6869
|
+
let deferred3_0;
|
|
6870
|
+
let deferred3_1;
|
|
6871
|
+
try {
|
|
6872
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6873
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6874
|
+
const ret = wasm.hwpdocument_setFormValueInCellEx(this.__wbg_ptr, ptr0, len0);
|
|
6875
|
+
var ptr2 = ret[0];
|
|
6876
|
+
var len2 = ret[1];
|
|
6877
|
+
if (ret[3]) {
|
|
6878
|
+
ptr2 = 0; len2 = 0;
|
|
6879
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
6880
|
+
}
|
|
6881
|
+
deferred3_0 = ptr2;
|
|
6882
|
+
deferred3_1 = len2;
|
|
6883
|
+
return getStringFromWasm0(ptr2, len2);
|
|
6884
|
+
} finally {
|
|
6885
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
6886
|
+
}
|
|
6887
|
+
}
|
|
6043
6888
|
/**
|
|
6044
6889
|
* [Task #825] 머리말/꼬리말 안 그림 속성 변경.
|
|
6045
6890
|
* @param {number} section_idx
|
|
@@ -6103,6 +6948,34 @@ export class HwpDocument {
|
|
|
6103
6948
|
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
6104
6949
|
}
|
|
6105
6950
|
}
|
|
6951
|
+
/**
|
|
6952
|
+
* `setNoteEquationProperties` 의 options object 변형 (#1413).
|
|
6953
|
+
*
|
|
6954
|
+
* options JSON 키: `{ kind, sectionIdx, parentParaIdx, noteControlIdx, noteParaIdx,
|
|
6955
|
+
* innerControlIdx, props: object }`. positional 과 동일 동작.
|
|
6956
|
+
* @param {string} options_json
|
|
6957
|
+
* @returns {string}
|
|
6958
|
+
*/
|
|
6959
|
+
setNoteEquationPropertiesEx(options_json) {
|
|
6960
|
+
let deferred3_0;
|
|
6961
|
+
let deferred3_1;
|
|
6962
|
+
try {
|
|
6963
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6964
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6965
|
+
const ret = wasm.hwpdocument_setNoteEquationPropertiesEx(this.__wbg_ptr, ptr0, len0);
|
|
6966
|
+
var ptr2 = ret[0];
|
|
6967
|
+
var len2 = ret[1];
|
|
6968
|
+
if (ret[3]) {
|
|
6969
|
+
ptr2 = 0; len2 = 0;
|
|
6970
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
6971
|
+
}
|
|
6972
|
+
deferred3_0 = ptr2;
|
|
6973
|
+
deferred3_1 = len2;
|
|
6974
|
+
return getStringFromWasm0(ptr2, len2);
|
|
6975
|
+
} finally {
|
|
6976
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
6977
|
+
}
|
|
6978
|
+
}
|
|
6106
6979
|
/**
|
|
6107
6980
|
* 문단 서식을 적용한다 (본문 문단).
|
|
6108
6981
|
* 문단 번호 시작 방식 설정
|
|
@@ -6212,6 +7085,59 @@ export class HwpDocument {
|
|
|
6212
7085
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
6213
7086
|
}
|
|
6214
7087
|
}
|
|
7088
|
+
/**
|
|
7089
|
+
* `setPageHide` 의 options object 변형 (#1413).
|
|
7090
|
+
*
|
|
7091
|
+
* options JSON 키: `{ sec, para, hideHeader?, hideFooter?, hideMaster?, hideBorder?,
|
|
7092
|
+
* hideFill?, hidePageNum? }`. positional 과 동일 동작.
|
|
7093
|
+
* @param {string} options_json
|
|
7094
|
+
* @returns {string}
|
|
7095
|
+
*/
|
|
7096
|
+
setPageHideEx(options_json) {
|
|
7097
|
+
let deferred3_0;
|
|
7098
|
+
let deferred3_1;
|
|
7099
|
+
try {
|
|
7100
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7101
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7102
|
+
const ret = wasm.hwpdocument_setPageHideEx(this.__wbg_ptr, ptr0, len0);
|
|
7103
|
+
var ptr2 = ret[0];
|
|
7104
|
+
var len2 = ret[1];
|
|
7105
|
+
if (ret[3]) {
|
|
7106
|
+
ptr2 = 0; len2 = 0;
|
|
7107
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
7108
|
+
}
|
|
7109
|
+
deferred3_0 = ptr2;
|
|
7110
|
+
deferred3_1 = len2;
|
|
7111
|
+
return getStringFromWasm0(ptr2, len2);
|
|
7112
|
+
} finally {
|
|
7113
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
7114
|
+
}
|
|
7115
|
+
}
|
|
7116
|
+
/**
|
|
7117
|
+
* 문단의 paraShapeId를 직접 설정한다.
|
|
7118
|
+
* @param {number} sec_idx
|
|
7119
|
+
* @param {number} para_idx
|
|
7120
|
+
* @param {number} para_shape_id
|
|
7121
|
+
* @returns {string}
|
|
7122
|
+
*/
|
|
7123
|
+
setParaShapeId(sec_idx, para_idx, para_shape_id) {
|
|
7124
|
+
let deferred2_0;
|
|
7125
|
+
let deferred2_1;
|
|
7126
|
+
try {
|
|
7127
|
+
const ret = wasm.hwpdocument_setParaShapeId(this.__wbg_ptr, sec_idx, para_idx, para_shape_id);
|
|
7128
|
+
var ptr1 = ret[0];
|
|
7129
|
+
var len1 = ret[1];
|
|
7130
|
+
if (ret[3]) {
|
|
7131
|
+
ptr1 = 0; len1 = 0;
|
|
7132
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
7133
|
+
}
|
|
7134
|
+
deferred2_0 = ptr1;
|
|
7135
|
+
deferred2_1 = len1;
|
|
7136
|
+
return getStringFromWasm0(ptr1, len1);
|
|
7137
|
+
} finally {
|
|
7138
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
7139
|
+
}
|
|
7140
|
+
}
|
|
6215
7141
|
/**
|
|
6216
7142
|
* 그림 컨트롤의 속성을 변경한다.
|
|
6217
7143
|
*
|
|
@@ -6592,6 +7518,34 @@ export class HwpDocument {
|
|
|
6592
7518
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
6593
7519
|
}
|
|
6594
7520
|
}
|
|
7521
|
+
/**
|
|
7522
|
+
* `splitTableCellInto` 의 options object 변형 (#1413).
|
|
7523
|
+
*
|
|
7524
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, row, col, nRows, mCols,
|
|
7525
|
+
* equalRowHeight?, mergeFirst? }`. positional 과 동일 동작.
|
|
7526
|
+
* @param {string} options_json
|
|
7527
|
+
* @returns {string}
|
|
7528
|
+
*/
|
|
7529
|
+
splitTableCellIntoEx(options_json) {
|
|
7530
|
+
let deferred3_0;
|
|
7531
|
+
let deferred3_1;
|
|
7532
|
+
try {
|
|
7533
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7534
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7535
|
+
const ret = wasm.hwpdocument_splitTableCellIntoEx(this.__wbg_ptr, ptr0, len0);
|
|
7536
|
+
var ptr2 = ret[0];
|
|
7537
|
+
var len2 = ret[1];
|
|
7538
|
+
if (ret[3]) {
|
|
7539
|
+
ptr2 = 0; len2 = 0;
|
|
7540
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
7541
|
+
}
|
|
7542
|
+
deferred3_0 = ptr2;
|
|
7543
|
+
deferred3_1 = len2;
|
|
7544
|
+
return getStringFromWasm0(ptr2, len2);
|
|
7545
|
+
} finally {
|
|
7546
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
7547
|
+
}
|
|
7548
|
+
}
|
|
6595
7549
|
/**
|
|
6596
7550
|
* 범위 내 셀들을 각각 N줄 × M칸으로 분할한다.
|
|
6597
7551
|
*
|
|
@@ -6626,6 +7580,34 @@ export class HwpDocument {
|
|
|
6626
7580
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
6627
7581
|
}
|
|
6628
7582
|
}
|
|
7583
|
+
/**
|
|
7584
|
+
* `splitTableCellsInRange` 의 options object 변형 (#1413).
|
|
7585
|
+
*
|
|
7586
|
+
* options JSON 키: `{ sectionIdx, parentParaIdx, controlIdx, startRow, startCol,
|
|
7587
|
+
* endRow, endCol, nRows, mCols, equalRowHeight? }`. positional 과 동일 동작.
|
|
7588
|
+
* @param {string} options_json
|
|
7589
|
+
* @returns {string}
|
|
7590
|
+
*/
|
|
7591
|
+
splitTableCellsInRangeEx(options_json) {
|
|
7592
|
+
let deferred3_0;
|
|
7593
|
+
let deferred3_1;
|
|
7594
|
+
try {
|
|
7595
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7596
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7597
|
+
const ret = wasm.hwpdocument_splitTableCellsInRangeEx(this.__wbg_ptr, ptr0, len0);
|
|
7598
|
+
var ptr2 = ret[0];
|
|
7599
|
+
var len2 = ret[1];
|
|
7600
|
+
if (ret[3]) {
|
|
7601
|
+
ptr2 = 0; len2 = 0;
|
|
7602
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
7603
|
+
}
|
|
7604
|
+
deferred3_0 = ptr2;
|
|
7605
|
+
deferred3_1 = len2;
|
|
7606
|
+
return getStringFromWasm0(ptr2, len2);
|
|
7607
|
+
} finally {
|
|
7608
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
7609
|
+
}
|
|
7610
|
+
}
|
|
6629
7611
|
/**
|
|
6630
7612
|
* 텍스트 오프셋 → 논리적 오프셋 변환.
|
|
6631
7613
|
* @param {number} section_idx
|
|
@@ -6919,68 +7901,68 @@ export function version() {
|
|
|
6919
7901
|
function __wbg_get_imports() {
|
|
6920
7902
|
const import0 = {
|
|
6921
7903
|
__proto__: null,
|
|
6922
|
-
|
|
7904
|
+
__wbg___wbindgen_is_undefined_721f8decd50c87a3: function(arg0) {
|
|
6923
7905
|
const ret = arg0 === undefined;
|
|
6924
7906
|
return ret;
|
|
6925
7907
|
},
|
|
6926
|
-
|
|
7908
|
+
__wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
|
|
6927
7909
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
6928
7910
|
},
|
|
6929
|
-
|
|
7911
|
+
__wbg_addColorStop_d8d26268addcc37f: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
6930
7912
|
arg0.addColorStop(arg1, getStringFromWasm0(arg2, arg3));
|
|
6931
7913
|
}, arguments); },
|
|
6932
|
-
|
|
7914
|
+
__wbg_arcTo_030671497547c6fa: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
6933
7915
|
arg0.arcTo(arg1, arg2, arg3, arg4, arg5);
|
|
6934
7916
|
}, arguments); },
|
|
6935
|
-
|
|
7917
|
+
__wbg_arc_74cf0c033e9df542: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
6936
7918
|
arg0.arc(arg1, arg2, arg3, arg4, arg5);
|
|
6937
7919
|
}, arguments); },
|
|
6938
|
-
|
|
7920
|
+
__wbg_beginPath_c99b5be3516a2077: function(arg0) {
|
|
6939
7921
|
arg0.beginPath();
|
|
6940
7922
|
},
|
|
6941
|
-
|
|
7923
|
+
__wbg_bezierCurveTo_22132b66df298a0b: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
6942
7924
|
arg0.bezierCurveTo(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
6943
7925
|
},
|
|
6944
|
-
|
|
7926
|
+
__wbg_clearRect_844ea1fa6026e6b1: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6945
7927
|
arg0.clearRect(arg1, arg2, arg3, arg4);
|
|
6946
7928
|
},
|
|
6947
|
-
|
|
7929
|
+
__wbg_clip_8ac1823db730edf8: function(arg0) {
|
|
6948
7930
|
arg0.clip();
|
|
6949
7931
|
},
|
|
6950
|
-
|
|
7932
|
+
__wbg_closePath_47136fd7a8a2f043: function(arg0) {
|
|
6951
7933
|
arg0.closePath();
|
|
6952
7934
|
},
|
|
6953
|
-
|
|
7935
|
+
__wbg_complete_30e748f517efbba7: function(arg0) {
|
|
6954
7936
|
const ret = arg0.complete;
|
|
6955
7937
|
return ret;
|
|
6956
7938
|
},
|
|
6957
|
-
|
|
7939
|
+
__wbg_createElement_9e23ac95e40e302c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
6958
7940
|
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
6959
7941
|
return ret;
|
|
6960
7942
|
}, arguments); },
|
|
6961
|
-
|
|
7943
|
+
__wbg_createLinearGradient_e941e9b32e45fd4d: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6962
7944
|
const ret = arg0.createLinearGradient(arg1, arg2, arg3, arg4);
|
|
6963
7945
|
return ret;
|
|
6964
7946
|
},
|
|
6965
|
-
|
|
7947
|
+
__wbg_createPattern_3478569326f74b57: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
6966
7948
|
const ret = arg0.createPattern(arg1, getStringFromWasm0(arg2, arg3));
|
|
6967
7949
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6968
7950
|
}, arguments); },
|
|
6969
|
-
|
|
7951
|
+
__wbg_createRadialGradient_f005132888c69736: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
6970
7952
|
const ret = arg0.createRadialGradient(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
6971
7953
|
return ret;
|
|
6972
7954
|
}, arguments); },
|
|
6973
|
-
|
|
7955
|
+
__wbg_document_2634180a4c694068: function(arg0) {
|
|
6974
7956
|
const ret = arg0.document;
|
|
6975
7957
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6976
7958
|
},
|
|
6977
|
-
|
|
7959
|
+
__wbg_drawImage_7a34d4ec316e9b66: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
6978
7960
|
arg0.drawImage(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
6979
7961
|
}, arguments); },
|
|
6980
|
-
|
|
7962
|
+
__wbg_drawImage_a7e0087acea080d1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
6981
7963
|
arg0.drawImage(arg1, arg2, arg3, arg4, arg5);
|
|
6982
7964
|
}, arguments); },
|
|
6983
|
-
|
|
7965
|
+
__wbg_ellipse_69edbc4c6b78175b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
6984
7966
|
arg0.ellipse(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
6985
7967
|
}, arguments); },
|
|
6986
7968
|
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
@@ -6994,24 +7976,24 @@ function __wbg_get_imports() {
|
|
|
6994
7976
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
6995
7977
|
}
|
|
6996
7978
|
},
|
|
6997
|
-
|
|
7979
|
+
__wbg_fillRect_3c420f5077df8d3b: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6998
7980
|
arg0.fillRect(arg1, arg2, arg3, arg4);
|
|
6999
7981
|
},
|
|
7000
|
-
|
|
7982
|
+
__wbg_fillText_cdea0ac33ff3d2d1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
7001
7983
|
arg0.fillText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
7002
7984
|
}, arguments); },
|
|
7003
|
-
|
|
7985
|
+
__wbg_fill_b39141050e50c461: function(arg0) {
|
|
7004
7986
|
arg0.fill();
|
|
7005
7987
|
},
|
|
7006
|
-
|
|
7988
|
+
__wbg_getContext_486aab500e1c34c9: function() { return handleError(function (arg0, arg1, arg2) {
|
|
7007
7989
|
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
7008
7990
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
7009
7991
|
}, arguments); },
|
|
7010
|
-
|
|
7992
|
+
__wbg_height_a04613570d793df2: function(arg0) {
|
|
7011
7993
|
const ret = arg0.height;
|
|
7012
7994
|
return ret;
|
|
7013
7995
|
},
|
|
7014
|
-
|
|
7996
|
+
__wbg_instanceof_CanvasRenderingContext2d_d0cab9e931424c52: function(arg0) {
|
|
7015
7997
|
let result;
|
|
7016
7998
|
try {
|
|
7017
7999
|
result = arg0 instanceof CanvasRenderingContext2D;
|
|
@@ -7021,7 +8003,7 @@ function __wbg_get_imports() {
|
|
|
7021
8003
|
const ret = result;
|
|
7022
8004
|
return ret;
|
|
7023
8005
|
},
|
|
7024
|
-
|
|
8006
|
+
__wbg_instanceof_HtmlCanvasElement_8ce29a370a2b10a4: function(arg0) {
|
|
7025
8007
|
let result;
|
|
7026
8008
|
try {
|
|
7027
8009
|
result = arg0 instanceof HTMLCanvasElement;
|
|
@@ -7031,7 +8013,7 @@ function __wbg_get_imports() {
|
|
|
7031
8013
|
const ret = result;
|
|
7032
8014
|
return ret;
|
|
7033
8015
|
},
|
|
7034
|
-
|
|
8016
|
+
__wbg_instanceof_Window_0d356b88a2f77c42: function(arg0) {
|
|
7035
8017
|
let result;
|
|
7036
8018
|
try {
|
|
7037
8019
|
result = arg0 instanceof Window;
|
|
@@ -7041,17 +8023,17 @@ function __wbg_get_imports() {
|
|
|
7041
8023
|
const ret = result;
|
|
7042
8024
|
return ret;
|
|
7043
8025
|
},
|
|
7044
|
-
|
|
8026
|
+
__wbg_lineTo_2a649fce185f0bf0: function(arg0, arg1, arg2) {
|
|
7045
8027
|
arg0.lineTo(arg1, arg2);
|
|
7046
8028
|
},
|
|
7047
|
-
|
|
8029
|
+
__wbg_measureText_e19eb06d922845ef: function() { return handleError(function (arg0, arg1, arg2) {
|
|
7048
8030
|
const ret = arg0.measureText(getStringFromWasm0(arg1, arg2));
|
|
7049
8031
|
return ret;
|
|
7050
8032
|
}, arguments); },
|
|
7051
|
-
|
|
8033
|
+
__wbg_moveTo_8973531c3399ba16: function(arg0, arg1, arg2) {
|
|
7052
8034
|
arg0.moveTo(arg1, arg2);
|
|
7053
8035
|
},
|
|
7054
|
-
|
|
8036
|
+
__wbg_naturalWidth_5c95710d6c0ff97a: function(arg0) {
|
|
7055
8037
|
const ret = arg0.naturalWidth;
|
|
7056
8038
|
return ret;
|
|
7057
8039
|
},
|
|
@@ -7059,95 +8041,95 @@ function __wbg_get_imports() {
|
|
|
7059
8041
|
const ret = new Error();
|
|
7060
8042
|
return ret;
|
|
7061
8043
|
},
|
|
7062
|
-
|
|
7063
|
-
const ret = new Image();
|
|
7064
|
-
return ret;
|
|
7065
|
-
}, arguments); },
|
|
7066
|
-
__wbg_new_d90091b82fdf5b91: function() {
|
|
8044
|
+
__wbg_new_36e147a8ced3c6e0: function() {
|
|
7067
8045
|
const ret = new Array();
|
|
7068
8046
|
return ret;
|
|
7069
8047
|
},
|
|
7070
|
-
|
|
8048
|
+
__wbg_new_ca1920fd471d29cf: function() { return handleError(function () {
|
|
8049
|
+
const ret = new Image();
|
|
8050
|
+
return ret;
|
|
8051
|
+
}, arguments); },
|
|
8052
|
+
__wbg_of_3ed679d45555e384: function(arg0, arg1) {
|
|
7071
8053
|
const ret = Array.of(arg0, arg1);
|
|
7072
8054
|
return ret;
|
|
7073
8055
|
},
|
|
7074
|
-
|
|
8056
|
+
__wbg_push_f724b5db8acf89d2: function(arg0, arg1) {
|
|
7075
8057
|
const ret = arg0.push(arg1);
|
|
7076
8058
|
return ret;
|
|
7077
8059
|
},
|
|
7078
|
-
|
|
8060
|
+
__wbg_quadraticCurveTo_fbe34acd0fc81443: function(arg0, arg1, arg2, arg3, arg4) {
|
|
7079
8061
|
arg0.quadraticCurveTo(arg1, arg2, arg3, arg4);
|
|
7080
8062
|
},
|
|
7081
|
-
|
|
8063
|
+
__wbg_rect_ec6fe62084b85fe8: function(arg0, arg1, arg2, arg3, arg4) {
|
|
7082
8064
|
arg0.rect(arg1, arg2, arg3, arg4);
|
|
7083
8065
|
},
|
|
7084
|
-
|
|
8066
|
+
__wbg_restore_6d0b3ce5b0ed7f95: function(arg0) {
|
|
7085
8067
|
arg0.restore();
|
|
7086
8068
|
},
|
|
7087
|
-
|
|
8069
|
+
__wbg_rotate_752e71c58c20a87b: function() { return handleError(function (arg0, arg1) {
|
|
7088
8070
|
arg0.rotate(arg1);
|
|
7089
8071
|
}, arguments); },
|
|
7090
|
-
|
|
8072
|
+
__wbg_save_38619d761125d8ce: function(arg0) {
|
|
7091
8073
|
arg0.save();
|
|
7092
8074
|
},
|
|
7093
|
-
|
|
8075
|
+
__wbg_scale_9ba8ea52032e5849: function() { return handleError(function (arg0, arg1, arg2) {
|
|
7094
8076
|
arg0.scale(arg1, arg2);
|
|
7095
8077
|
}, arguments); },
|
|
7096
|
-
|
|
8078
|
+
__wbg_setLineDash_7394cefd476e675f: function() { return handleError(function (arg0, arg1) {
|
|
7097
8079
|
arg0.setLineDash(arg1);
|
|
7098
8080
|
}, arguments); },
|
|
7099
|
-
|
|
7100
|
-
arg0.fillStyle = arg1;
|
|
8081
|
+
__wbg_set_fillStyle_35471aa9a10a6686: function(arg0, arg1, arg2) {
|
|
8082
|
+
arg0.fillStyle = getStringFromWasm0(arg1, arg2);
|
|
7101
8083
|
},
|
|
7102
|
-
|
|
8084
|
+
__wbg_set_fillStyle_f1c2f1fa8e51c4d8: function(arg0, arg1) {
|
|
7103
8085
|
arg0.fillStyle = arg1;
|
|
7104
8086
|
},
|
|
7105
|
-
|
|
7106
|
-
arg0.fillStyle =
|
|
8087
|
+
__wbg_set_fillStyle_f62049a82dbcd6e2: function(arg0, arg1) {
|
|
8088
|
+
arg0.fillStyle = arg1;
|
|
7107
8089
|
},
|
|
7108
|
-
|
|
8090
|
+
__wbg_set_filter_3d4de6c6964b41ad: function(arg0, arg1, arg2) {
|
|
7109
8091
|
arg0.filter = getStringFromWasm0(arg1, arg2);
|
|
7110
8092
|
},
|
|
7111
|
-
|
|
8093
|
+
__wbg_set_font_e2bce6175ef42bc3: function(arg0, arg1, arg2) {
|
|
7112
8094
|
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
7113
8095
|
},
|
|
7114
|
-
|
|
8096
|
+
__wbg_set_globalAlpha_60fedcc06aa9a61c: function(arg0, arg1) {
|
|
7115
8097
|
arg0.globalAlpha = arg1;
|
|
7116
8098
|
},
|
|
7117
|
-
|
|
8099
|
+
__wbg_set_height_ad5056ea051acd78: function(arg0, arg1) {
|
|
7118
8100
|
arg0.height = arg1 >>> 0;
|
|
7119
8101
|
},
|
|
7120
|
-
|
|
8102
|
+
__wbg_set_lineCap_d2d08bad90cdbd14: function(arg0, arg1, arg2) {
|
|
7121
8103
|
arg0.lineCap = getStringFromWasm0(arg1, arg2);
|
|
7122
8104
|
},
|
|
7123
|
-
|
|
8105
|
+
__wbg_set_lineWidth_fef15cb5c15a6cdc: function(arg0, arg1) {
|
|
7124
8106
|
arg0.lineWidth = arg1;
|
|
7125
8107
|
},
|
|
7126
|
-
|
|
8108
|
+
__wbg_set_shadowBlur_062c1f25276f0434: function(arg0, arg1) {
|
|
7127
8109
|
arg0.shadowBlur = arg1;
|
|
7128
8110
|
},
|
|
7129
|
-
|
|
8111
|
+
__wbg_set_shadowColor_100ad7306fd5addf: function(arg0, arg1, arg2) {
|
|
7130
8112
|
arg0.shadowColor = getStringFromWasm0(arg1, arg2);
|
|
7131
8113
|
},
|
|
7132
|
-
|
|
8114
|
+
__wbg_set_shadowOffsetX_61a6196c2ef7006c: function(arg0, arg1) {
|
|
7133
8115
|
arg0.shadowOffsetX = arg1;
|
|
7134
8116
|
},
|
|
7135
|
-
|
|
8117
|
+
__wbg_set_shadowOffsetY_545ef89bd50db5bd: function(arg0, arg1) {
|
|
7136
8118
|
arg0.shadowOffsetY = arg1;
|
|
7137
8119
|
},
|
|
7138
|
-
|
|
8120
|
+
__wbg_set_src_00190c2976c83211: function(arg0, arg1, arg2) {
|
|
7139
8121
|
arg0.src = getStringFromWasm0(arg1, arg2);
|
|
7140
8122
|
},
|
|
7141
|
-
|
|
8123
|
+
__wbg_set_strokeStyle_d494db5851ff0dbd: function(arg0, arg1, arg2) {
|
|
7142
8124
|
arg0.strokeStyle = getStringFromWasm0(arg1, arg2);
|
|
7143
8125
|
},
|
|
7144
|
-
|
|
8126
|
+
__wbg_set_textAlign_8cc28de727b5df6f: function(arg0, arg1, arg2) {
|
|
7145
8127
|
arg0.textAlign = getStringFromWasm0(arg1, arg2);
|
|
7146
8128
|
},
|
|
7147
|
-
|
|
8129
|
+
__wbg_set_textBaseline_6f233751bd79619e: function(arg0, arg1, arg2) {
|
|
7148
8130
|
arg0.textBaseline = getStringFromWasm0(arg1, arg2);
|
|
7149
8131
|
},
|
|
7150
|
-
|
|
8132
|
+
__wbg_set_width_031bdecd763c5855: function(arg0, arg1) {
|
|
7151
8133
|
arg0.width = arg1 >>> 0;
|
|
7152
8134
|
},
|
|
7153
8135
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
@@ -7157,39 +8139,39 @@ function __wbg_get_imports() {
|
|
|
7157
8139
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
7158
8140
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7159
8141
|
},
|
|
7160
|
-
|
|
7161
|
-
const ret = typeof
|
|
8142
|
+
__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938: function() {
|
|
8143
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
7162
8144
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
7163
8145
|
},
|
|
7164
|
-
|
|
7165
|
-
const ret = typeof
|
|
8146
|
+
__wbg_static_accessor_GLOBAL_ce44e66a4935da8c: function() {
|
|
8147
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
7166
8148
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
7167
8149
|
},
|
|
7168
|
-
|
|
8150
|
+
__wbg_static_accessor_SELF_44f6e0cb5e67cdad: function() {
|
|
7169
8151
|
const ret = typeof self === 'undefined' ? null : self;
|
|
7170
8152
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
7171
8153
|
},
|
|
7172
|
-
|
|
8154
|
+
__wbg_static_accessor_WINDOW_168f178805d978fe: function() {
|
|
7173
8155
|
const ret = typeof window === 'undefined' ? null : window;
|
|
7174
8156
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
7175
8157
|
},
|
|
7176
|
-
|
|
8158
|
+
__wbg_strokeRect_a9cb57c3713e908d: function(arg0, arg1, arg2, arg3, arg4) {
|
|
7177
8159
|
arg0.strokeRect(arg1, arg2, arg3, arg4);
|
|
7178
8160
|
},
|
|
7179
|
-
|
|
8161
|
+
__wbg_strokeText_cb4bcb210ee49c63: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
7180
8162
|
arg0.strokeText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
7181
8163
|
}, arguments); },
|
|
7182
|
-
|
|
8164
|
+
__wbg_stroke_d0c2cfbe28711bcb: function(arg0) {
|
|
7183
8165
|
arg0.stroke();
|
|
7184
8166
|
},
|
|
7185
|
-
|
|
8167
|
+
__wbg_translate_6e0bcb06249a8f57: function() { return handleError(function (arg0, arg1, arg2) {
|
|
7186
8168
|
arg0.translate(arg1, arg2);
|
|
7187
8169
|
}, arguments); },
|
|
7188
|
-
|
|
8170
|
+
__wbg_width_278a5d63ceedc79b: function(arg0) {
|
|
7189
8171
|
const ret = arg0.width;
|
|
7190
8172
|
return ret;
|
|
7191
8173
|
},
|
|
7192
|
-
|
|
8174
|
+
__wbg_width_c8740d5bdf596189: function(arg0) {
|
|
7193
8175
|
const ret = arg0.width;
|
|
7194
8176
|
return ret;
|
|
7195
8177
|
},
|