pptxgenjs-plus 4.1.17 → 4.1.18
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 +66 -93
- package/dist/pptxgen.bundle.js +36 -42
- package/dist/pptxgen.cjs.js +1577 -860
- package/dist/pptxgen.es.js +1577 -860
- package/dist/pptxgen.min.js +38 -44
- package/package.json +14 -9
- package/types/index.d.ts +239 -7
package/README.md
CHANGED
|
@@ -1,93 +1,66 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
, or [submit a pull request](https://github.com/lofcz/PptxGenJS/pulls). When reporting an issue, include a code snippet or a link that demonstrates the problem. See [CONTRIBUTING.md](CONTRIBUTING.md) for build and test instructions.
|
|
71
|
-
|
|
72
|
-
## Contributors
|
|
73
|
-
|
|
74
|
-
Thanks to everyone who contributed to the original project and this distribution.
|
|
75
|
-
|
|
76
|
-
Notable contributions:
|
|
77
|
-
|
|
78
|
-
- [Dzmitry Dulko](https://github.com/DzmitryDulko) — initial NPM publication
|
|
79
|
-
- [Michal Kacerovský](https://github.com/kajda90) — Master Slide layouts and chart expertise
|
|
80
|
-
- [Connor Bowman](https://github.com/conbow) — placeholder support
|
|
81
|
-
- [Reima Frgos](https://github.com/ReimaFrgos) — chart and general functionality patches
|
|
82
|
-
- [Matt King](https://github.com/kyrrigle) — chart expertise
|
|
83
|
-
- [Mike Wilcox](https://github.com/clubajax) — chart expertise
|
|
84
|
-
- [Joonas](https://github.com/wyozi) — [react-pptx](https://github.com/wyozi/react-pptx)
|
|
85
|
-
- [NEOMA GmbH](https://neo-ma.de) — thank you for the `@neo-ma/pptxgenjs` hardening work (strict null-safety, OOXML package contracts, LibreOffice consumer checks) that this fork builds on
|
|
86
|
-
|
|
87
|
-
PowerPoint shape definitions and portions of the XML generation are derived from the [Officegen Project](https://github.com/Ziv-Barber/officegen).
|
|
88
|
-
|
|
89
|
-
## License
|
|
90
|
-
|
|
91
|
-
Copyright © 2015-present [Brent Ely](https://github.com/gitbrent/), © 2026-present [Matěj Lofcz Štágl](https://github.com/lofcz)
|
|
92
|
-
|
|
93
|
-
Licensed under the [MIT License](https://github.com/lofcz/PptxGenJS/blob/master/LICENSE).
|
|
1
|
+
# pptxgenjs-plus
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/pptxgenjs-plus)
|
|
4
|
+
[](https://github.com/lofcz/pptxgenjs-plus/blob/next/LICENSE)
|
|
5
|
+
[](https://www.npmjs.com/package/pptxgenjs-plus)
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
_/| \|\||
|
|
9
|
+
/ | `_ generate pptx -- |||/
|
|
10
|
+
/ =\ using typescript on node /= |||/
|
|
11
|
+
_-' \ or in the browser / |||||/
|
|
12
|
+
_____________-' _`-/ \-' |||||||/`-_____________
|
|
13
|
+
\ / -- -||||||||| /
|
|
14
|
+
\ \ |/|||| /
|
|
15
|
+
|_____ _\ \_______ _______/ /_ _____|
|
|
16
|
+
_________.\___,-' \__________/ \___________/ `-.___/,_________
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Getting started
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install pptxgenjs-plus
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import pptxgen from 'pptxgenjs-plus'
|
|
27
|
+
|
|
28
|
+
const pres = new pptxgen()
|
|
29
|
+
const slide = pres.addSlide()
|
|
30
|
+
slide.addText('Hello', { x: 0.5, y: 0.5, fontSize: 24 })
|
|
31
|
+
await pres.writeFile({ fileName: 'hello.pptx' })
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Declarative JSX lives in the workspace package `pptxgenjs-plus-jsx` (`packages/pptxgenjs-jsx`):
|
|
35
|
+
|
|
36
|
+
```tsx
|
|
37
|
+
/** @jsxImportSource pptxgenjs-plus-jsx */
|
|
38
|
+
import { Deck, Slide, Text } from 'pptxgenjs-plus-jsx'
|
|
39
|
+
import { renderPptx } from 'pptxgenjs-plus-jsx/render'
|
|
40
|
+
|
|
41
|
+
await renderPptx(
|
|
42
|
+
<Deck title="Hello">
|
|
43
|
+
<Slide>
|
|
44
|
+
<Text x={0.5} y={0.5} w={8} h={1} fontSize={24}>Hello</Text>
|
|
45
|
+
</Slide>
|
|
46
|
+
</Deck>,
|
|
47
|
+
{ fileName: 'hello.pptx' },
|
|
48
|
+
)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Contributors
|
|
52
|
+
|
|
53
|
+
Thanks to everyone who contributed to the original project and this distribution.
|
|
54
|
+
|
|
55
|
+
Notable contributions:
|
|
56
|
+
|
|
57
|
+
- [Dzmitry Dulko](https://github.com/DzmitryDulko) — initial NPM publication
|
|
58
|
+
- [Michal Kacerovský](https://github.com/kajda90) — Master Slide layouts and chart expertise
|
|
59
|
+
- [Connor Bowman](https://github.com/conbow) — placeholder support
|
|
60
|
+
- [Reima Frgos](https://github.com/ReimaFrgos) — chart and general functionality patches
|
|
61
|
+
- [Matt King](https://github.com/kyrrigle) — chart expertise
|
|
62
|
+
- [Mike Wilcox](https://github.com/clubajax) — chart expertise
|
|
63
|
+
- [Joonas](https://github.com/wyozi) — [react-pptx](https://github.com/wyozi/react-pptx)
|
|
64
|
+
- [NEOMA GmbH](https://neo-ma.de) — thank you for the `@neo-ma/pptxgenjs` hardening work (strict null-safety, OOXML package contracts, LibreOffice consumer checks) that this fork builds on
|
|
65
|
+
|
|
66
|
+
PowerPoint shape definitions and portions of the XML generation are derived from the [Officegen Project](https://github.com/Ziv-Barber/officegen).
|