@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhwp/core",
3
- "version": "0.7.12",
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/compat overlay 정책 진단을 JSON 문자열로 반환한다.
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/compat overlay 정책 진단을 JSON 문자열로 반환한다.
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
- __wbg___wbindgen_is_undefined_35bb9f4c7fd651d5: function(arg0) {
6325
+ __wbg___wbindgen_is_undefined_67b456be8673d3d7: function(arg0) {
6296
6326
  const ret = arg0 === undefined;
6297
6327
  return ret;
6298
6328
  },
6299
- __wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
6329
+ __wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
6300
6330
  throw new Error(getStringFromWasm0(arg0, arg1));
6301
6331
  },
6302
- __wbg_addColorStop_be73a6cd45945c95: function() { return handleError(function (arg0, arg1, arg2, arg3) {
6332
+ __wbg_addColorStop_327b92fde5be2a67: function() { return handleError(function (arg0, arg1, arg2, arg3) {
6303
6333
  arg0.addColorStop(arg1, getStringFromWasm0(arg2, arg3));
6304
6334
  }, arguments); },
6305
- __wbg_arcTo_65b1083dba2ccbd9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
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
- __wbg_arc_7f6431be39dd28c1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
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
- __wbg_beginPath_0362b3134ed67152: function(arg0) {
6341
+ __wbg_beginPath_1da975fa79b7c1b9: function(arg0) {
6312
6342
  arg0.beginPath();
6313
6343
  },
6314
- __wbg_bezierCurveTo_2d7f81b72815a6e9: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
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
- __wbg_clearRect_1ea64f387215d3b8: function(arg0, arg1, arg2, arg3, arg4) {
6347
+ __wbg_clearRect_c6c4586d143d768c: function(arg0, arg1, arg2, arg3, arg4) {
6318
6348
  arg0.clearRect(arg1, arg2, arg3, arg4);
6319
6349
  },
6320
- __wbg_clip_3e048b00cfa42214: function(arg0) {
6350
+ __wbg_clip_512aa0849d54e0d5: function(arg0) {
6321
6351
  arg0.clip();
6322
6352
  },
6323
- __wbg_closePath_ab8775c8f9ce941f: function(arg0) {
6353
+ __wbg_closePath_6a67796205fda3c8: function(arg0) {
6324
6354
  arg0.closePath();
6325
6355
  },
6326
- __wbg_complete_40bdda81fe2acd86: function(arg0) {
6356
+ __wbg_complete_be51db166b7d8f49: function(arg0) {
6327
6357
  const ret = arg0.complete;
6328
6358
  return ret;
6329
6359
  },
6330
- __wbg_createElement_d10771800cfb6e7e: function() { return handleError(function (arg0, arg1, arg2) {
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
- __wbg_createLinearGradient_b9c382965695104c: function(arg0, arg1, arg2, arg3, arg4) {
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
- __wbg_createPattern_36eafcf3f55fe478: function() { return handleError(function (arg0, arg1, arg2, arg3) {
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
- __wbg_createRadialGradient_54da4fbcbc0ddab8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
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
- __wbg_document_3540635616a18455: function(arg0) {
6376
+ __wbg_document_aceb08cd6489baf5: function(arg0) {
6347
6377
  const ret = arg0.document;
6348
6378
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
6349
6379
  },
6350
- __wbg_drawImage_bf03a93112879523: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
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
- __wbg_ellipse_3a0edfeefa5e708d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
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
- __wbg_fillRect_4f7134801b257e68: function(arg0, arg1, arg2, arg3, arg4) {
6400
+ __wbg_fillRect_3916c35e6834cd1b: function(arg0, arg1, arg2, arg3, arg4) {
6371
6401
  arg0.fillRect(arg1, arg2, arg3, arg4);
6372
6402
  },
6373
- __wbg_fillText_b32475d6cb52486d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
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
- __wbg_fill_48694a86c0e175cf: function(arg0) {
6406
+ __wbg_fill_e9ef1c011f58f948: function(arg0) {
6377
6407
  arg0.fill();
6378
6408
  },
6379
- __wbg_getContext_e1463ff7aa682d57: function() { return handleError(function (arg0, arg1, arg2) {
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
- __wbg_height_aef2a2eb10d0d530: function(arg0) {
6413
+ __wbg_height_ef5b5950872773b5: function(arg0) {
6384
6414
  const ret = arg0.height;
6385
6415
  return ret;
6386
6416
  },
6387
- __wbg_instanceof_CanvasRenderingContext2d_d4be74cff7165c1e: function(arg0) {
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
- __wbg_instanceof_HtmlCanvasElement_a02da0a417f1bf3f: function(arg0) {
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
- __wbg_instanceof_Window_faa5cf994f49cca7: function(arg0) {
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
- __wbg_lineTo_72d6b123d28ab168: function(arg0, arg1, arg2) {
6447
+ __wbg_lineTo_1c1d0e0fabd76dd5: function(arg0, arg1, arg2) {
6418
6448
  arg0.lineTo(arg1, arg2);
6419
6449
  },
6420
- __wbg_measureTextWidth_86598426d2c41d7b: function(arg0, arg1, arg2, arg3) {
6421
- const ret = globalThis.measureTextWidth(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
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
- __wbg_moveTo_11bf5a977e6b8610: function(arg0, arg1, arg2) {
6453
+ }, arguments); },
6454
+ __wbg_moveTo_3356d453f2b376d1: function(arg0, arg1, arg2) {
6425
6455
  arg0.moveTo(arg1, arg2);
6426
6456
  },
6427
- __wbg_naturalWidth_bb168977ab076cca: function(arg0) {
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
- __wbg_new_310879b66b6e95e1: function() {
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
- __wbg_of_5ac20b48264ca018: function(arg0, arg1) {
6473
+ __wbg_of_f34f1ce50f299ee9: function(arg0, arg1) {
6444
6474
  const ret = Array.of(arg0, arg1);
6445
6475
  return ret;
6446
6476
  },
6447
- __wbg_push_b77c476b01548d0a: function(arg0, arg1) {
6477
+ __wbg_push_a6822215aa43e71c: function(arg0, arg1) {
6448
6478
  const ret = arg0.push(arg1);
6449
6479
  return ret;
6450
6480
  },
6451
- __wbg_quadraticCurveTo_5f5e011124b8f464: function(arg0, arg1, arg2, arg3, arg4) {
6481
+ __wbg_quadraticCurveTo_6c803a7678029e24: function(arg0, arg1, arg2, arg3, arg4) {
6452
6482
  arg0.quadraticCurveTo(arg1, arg2, arg3, arg4);
6453
6483
  },
6454
- __wbg_rect_5c0714a24dfa2a9a: function(arg0, arg1, arg2, arg3, arg4) {
6484
+ __wbg_rect_72dd146afd51fd1d: function(arg0, arg1, arg2, arg3, arg4) {
6455
6485
  arg0.rect(arg1, arg2, arg3, arg4);
6456
6486
  },
6457
- __wbg_restore_6a7dd2b862e161a3: function(arg0) {
6487
+ __wbg_restore_35d33f272777a212: function(arg0) {
6458
6488
  arg0.restore();
6459
6489
  },
6460
- __wbg_rotate_8a43df05baa30efe: function() { return handleError(function (arg0, arg1) {
6490
+ __wbg_rotate_404ece42a9f2263d: function() { return handleError(function (arg0, arg1) {
6461
6491
  arg0.rotate(arg1);
6462
6492
  }, arguments); },
6463
- __wbg_save_14924e966ab6b8b7: function(arg0) {
6493
+ __wbg_save_e8d837ef098cd6fc: function(arg0) {
6464
6494
  arg0.save();
6465
6495
  },
6466
- __wbg_scale_fc1a54fbad588f52: function() { return handleError(function (arg0, arg1, arg2) {
6496
+ __wbg_scale_28884a905dff3c86: function() { return handleError(function (arg0, arg1, arg2) {
6467
6497
  arg0.scale(arg1, arg2);
6468
6498
  }, arguments); },
6469
- __wbg_setLineDash_52c39bb093201720: function() { return handleError(function (arg0, arg1) {
6499
+ __wbg_setLineDash_df865b04e5ed4790: function() { return handleError(function (arg0, arg1) {
6470
6500
  arg0.setLineDash(arg1);
6471
6501
  }, arguments); },
6472
- __wbg_set_fillStyle_0d63df923f7519f9: function(arg0, arg1) {
6502
+ __wbg_set_fillStyle_8a802b39592e50ac: function(arg0, arg1) {
6473
6503
  arg0.fillStyle = arg1;
6474
6504
  },
6475
- __wbg_set_fillStyle_9696bdf3d30b4849: function(arg0, arg1) {
6505
+ __wbg_set_fillStyle_ad834564981122a6: function(arg0, arg1) {
6476
6506
  arg0.fillStyle = arg1;
6477
6507
  },
6478
- __wbg_set_fillStyle_ac68c79af375566e: function(arg0, arg1, arg2) {
6508
+ __wbg_set_fillStyle_e96ce0e2e6d0bd13: function(arg0, arg1, arg2) {
6479
6509
  arg0.fillStyle = getStringFromWasm0(arg1, arg2);
6480
6510
  },
6481
- __wbg_set_filter_7a49319ec6453243: function(arg0, arg1, arg2) {
6511
+ __wbg_set_filter_307bd6f64d4aba17: function(arg0, arg1, arg2) {
6482
6512
  arg0.filter = getStringFromWasm0(arg1, arg2);
6483
6513
  },
6484
- __wbg_set_font_7d34a66f4488295e: function(arg0, arg1, arg2) {
6514
+ __wbg_set_font_3700823e473a6204: function(arg0, arg1, arg2) {
6485
6515
  arg0.font = getStringFromWasm0(arg1, arg2);
6486
6516
  },
6487
- __wbg_set_globalAlpha_b733b0d48d14b1c0: function(arg0, arg1) {
6517
+ __wbg_set_globalAlpha_8ed66eb71dbee04d: function(arg0, arg1) {
6488
6518
  arg0.globalAlpha = arg1;
6489
6519
  },
6490
- __wbg_set_height_bdd58e6b04e88cca: function(arg0, arg1) {
6520
+ __wbg_set_height_0739170de8653cc4: function(arg0, arg1) {
6491
6521
  arg0.height = arg1 >>> 0;
6492
6522
  },
6493
- __wbg_set_lineCap_59e3edc93d8a32b9: function(arg0, arg1, arg2) {
6523
+ __wbg_set_lineCap_4709bda4f8626b19: function(arg0, arg1, arg2) {
6494
6524
  arg0.lineCap = getStringFromWasm0(arg1, arg2);
6495
6525
  },
6496
- __wbg_set_lineWidth_e101692cb4fcf2b8: function(arg0, arg1) {
6526
+ __wbg_set_lineWidth_57a9e0b365e06eba: function(arg0, arg1) {
6497
6527
  arg0.lineWidth = arg1;
6498
6528
  },
6499
- __wbg_set_shadowBlur_2b0b17774538964f: function(arg0, arg1) {
6529
+ __wbg_set_shadowBlur_9a876dbc0f0e0e7d: function(arg0, arg1) {
6500
6530
  arg0.shadowBlur = arg1;
6501
6531
  },
6502
- __wbg_set_shadowColor_fd19b74a10546ec5: function(arg0, arg1, arg2) {
6532
+ __wbg_set_shadowColor_1b8fb4690ca58666: function(arg0, arg1, arg2) {
6503
6533
  arg0.shadowColor = getStringFromWasm0(arg1, arg2);
6504
6534
  },
6505
- __wbg_set_shadowOffsetX_964461c8f74a1b79: function(arg0, arg1) {
6535
+ __wbg_set_shadowOffsetX_d2689cb0ee49a06f: function(arg0, arg1) {
6506
6536
  arg0.shadowOffsetX = arg1;
6507
6537
  },
6508
- __wbg_set_shadowOffsetY_5f5bfe1a894d5499: function(arg0, arg1) {
6538
+ __wbg_set_shadowOffsetY_21d7b928ae23beec: function(arg0, arg1) {
6509
6539
  arg0.shadowOffsetY = arg1;
6510
6540
  },
6511
- __wbg_set_src_d1764443f29632b8: function(arg0, arg1, arg2) {
6541
+ __wbg_set_src_44ba1ad03eb5113d: function(arg0, arg1, arg2) {
6512
6542
  arg0.src = getStringFromWasm0(arg1, arg2);
6513
6543
  },
6514
- __wbg_set_strokeStyle_c6ed1f71bc678b73: function(arg0, arg1, arg2) {
6544
+ __wbg_set_strokeStyle_f44ddd692cbef122: function(arg0, arg1, arg2) {
6515
6545
  arg0.strokeStyle = getStringFromWasm0(arg1, arg2);
6516
6546
  },
6517
- __wbg_set_textAlign_71396dccac36c6a3: function(arg0, arg1, arg2) {
6547
+ __wbg_set_textAlign_2cf46493669911fa: function(arg0, arg1, arg2) {
6518
6548
  arg0.textAlign = getStringFromWasm0(arg1, arg2);
6519
6549
  },
6520
- __wbg_set_textBaseline_6aa4c793e7960e92: function(arg0, arg1, arg2) {
6550
+ __wbg_set_textBaseline_5a3fa8559d95dd95: function(arg0, arg1, arg2) {
6521
6551
  arg0.textBaseline = getStringFromWasm0(arg1, arg2);
6522
6552
  },
6523
- __wbg_set_width_25112eb6bf1148df: function(arg0, arg1) {
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
- __wbg_static_accessor_GLOBAL_THIS_02344c9b09eb08a9: function() {
6534
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
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
- __wbg_static_accessor_GLOBAL_ac6d4ac874d5cd54: function() {
6538
- const ret = typeof global === 'undefined' ? null : global;
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
- __wbg_static_accessor_SELF_9b2406c23aeb2023: function() {
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
- __wbg_static_accessor_WINDOW_b34d2126934e16ba: function() {
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
- __wbg_strokeRect_3430a0df4158ba67: function(arg0, arg1, arg2, arg3, arg4) {
6579
+ __wbg_strokeRect_0b35a3d8bed14f36: function(arg0, arg1, arg2, arg3, arg4) {
6550
6580
  arg0.strokeRect(arg1, arg2, arg3, arg4);
6551
6581
  },
6552
- __wbg_strokeText_2ada42e0f9d6c857: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
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
- __wbg_stroke_82139a335b371e81: function(arg0) {
6585
+ __wbg_stroke_298b6b02ba692298: function(arg0) {
6556
6586
  arg0.stroke();
6557
6587
  },
6558
- __wbg_translate_60b6d2cb9b18fba1: function() { return handleError(function (arg0, arg1, arg2) {
6588
+ __wbg_translate_2ae35da53e449a37: function() { return handleError(function (arg0, arg1, arg2) {
6559
6589
  arg0.translate(arg1, arg2);
6560
6590
  }, arguments); },
6561
- __wbg_width_e987166926c3367c: function(arg0) {
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;