Skip to content

Commit 19eb892

Browse files
committed
update
1 parent ee891f4 commit 19eb892

File tree

11 files changed

+25
-13
lines changed

11 files changed

+25
-13
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
# 🎯 注意事项
1111
### ⚒️ 使用场景
12-
本仓库诞生于项目 [PPTist](https://github.com/pipipi-pikachu/PPTist) ,希望为其“导入 .pptx 文件功能”提供一个参考示例。不过就目前来说,解析出来的PPT信息与源文件在样式上还是存在差距,还不足以直接运用到生产环境中
12+
本仓库诞生于项目 [PPTist](https://github.com/pipipi-pikachu/PPTist) ,希望为其“导入 .pptx 文件功能”提供一个参考示例。不过就目前来说,解析出来的PPT信息与源文件在样式上还是存在差异
1313

14-
但如果你只是需要提取PPT文件的文本内容、媒体资源信息、结构信息等,对排版/样式精准度没有特别高的要求,那么 pptxtojson 可能会对你有帮助。
14+
但如果你只是需要提取PPT文件的文本内容、媒体资源信息、结构信息等,或者对排版/样式精准度没有特别高的要求,那么 pptxtojson 可能会对你有帮助。
1515

1616
### 📏 长度值单位
1717
输出的JSON中,所有数值长度值单位都为`pt`(point)
@@ -23,6 +23,8 @@ npm install pptxtojson
2323
```
2424

2525
# 💿用法
26+
27+
### 浏览器
2628
```html
2729
<input type="file" accept="application/vnd.openxmlformats-officedocument.presentationml.presentation"/>
2830
```
@@ -42,8 +44,8 @@ document.querySelector('input').addEventListener('change', evt => {
4244
})
4345
```
4446

47+
### 输出示例
4548
```javascript
46-
// 输出示例
4749
{
4850
"slides": [
4951
{
@@ -158,7 +160,7 @@ document.querySelector('input').addEventListener('change', evt => {
158160
- 旋转角度 `rotate`
159161
- 形状类型 `shapType`
160162
- 垂直对齐方向 `vAlign`
161-
- 路径(自定义形状) `path`
163+
- 形状路径 `path`
162164
- 元素名 `name`
163165

164166
##### 表格

dist/index.cjs

Lines changed: 2 additions & 0 deletions
Large diffs are not rendered by default.

dist/index.cjs.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
</div>
9999

100100
<div class="link">
101-
<a target="_blank" href="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/pipipi-pikachu/pptx2json">Github仓库</a>
102-
<a target="_blank" href="https://pipipi-pikachu.github.io/PPTist/">可视化测试</a>
101+
<a target="_blank" href="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/pipipi-pikachu/pptx2json">Github 仓库</a>
102+
<a target="_blank" href="https://pipipi-pikachu.github.io/PPTist/">在 PPTist 中测试</a>
103103
</div>
104104
</div>
105105
<div id="jsoneditor"></div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pptxtojson",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "A javascript tool for parsing .pptx file",
55
"type": "module",
66
"main": "./dist/index.umd.js",

rollup.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ export default {
2222
name: 'pptxtojson',
2323
sourcemap: true,
2424
},
25+
{
26+
file: 'dist/index.cjs',
27+
format: 'cjs',
28+
sourcemap: true,
29+
},
2530
{
2631
file: 'dist/index.js',
2732
format: 'es',

0 commit comments

Comments
 (0)