@rhwp/core 0.7.12 → 0.7.13
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 +11 -1
- package/rhwp.js +113 -79
- package/rhwp_bg.wasm +0 -0
- package/rhwp_bg.wasm.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhwp/core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"description": "HWP/HWPX file parser and renderer — Rust + WebAssembly",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "rhwp.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
|
-
"url": "https://github.com/edwardkim/rhwp"
|
|
29
|
+
"url": "git+https://github.com/edwardkim/rhwp.git"
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://edwardkim.github.io/rhwp/",
|
|
32
32
|
"bugs": {
|
package/rhwp.d.ts
CHANGED
|
@@ -333,9 +333,11 @@ export class HwpDocument {
|
|
|
333
333
|
*/
|
|
334
334
|
getBulletList(): string;
|
|
335
335
|
/**
|
|
336
|
-
* CanvasKit direct replay
|
|
336
|
+
* CanvasKit direct replay 정책 진단을 JSON 문자열로 반환한다.
|
|
337
337
|
*
|
|
338
338
|
* `mode` 는 `"default"` 또는 `"compat"` 를 받는다. 빈 문자열은 `"default"` 로 처리한다.
|
|
339
|
+
* 현재 두 mode 모두 hidden Canvas2D overlay 없이 direct replay required 정책을 따른다.
|
|
340
|
+
* `compat` 는 API/URL 호환성과 이후 보수적인 direct replay 튜닝을 위해 남겨 둔 선택지다.
|
|
339
341
|
*/
|
|
340
342
|
getCanvasKitReplayPlan(page_num: number, mode: string): string;
|
|
341
343
|
/**
|
|
@@ -683,6 +685,13 @@ export class HwpDocument {
|
|
|
683
685
|
* 반환: JSON 배열 `[{"pageIndex":N,"x":F,"y":F,"width":F,"height":F}, ...]`
|
|
684
686
|
*/
|
|
685
687
|
getSelectionRectsInCell(section_idx: number, parent_para_idx: number, control_idx: number, cell_idx: number, start_cell_para_idx: number, start_char_offset: number, end_cell_para_idx: number, end_char_offset: number): string;
|
|
688
|
+
/**
|
|
689
|
+
* [Task #919] 글상자/도형 컨트롤의 페이지 좌표 바운딩박스를 반환한다.
|
|
690
|
+
*
|
|
691
|
+
* 반환: JSON `{"pageIndex":<N>,"x":<f>,"y":<f>,"width":<f>,"height":<f>}`
|
|
692
|
+
* studio 의 `isShapeBorderClick` 헬퍼에서 외곽 경계선 클릭 판별에 사용.
|
|
693
|
+
*/
|
|
694
|
+
getShapeBBox(section_idx: number, parent_para_idx: number, control_idx: number): string;
|
|
686
695
|
/**
|
|
687
696
|
* Shape(글상자) 속성을 조회한다.
|
|
688
697
|
*
|
|
@@ -1555,6 +1564,7 @@ export interface InitOutput {
|
|
|
1555
1564
|
readonly hwpdocument_getSectionDef: (a: number, b: number) => [number, number, number, number];
|
|
1556
1565
|
readonly hwpdocument_getSelectionRects: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1557
1566
|
readonly hwpdocument_getSelectionRectsInCell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
1567
|
+
readonly hwpdocument_getShapeBBox: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1558
1568
|
readonly hwpdocument_getShapeProperties: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1559
1569
|
readonly hwpdocument_getShowControlCodes: (a: number) => number;
|
|
1560
1570
|
readonly hwpdocument_getShowTransparentBorders: (a: number) => number;
|
package/rhwp.js
CHANGED
|
@@ -1471,9 +1471,11 @@ export class HwpDocument {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
1473
1473
|
/**
|
|
1474
|
-
* CanvasKit direct replay
|
|
1474
|
+
* CanvasKit direct replay 정책 진단을 JSON 문자열로 반환한다.
|
|
1475
1475
|
*
|
|
1476
1476
|
* `mode` 는 `"default"` 또는 `"compat"` 를 받는다. 빈 문자열은 `"default"` 로 처리한다.
|
|
1477
|
+
* 현재 두 mode 모두 hidden Canvas2D overlay 없이 direct replay required 정책을 따른다.
|
|
1478
|
+
* `compat` 는 API/URL 호환성과 이후 보수적인 direct replay 튜닝을 위해 남겨 둔 선택지다.
|
|
1477
1479
|
* @param {number} page_num
|
|
1478
1480
|
* @param {string} mode
|
|
1479
1481
|
* @returns {string}
|
|
@@ -3081,6 +3083,34 @@ export class HwpDocument {
|
|
|
3081
3083
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3082
3084
|
}
|
|
3083
3085
|
}
|
|
3086
|
+
/**
|
|
3087
|
+
* [Task #919] 글상자/도형 컨트롤의 페이지 좌표 바운딩박스를 반환한다.
|
|
3088
|
+
*
|
|
3089
|
+
* 반환: JSON `{"pageIndex":<N>,"x":<f>,"y":<f>,"width":<f>,"height":<f>}`
|
|
3090
|
+
* studio 의 `isShapeBorderClick` 헬퍼에서 외곽 경계선 클릭 판별에 사용.
|
|
3091
|
+
* @param {number} section_idx
|
|
3092
|
+
* @param {number} parent_para_idx
|
|
3093
|
+
* @param {number} control_idx
|
|
3094
|
+
* @returns {string}
|
|
3095
|
+
*/
|
|
3096
|
+
getShapeBBox(section_idx, parent_para_idx, control_idx) {
|
|
3097
|
+
let deferred2_0;
|
|
3098
|
+
let deferred2_1;
|
|
3099
|
+
try {
|
|
3100
|
+
const ret = wasm.hwpdocument_getShapeBBox(this.__wbg_ptr, section_idx, parent_para_idx, control_idx);
|
|
3101
|
+
var ptr1 = ret[0];
|
|
3102
|
+
var len1 = ret[1];
|
|
3103
|
+
if (ret[3]) {
|
|
3104
|
+
ptr1 = 0; len1 = 0;
|
|
3105
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
3106
|
+
}
|
|
3107
|
+
deferred2_0 = ptr1;
|
|
3108
|
+
deferred2_1 = len1;
|
|
3109
|
+
return getStringFromWasm0(ptr1, len1);
|
|
3110
|
+
} finally {
|
|
3111
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3084
3114
|
/**
|
|
3085
3115
|
* Shape(글상자) 속성을 조회한다.
|
|
3086
3116
|
*
|
|
@@ -6292,68 +6322,68 @@ export function version() {
|
|
|
6292
6322
|
function __wbg_get_imports() {
|
|
6293
6323
|
const import0 = {
|
|
6294
6324
|
__proto__: null,
|
|
6295
|
-
|
|
6325
|
+
__wbg___wbindgen_is_undefined_67b456be8673d3d7: function(arg0) {
|
|
6296
6326
|
const ret = arg0 === undefined;
|
|
6297
6327
|
return ret;
|
|
6298
6328
|
},
|
|
6299
|
-
|
|
6329
|
+
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
6300
6330
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
6301
6331
|
},
|
|
6302
|
-
|
|
6332
|
+
__wbg_addColorStop_327b92fde5be2a67: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
6303
6333
|
arg0.addColorStop(arg1, getStringFromWasm0(arg2, arg3));
|
|
6304
6334
|
}, arguments); },
|
|
6305
|
-
|
|
6335
|
+
__wbg_arcTo_6b47eaa88893c130: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
6306
6336
|
arg0.arcTo(arg1, arg2, arg3, arg4, arg5);
|
|
6307
6337
|
}, arguments); },
|
|
6308
|
-
|
|
6338
|
+
__wbg_arc_666e3efb470f705c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
6309
6339
|
arg0.arc(arg1, arg2, arg3, arg4, arg5);
|
|
6310
6340
|
}, arguments); },
|
|
6311
|
-
|
|
6341
|
+
__wbg_beginPath_1da975fa79b7c1b9: function(arg0) {
|
|
6312
6342
|
arg0.beginPath();
|
|
6313
6343
|
},
|
|
6314
|
-
|
|
6344
|
+
__wbg_bezierCurveTo_db8436369e181c44: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
6315
6345
|
arg0.bezierCurveTo(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
6316
6346
|
},
|
|
6317
|
-
|
|
6347
|
+
__wbg_clearRect_c6c4586d143d768c: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6318
6348
|
arg0.clearRect(arg1, arg2, arg3, arg4);
|
|
6319
6349
|
},
|
|
6320
|
-
|
|
6350
|
+
__wbg_clip_512aa0849d54e0d5: function(arg0) {
|
|
6321
6351
|
arg0.clip();
|
|
6322
6352
|
},
|
|
6323
|
-
|
|
6353
|
+
__wbg_closePath_6a67796205fda3c8: function(arg0) {
|
|
6324
6354
|
arg0.closePath();
|
|
6325
6355
|
},
|
|
6326
|
-
|
|
6356
|
+
__wbg_complete_be51db166b7d8f49: function(arg0) {
|
|
6327
6357
|
const ret = arg0.complete;
|
|
6328
6358
|
return ret;
|
|
6329
6359
|
},
|
|
6330
|
-
|
|
6360
|
+
__wbg_createElement_c3c16a9aa7f5cc74: function() { return handleError(function (arg0, arg1, arg2) {
|
|
6331
6361
|
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
6332
6362
|
return ret;
|
|
6333
6363
|
}, arguments); },
|
|
6334
|
-
|
|
6364
|
+
__wbg_createLinearGradient_420cb52eeee8a7b5: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6335
6365
|
const ret = arg0.createLinearGradient(arg1, arg2, arg3, arg4);
|
|
6336
6366
|
return ret;
|
|
6337
6367
|
},
|
|
6338
|
-
|
|
6368
|
+
__wbg_createPattern_67eadc263c88cfac: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
6339
6369
|
const ret = arg0.createPattern(arg1, getStringFromWasm0(arg2, arg3));
|
|
6340
6370
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6341
6371
|
}, arguments); },
|
|
6342
|
-
|
|
6372
|
+
__wbg_createRadialGradient_50fd152eec9510d1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
6343
6373
|
const ret = arg0.createRadialGradient(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
6344
6374
|
return ret;
|
|
6345
6375
|
}, arguments); },
|
|
6346
|
-
|
|
6376
|
+
__wbg_document_aceb08cd6489baf5: function(arg0) {
|
|
6347
6377
|
const ret = arg0.document;
|
|
6348
6378
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6349
6379
|
},
|
|
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) {
|
|
6380
|
+
__wbg_drawImage_1256ee5423e2545a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
6354
6381
|
arg0.drawImage(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
6355
6382
|
}, arguments); },
|
|
6356
|
-
|
|
6383
|
+
__wbg_drawImage_92a28897b8ab19b6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
6384
|
+
arg0.drawImage(arg1, arg2, arg3, arg4, arg5);
|
|
6385
|
+
}, arguments); },
|
|
6386
|
+
__wbg_ellipse_3fbf05a162a6d8bd: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
6357
6387
|
arg0.ellipse(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
6358
6388
|
}, arguments); },
|
|
6359
6389
|
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
@@ -6367,24 +6397,24 @@ function __wbg_get_imports() {
|
|
|
6367
6397
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
6368
6398
|
}
|
|
6369
6399
|
},
|
|
6370
|
-
|
|
6400
|
+
__wbg_fillRect_3916c35e6834cd1b: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6371
6401
|
arg0.fillRect(arg1, arg2, arg3, arg4);
|
|
6372
6402
|
},
|
|
6373
|
-
|
|
6403
|
+
__wbg_fillText_9a0aa2acf11b7d03: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
6374
6404
|
arg0.fillText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
6375
6405
|
}, arguments); },
|
|
6376
|
-
|
|
6406
|
+
__wbg_fill_e9ef1c011f58f948: function(arg0) {
|
|
6377
6407
|
arg0.fill();
|
|
6378
6408
|
},
|
|
6379
|
-
|
|
6409
|
+
__wbg_getContext_469d34698d869fc1: function() { return handleError(function (arg0, arg1, arg2) {
|
|
6380
6410
|
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
6381
6411
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6382
6412
|
}, arguments); },
|
|
6383
|
-
|
|
6413
|
+
__wbg_height_ef5b5950872773b5: function(arg0) {
|
|
6384
6414
|
const ret = arg0.height;
|
|
6385
6415
|
return ret;
|
|
6386
6416
|
},
|
|
6387
|
-
|
|
6417
|
+
__wbg_instanceof_CanvasRenderingContext2d_6f2951bc60fb6d97: function(arg0) {
|
|
6388
6418
|
let result;
|
|
6389
6419
|
try {
|
|
6390
6420
|
result = arg0 instanceof CanvasRenderingContext2D;
|
|
@@ -6394,7 +6424,7 @@ function __wbg_get_imports() {
|
|
|
6394
6424
|
const ret = result;
|
|
6395
6425
|
return ret;
|
|
6396
6426
|
},
|
|
6397
|
-
|
|
6427
|
+
__wbg_instanceof_HtmlCanvasElement_8325b7578cc1684c: function(arg0) {
|
|
6398
6428
|
let result;
|
|
6399
6429
|
try {
|
|
6400
6430
|
result = arg0 instanceof HTMLCanvasElement;
|
|
@@ -6404,7 +6434,7 @@ function __wbg_get_imports() {
|
|
|
6404
6434
|
const ret = result;
|
|
6405
6435
|
return ret;
|
|
6406
6436
|
},
|
|
6407
|
-
|
|
6437
|
+
__wbg_instanceof_Window_e093be59ee9a8e14: function(arg0) {
|
|
6408
6438
|
let result;
|
|
6409
6439
|
try {
|
|
6410
6440
|
result = arg0 instanceof Window;
|
|
@@ -6414,113 +6444,113 @@ function __wbg_get_imports() {
|
|
|
6414
6444
|
const ret = result;
|
|
6415
6445
|
return ret;
|
|
6416
6446
|
},
|
|
6417
|
-
|
|
6447
|
+
__wbg_lineTo_1c1d0e0fabd76dd5: function(arg0, arg1, arg2) {
|
|
6418
6448
|
arg0.lineTo(arg1, arg2);
|
|
6419
6449
|
},
|
|
6420
|
-
|
|
6421
|
-
const ret =
|
|
6450
|
+
__wbg_measureText_b7ba8e89644fa634: function() { return handleError(function (arg0, arg1, arg2) {
|
|
6451
|
+
const ret = arg0.measureText(getStringFromWasm0(arg1, arg2));
|
|
6422
6452
|
return ret;
|
|
6423
|
-
},
|
|
6424
|
-
|
|
6453
|
+
}, arguments); },
|
|
6454
|
+
__wbg_moveTo_3356d453f2b376d1: function(arg0, arg1, arg2) {
|
|
6425
6455
|
arg0.moveTo(arg1, arg2);
|
|
6426
6456
|
},
|
|
6427
|
-
|
|
6457
|
+
__wbg_naturalWidth_2111265fa11a1862: function(arg0) {
|
|
6428
6458
|
const ret = arg0.naturalWidth;
|
|
6429
6459
|
return ret;
|
|
6430
6460
|
},
|
|
6431
|
-
__wbg_new_14debec8e2dce208: function() { return handleError(function () {
|
|
6432
|
-
const ret = new Image();
|
|
6433
|
-
return ret;
|
|
6434
|
-
}, arguments); },
|
|
6435
6461
|
__wbg_new_227d7c05414eb861: function() {
|
|
6436
6462
|
const ret = new Error();
|
|
6437
6463
|
return ret;
|
|
6438
6464
|
},
|
|
6439
|
-
|
|
6465
|
+
__wbg_new_8846e7e032e73b15: function() { return handleError(function () {
|
|
6466
|
+
const ret = new Image();
|
|
6467
|
+
return ret;
|
|
6468
|
+
}, arguments); },
|
|
6469
|
+
__wbg_new_d90091b82fdf5b91: function() {
|
|
6440
6470
|
const ret = new Array();
|
|
6441
6471
|
return ret;
|
|
6442
6472
|
},
|
|
6443
|
-
|
|
6473
|
+
__wbg_of_f34f1ce50f299ee9: function(arg0, arg1) {
|
|
6444
6474
|
const ret = Array.of(arg0, arg1);
|
|
6445
6475
|
return ret;
|
|
6446
6476
|
},
|
|
6447
|
-
|
|
6477
|
+
__wbg_push_a6822215aa43e71c: function(arg0, arg1) {
|
|
6448
6478
|
const ret = arg0.push(arg1);
|
|
6449
6479
|
return ret;
|
|
6450
6480
|
},
|
|
6451
|
-
|
|
6481
|
+
__wbg_quadraticCurveTo_6c803a7678029e24: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6452
6482
|
arg0.quadraticCurveTo(arg1, arg2, arg3, arg4);
|
|
6453
6483
|
},
|
|
6454
|
-
|
|
6484
|
+
__wbg_rect_72dd146afd51fd1d: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6455
6485
|
arg0.rect(arg1, arg2, arg3, arg4);
|
|
6456
6486
|
},
|
|
6457
|
-
|
|
6487
|
+
__wbg_restore_35d33f272777a212: function(arg0) {
|
|
6458
6488
|
arg0.restore();
|
|
6459
6489
|
},
|
|
6460
|
-
|
|
6490
|
+
__wbg_rotate_404ece42a9f2263d: function() { return handleError(function (arg0, arg1) {
|
|
6461
6491
|
arg0.rotate(arg1);
|
|
6462
6492
|
}, arguments); },
|
|
6463
|
-
|
|
6493
|
+
__wbg_save_e8d837ef098cd6fc: function(arg0) {
|
|
6464
6494
|
arg0.save();
|
|
6465
6495
|
},
|
|
6466
|
-
|
|
6496
|
+
__wbg_scale_28884a905dff3c86: function() { return handleError(function (arg0, arg1, arg2) {
|
|
6467
6497
|
arg0.scale(arg1, arg2);
|
|
6468
6498
|
}, arguments); },
|
|
6469
|
-
|
|
6499
|
+
__wbg_setLineDash_df865b04e5ed4790: function() { return handleError(function (arg0, arg1) {
|
|
6470
6500
|
arg0.setLineDash(arg1);
|
|
6471
6501
|
}, arguments); },
|
|
6472
|
-
|
|
6502
|
+
__wbg_set_fillStyle_8a802b39592e50ac: function(arg0, arg1) {
|
|
6473
6503
|
arg0.fillStyle = arg1;
|
|
6474
6504
|
},
|
|
6475
|
-
|
|
6505
|
+
__wbg_set_fillStyle_ad834564981122a6: function(arg0, arg1) {
|
|
6476
6506
|
arg0.fillStyle = arg1;
|
|
6477
6507
|
},
|
|
6478
|
-
|
|
6508
|
+
__wbg_set_fillStyle_e96ce0e2e6d0bd13: function(arg0, arg1, arg2) {
|
|
6479
6509
|
arg0.fillStyle = getStringFromWasm0(arg1, arg2);
|
|
6480
6510
|
},
|
|
6481
|
-
|
|
6511
|
+
__wbg_set_filter_307bd6f64d4aba17: function(arg0, arg1, arg2) {
|
|
6482
6512
|
arg0.filter = getStringFromWasm0(arg1, arg2);
|
|
6483
6513
|
},
|
|
6484
|
-
|
|
6514
|
+
__wbg_set_font_3700823e473a6204: function(arg0, arg1, arg2) {
|
|
6485
6515
|
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
6486
6516
|
},
|
|
6487
|
-
|
|
6517
|
+
__wbg_set_globalAlpha_8ed66eb71dbee04d: function(arg0, arg1) {
|
|
6488
6518
|
arg0.globalAlpha = arg1;
|
|
6489
6519
|
},
|
|
6490
|
-
|
|
6520
|
+
__wbg_set_height_0739170de8653cc4: function(arg0, arg1) {
|
|
6491
6521
|
arg0.height = arg1 >>> 0;
|
|
6492
6522
|
},
|
|
6493
|
-
|
|
6523
|
+
__wbg_set_lineCap_4709bda4f8626b19: function(arg0, arg1, arg2) {
|
|
6494
6524
|
arg0.lineCap = getStringFromWasm0(arg1, arg2);
|
|
6495
6525
|
},
|
|
6496
|
-
|
|
6526
|
+
__wbg_set_lineWidth_57a9e0b365e06eba: function(arg0, arg1) {
|
|
6497
6527
|
arg0.lineWidth = arg1;
|
|
6498
6528
|
},
|
|
6499
|
-
|
|
6529
|
+
__wbg_set_shadowBlur_9a876dbc0f0e0e7d: function(arg0, arg1) {
|
|
6500
6530
|
arg0.shadowBlur = arg1;
|
|
6501
6531
|
},
|
|
6502
|
-
|
|
6532
|
+
__wbg_set_shadowColor_1b8fb4690ca58666: function(arg0, arg1, arg2) {
|
|
6503
6533
|
arg0.shadowColor = getStringFromWasm0(arg1, arg2);
|
|
6504
6534
|
},
|
|
6505
|
-
|
|
6535
|
+
__wbg_set_shadowOffsetX_d2689cb0ee49a06f: function(arg0, arg1) {
|
|
6506
6536
|
arg0.shadowOffsetX = arg1;
|
|
6507
6537
|
},
|
|
6508
|
-
|
|
6538
|
+
__wbg_set_shadowOffsetY_21d7b928ae23beec: function(arg0, arg1) {
|
|
6509
6539
|
arg0.shadowOffsetY = arg1;
|
|
6510
6540
|
},
|
|
6511
|
-
|
|
6541
|
+
__wbg_set_src_44ba1ad03eb5113d: function(arg0, arg1, arg2) {
|
|
6512
6542
|
arg0.src = getStringFromWasm0(arg1, arg2);
|
|
6513
6543
|
},
|
|
6514
|
-
|
|
6544
|
+
__wbg_set_strokeStyle_f44ddd692cbef122: function(arg0, arg1, arg2) {
|
|
6515
6545
|
arg0.strokeStyle = getStringFromWasm0(arg1, arg2);
|
|
6516
6546
|
},
|
|
6517
|
-
|
|
6547
|
+
__wbg_set_textAlign_2cf46493669911fa: function(arg0, arg1, arg2) {
|
|
6518
6548
|
arg0.textAlign = getStringFromWasm0(arg1, arg2);
|
|
6519
6549
|
},
|
|
6520
|
-
|
|
6550
|
+
__wbg_set_textBaseline_5a3fa8559d95dd95: function(arg0, arg1, arg2) {
|
|
6521
6551
|
arg0.textBaseline = getStringFromWasm0(arg1, arg2);
|
|
6522
6552
|
},
|
|
6523
|
-
|
|
6553
|
+
__wbg_set_width_87301412247f3343: function(arg0, arg1) {
|
|
6524
6554
|
arg0.width = arg1 >>> 0;
|
|
6525
6555
|
},
|
|
6526
6556
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
@@ -6530,35 +6560,39 @@ function __wbg_get_imports() {
|
|
|
6530
6560
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
6531
6561
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
6532
6562
|
},
|
|
6533
|
-
|
|
6534
|
-
const ret = typeof
|
|
6563
|
+
__wbg_static_accessor_GLOBAL_9d53f2689e622ca1: function() {
|
|
6564
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
6535
6565
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6536
6566
|
},
|
|
6537
|
-
|
|
6538
|
-
const ret = typeof
|
|
6567
|
+
__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a: function() {
|
|
6568
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
6539
6569
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6540
6570
|
},
|
|
6541
|
-
|
|
6571
|
+
__wbg_static_accessor_SELF_4c59f6c7ea29a144: function() {
|
|
6542
6572
|
const ret = typeof self === 'undefined' ? null : self;
|
|
6543
6573
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6544
6574
|
},
|
|
6545
|
-
|
|
6575
|
+
__wbg_static_accessor_WINDOW_e70ae9f2eb052253: function() {
|
|
6546
6576
|
const ret = typeof window === 'undefined' ? null : window;
|
|
6547
6577
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
6548
6578
|
},
|
|
6549
|
-
|
|
6579
|
+
__wbg_strokeRect_0b35a3d8bed14f36: function(arg0, arg1, arg2, arg3, arg4) {
|
|
6550
6580
|
arg0.strokeRect(arg1, arg2, arg3, arg4);
|
|
6551
6581
|
},
|
|
6552
|
-
|
|
6582
|
+
__wbg_strokeText_0c03fc18dca3b589: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
6553
6583
|
arg0.strokeText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
6554
6584
|
}, arguments); },
|
|
6555
|
-
|
|
6585
|
+
__wbg_stroke_298b6b02ba692298: function(arg0) {
|
|
6556
6586
|
arg0.stroke();
|
|
6557
6587
|
},
|
|
6558
|
-
|
|
6588
|
+
__wbg_translate_2ae35da53e449a37: function() { return handleError(function (arg0, arg1, arg2) {
|
|
6559
6589
|
arg0.translate(arg1, arg2);
|
|
6560
6590
|
}, arguments); },
|
|
6561
|
-
|
|
6591
|
+
__wbg_width_796e38875beab5e6: function(arg0) {
|
|
6592
|
+
const ret = arg0.width;
|
|
6593
|
+
return ret;
|
|
6594
|
+
},
|
|
6595
|
+
__wbg_width_a01fb50fdb566912: function(arg0) {
|
|
6562
6596
|
const ret = arg0.width;
|
|
6563
6597
|
return ret;
|
|
6564
6598
|
},
|
package/rhwp_bg.wasm
CHANGED
|
Binary file
|
package/rhwp_bg.wasm.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ export const hwpdocument_getSectionCount: (a: number) => number;
|
|
|
136
136
|
export const hwpdocument_getSectionDef: (a: number, b: number) => [number, number, number, number];
|
|
137
137
|
export const hwpdocument_getSelectionRects: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
138
138
|
export const hwpdocument_getSelectionRectsInCell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
139
|
+
export const hwpdocument_getShapeBBox: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
139
140
|
export const hwpdocument_getShapeProperties: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
140
141
|
export const hwpdocument_getShowControlCodes: (a: number) => number;
|
|
141
142
|
export const hwpdocument_getShowTransparentBorders: (a: number) => number;
|