json2pptx 0.3.2 → 0.3.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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm i json2pptx
|
|
|
13
13
|
```ts
|
|
14
14
|
import { createPPTX } from 'json2pptx'
|
|
15
15
|
|
|
16
|
-
const
|
|
16
|
+
const slide = {
|
|
17
17
|
title: 'Demo',
|
|
18
18
|
width: 1000,
|
|
19
19
|
height: 562.5,
|
|
@@ -34,7 +34,7 @@ const deck = {
|
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
const { blob, fileName } = await createPPTX(
|
|
37
|
+
const { blob, fileName } = await createPPTX(slide)
|
|
38
38
|
// 在浏览器中下载:
|
|
39
39
|
// const url = URL.createObjectURL(blob)
|
|
40
40
|
// const a = document.createElement('a')
|