pptxgenjs-plus-std 4.3.1 → 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.
Files changed (3) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +32 -32
  3. package/package.json +3 -3
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,32 +1,32 @@
1
- # pptxgenjs-plus-std
2
-
3
- Layout, text-measure, table-paging, and diagram helpers for [pptxgenjs-plus](https://github.com/lofcz/pptxgenjs-plus). These helpers compose the public `addChart` / `addTable` / position APIs — they do not replace the core library.
4
-
5
- ```ts
6
- import pptxgen from 'pptxgenjs-plus'
7
- import { grid, waterfall, measureText, paginateTable, cm } from 'pptxgenjs-plus-std'
8
-
9
- const pptx = new pptxgen()
10
- const slide = pptx.addSlide()
11
- const at = grid()
12
-
13
- slide.addText('Q3 bridge', { ...at(0, 0, 12, 1), fontSize: 28 })
14
- waterfall(slide, {
15
- labels: ['Open', 'Sales', 'Churn'],
16
- values: [100, 30, -12],
17
- total: 'Close',
18
- }, { ...at(0, 1, 12, 5), showValue: true })
19
- ```
20
-
21
- ## Helpers
22
-
23
- - `grid()` / `gridFor(pres)` — place objects on a column/row grid; throws instead of drifting off-slide
24
- - `row(area, slots)` / `column(area, slots)` — split any `{ x, y, w, h }` by count or weights
25
- - `cm()` / `pt()` — centimetres and points as the inches every `addX` option takes
26
- - `measureText` / `fitText` / `checkOverflow` / `registerFontMetrics` — wrap and size text from canvas, bundled Calibri (Carlito) widths, or a flat estimate
27
- - `paginateTable` / `tableFromHtml` — page tables by measured cell height (an additional pager alongside core `autoPage` / `tableToSlides`)
28
- - `waterfall(slide, props, options?)` — stacked-bar waterfall (transparent riser + signed per-point labels)
29
-
30
- Category subpaths: `pptxgenjs-plus-std/layout`, `pptxgenjs-plus-std/charts`, `pptxgenjs-plus-std/text`, `pptxgenjs-plus-std/tables`.
31
-
32
- `pptxgenjs-plus` is a peer dependency at the same version as this package, so helpers act on the caller's own presentation instance.
1
+ # pptxgenjs-plus-std
2
+
3
+ Layout, text-measure, table-paging, and diagram helpers for [pptxgenjs-plus](https://github.com/lofcz/pptxgenjs-plus). These helpers compose the public `addChart` / `addTable` / position APIs — they do not replace the core library.
4
+
5
+ ```ts
6
+ import pptxgen from 'pptxgenjs-plus'
7
+ import { grid, waterfall, measureText, paginateTable, cm } from 'pptxgenjs-plus-std'
8
+
9
+ const pptx = new pptxgen()
10
+ const slide = pptx.addSlide()
11
+ const at = grid()
12
+
13
+ slide.addText('Q3 bridge', { ...at(0, 0, 12, 1), fontSize: 28 })
14
+ waterfall(slide, {
15
+ labels: ['Open', 'Sales', 'Churn'],
16
+ values: [100, 30, -12],
17
+ total: 'Close',
18
+ }, { ...at(0, 1, 12, 5), showValue: true })
19
+ ```
20
+
21
+ ## Helpers
22
+
23
+ - `grid()` / `gridFor(pres)` — place objects on a column/row grid; throws instead of drifting off-slide
24
+ - `row(area, slots)` / `column(area, slots)` — split any `{ x, y, w, h }` by count or weights
25
+ - `cm()` / `pt()` — centimetres and points as the inches every `addX` option takes
26
+ - `measureText` / `fitText` / `checkOverflow` / `registerFontMetrics` — wrap and size text from canvas, bundled Calibri (Carlito) widths, or a flat estimate
27
+ - `paginateTable` / `tableFromHtml` — page tables by measured cell height (an additional pager alongside core `autoPage` / `tableToSlides`)
28
+ - `waterfall(slide, props, options?)` — stacked-bar waterfall (transparent riser + signed per-point labels)
29
+
30
+ Category subpaths: `pptxgenjs-plus-std/layout`, `pptxgenjs-plus-std/charts`, `pptxgenjs-plus-std/text`, `pptxgenjs-plus-std/tables`.
31
+
32
+ `pptxgenjs-plus` is a peer dependency at the same version as this package, so helpers act on the caller's own presentation instance.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptxgenjs-plus-std",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "Layout, text-measure, table-paging, and diagram helpers for pptxgenjs-plus",
5
5
  "homepage": "https://github.com/lofcz/pptxgenjs-plus/tree/next/packages/pptxgenjs-std#readme",
6
6
  "bugs": {
@@ -71,10 +71,10 @@
71
71
  "node": ">=24"
72
72
  },
73
73
  "peerDependencies": {
74
- "pptxgenjs-plus": "4.3.1"
74
+ "pptxgenjs-plus": "4.3.2"
75
75
  },
76
76
  "devDependencies": {
77
- "pptxgenjs-plus": "4.3.1",
77
+ "pptxgenjs-plus": "4.3.2",
78
78
  "@types/node": "^26.2.0",
79
79
  "typescript": "^6.0.3"
80
80
  }