@rhwp/core 0.6.1 → 0.7.2

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.6.1",
3
+ "version": "0.7.2",
4
4
  "description": "HWP/HWPX file parser and renderer — Rust + WebAssembly",
5
5
  "type": "module",
6
6
  "main": "rhwp.js",
package/rhwp.d.ts CHANGED
@@ -618,6 +618,10 @@ export class HwpDocument {
618
618
  * 조판부호 표시 여부를 반환한다.
619
619
  */
620
620
  getShowControlCodes(): boolean;
621
+ /**
622
+ * 투명선 표시 여부를 반환한다.
623
+ */
624
+ getShowTransparentBorders(): boolean;
621
625
  /**
622
626
  * 특정 문단의 스타일을 조회한다.
623
627
  *
@@ -1032,6 +1036,18 @@ export class HwpDocument {
1032
1036
  * 반환: `{ok}`
1033
1037
  */
1034
1038
  setFormValue(sec: number, para: number, ci: number, value_json: string): string;
1039
+ /**
1040
+ * 셀 내부 양식 개체 값을 설정한다.
1041
+ *
1042
+ * table_para: 표를 포함한 최상위 문단 인덱스
1043
+ * table_ci: 표 컨트롤 인덱스
1044
+ * cell_idx: 셀 인덱스
1045
+ * cell_para: 셀 내 문단 인덱스
1046
+ * form_ci: 셀 내 양식 컨트롤 인덱스
1047
+ * value_json: `{"value":1}` 또는 `{"text":"입력값"}`
1048
+ * 반환: `{ok}`
1049
+ */
1050
+ setFormValueInCell(sec: number, table_para: number, table_ci: number, cell_idx: number, cell_para: number, form_ci: number, value_json: string): string;
1035
1051
  /**
1036
1052
  * 문단 서식을 적용한다 (본문 문단).
1037
1053
  * 문단 번호 시작 방식 설정
@@ -1207,6 +1223,14 @@ export class HwpViewer {
1207
1223
  visiblePages(): Uint32Array;
1208
1224
  }
1209
1225
 
1226
+ /**
1227
+ * HWP 파일에서 썸네일 이미지만 경량 추출 (전체 파싱 없이)
1228
+ *
1229
+ * 반환: JSON `{ "format": "png"|"gif", "base64": "...", "width": N, "height": N }`
1230
+ * PrvImage가 없으면 `null` 반환
1231
+ */
1232
+ export function extractThumbnail(data: Uint8Array): any;
1233
+
1210
1234
  /**
1211
1235
  * WASM panic hook 초기화 (한 번만 실행)
1212
1236
  */
@@ -1222,6 +1246,7 @@ export interface InitOutput {
1222
1246
  readonly init_panic_hook: () => void;
1223
1247
  readonly __wbg_hwpdocument_free: (a: number, b: number) => void;
1224
1248
  readonly __wbg_hwpviewer_free: (a: number, b: number) => void;
1249
+ readonly extractThumbnail: (a: number, b: number) => any;
1225
1250
  readonly hwpdocument_addBookmark: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1226
1251
  readonly hwpdocument_applyCellStyle: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
1227
1252
  readonly hwpdocument_applyCharFormat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
@@ -1344,6 +1369,7 @@ export interface InitOutput {
1344
1369
  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];
1345
1370
  readonly hwpdocument_getShapeProperties: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1346
1371
  readonly hwpdocument_getShowControlCodes: (a: number) => number;
1372
+ readonly hwpdocument_getShowTransparentBorders: (a: number) => number;
1347
1373
  readonly hwpdocument_getStyleAt: (a: number, b: number, c: number) => [number, number];
1348
1374
  readonly hwpdocument_getStyleDetail: (a: number, b: number) => [number, number];
1349
1375
  readonly hwpdocument_getStyleList: (a: number) => [number, number];
@@ -1425,6 +1451,7 @@ export interface InitOutput {
1425
1451
  readonly hwpdocument_setFieldValueByName: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
1426
1452
  readonly hwpdocument_setFileName: (a: number, b: number, c: number) => void;
1427
1453
  readonly hwpdocument_setFormValue: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1454
+ readonly hwpdocument_setFormValueInCell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
1428
1455
  readonly hwpdocument_setNumberingRestart: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
1429
1456
  readonly hwpdocument_setPageDef: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1430
1457
  readonly hwpdocument_setPageHide: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
package/rhwp.js CHANGED
@@ -2813,6 +2813,14 @@ export class HwpDocument {
2813
2813
  const ret = wasm.hwpdocument_getShowControlCodes(this.__wbg_ptr);
2814
2814
  return ret !== 0;
2815
2815
  }
2816
+ /**
2817
+ * 투명선 표시 여부를 반환한다.
2818
+ * @returns {boolean}
2819
+ */
2820
+ getShowTransparentBorders() {
2821
+ const ret = wasm.hwpdocument_getShowTransparentBorders(this.__wbg_ptr);
2822
+ return ret !== 0;
2823
+ }
2816
2824
  /**
2817
2825
  * 특정 문단의 스타일을 조회한다.
2818
2826
  *
@@ -4819,6 +4827,45 @@ export class HwpDocument {
4819
4827
  wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
4820
4828
  }
4821
4829
  }
4830
+ /**
4831
+ * 셀 내부 양식 개체 값을 설정한다.
4832
+ *
4833
+ * table_para: 표를 포함한 최상위 문단 인덱스
4834
+ * table_ci: 표 컨트롤 인덱스
4835
+ * cell_idx: 셀 인덱스
4836
+ * cell_para: 셀 내 문단 인덱스
4837
+ * form_ci: 셀 내 양식 컨트롤 인덱스
4838
+ * value_json: `{"value":1}` 또는 `{"text":"입력값"}`
4839
+ * 반환: `{ok}`
4840
+ * @param {number} sec
4841
+ * @param {number} table_para
4842
+ * @param {number} table_ci
4843
+ * @param {number} cell_idx
4844
+ * @param {number} cell_para
4845
+ * @param {number} form_ci
4846
+ * @param {string} value_json
4847
+ * @returns {string}
4848
+ */
4849
+ setFormValueInCell(sec, table_para, table_ci, cell_idx, cell_para, form_ci, value_json) {
4850
+ let deferred3_0;
4851
+ let deferred3_1;
4852
+ try {
4853
+ const ptr0 = passStringToWasm0(value_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4854
+ const len0 = WASM_VECTOR_LEN;
4855
+ const ret = wasm.hwpdocument_setFormValueInCell(this.__wbg_ptr, sec, table_para, table_ci, cell_idx, cell_para, form_ci, ptr0, len0);
4856
+ var ptr2 = ret[0];
4857
+ var len2 = ret[1];
4858
+ if (ret[3]) {
4859
+ ptr2 = 0; len2 = 0;
4860
+ throw takeFromExternrefTable0(ret[2]);
4861
+ }
4862
+ deferred3_0 = ptr2;
4863
+ deferred3_1 = len2;
4864
+ return getStringFromWasm0(ptr2, len2);
4865
+ } finally {
4866
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
4867
+ }
4868
+ }
4822
4869
  /**
4823
4870
  * 문단 서식을 적용한다 (본문 문단).
4824
4871
  * 문단 번호 시작 방식 설정
@@ -5561,6 +5608,21 @@ export class HwpViewer {
5561
5608
  }
5562
5609
  if (Symbol.dispose) HwpViewer.prototype[Symbol.dispose] = HwpViewer.prototype.free;
5563
5610
 
5611
+ /**
5612
+ * HWP 파일에서 썸네일 이미지만 경량 추출 (전체 파싱 없이)
5613
+ *
5614
+ * 반환: JSON `{ "format": "png"|"gif", "base64": "...", "width": N, "height": N }`
5615
+ * PrvImage가 없으면 `null` 반환
5616
+ * @param {Uint8Array} data
5617
+ * @returns {any}
5618
+ */
5619
+ export function extractThumbnail(data) {
5620
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
5621
+ const len0 = WASM_VECTOR_LEN;
5622
+ const ret = wasm.extractThumbnail(ptr0, len0);
5623
+ return ret;
5624
+ }
5625
+
5564
5626
  /**
5565
5627
  * WASM panic hook 초기화 (한 번만 실행)
5566
5628
  */
@@ -5583,69 +5645,68 @@ export function version() {
5583
5645
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
5584
5646
  }
5585
5647
  }
5586
-
5587
5648
  function __wbg_get_imports() {
5588
5649
  const import0 = {
5589
5650
  __proto__: null,
5590
- __wbg___wbindgen_is_undefined_87a3a837f331fef5: function(arg0) {
5651
+ __wbg___wbindgen_is_undefined_29a43b4d42920abd: function(arg0) {
5591
5652
  const ret = arg0 === undefined;
5592
5653
  return ret;
5593
5654
  },
5594
- __wbg___wbindgen_throw_5549492daedad139: function(arg0, arg1) {
5655
+ __wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
5595
5656
  throw new Error(getStringFromWasm0(arg0, arg1));
5596
5657
  },
5597
- __wbg_addColorStop_e9d7917e602ba786: function() { return handleError(function (arg0, arg1, arg2, arg3) {
5658
+ __wbg_addColorStop_e4af4b30913e9aa4: function() { return handleError(function (arg0, arg1, arg2, arg3) {
5598
5659
  arg0.addColorStop(arg1, getStringFromWasm0(arg2, arg3));
5599
5660
  }, arguments); },
5600
- __wbg_arcTo_a58bf97d6156a7d5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
5661
+ __wbg_arcTo_941456c2ac39464e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
5601
5662
  arg0.arcTo(arg1, arg2, arg3, arg4, arg5);
5602
5663
  }, arguments); },
5603
- __wbg_arc_5f0ea790e460e7f8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
5664
+ __wbg_arc_817de096f286078c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
5604
5665
  arg0.arc(arg1, arg2, arg3, arg4, arg5);
5605
5666
  }, arguments); },
5606
- __wbg_beginPath_d19446eab1bb1877: function(arg0) {
5667
+ __wbg_beginPath_6d95cc267dd3e88f: function(arg0) {
5607
5668
  arg0.beginPath();
5608
5669
  },
5609
- __wbg_bezierCurveTo_b5cebd2f15e81c18: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
5670
+ __wbg_bezierCurveTo_ee45420e339643c8: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
5610
5671
  arg0.bezierCurveTo(arg1, arg2, arg3, arg4, arg5, arg6);
5611
5672
  },
5612
- __wbg_clip_33350cb2b008c756: function(arg0) {
5673
+ __wbg_clip_650afbf402c47658: function(arg0) {
5613
5674
  arg0.clip();
5614
5675
  },
5615
- __wbg_closePath_75c0f615995df9cf: function(arg0) {
5676
+ __wbg_closePath_d9cf40637e9c89c2: function(arg0) {
5616
5677
  arg0.closePath();
5617
5678
  },
5618
- __wbg_complete_209738f7e96f09fe: function(arg0) {
5679
+ __wbg_complete_7d890334bda9075e: function(arg0) {
5619
5680
  const ret = arg0.complete;
5620
5681
  return ret;
5621
5682
  },
5622
- __wbg_createElement_a8dcfa25dbf80c51: function() { return handleError(function (arg0, arg1, arg2) {
5683
+ __wbg_createElement_bbd4c90086fe6f7b: function() { return handleError(function (arg0, arg1, arg2) {
5623
5684
  const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
5624
5685
  return ret;
5625
5686
  }, arguments); },
5626
- __wbg_createLinearGradient_160436063f36af0f: function(arg0, arg1, arg2, arg3, arg4) {
5687
+ __wbg_createLinearGradient_1ecf06dc64e02f68: function(arg0, arg1, arg2, arg3, arg4) {
5627
5688
  const ret = arg0.createLinearGradient(arg1, arg2, arg3, arg4);
5628
5689
  return ret;
5629
5690
  },
5630
- __wbg_createPattern_f1fdc22be0e288a9: function() { return handleError(function (arg0, arg1, arg2, arg3) {
5691
+ __wbg_createPattern_665dd581add98e15: function() { return handleError(function (arg0, arg1, arg2, arg3) {
5631
5692
  const ret = arg0.createPattern(arg1, getStringFromWasm0(arg2, arg3));
5632
5693
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5633
5694
  }, arguments); },
5634
- __wbg_createRadialGradient_f65b83baea8ac2db: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
5695
+ __wbg_createRadialGradient_9c24ef9b8a6ce72f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
5635
5696
  const ret = arg0.createRadialGradient(arg1, arg2, arg3, arg4, arg5, arg6);
5636
5697
  return ret;
5637
5698
  }, arguments); },
5638
- __wbg_document_cf512e4e2300751d: function(arg0) {
5699
+ __wbg_document_7a41071f2f439323: function(arg0) {
5639
5700
  const ret = arg0.document;
5640
5701
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5641
5702
  },
5642
- __wbg_drawImage_0fe07c153adefab9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
5703
+ __wbg_drawImage_556ab1ffc4c5c68d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
5643
5704
  arg0.drawImage(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
5644
5705
  }, arguments); },
5645
- __wbg_drawImage_3bd75ebb4b2d9e3a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
5706
+ __wbg_drawImage_96e533f015039596: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
5646
5707
  arg0.drawImage(arg1, arg2, arg3, arg4, arg5);
5647
5708
  }, arguments); },
5648
- __wbg_ellipse_f62a7677aa5a6d10: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
5709
+ __wbg_ellipse_0303410b3d05bb97: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
5649
5710
  arg0.ellipse(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
5650
5711
  }, arguments); },
5651
5712
  __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
@@ -5659,24 +5720,24 @@ function __wbg_get_imports() {
5659
5720
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5660
5721
  }
5661
5722
  },
5662
- __wbg_fillRect_8e85439dbed5cf52: function(arg0, arg1, arg2, arg3, arg4) {
5723
+ __wbg_fillRect_992c5a4646ea7a7f: function(arg0, arg1, arg2, arg3, arg4) {
5663
5724
  arg0.fillRect(arg1, arg2, arg3, arg4);
5664
5725
  },
5665
- __wbg_fillText_cbd6bbed4f2bdb60: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
5726
+ __wbg_fillText_dabb33ea287042e2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
5666
5727
  arg0.fillText(getStringFromWasm0(arg1, arg2), arg3, arg4);
5667
5728
  }, arguments); },
5668
- __wbg_fill_dae36238515d5017: function(arg0) {
5729
+ __wbg_fill_ec5da5f3916cf924: function(arg0) {
5669
5730
  arg0.fill();
5670
5731
  },
5671
- __wbg_getContext_749c4678f6cac6fb: function() { return handleError(function (arg0, arg1, arg2) {
5732
+ __wbg_getContext_fc146f8ec021d074: function() { return handleError(function (arg0, arg1, arg2) {
5672
5733
  const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
5673
5734
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5674
5735
  }, arguments); },
5675
- __wbg_height_2393a7383c1f4485: function(arg0) {
5736
+ __wbg_height_528848d067cc2221: function(arg0) {
5676
5737
  const ret = arg0.height;
5677
5738
  return ret;
5678
5739
  },
5679
- __wbg_instanceof_CanvasRenderingContext2d_05c92edaf1c9546d: function(arg0) {
5740
+ __wbg_instanceof_CanvasRenderingContext2d_24a3fe06e62b98d7: function(arg0) {
5680
5741
  let result;
5681
5742
  try {
5682
5743
  result = arg0 instanceof CanvasRenderingContext2D;
@@ -5686,7 +5747,7 @@ function __wbg_get_imports() {
5686
5747
  const ret = result;
5687
5748
  return ret;
5688
5749
  },
5689
- __wbg_instanceof_HtmlCanvasElement_14482979108c6cf8: function(arg0) {
5750
+ __wbg_instanceof_HtmlCanvasElement_ea4dfc3bb77c734b: function(arg0) {
5690
5751
  let result;
5691
5752
  try {
5692
5753
  result = arg0 instanceof HTMLCanvasElement;
@@ -5696,7 +5757,7 @@ function __wbg_get_imports() {
5696
5757
  const ret = result;
5697
5758
  return ret;
5698
5759
  },
5699
- __wbg_instanceof_Window_2fa8d9c2d5b6104a: function(arg0) {
5760
+ __wbg_instanceof_Window_cc64c86c8ef9e02b: function(arg0) {
5700
5761
  let result;
5701
5762
  try {
5702
5763
  result = arg0 instanceof Window;
@@ -5706,17 +5767,17 @@ function __wbg_get_imports() {
5706
5767
  const ret = result;
5707
5768
  return ret;
5708
5769
  },
5709
- __wbg_lineTo_8bf70bb6798a8c99: function(arg0, arg1, arg2) {
5770
+ __wbg_lineTo_c9f1e0dd4824ae31: function(arg0, arg1, arg2) {
5710
5771
  arg0.lineTo(arg1, arg2);
5711
5772
  },
5712
- __wbg_measureTextWidth_8a74d4420413fe6e: function(arg0, arg1, arg2, arg3) {
5773
+ __wbg_measureTextWidth_3f7ab3a9f314ad03: function(arg0, arg1, arg2, arg3) {
5713
5774
  const ret = globalThis.measureTextWidth(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
5714
5775
  return ret;
5715
5776
  },
5716
- __wbg_moveTo_80cc3e7e4d56242c: function(arg0, arg1, arg2) {
5777
+ __wbg_moveTo_d3deaceb55dc2d80: function(arg0, arg1, arg2) {
5717
5778
  arg0.moveTo(arg1, arg2);
5718
5779
  },
5719
- __wbg_naturalWidth_9386aa07e577c907: function(arg0) {
5780
+ __wbg_naturalWidth_901815552da8b0fc: function(arg0) {
5720
5781
  const ret = arg0.naturalWidth;
5721
5782
  return ret;
5722
5783
  },
@@ -5724,88 +5785,88 @@ function __wbg_get_imports() {
5724
5785
  const ret = new Error();
5725
5786
  return ret;
5726
5787
  },
5727
- __wbg_new_4370be21fa2b2f80: function() {
5788
+ __wbg_new_682678e2f47e32bc: function() {
5728
5789
  const ret = new Array();
5729
5790
  return ret;
5730
5791
  },
5731
- __wbg_new_492a3832e7a76b37: function() { return handleError(function () {
5792
+ __wbg_new_ca878e5fdbbbf099: function() { return handleError(function () {
5732
5793
  const ret = new Image();
5733
5794
  return ret;
5734
5795
  }, arguments); },
5735
- __wbg_push_d0006a37f9fcda6d: function(arg0, arg1) {
5796
+ __wbg_push_471a5b068a5295f6: function(arg0, arg1) {
5736
5797
  const ret = arg0.push(arg1);
5737
5798
  return ret;
5738
5799
  },
5739
- __wbg_quadraticCurveTo_d640ca60151c694c: function(arg0, arg1, arg2, arg3, arg4) {
5800
+ __wbg_quadraticCurveTo_37ac65747b2aa9f4: function(arg0, arg1, arg2, arg3, arg4) {
5740
5801
  arg0.quadraticCurveTo(arg1, arg2, arg3, arg4);
5741
5802
  },
5742
- __wbg_rect_116aaad8434d86e0: function(arg0, arg1, arg2, arg3, arg4) {
5803
+ __wbg_rect_a7f5a58f447e85c2: function(arg0, arg1, arg2, arg3, arg4) {
5743
5804
  arg0.rect(arg1, arg2, arg3, arg4);
5744
5805
  },
5745
- __wbg_restore_e6a24ab91175f69b: function(arg0) {
5806
+ __wbg_restore_f103803ad0dc390b: function(arg0) {
5746
5807
  arg0.restore();
5747
5808
  },
5748
- __wbg_rotate_a2ecf4b4abce0381: function() { return handleError(function (arg0, arg1) {
5809
+ __wbg_rotate_fb8a7a0e39ad85a6: function() { return handleError(function (arg0, arg1) {
5749
5810
  arg0.rotate(arg1);
5750
5811
  }, arguments); },
5751
- __wbg_save_79d7c437f5eee0f4: function(arg0) {
5812
+ __wbg_save_5b07d6d1028c3e4d: function(arg0) {
5752
5813
  arg0.save();
5753
5814
  },
5754
- __wbg_scale_050b84c93a084b76: function() { return handleError(function (arg0, arg1, arg2) {
5815
+ __wbg_scale_c41a145cbdf9e3c0: function() { return handleError(function (arg0, arg1, arg2) {
5755
5816
  arg0.scale(arg1, arg2);
5756
5817
  }, arguments); },
5757
- __wbg_setLineDash_6f5cc2a22c4a1b91: function() { return handleError(function (arg0, arg1) {
5818
+ __wbg_setLineDash_c273ecd8ca7d242d: function() { return handleError(function (arg0, arg1) {
5758
5819
  arg0.setLineDash(arg1);
5759
5820
  }, arguments); },
5760
- __wbg_set_fillStyle_2028dbddef59161a: function(arg0, arg1) {
5821
+ __wbg_set_fillStyle_88f4ccfb74d7de05: function(arg0, arg1) {
5761
5822
  arg0.fillStyle = arg1;
5762
5823
  },
5763
- __wbg_set_fillStyle_5546a7d5a3c3b858: function(arg0, arg1) {
5824
+ __wbg_set_fillStyle_a6dc6303c382ed50: function(arg0, arg1) {
5764
5825
  arg0.fillStyle = arg1;
5765
5826
  },
5766
- __wbg_set_fillStyle_5831c43ae72fcbaa: function(arg0, arg1, arg2) {
5827
+ __wbg_set_fillStyle_e51447e54357dc46: function(arg0, arg1, arg2) {
5767
5828
  arg0.fillStyle = getStringFromWasm0(arg1, arg2);
5768
5829
  },
5769
- __wbg_set_font_b66425253b4ba1d9: function(arg0, arg1, arg2) {
5830
+ __wbg_set_font_295aa505e45244aa: function(arg0, arg1, arg2) {
5770
5831
  arg0.font = getStringFromWasm0(arg1, arg2);
5771
5832
  },
5772
- __wbg_set_globalAlpha_fa591e18100bfc5b: function(arg0, arg1) {
5833
+ __wbg_set_globalAlpha_1660b0603161d11b: function(arg0, arg1) {
5773
5834
  arg0.globalAlpha = arg1;
5774
5835
  },
5775
- __wbg_set_height_281ab7665c19410b: function(arg0, arg1) {
5836
+ __wbg_set_height_be9b2b920bd68401: function(arg0, arg1) {
5776
5837
  arg0.height = arg1 >>> 0;
5777
5838
  },
5778
- __wbg_set_lineCap_93be14274c7e6eee: function(arg0, arg1, arg2) {
5839
+ __wbg_set_lineCap_63624e83cb57fb8b: function(arg0, arg1, arg2) {
5779
5840
  arg0.lineCap = getStringFromWasm0(arg1, arg2);
5780
5841
  },
5781
- __wbg_set_lineWidth_8a79face29b28dee: function(arg0, arg1) {
5842
+ __wbg_set_lineWidth_2fae105117e1a89f: function(arg0, arg1) {
5782
5843
  arg0.lineWidth = arg1;
5783
5844
  },
5784
- __wbg_set_shadowBlur_54b44d6aec89c7ec: function(arg0, arg1) {
5845
+ __wbg_set_shadowBlur_f9653d1a9e1573ef: function(arg0, arg1) {
5785
5846
  arg0.shadowBlur = arg1;
5786
5847
  },
5787
- __wbg_set_shadowColor_3ba720a5fa43c12b: function(arg0, arg1, arg2) {
5848
+ __wbg_set_shadowColor_5882e8ce2ded629b: function(arg0, arg1, arg2) {
5788
5849
  arg0.shadowColor = getStringFromWasm0(arg1, arg2);
5789
5850
  },
5790
- __wbg_set_shadowOffsetX_56967f53265f18d2: function(arg0, arg1) {
5851
+ __wbg_set_shadowOffsetX_1392477384fa4640: function(arg0, arg1) {
5791
5852
  arg0.shadowOffsetX = arg1;
5792
5853
  },
5793
- __wbg_set_shadowOffsetY_26775f75389ab264: function(arg0, arg1) {
5854
+ __wbg_set_shadowOffsetY_34fbe4164fc72313: function(arg0, arg1) {
5794
5855
  arg0.shadowOffsetY = arg1;
5795
5856
  },
5796
- __wbg_set_src_5c8f7756bc7b1460: function(arg0, arg1, arg2) {
5857
+ __wbg_set_src_59f1be1c833b4918: function(arg0, arg1, arg2) {
5797
5858
  arg0.src = getStringFromWasm0(arg1, arg2);
5798
5859
  },
5799
- __wbg_set_strokeStyle_27efebf6589caeff: function(arg0, arg1, arg2) {
5860
+ __wbg_set_strokeStyle_0429d48dae657e53: function(arg0, arg1, arg2) {
5800
5861
  arg0.strokeStyle = getStringFromWasm0(arg1, arg2);
5801
5862
  },
5802
- __wbg_set_textAlign_78fce947b83e7cf8: function(arg0, arg1, arg2) {
5863
+ __wbg_set_textAlign_e1a83482b00339b8: function(arg0, arg1, arg2) {
5803
5864
  arg0.textAlign = getStringFromWasm0(arg1, arg2);
5804
5865
  },
5805
- __wbg_set_textBaseline_5b55527990589666: function(arg0, arg1, arg2) {
5866
+ __wbg_set_textBaseline_8662e97190d0164a: function(arg0, arg1, arg2) {
5806
5867
  arg0.textBaseline = getStringFromWasm0(arg1, arg2);
5807
5868
  },
5808
- __wbg_set_width_2b175fb691e65ee4: function(arg0, arg1) {
5869
+ __wbg_set_width_5cda41d4d06a14dd: function(arg0, arg1) {
5809
5870
  arg0.width = arg1 >>> 0;
5810
5871
  },
5811
5872
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
@@ -5815,35 +5876,35 @@ function __wbg_get_imports() {
5815
5876
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
5816
5877
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
5817
5878
  },
5818
- __wbg_static_accessor_GLOBAL_8dfb7f5e26ebe523: function() {
5879
+ __wbg_static_accessor_GLOBAL_8cfadc87a297ca02: function() {
5819
5880
  const ret = typeof global === 'undefined' ? null : global;
5820
5881
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5821
5882
  },
5822
- __wbg_static_accessor_GLOBAL_THIS_941154efc8395cdd: function() {
5883
+ __wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf: function() {
5823
5884
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
5824
5885
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5825
5886
  },
5826
- __wbg_static_accessor_SELF_58dac9af822f561f: function() {
5887
+ __wbg_static_accessor_SELF_e445c1c7484aecc3: function() {
5827
5888
  const ret = typeof self === 'undefined' ? null : self;
5828
5889
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5829
5890
  },
5830
- __wbg_static_accessor_WINDOW_ee64f0b3d8354c0b: function() {
5891
+ __wbg_static_accessor_WINDOW_f20e8576ef1e0f17: function() {
5831
5892
  const ret = typeof window === 'undefined' ? null : window;
5832
5893
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5833
5894
  },
5834
- __wbg_strokeRect_3dde9d625c426790: function(arg0, arg1, arg2, arg3, arg4) {
5895
+ __wbg_strokeRect_502699d92aeb85f1: function(arg0, arg1, arg2, arg3, arg4) {
5835
5896
  arg0.strokeRect(arg1, arg2, arg3, arg4);
5836
5897
  },
5837
- __wbg_strokeText_c26a5decb92fae61: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
5898
+ __wbg_strokeText_fd5393a1c9f02f23: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
5838
5899
  arg0.strokeText(getStringFromWasm0(arg1, arg2), arg3, arg4);
5839
5900
  }, arguments); },
5840
- __wbg_stroke_973b13cddda4b497: function(arg0) {
5901
+ __wbg_stroke_42f07013960cf81b: function(arg0) {
5841
5902
  arg0.stroke();
5842
5903
  },
5843
- __wbg_translate_c1935f09d8177ca2: function() { return handleError(function (arg0, arg1, arg2) {
5904
+ __wbg_translate_34989493d69eaecd: function() { return handleError(function (arg0, arg1, arg2) {
5844
5905
  arg0.translate(arg1, arg2);
5845
5906
  }, arguments); },
5846
- __wbg_width_c2ed6178eeb4ed9f: function(arg0) {
5907
+ __wbg_width_5adcb07d04d08bdf: function(arg0) {
5847
5908
  const ret = arg0.width;
5848
5909
  return ret;
5849
5910
  },
package/rhwp_bg.wasm CHANGED
Binary file
package/rhwp_bg.wasm.d.ts CHANGED
@@ -5,6 +5,7 @@ export const version: () => [number, number];
5
5
  export const init_panic_hook: () => void;
6
6
  export const __wbg_hwpdocument_free: (a: number, b: number) => void;
7
7
  export const __wbg_hwpviewer_free: (a: number, b: number) => void;
8
+ export const extractThumbnail: (a: number, b: number) => any;
8
9
  export const hwpdocument_addBookmark: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
9
10
  export const hwpdocument_applyCellStyle: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
10
11
  export const hwpdocument_applyCharFormat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
@@ -127,6 +128,7 @@ export const hwpdocument_getSelectionRects: (a: number, b: number, c: number, d:
127
128
  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];
128
129
  export const hwpdocument_getShapeProperties: (a: number, b: number, c: number, d: number) => [number, number, number, number];
129
130
  export const hwpdocument_getShowControlCodes: (a: number) => number;
131
+ export const hwpdocument_getShowTransparentBorders: (a: number) => number;
130
132
  export const hwpdocument_getStyleAt: (a: number, b: number, c: number) => [number, number];
131
133
  export const hwpdocument_getStyleDetail: (a: number, b: number) => [number, number];
132
134
  export const hwpdocument_getStyleList: (a: number) => [number, number];
@@ -208,6 +210,7 @@ export const hwpdocument_setFieldValue: (a: number, b: number, c: number, d: num
208
210
  export const hwpdocument_setFieldValueByName: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
209
211
  export const hwpdocument_setFileName: (a: number, b: number, c: number) => void;
210
212
  export const hwpdocument_setFormValue: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
213
+ export const hwpdocument_setFormValueInCell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
211
214
  export const hwpdocument_setNumberingRestart: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
212
215
  export const hwpdocument_setPageDef: (a: number, b: number, c: number, d: number) => [number, number, number, number];
213
216
  export const hwpdocument_setPageHide: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];