modern-idoc 0.8.3 → 0.8.4

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 CHANGED
@@ -18,7 +18,13 @@
18
18
  </a>
19
19
  </p>
20
20
 
21
- ## Usage
21
+ ## 📦 Install
22
+
23
+ ```
24
+ npm i modern-idoc
25
+ ```
26
+
27
+ ## 🦄 Usage
22
28
 
23
29
  ```ts
24
30
  import type { Document } from 'modern-idoc'
@@ -85,4 +91,5 @@ const pdf: Document = {
85
91
  - [modern-text](https://github.com/qq15725/modern-text) text renderer
86
92
  - [modern-pdf](https://github.com/qq15725/modern-pdf) PDF codec
87
93
  - [modern-openxml](https://github.com/qq15725/modern-openxml) PPTX、etc... codec
88
- - [modern-canvas](https://github.com/qq15725/modern-canvas) IDoc WebGL renderer
94
+ - [modern-canvas](https://github.com/qq15725/modern-canvas) IDoc to WebGL renderer
95
+ - [modern-idoc-svg](https://github.com/qq15725/modern-idoc-svg) IDoc to SVG renderer
package/dist/index.d.cts CHANGED
@@ -374,9 +374,9 @@ interface NormalizedEffect {
374
374
  softEdge?: NormalizedSoftEdge;
375
375
  }
376
376
  interface EffectObject {
377
- innerShadow: WithNone<InnerShadow>;
378
- outerShadow: WithNone<OuterShadow>;
379
- softEdge: WithNone<SoftEdge>;
377
+ innerShadow?: WithNone<InnerShadow>;
378
+ outerShadow?: WithNone<OuterShadow>;
379
+ softEdge?: WithNone<SoftEdge>;
380
380
  }
381
381
  type Effect = EffectObject;
382
382
  declare function normalizeEffect(effect: Effect): NormalizedEffect;
package/dist/index.d.mts CHANGED
@@ -374,9 +374,9 @@ interface NormalizedEffect {
374
374
  softEdge?: NormalizedSoftEdge;
375
375
  }
376
376
  interface EffectObject {
377
- innerShadow: WithNone<InnerShadow>;
378
- outerShadow: WithNone<OuterShadow>;
379
- softEdge: WithNone<SoftEdge>;
377
+ innerShadow?: WithNone<InnerShadow>;
378
+ outerShadow?: WithNone<OuterShadow>;
379
+ softEdge?: WithNone<SoftEdge>;
380
380
  }
381
381
  type Effect = EffectObject;
382
382
  declare function normalizeEffect(effect: Effect): NormalizedEffect;
package/dist/index.d.ts CHANGED
@@ -374,9 +374,9 @@ interface NormalizedEffect {
374
374
  softEdge?: NormalizedSoftEdge;
375
375
  }
376
376
  interface EffectObject {
377
- innerShadow: WithNone<InnerShadow>;
378
- outerShadow: WithNone<OuterShadow>;
379
- softEdge: WithNone<SoftEdge>;
377
+ innerShadow?: WithNone<InnerShadow>;
378
+ outerShadow?: WithNone<OuterShadow>;
379
+ softEdge?: WithNone<SoftEdge>;
380
380
  }
381
381
  type Effect = EffectObject;
382
382
  declare function normalizeEffect(effect: Effect): NormalizedEffect;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-idoc",
3
3
  "type": "module",
4
- "version": "0.8.3",
4
+ "version": "0.8.4",
5
5
  "packageManager": "pnpm@9.15.1",
6
6
  "description": "Intermediate document for modern codec libs",
7
7
  "author": "wxm",