pptxtojson 1.3.2 → 1.4.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/README.md CHANGED
@@ -212,6 +212,7 @@ document.querySelector('input').addEventListener('change', evt => {
212
212
  - 高度 `height`
213
213
  - 公式图片 `picBase64`
214
214
  - LaTeX表达式(仅支持常见结构) `latex`
215
+ - 文本(文本和公式混排时存在) `text`
215
216
 
216
217
  ##### Smart图
217
218
  - 类型 `type='diagram'`
@@ -234,7 +235,7 @@ document.querySelector('input').addEventListener('change', evt => {
234
235
 
235
236
  # 🙏 感谢
236
237
  本仓库大量参考了 [PPTX2HTML](https://github.com/g21589/PPTX2HTML) 和 [PPTXjs](https://github.com/meshesha/PPTXjs) 的实现。
237
- > 与它们不同的是:PPTX2HTML 和 PPTXjs 是将PPT文件转换为能够运行的 HTML 页面,而 pptxtojson 做的是将PPT文件转换为干净的 JSON 数据,且在原有基础上进行了大量优化(包括代码质量和提取信息准确度)。
238
+ > 与它们不同的是:PPTX2HTML 和 PPTXjs 是将PPT文件转换为能够运行的 HTML 页面,而 pptxtojson 做的是将PPT文件转换为干净的 JSON 数据,且在原有基础上进行了大量优化补充(包括代码质量和提取信息的完整度和准确度)。
238
239
 
239
240
  # 📄 开源协议
240
241
  MIT License | Copyright © 2020-PRESENT [pipipi-pikachu](https://github.com/pipipi-pikachu)
package/dist/index.d.ts CHANGED
@@ -239,6 +239,7 @@ export interface Math {
239
239
  latex: string
240
240
  picBase64: string
241
241
  order: number
242
+ text?: string
242
243
  }
243
244
 
244
245
  export type BaseElement = Shape | Text | Image | Table | Chart | Video | Audio | Diagram | Math