pptxgenjs-plus-std 0.1.0

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 ADDED
@@ -0,0 +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.
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # pptxgenjs-plus-std
2
+
3
+ Layout and diagram helpers for [pptxgenjs-plus](https://github.com/lofcz/pptxgenjs-plus). These helpers compose the public `addChart` / position APIs — they do not replace the core library.
4
+
5
+ ```ts
6
+ import pptxgen from 'pptxgenjs-plus'
7
+ import { grid, waterfall } 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
+ - `waterfall(slide, props, options?)` — stacked-bar waterfall (transparent riser + signed per-point labels)
25
+
26
+ Category subpaths: `pptxgenjs-plus-std/layout`, `pptxgenjs-plus-std/charts`.
27
+
28
+ `pptxgenjs-plus` is a peer dependency (`>=4.1.19`) so helpers act on the caller's own presentation instance.
@@ -0,0 +1,2 @@
1
+ export { waterfall } from './waterfall';
2
+ export type { WaterfallProps, ChartSlide } from './waterfall';
@@ -0,0 +1,2 @@
1
+ export { waterfall } from './waterfall';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/charts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The slice of `Slide` this helper needs.
3
+ *
4
+ * Structural rather than the core `Slide` class so the helper composes the public API without
5
+ * binding to a class — any object with a conforming `addChart` works.
6
+ */
7
+ export interface ChartSlide {
8
+ addChart: (type: 'bar', data: object[], options?: object) => unknown;
9
+ }
10
+ export interface WaterfallProps {
11
+ /** Category label per delta */
12
+ labels: string[];
13
+ /** Signed change per category — the bar spans from the running total to running + value */
14
+ values: number[];
15
+ /** Append a bar spanning 0 to the final running total, labelled with this string */
16
+ total?: string;
17
+ /** Bar color for positive deltas @default '2E7D32' */
18
+ increaseColor?: string;
19
+ /** Bar color for negative deltas @default 'C62828' */
20
+ decreaseColor?: string;
21
+ /** Series name shown in the legend for positive deltas @default 'Increase' */
22
+ increaseName?: string;
23
+ /** Series name shown in the legend for negative deltas @default 'Decrease' */
24
+ decreaseName?: string;
25
+ }
26
+ /**
27
+ * Add a waterfall (bridge) chart.
28
+ *
29
+ * PowerPoint has no waterfall chart type reachable through ECMA-376 `c:barChart`,
30
+ * so this is the standard construction: a stacked bar chart whose first series is
31
+ * transparent and carries each bar up to its starting value.
32
+ *
33
+ * `options` is passed straight through to `addChart` — only `barDir`, `barGrouping`
34
+ * are fixed by the construction.
35
+ */
36
+ export declare function waterfall<T extends ChartSlide>(slide: T, props: WaterfallProps, options?: object): T;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Add a waterfall (bridge) chart.
3
+ *
4
+ * PowerPoint has no waterfall chart type reachable through ECMA-376 `c:barChart`,
5
+ * so this is the standard construction: a stacked bar chart whose first series is
6
+ * transparent and carries each bar up to its starting value.
7
+ *
8
+ * `options` is passed straight through to `addChart` — only `barDir`, `barGrouping`
9
+ * are fixed by the construction.
10
+ */
11
+ export function waterfall(slide, props, options = {}) {
12
+ const { labels, values, total, increaseColor = '2E7D32', decreaseColor = 'C62828', increaseName = 'Increase', decreaseName = 'Decrease' } = props;
13
+ if (labels.length !== values.length)
14
+ throw new Error(`waterfall: labels (${labels.length}) and values (${values.length}) must be the same length`);
15
+ if (values.length === 0)
16
+ throw new Error('waterfall: at least one value is required');
17
+ const bad = values.findIndex(val => !Number.isFinite(val));
18
+ if (bad !== -1)
19
+ throw new Error(`waterfall: values[${bad}] is not a finite number`);
20
+ const base = [];
21
+ const up = [];
22
+ const down = [];
23
+ const upLabels = [];
24
+ const downLabels = [];
25
+ let running = 0;
26
+ values.forEach(delta => {
27
+ const start = running;
28
+ running += delta;
29
+ base.push(Math.min(start, running));
30
+ up.push(delta >= 0 ? delta : 0);
31
+ down.push(delta < 0 ? -delta : 0);
32
+ upLabels.push(delta >= 0 ? String(delta) : '');
33
+ downLabels.push(delta < 0 ? String(delta) : '');
34
+ });
35
+ const chartLabels = [...labels];
36
+ if (total !== undefined) {
37
+ chartLabels.push(total);
38
+ base.push(Math.min(0, running));
39
+ up.push(running >= 0 ? running : 0);
40
+ down.push(running < 0 ? -running : 0);
41
+ upLabels.push(running >= 0 ? String(running) : '');
42
+ downLabels.push(running < 0 ? String(running) : '');
43
+ }
44
+ slide.addChart('bar', [
45
+ { name: '', labels: chartLabels, values: base, color: 'transparent' },
46
+ { name: increaseName, labels: chartLabels, values: up, color: increaseColor, dataLabels: upLabels },
47
+ { name: decreaseName, labels: chartLabels, values: down, color: decreaseColor, dataLabels: downLabels },
48
+ ], { ...options, barDir: 'col', barGrouping: 'stacked' });
49
+ return slide;
50
+ }
51
+ //# sourceMappingURL=waterfall.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waterfall.js","sourceRoot":"","sources":["../../src/charts/waterfall.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;GASG;AACH,MAAM,UAAU,SAAS,CAAwB,KAAQ,EAAE,KAAqB,EAAE,UAAkB,EAAE;IACrG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,QAAQ,EAAE,aAAa,GAAG,QAAQ,EAAE,YAAY,GAAG,UAAU,EAAE,YAAY,GAAG,UAAU,EAAE,GAAG,KAAK,CAAA;IAEjJ,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,MAAM,CAAC,MAAM,iBAAiB,MAAM,CAAC,MAAM,2BAA2B,CAAC,CAAA;IAClJ,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;IACrF,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1D,IAAI,GAAG,KAAK,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,CAAA;IAEnF,MAAM,IAAI,GAAa,EAAE,CAAA;IACzB,MAAM,E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I,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QACrC,QAAQ,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;QAClD,UAAU,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACpD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE;QACrB,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE;QACrE,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE;QACnG,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE;KACvG,EAAE,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAA;IAEzD,OAAO,KAAK,CAAA;AACb,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './layout';
2
+ export * from './charts';
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './layout';
2
+ export * from './charts';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA"}
@@ -0,0 +1,37 @@
1
+ export interface GridProps {
2
+ /** Slide width in inches @default 10 (LAYOUT_16x9) */
3
+ w?: number;
4
+ /** Slide height in inches @default 5.625 (LAYOUT_16x9) */
5
+ h?: number;
6
+ /** Column count @default 12 */
7
+ cols?: number;
8
+ /** Row count @default 6 */
9
+ rows?: number;
10
+ /** Space between cells, inches @default 0.2 */
11
+ gutter?: number;
12
+ /** Space outside the grid, inches @default 0.5 */
13
+ margin?: number;
14
+ }
15
+ /** Position and size of one grid area, ready to spread into any `addX` options object */
16
+ export interface GridArea {
17
+ x: number;
18
+ y: number;
19
+ w: number;
20
+ h: number;
21
+ }
22
+ /**
23
+ * Build a cell-placement function over a slide-sized grid.
24
+ *
25
+ * @example
26
+ * const at = grid() // 12x6 over a 16:9 slide
27
+ * slide.addText('Title', { ...at(0, 0, 12, 1), fontSize: 32 })
28
+ * slide.addChart('bar', data, at(0, 1, 6, 5))
29
+ */
30
+ export declare function grid(props?: GridProps): (col: number, row: number, colSpan?: number, rowSpan?: number) => GridArea;
31
+ /** Grid sized from a live presentation's layout, so it tracks `defineLayout`/`layout` changes */
32
+ export declare function gridFor(pres: {
33
+ presLayout: {
34
+ width: number;
35
+ height: number;
36
+ };
37
+ }, props?: Omit<GridProps, 'w' | 'h'>): ReturnType<typeof grid>;
@@ -0,0 +1,44 @@
1
+ /** EMU per inch — `presLayout` reports size in EMU, every `addX` option is in inches */
2
+ const EMU = 914400;
3
+ /**
4
+ * Build a cell-placement function over a slide-sized grid.
5
+ *
6
+ * @example
7
+ * const at = grid() // 12x6 over a 16:9 slide
8
+ * slide.addText('Title', { ...at(0, 0, 12, 1), fontSize: 32 })
9
+ * slide.addChart('bar', data, at(0, 1, 6, 5))
10
+ */
11
+ export function grid(props = {}) {
12
+ const { w = 10, h = 5.625, cols = 12, rows = 6, gutter = 0.2, margin = 0.5 } = props;
13
+ if (cols < 1 || rows < 1)
14
+ throw new Error(`grid: cols and rows must be >= 1 (got ${cols}x${rows})`);
15
+ const usableW = w - margin * 2 - gutter * (cols - 1);
16
+ const usableH = h - margin * 2 - gutter * (rows - 1);
17
+ if (usableW <= 0 || usableH <= 0)
18
+ throw new Error(`grid: margin ${margin} and gutter ${gutter} leave no room in ${w}x${h}`);
19
+ const colW = usableW / cols;
20
+ const rowH = usableH / rows;
21
+ return function at(col, row, colSpan = 1, rowSpan = 1) {
22
+ if (!Number.isInteger(col) || !Number.isInteger(row))
23
+ throw new Error(`grid: col and row must be integers (got ${col},${row})`);
24
+ if (colSpan < 1 || rowSpan < 1)
25
+ throw new Error(`grid: spans must be >= 1 (got ${colSpan}x${rowSpan})`);
26
+ if (col < 0 || row < 0)
27
+ throw new Error(`grid: col and row must be >= 0 (got ${col},${row})`);
28
+ if (col + colSpan > cols)
29
+ throw new Error(`grid: col ${col} span ${colSpan} exceeds ${cols} columns`);
30
+ if (row + rowSpan > rows)
31
+ throw new Error(`grid: row ${row} span ${rowSpan} exceeds ${rows} rows`);
32
+ return {
33
+ x: margin + col * (colW + gutter),
34
+ y: margin + row * (rowH + gutter),
35
+ w: colSpan * colW + (colSpan - 1) * gutter,
36
+ h: rowSpan * rowH + (rowSpan - 1) * gutter,
37
+ };
38
+ };
39
+ }
40
+ /** Grid sized from a live presentation's layout, so it tracks `defineLayout`/`layout` changes */
41
+ export function gridFor(pres, props = {}) {
42
+ return grid({ ...props, w: pres.presLayout.width / EMU, h: pres.presLayout.height / EMU });
43
+ }
44
+ //# sourceMappingURL=grid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.js","sourceRoot":"","sources":["../../src/layout/grid.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,MAAM,GAAG,GAAG,MAAM,CAAA;AAyBlB;;;;;;;GAOG;AACH,MAAM,UAAU,IAAI,CAAE,QAAmB,EAAE;IAC1C,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,GAAG,CAAC,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,G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AAG,SAAS,OAAO,YAAY,IAAI,UAAU,CAAC,CAAA;QACrG,IAAI,GAAG,GAAG,OAAO,GAAG,IAAI;YAAE,MAAM,IAAI,KAAK,CAAC,aAAa,GAAG,SAAS,OAAO,YAAY,IAAI,OAAO,CAAC,CAAA;QAElG,OAAO;YACN,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC;YACjC,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC;YACjC,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,MAAM;YAC1C,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,MAAM;SAC1C,CAAA;IACF,CAAC,CAAA;AACF,CAAC;AAED,iGAAiG;AACjG,MAAM,UAAU,OAAO,CAAE,IAAuD,EAAE,QAAoC,EAAE;IACvH,OAAO,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,GAAG,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC,CAAA;AAC3F,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { grid, gridFor } from './grid';
2
+ export type { GridProps, GridArea } from './grid';
@@ -0,0 +1,2 @@
1
+ export { grid, gridFor } from './grid';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA"}
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "pptxgenjs-plus-std",
3
+ "version": "0.1.0",
4
+ "description": "Layout and diagram helpers for pptxgenjs-plus",
5
+ "homepage": "https://github.com/lofcz/pptxgenjs-plus/tree/next/packages/pptxgenjs-std#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/lofcz/pptxgenjs-plus/issues"
8
+ },
9
+ "license": "MIT",
10
+ "author": {
11
+ "name": "Matěj Lofcz Štágl",
12
+ "url": "https://github.com/lofcz"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/lofcz/pptxgenjs-plus.git",
17
+ "directory": "packages/pptxgenjs-std"
18
+ },
19
+ "keywords": [
20
+ "pptx",
21
+ "pptxgenjs",
22
+ "pptxgenjs-plus",
23
+ "powerpoint",
24
+ "waterfall-chart",
25
+ "slide-layout"
26
+ ],
27
+ "files": [
28
+ "dist",
29
+ "README.md",
30
+ "LICENSE"
31
+ ],
32
+ "type": "module",
33
+ "main": "./dist/index.js",
34
+ "module": "./dist/index.js",
35
+ "types": "./dist/index.d.ts",
36
+ "sideEffects": false,
37
+ "exports": {
38
+ ".": {
39
+ "types": "./dist/index.d.ts",
40
+ "default": "./dist/index.js"
41
+ },
42
+ "./layout": {
43
+ "types": "./dist/layout/index.d.ts",
44
+ "default": "./dist/layout/index.js"
45
+ },
46
+ "./charts": {
47
+ "types": "./dist/charts/index.d.ts",
48
+ "default": "./dist/charts/index.js"
49
+ }
50
+ },
51
+ "scripts": {
52
+ "build": "tsc",
53
+ "typecheck": "tsc --noEmit",
54
+ "test": "bun test"
55
+ },
56
+ "publishConfig": {
57
+ "access": "public"
58
+ },
59
+ "engines": {
60
+ "bun": ">=1.3.0",
61
+ "node": ">=24"
62
+ },
63
+ "peerDependencies": {
64
+ "pptxgenjs-plus": ">=4.1.19"
65
+ },
66
+ "devDependencies": {
67
+ "pptxgenjs-plus": "file:../..",
68
+ "@types/node": "^26.2.0",
69
+ "typescript": "^6.0.3"
70
+ }
71
+ }