pptxtojson 2.0.2 → 2.0.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 +7 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +11 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/index.html +10 -2
- package/package.json +1 -1
- package/src/chart.js +58 -48
- package/src/paragraph.js +156 -126
- package/src/pptxtojson.js +47 -32
- package/src/text.js +21 -17
- package/src/textInsets.js +64 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# 🎨 pptxtojson
|
|
1
|
+
# 🎨 pptxtojson
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/pptxtojson)
|
|
4
4
|
[](https://www.npmjs.com/package/pptxtojson)
|
|
@@ -192,7 +192,9 @@ func()
|
|
|
192
192
|
- 非实线边框样式 `borderStrokeDasharray`
|
|
193
193
|
- 阴影 `shadow`
|
|
194
194
|
- 填充(颜色、图片、渐变、图案) `fill`
|
|
195
|
-
- 内容文字(HTML
|
|
195
|
+
- 内容文字(HTML富文本) `content`:
|
|
196
|
+
- 行内样式/结构:字体、字号、颜色、渐变、下划线、删除线、斜体、加粗、字间距、阴影、角标、超链接
|
|
197
|
+
- 块级样式/结构:水平对齐、行距、段间距、缩进、首行缩进、项目符号、编号列表
|
|
196
198
|
- 垂直翻转 `isFlipV`
|
|
197
199
|
- 水平翻转 `isFlipH`
|
|
198
200
|
- 旋转角度 `rotate`
|
|
@@ -204,6 +206,7 @@ func()
|
|
|
204
206
|
- `shape`:文本框高度会根据文本内容自动调整
|
|
205
207
|
- `text`:文本框大小固定,字号会自动缩放以适应文本框(注:autoFit不存在时,也会固定文本框大小,但字号不会缩放)
|
|
206
208
|
- 字体缩放比例(type='text'专有,默认为1) `fontScale`
|
|
209
|
+
- 文本内边距(4边) `textInset`
|
|
207
210
|
- 超链接 `link`
|
|
208
211
|
|
|
209
212
|
- 图片
|
|
@@ -247,6 +250,7 @@ func()
|
|
|
247
250
|
- 形状调整参数 `keypoints`
|
|
248
251
|
- 元素名 `name`
|
|
249
252
|
- 自动调整大小 `autoFit`
|
|
253
|
+
- 文本内边距(4边) `textInset`
|
|
250
254
|
- 超链接 `link`
|
|
251
255
|
|
|
252
256
|
- 表格
|
|
@@ -330,4 +334,4 @@ func()
|
|
|
330
334
|
> 与它们不同的是:pptxtojson 不是将PPT文件转换为 HTML 页面,而是转换为干净、易读的 JSON 数据,且在原有基础上进行了大量优化补充,大幅提升了提取信息的完整度和准确度。
|
|
331
335
|
|
|
332
336
|
# 📄 开源协议
|
|
333
|
-
MIT License | Copyright © 2020-PRESENT [pipipi-pikachu](https://github.com/pipipi-pikachu)
|
|
337
|
+
MIT License | Copyright © 2020-PRESENT [pipipi-pikachu](https://github.com/pipipi-pikachu)
|