@silurus/ooxml 0.14.0 → 0.15.0

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/dist/pptx.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./autoResize-ggn4hzd8.cjs`),t=require(`./pptx-BMJO4Oqg.cjs`);exports.PptxPresentation=t.r,exports.PptxViewer=t.n,exports.autoResize=e.t,exports.renderSlide=t.i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./autoResize-ggn4hzd8.cjs`),t=require(`./pptx-BiUBfZZA.cjs`);exports.PptxPresentation=t.r,exports.PptxViewer=t.n,exports.autoResize=e.t,exports.renderSlide=t.i;
package/dist/pptx.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as e } from "./autoResize-U2-IRmNE.js";
2
- import { i as t, n, r } from "./pptx-DVyrqUyw.js";
2
+ import { i as t, n, r } from "./pptx-B76oTVMe.js";
3
3
  export { r as PptxPresentation, n as PptxViewer, e as autoResize, t as renderSlide };
@@ -154,6 +154,8 @@ export declare interface DocxTextRunInfo {
154
154
  h: number;
155
155
  /** Font size in CSS px. */
156
156
  fontSize: number;
157
+ /** CSS `font` shorthand used for canvas drawing (e.g. `"bold 16px Arial"`). */
158
+ font: string;
157
159
  }
158
160
 
159
161
  export declare class DocxViewer {
@@ -339,6 +341,7 @@ export declare interface RenderPageOptions {
339
341
  w: number;
340
342
  h: number;
341
343
  fontSize: number;
344
+ font: string;
342
345
  }) => void;
343
346
  }
344
347
 
@@ -514,6 +514,8 @@ declare interface DocxTextRunInfo {
514
514
  h: number;
515
515
  /** Font size in CSS px. */
516
516
  fontSize: number;
517
+ /** CSS `font` shorthand used for canvas drawing (e.g. `"bold 16px Arial"`). */
518
+ font: string;
517
519
  }
518
520
 
519
521
  declare class DocxViewer {
@@ -1150,6 +1152,7 @@ declare interface RenderPageOptions {
1150
1152
  w: number;
1151
1153
  h: number;
1152
1154
  fontSize: number;
1155
+ font: string;
1153
1156
  }) => void;
1154
1157
  }
1155
1158
 
@@ -1592,6 +1595,8 @@ declare interface TextRunInfo {
1592
1595
  h: number;
1593
1596
  /** Font size in CSS px. */
1594
1597
  fontSize: number;
1598
+ /** CSS `font` shorthand used for canvas drawing (e.g. `"bold 16px Arial"`). */
1599
+ font: string;
1595
1600
  /** Shape's left edge in canvas CSS px. */
1596
1601
  shapeX: number;
1597
1602
  /** Shape's top edge in canvas CSS px. */
@@ -626,6 +626,8 @@ export declare interface TextRunInfo {
626
626
  h: number;
627
627
  /** Font size in CSS px. */
628
628
  fontSize: number;
629
+ /** CSS `font` shorthand used for canvas drawing (e.g. `"bold 16px Arial"`). */
630
+ font: string;
629
631
  /** Shape's left edge in canvas CSS px. */
630
632
  shapeX: number;
631
633
  /** Shape's top edge in canvas CSS px. */
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@silurus/ooxml",
3
- "version": "0.14.0",
4
- "description": "Browser-based OOXML viewer (pptx/xlsx/docx) — Rust/WASM parser + Canvas renderer",
3
+ "version": "0.15.0",
4
+ "description": "Browser-based OOXML viewer (docx/xlsx/pptx) — Rust/WASM parser + Canvas renderer",
5
5
  "license": "MIT",
6
6
  "author": "Yuki Yokotani <yokotani.yuki@gmail.com>",
7
7
  "keywords": [
8
8
  "ooxml",
9
- "pptx",
10
- "xlsx",
11
9
  "docx",
12
- "powerpoint",
13
- "excel",
10
+ "xlsx",
11
+ "pptx",
14
12
  "word",
13
+ "excel",
14
+ "powerpoint",
15
15
  "viewer",
16
16
  "canvas",
17
17
  "wasm",
@@ -39,20 +39,20 @@
39
39
  "require": "./dist/index.cjs",
40
40
  "types": "./dist/types/index.d.ts"
41
41
  },
42
- "./pptx": {
43
- "import": "./dist/pptx.mjs",
44
- "require": "./dist/pptx.cjs",
45
- "types": "./dist/types/pptx.d.ts"
42
+ "./docx": {
43
+ "import": "./dist/docx.mjs",
44
+ "require": "./dist/docx.cjs",
45
+ "types": "./dist/types/docx.d.ts"
46
46
  },
47
47
  "./xlsx": {
48
48
  "import": "./dist/xlsx.mjs",
49
49
  "require": "./dist/xlsx.cjs",
50
50
  "types": "./dist/types/xlsx.d.ts"
51
51
  },
52
- "./docx": {
53
- "import": "./dist/docx.mjs",
54
- "require": "./dist/docx.cjs",
55
- "types": "./dist/types/docx.d.ts"
52
+ "./pptx": {
53
+ "import": "./dist/pptx.mjs",
54
+ "require": "./dist/pptx.cjs",
55
+ "types": "./dist/types/pptx.d.ts"
56
56
  }
57
57
  },
58
58
  "devDependencies": {
@@ -72,7 +72,7 @@
72
72
  "typecheck": "tsc --build",
73
73
  "storybook": "storybook dev -p 6006",
74
74
  "build-storybook": "storybook build",
75
- "build:wasm": "pnpm --filter @silurus/ooxml-pptx wasm && pnpm --filter @silurus/ooxml-xlsx wasm && pnpm --filter @silurus/ooxml-docx wasm",
75
+ "build:wasm": "pnpm --filter @silurus/ooxml-docx wasm && pnpm --filter @silurus/ooxml-xlsx wasm && pnpm --filter @silurus/ooxml-pptx wasm",
76
76
  "vrt": "pnpm -r vrt"
77
77
  }
78
78
  }