pptxtojson 2.0.1 → 2.0.3

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
@@ -1,13 +1,11 @@
1
- # 🎨 pptxtojson
1
+ # 🎨 pptxtojson
2
2
 
3
- <p>
4
- <a href="https://www.github.com/pipipi-pikachu/pptxtojson/stargazers" target="_black"><img src="https://img.shields.io/github/stars/pipipi-pikachu/pptxtojson?logo=github" alt="stars" /></a>
5
- <a href="https://www.github.com/pipipi-pikachu/pptxtojson/network/members" target="_black"><img src="https://img.shields.io/github/forks/pipipi-pikachu/pptxtojson?logo=github" alt="forks" /></a>
6
- <a href="https://www.github.com/pipipi-pikachu/pptxtojson/blob/master/LICENSE" target="_black"><img src="https://img.shields.io/github/license/pipipi-pikachu/pptxtojson?logo=github" alt="license" /></a>
7
- <a href="https://github.com/pipipi-pikachu/pptxtojson/issues" target="_black"><img src="https://img.shields.io/github/issues-closed/pipipi-pikachu/pptxtojson?logo=github" alt="issue"></a>
8
- <a href="https://gitee.com/pptist/pptxtojson" target="_black"><img src="https://gitee.com/pptist/pptxtojson/badge/star.svg?version=latest" alt="gitee"></a>
9
- <a href="https://gitcode.com/pipipi-pikachu/pptxtojson" target="_black"><img src="https://gitcode.com/pipipi-pikachu/pptxtojson/star/badge.svg" alt="gitcode"></a>
10
- </p>
3
+ [![npm-version](https://img.shields.io/npm/v/pptxtojson)](https://www.npmjs.com/package/pptxtojson)
4
+ [![npm download](https://img.shields.io/npm/dm/pptxtojson)](https://www.npmjs.com/package/pptxtojson)
5
+ [![GitHub issues](https://img.shields.io/github/issues-closed/pipipi-pikachu/pptxtojson)](https://github.com/pipipi-pikachu/pptxtojson/issues)
6
+ [![license](https://img.shields.io/github/license/pipipi-pikachu/pptxtojson)](https://www.github.com/pipipi-pikachu/pptxtojson/blob/master/LICENSE)
7
+ [![GitHub stars](https://img.shields.io/github/stars/pipipi-pikachu/pptxtojson)](https://www.github.com/pipipi-pikachu/pptxtojson/stargazers)
8
+ [![GitHub forks](https://img.shields.io/github/forks/pipipi-pikachu/pptxtojson)](https://www.github.com/pipipi-pikachu/pptxtojson/network/members)
11
9
 
12
10
  一个运行在浏览器中,可以将 .pptx 文件转为可读的 JSON 数据的 JavaScript 库。
13
11
 
@@ -160,6 +158,8 @@ func()
160
158
 
161
159
  - 幻灯片主题色 `themeColors`
162
160
 
161
+ - 内置字体清单 `usedFonts`
162
+
163
163
  - 幻灯片尺寸 `size`
164
164
  - 宽度 `width`
165
165
  - 高度 `height`
@@ -204,6 +204,7 @@ func()
204
204
  - `shape`:文本框高度会根据文本内容自动调整
205
205
  - `text`:文本框大小固定,字号会自动缩放以适应文本框(注:autoFit不存在时,也会固定文本框大小,但字号不会缩放)
206
206
  - 字体缩放比例(type='text'专有,默认为1) `fontScale`
207
+ - 文本内边距(4边) `textInset`
207
208
  - 超链接 `link`
208
209
 
209
210
  - 图片
@@ -247,6 +248,7 @@ func()
247
248
  - 形状调整参数 `keypoints`
248
249
  - 元素名 `name`
249
250
  - 自动调整大小 `autoFit`
251
+ - 文本内边距(4边) `textInset`
250
252
  - 超链接 `link`
251
253
 
252
254
  - 表格
@@ -256,7 +258,7 @@ func()
256
258
  - 宽度 `width`
257
259
  - 高度 `height`
258
260
  - 边框(4边) `borders`
259
- - 表格数据 `data`
261
+ - 单元格样式与数据 `data`
260
262
  - 行高 `rowHeights`
261
263
  - 列宽 `colWidths`
262
264
 
@@ -322,12 +324,12 @@ func()
322
324
  - 高度 `height`
323
325
  - 子元素集合 `elements`
324
326
 
325
- ### 更多类型请参考 👇
327
+ ### 更详细类型请参考 👇
326
328
  [https://github.com/pipipi-pikachu/pptxtojson/blob/master/dist/index.d.ts](https://github.com/pipipi-pikachu/pptxtojson/blob/master/dist/index.d.ts)
327
329
 
328
330
  # 🙏 感谢
329
331
  本仓库大量参考了 [PPTX2HTML](https://github.com/g21589/PPTX2HTML) 和 [PPTXjs](https://github.com/meshesha/PPTXjs) 的实现。
330
- > 与它们不同的是:PPTX2HTML 和 PPTXjs 是将PPT文件转换为能够运行的 HTML 页面,而 pptxtojson 做的是将PPT文件转换为干净的 JSON 数据,且在原有基础上进行了大量优化补充(包括代码质量和提取信息的完整度和准确度)。
332
+ > 与它们不同的是:pptxtojson 不是将PPT文件转换为 HTML 页面,而是转换为干净、易读的 JSON 数据,且在原有基础上进行了大量优化补充,大幅提升了提取信息的完整度和准确度。
331
333
 
332
334
  # 📄 开源协议
333
- MIT License | Copyright © 2020-PRESENT [pipipi-pikachu](https://github.com/pipipi-pikachu)
335
+ MIT License | Copyright © 2020-PRESENT [pipipi-pikachu](https://github.com/pipipi-pikachu)