pptxgenjs-plus 4.3.0 → 4.3.2

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/LICENSE CHANGED
@@ -1,22 +1,22 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015-2022 Brent Ely
4
- Copyright (c) 2026 lofcz
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2022 Brent Ely
4
+ Copyright (c) 2026 lofcz
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md CHANGED
@@ -1,66 +1,66 @@
1
- # pptxgenjs-plus
2
-
3
- [![npm](https://img.shields.io/npm/v/pptxgenjs-plus?style=flat-square&labelColor=3f3f46&color=71717a)](https://www.npmjs.com/package/pptxgenjs-plus)
4
- [![license](https://img.shields.io/github/license/lofcz/pptxgenjs-plus?style=flat-square&labelColor=3f3f46&color=71717a)](https://github.com/lofcz/pptxgenjs-plus/blob/next/LICENSE)
5
- [![node](https://img.shields.io/node/v/pptxgenjs-plus?style=flat-square&labelColor=3f3f46&color=71717a)](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).
1
+ # pptxgenjs-plus
2
+
3
+ [![npm](https://img.shields.io/npm/v/pptxgenjs-plus?style=flat-square&labelColor=3f3f46&color=71717a)](https://www.npmjs.com/package/pptxgenjs-plus)
4
+ [![license](https://img.shields.io/github/license/lofcz/pptxgenjs-plus?style=flat-square&labelColor=3f3f46&color=71717a)](https://github.com/lofcz/pptxgenjs-plus/blob/next/LICENSE)
5
+ [![node](https://img.shields.io/node/v/pptxgenjs-plus?style=flat-square&labelColor=3f3f46&color=71717a)](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).