pptxtojson 1.2.0 → 1.2.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/README.md CHANGED
@@ -198,13 +198,14 @@ document.querySelector('input').addEventListener('change', evt => {
198
198
  - 高度 `height`
199
199
  - 音频blob `blob`
200
200
 
201
- ##### 公式(仅支持常见结构)
201
+ ##### 公式
202
202
  - 类型 `type='math'`
203
203
  - 水平坐标 `left`
204
204
  - 垂直坐标 `top`
205
205
  - 宽度 `width`
206
206
  - 高度 `height`
207
- - LaTeX表达式 `latex`
207
+ - 公式图片 `picBase64`
208
+ - LaTeX表达式(仅支持常见结构) `latex`
208
209
 
209
210
  ##### Smart图
210
211
  - 类型 `type='diagram'`
@@ -227,7 +228,7 @@ document.querySelector('input').addEventListener('change', evt => {
227
228
 
228
229
  # 🙏 感谢
229
230
  本仓库大量参考了 [PPTX2HTML](https://github.com/g21589/PPTX2HTML) 和 [PPTXjs](https://github.com/meshesha/PPTXjs) 的实现。
230
- > 与它们不同的是,PPTX2HTML 和 PPTXjs 是将PPT文件转换为能够运行的 HTML 页面,而 pptxtojson 做的是将PPT文件转换为干净的 JSON 数据
231
+ > 与它们不同的是:PPTX2HTML 和 PPTXjs 是将PPT文件转换为能够运行的 HTML 页面,而 pptxtojson 做的是将PPT文件转换为干净的 JSON 数据,且在原有基础上进行了大量优化(包括代码质量和提取信息准确度)。
231
232
 
232
233
  # 📄 开源协议
233
234
  MIT License | Copyright © 2020-PRESENT [pipipi-pikachu](https://github.com/pipipi-pikachu)
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export interface ImageFill {
21
21
  export interface GradientFill {
22
22
  type: 'gradient'
23
23
  value: {
24
+ path: 'line' | 'circle' | 'rect' | 'shape'
24
25
  rot: number
25
26
  colors: {
26
27
  pos: string
@@ -208,6 +209,7 @@ export interface Math {
208
209
  width: number
209
210
  height: number
210
211
  latex: string
212
+ picBase64: string
211
213
  order: number
212
214
  }
213
215