@shbernal/pptxgenjs 5.0.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 shbernal
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,148 @@
1
+ # PptxGenJS
2
+
3
+ PptxGenJS generates PowerPoint `.pptx` files from TypeScript and modern
4
+ JavaScript. This maintained project targets ESM package consumers, typed
5
+ application code, reproducible package verification, and agent-assisted OOXML
6
+ development.
7
+
8
+ ## Project Target
9
+
10
+ - Generate standards-based PowerPoint `.pptx` packages without requiring
11
+ PowerPoint at runtime.
12
+ - Support TypeScript-first workflows with checked declarations and modern
13
+ bundler resolution.
14
+ - Ship a small, explicit ESM package boundary for Node.js, Vite, React,
15
+ Angular, Electron, and similar modern toolchains.
16
+ - Keep OOXML changes grounded in fixtures, schema validation, and PowerPoint
17
+ compatibility evidence.
18
+ - Make the repository practical for human and agent-driven maintenance.
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ pnpm add @shbernal/pptxgenjs
24
+ ```
25
+
26
+ ```bash
27
+ npm install @shbernal/pptxgenjs
28
+ ```
29
+
30
+ ```bash
31
+ yarn add @shbernal/pptxgenjs
32
+ ```
33
+
34
+ ## Quick Start
35
+
36
+ ```ts
37
+ import pptxgen from "@shbernal/pptxgenjs"
38
+
39
+ const pptx = new pptxgen()
40
+ const slide = pptx.addSlide()
41
+
42
+ slide.addText("Hello from PptxGenJS", {
43
+ x: 1,
44
+ y: 1,
45
+ w: 8,
46
+ h: 1,
47
+ fontSize: 24,
48
+ color: "363636",
49
+ })
50
+
51
+ await pptx.writeFile({ fileName: "example.pptx" })
52
+ ```
53
+
54
+ ## What It Can Generate
55
+
56
+ - Slides, layouts, masters, sections, notes, and metadata.
57
+ - Text, tables, shapes, images, SVGs, charts, and media.
58
+ - Browser-downloadable, streamed, buffered, Blob, base64, or file outputs,
59
+ depending on the runtime.
60
+ - OOXML that is intended to open cleanly in Microsoft PowerPoint and other
61
+ `.pptx` consumers such as Keynote, LibreOffice Impress, and Google Slides
62
+ import.
63
+
64
+ ## Runtime And Package Support
65
+
66
+ The package is ESM-only.
67
+
68
+ Supported package surface:
69
+
70
+ - `import pptxgen from "@shbernal/pptxgenjs"`
71
+ - `import { ShapeType } from "@shbernal/pptxgenjs/core"`
72
+ - `import pptxgen from "@shbernal/pptxgenjs/node"`
73
+ - `import pptxgen from "@shbernal/pptxgenjs/browser"`
74
+ - `import pptxgen from "@shbernal/pptxgenjs/standalone"`
75
+ - generated runtime and declaration artifacts under `dist/`
76
+ - Node.js `>=24`
77
+ - modern bundlers and module-aware app frameworks
78
+
79
+ Dropped compared to upstream:
80
+
81
+ - No CommonJS support: no `require("@shbernal/pptxgenjs")`, no CJS export
82
+ condition, and no `dist/pptxgen.cjs.js`. Modern Node.js may provide
83
+ `require()` interop for ESM, but it is not a maintained API.
84
+ - No IIFE/global browser bundle: no `window.PptxGenJS` classic script API, no
85
+ `dist/pptxgen.bundle.js`, and no `dist/pptxgen.min.js`.
86
+
87
+ The old named ESM artifact `dist/pptxgen.es.js` is also no longer shipped. Use
88
+ the package exports instead of direct artifact paths.
89
+
90
+ See [runtime and package support](docs/runtime-and-package-support.md) for the
91
+ complete support contract.
92
+
93
+ ## Documentation
94
+
95
+ - [Documentation index](docs/README.md)
96
+ - [Project target](docs/project-target.md)
97
+ - [Runtime and package support](docs/runtime-and-package-support.md)
98
+ - [Development guide](docs/development.md)
99
+ - [Testing guide](docs/testing.md)
100
+ - [Agent development guide](docs/agent-development.md)
101
+ - [OOXML agent context](docs/ooxml-agent-context.md)
102
+ - [Upstream signal workflow](docs/upstream-signal-workflow.md)
103
+ - [Legacy autoloop workflow](docs/legacy-autoloop.md)
104
+
105
+ ## Repository Development
106
+
107
+ This repository uses `pnpm` and requires Node.js `>=24`.
108
+
109
+ ```bash
110
+ pnpm install
111
+ pnpm run build
112
+ pnpm run typecheck
113
+ pnpm run test:unit
114
+ ```
115
+
116
+ OOXML serialization changes should also add or update a schema fixture and run:
117
+
118
+ ```bash
119
+ ./tools/ooxml-validator/install.sh
120
+ pnpm run test:schema
121
+ ```
122
+
123
+ Package-boundary changes should run:
124
+
125
+ ```bash
126
+ pnpm run build
127
+ pnpm run package:lint
128
+ pnpm run pack:check
129
+ pnpm run test:package
130
+ ```
131
+
132
+ ## Demos
133
+
134
+ - `demos/node` exercises Node.js ESM generation and stream output.
135
+ - `demos/vite-demo` exercises a modern React, TypeScript, and Vite app.
136
+
137
+ ## Relationship To Upstream
138
+
139
+ This project builds on PptxGenJS by Brent Ely and contributors. The modernized
140
+ package target is intentionally narrower than upstream in order to simplify the
141
+ runtime contract and keep maintenance focused.
142
+
143
+ ## License
144
+
145
+ Copyright (c) 2015-present Brent Ely and PptxGenJS contributors.
146
+ Fork modifications copyright (c) 2026 shbernal.
147
+
148
+ [MIT](LICENSE)
@@ -0,0 +1,80 @@
1
+ import { j as IMG_BROKEN } from "./core-enums-BkfumA6H.js";
2
+ import { t as PptxGenJS$1 } from "./pptxgen-DwD2UwDn.js";
3
+ //#region src/runtime/browser.ts
4
+ function createBrowserRuntime() {
5
+ return {
6
+ writeFileOutputType: null,
7
+ loadMedia,
8
+ createSvgPngPreview,
9
+ writeFile
10
+ };
11
+ }
12
+ async function loadMedia(rel) {
13
+ const response = await fetch(rel.path);
14
+ if (!response.ok) throw new Error(`ERROR! Unable to load image (fetch): ${rel.path}`);
15
+ const blob = await response.blob();
16
+ return await new Promise((resolve, reject) => {
17
+ const reader = new FileReader();
18
+ reader.onloadend = () => resolve(reader.result);
19
+ reader.onerror = () => reject(/* @__PURE__ */ new Error(`ERROR! Unable to load image (FileReader): ${rel.path}`));
20
+ reader.readAsDataURL(blob);
21
+ });
22
+ }
23
+ async function createSvgPngPreview(rel) {
24
+ return await new Promise((resolve, reject) => {
25
+ const image = new Image();
26
+ const fail = (reason) => {
27
+ rel.data = IMG_BROKEN;
28
+ reject(/* @__PURE__ */ new Error(`ERROR! Unable to load image (image.onerror): ${rel.path}${reason ? ` - ${String(reason)}` : ""}`));
29
+ };
30
+ image.onload = () => {
31
+ if (image.width + image.height === 0) {
32
+ fail("h/w=0");
33
+ return;
34
+ }
35
+ const canvas = document.createElement("CANVAS");
36
+ const ctx = canvas.getContext("2d");
37
+ if (!ctx) {
38
+ fail("canvas 2d context unavailable");
39
+ return;
40
+ }
41
+ canvas.width = image.width;
42
+ canvas.height = image.height;
43
+ ctx.drawImage(image, 0, 0);
44
+ try {
45
+ rel.data = canvas.toDataURL(rel.type);
46
+ resolve("done");
47
+ } catch (ex) {
48
+ fail(ex);
49
+ }
50
+ };
51
+ image.onerror = () => fail();
52
+ image.src = typeof rel.data === "string" ? rel.data : IMG_BROKEN;
53
+ });
54
+ }
55
+ async function writeFile(fileName, data) {
56
+ const eleLink = document.createElement("a");
57
+ eleLink.setAttribute("style", "display:none;");
58
+ eleLink.dataset.interception = "off";
59
+ document.body.appendChild(eleLink);
60
+ const url = window.URL.createObjectURL(new Blob([data], { type: "application/vnd.openxmlformats-officedocument.presentationml.presentation" }));
61
+ eleLink.href = url;
62
+ eleLink.download = fileName;
63
+ eleLink.click();
64
+ setTimeout(() => {
65
+ window.URL.revokeObjectURL(url);
66
+ document.body.removeChild(eleLink);
67
+ }, 100);
68
+ return fileName;
69
+ }
70
+ //#endregion
71
+ //#region src/browser.ts
72
+ var PptxGenJS = class extends PptxGenJS$1 {
73
+ constructor() {
74
+ super(createBrowserRuntime());
75
+ }
76
+ };
77
+ //#endregion
78
+ export { PptxGenJS as t };
79
+
80
+ //# sourceMappingURL=browser-Bf1I0xPr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-Bf1I0xPr.js","names":["PresentationCore"],"sources":["../src/runtime/browser.ts","../src/browser.ts"],"sourcesContent":["import { IMG_BROKEN } from '../core-enums.js'\nimport type { ISlideRelMedia } from '../core-interfaces.js'\nimport type { RuntimeAdapter } from './types.js'\n\nexport function createBrowserRuntime(): RuntimeAdapter {\n\treturn {\n\t\twriteFileOutputType: null,\n\t\tloadMedia,\n\t\tcreateSvgPngPreview,\n\t\twriteFile,\n\t}\n}\n\nasync function loadMedia(rel: ISlideRelMedia & { path: string }): Promise<string> {\n\tconst response = await fetch(rel.path)\n\tif (!response.ok) throw new Error(`ERROR! Unable to load image (fetch): ${rel.path}`)\n\tconst blob = await response.blob()\n\n\treturn await new Promise<string>((resolve, reject) => {\n\t\tconst reader = new FileReader()\n\t\treader.onloadend = () => resolve(reader.result as string)\n\t\treader.onerror = () => reject(new Error(`ERROR! Unable to load image (FileReader): ${rel.path}`))\n\t\treader.readAsDataURL(blob)\n\t})\n}\n\nasync function createSvgPngPreview(rel: ISlideRelMedia): Promise<string> {\n\treturn await new Promise((resolve, reject) => {\n\t\tconst image = new Image()\n\t\tconst fail = (reason?: unknown) => {\n\t\t\trel.data = IMG_BROKEN\n\t\t\treject(new Error(`ERROR! Unable to load image (image.onerror): ${rel.path}${reason ? ` - ${String(reason)}` : ''}`))\n\t\t}\n\n\t\timage.onload = () => {\n\t\t\tif (image.width + image.height === 0) {\n\t\t\t\tfail('h/w=0')\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst canvas = document.createElement('CANVAS') as HTMLCanvasElement\n\t\t\tconst ctx = canvas.getContext('2d')\n\t\t\tif (!ctx) {\n\t\t\t\tfail('canvas 2d context unavailable')\n\t\t\t\treturn\n\t\t\t}\n\t\t\tcanvas.width = image.width\n\t\t\tcanvas.height = image.height\n\t\t\tctx.drawImage(image, 0, 0)\n\t\t\ttry {\n\t\t\t\trel.data = canvas.toDataURL(rel.type)\n\t\t\t\tresolve('done')\n\t\t\t} catch (ex) {\n\t\t\t\tfail(ex)\n\t\t\t}\n\t\t}\n\t\timage.onerror = () => fail()\n\t\timage.src = typeof rel.data === 'string' ? rel.data : IMG_BROKEN\n\t})\n}\n\nasync function writeFile(fileName: string, data: string | ArrayBuffer | Blob | Uint8Array): Promise<string> {\n\tconst eleLink = document.createElement('a')\n\teleLink.setAttribute('style', 'display:none;')\n\teleLink.dataset.interception = 'off'\n\tdocument.body.appendChild(eleLink)\n\n\tconst url = window.URL.createObjectURL(new Blob([data as Blob], { type: 'application/vnd.openxmlformats-officedocument.presentationml.presentation' }))\n\teleLink.href = url\n\teleLink.download = fileName\n\teleLink.click()\n\n\tsetTimeout(() => {\n\t\twindow.URL.revokeObjectURL(url)\n\t\tdocument.body.removeChild(eleLink)\n\t}, 100)\n\n\treturn fileName\n}\n","import PresentationCore from './pptxgen.js'\nimport { createBrowserRuntime } from './runtime/browser.js'\n\nexport class PptxGenJS extends PresentationCore {\n\tconstructor() {\n\t\tsuper(createBrowserRuntime())\n\t}\n}\n\nexport { PptxGenJS as Presentation, PptxGenJS as default }\nexport * from './core-enums.js'\nexport type * from './core-interfaces.js'\nexport type { PresSlide as Slide } from './core-interfaces.js'\n"],"mappings":";;;AAIA,SAAgB,uBAAuC;CACtD,OAAO;EACN,qBAAqB;EACrB;EACA;EACA;CACD;AACD;AAEA,eAAe,UAAU,KAAyD;CACjF,MAAM,WAAW,MAAM,MAAM,IAAI,IAAI;CACrC,IAAI,CAAC,SAAS,IAAI,MAAM,IAAI,MAAM,wCAAwC,IAAI,MAAM;CACpF,MAAM,OAAO,MAAM,SAAS,KAAK;CAEjC,OAAO,MAAM,IAAI,SAAiB,SAAS,WAAW;EACrD,MAAM,SAAS,IAAI,WAAW;EAC9B,OAAO,kBAAkB,QAAQ,OAAO,MAAgB;EACxD,OAAO,gBAAgB,uBAAO,IAAI,MAAM,6CAA6C,IAAI,MAAM,CAAC;EAChG,OAAO,cAAc,IAAI;CAC1B,CAAC;AACF;AAEA,eAAe,oBAAoB,KAAsC;CACxE,OAAO,MAAM,IAAI,SAAS,SAAS,WAAW;EAC7C,MAAM,QAAQ,IAAI,MAAM;EACxB,MAAM,QAAQ,WAAqB;GAClC,IAAI,OAAO;GACX,uBAAO,IAAI,MAAM,gDAAgD,IAAI,OAAO,SAAS,MAAM,OAAO,MAAM,MAAM,IAAI,CAAC;EACpH;EAEA,MAAM,eAAe;GACpB,IAAI,MAAM,QAAQ,MAAM,WAAW,GAAG;IACrC,KAAK,OAAO;IACZ;GACD;GACA,MAAM,SAAS,SAAS,cAAc,QAAQ;GAC9C,MAAM,MAAM,OAAO,WAAW,IAAI;GAClC,IAAI,CAAC,KAAK;IACT,KAAK,+BAA+B;IACpC;GACD;GACA,OAAO,QAAQ,MAAM;GACrB,OAAO,SAAS,MAAM;GACtB,IAAI,UAAU,OAAO,GAAG,CAAC;GACzB,IAAI;IACH,IAAI,OAAO,OAAO,UAAU,IAAI,IAAI;IACpC,QAAQ,MAAM;GACf,SAAS,IAAI;IACZ,KAAK,EAAE;GACR;EACD;EACA,MAAM,gBAAgB,KAAK;EAC3B,MAAM,MAAM,OAAO,IAAI,SAAS,WAAW,IAAI,OAAO;CACvD,CAAC;AACF;AAEA,eAAe,UAAU,UAAkB,MAAiE;CAC3G,MAAM,UAAU,SAAS,cAAc,GAAG;CAC1C,QAAQ,aAAa,SAAS,eAAe;CAC7C,QAAQ,QAAQ,eAAe;CAC/B,SAAS,KAAK,YAAY,OAAO;CAEjC,MAAM,MAAM,OAAO,IAAI,gBAAgB,IAAI,KAAK,CAAC,IAAY,GAAG,EAAE,MAAM,4EAA4E,CAAC,CAAC;CACtJ,QAAQ,OAAO;CACf,QAAQ,WAAW;CACnB,QAAQ,MAAM;CAEd,iBAAiB;EAChB,OAAO,IAAI,gBAAgB,GAAG;EAC9B,SAAS,KAAK,YAAY,OAAO;CAClC,GAAG,GAAG;CAEN,OAAO;AACR;;;AC1EA,IAAa,YAAb,cAA+BA,YAAiB;CAC/C,cAAc;EACb,MAAM,qBAAqB,CAAC;CAC7B;AACD"}
@@ -0,0 +1,10 @@
1
+ import { $ as TEXT_HALIGN, $t as SectionProps, A as DEF_TEXT_SHADOW, At as IChartPropsLegend, B as OutputType, Bt as MediaProps, C as DEF_PRES_LAYOUT, Cn as VAlign, Ct as IChartPropsChartDoughnut, D as DEF_SLIDE_BKGD, Dt as IChartPropsDataLabel, E as DEF_SHAPE_SHADOW, En as WriteProps, Et as IChartPropsChartRadar, F as LAYOUT_IDX_SERIES_BASE, Ft as ISlideRel, G as SCHEME_COLORS, Gt as OptsChartGridLine, H as PLACEHOLDER_TYPE, Ht as ObjectNameProps, I as LETTERS, It as ISlideRelChart, J as SHAPE_TYPE, Jt as PresLayout, K as SCHEME_COLOR_NAMES, Kt as PlaceholderProps, L as LINEH_MODIFIER, Lt as ISlideRelMedia, M as IMG_BROKEN, Mt as IOptsChartData, N as IMG_PLAYBTN, Nt as IPresentationProps, O as DEF_SLIDE_MARGIN_IN, Ot as IChartPropsDataTable, P as JSZIP_OUTPUT_TYPE, Pt as ISlideObject, Q as ShapeType, Qt as SectionInternalProps, R as MASTER_OBJECTS, Rt as ImageProps, S as DEF_FONT_TITLE_SIZE, Sn as ThemeProps, St as IChartPropsChartBar, T as DEF_SHAPE_LINE_COLOR, Tn as WriteFileProps, Tt as IChartPropsChartPie, U as PLACEHOLDER_TYPES, Ut as ObjectOptions, V as PIECHART_COLORS, Vt as MediaType, W as REGEX_HEX_COLOR, Wt as OptsChartData, X as SLIDE_OBJECT_TYPES, Xt as PresSlideInternal, Y as SLDNUMFLDID, Yt as PresSlide, Z as SchemeColor, Zt as PresentationProps, _ as DEF_CELL_MARGIN_PT, _n as TextBaseProps, _t as IChartOptsLib, a as AXIS_ID_VALUE_SECONDARY, an as SlideLayout, at as ChartAxisTickMark, b as DEF_FONT_COLOR, bn as TextPropsOptions, bt as IChartPropsAxisVal, c as BARCHART_COLORS, cn as SlideMasterObject, ct as Coord, d as CHART_TYPE, dn as TableCell, dt as HAlign, en as ShadowProps, et as TEXT_VALIGN, f as CRLF, fn as TableCellProps, ft as HexColor, g as DEF_CELL_MARGIN_IN, gn as TableToSlidesProps, gt as IChartOpts, h as DEF_CELL_BORDER, hn as TableRowSlide, ht as IChartMulti, i as AXIS_ID_VALUE_PRIMARY, in as SlideBaseProps, it as BorderProps, j as EMU, jt as IChartPropsTitle, k as DEF_TEXT_GLOW, kt as IChartPropsFillLine, l as BULLET_TYPES, ln as SlideMasterProps, lt as DataOrPathProps, m as DEF_BULLET_MARGIN, mn as TableRow, mt as IChartAreaProps, n as AXIS_ID_CATEGORY_SECONDARY, nn as ShapeLineProps, nt as AddSlideProps, o as AlignH, on as SlideLayoutInternal, ot as ChartLineCap, p as ChartType, pn as TableProps, pt as HyperlinkProps, q as SHAPE_NAME, qt as PositionProps, r as AXIS_ID_SERIES_PRIMARY, rn as ShapeProps, rt as BackgroundProps, s as AlignV, sn as SlideMasterChartProps, st as Color, t as AXIS_ID_CATEGORY_PRIMARY, tn as ShapeFillProps, tt as WRITE_OUTPUT_TYPE, u as CHART_NAME, un as SlideNumberProps, ut as DataOrPathRequiredProps, v as DEF_CHART_BORDER, vn as TextGlowProps, vt as IChartPropsAxisCat, w as DEF_PRES_LAYOUT_NAME, wn as WriteBaseProps, wt as IChartPropsChartLine, x as DEF_FONT_SIZE, xn as ThemeColor, xt as IChartPropsBase, y as DEF_CHART_GRIDLINE, yn as TextProps, yt as IChartPropsAxisSer, z as ONEPT, zt as Margin } from "./core-enums-gPygzzFU.js";
2
+ import { t as PptxGenJS$1 } from "./pptxgen-B5ir1ywb.js";
3
+
4
+ //#region src/browser.d.ts
5
+ declare class PptxGenJS extends PptxGenJS$1 {
6
+ constructor();
7
+ }
8
+ //#endregion
9
+ export { AXIS_ID_CATEGORY_PRIMARY, AXIS_ID_CATEGORY_SECONDARY, AXIS_ID_SERIES_PRIMARY, AXIS_ID_VALUE_PRIMARY, AXIS_ID_VALUE_SECONDARY, type AddSlideProps, AlignH, AlignV, BARCHART_COLORS, BULLET_TYPES, type BackgroundProps, type BorderProps, CHART_NAME, CHART_TYPE, CRLF, type ChartAxisTickMark, type ChartLineCap, ChartType, type Color, type Coord, DEF_BULLET_MARGIN, DEF_CELL_BORDER, DEF_CELL_MARGIN_IN, DEF_CELL_MARGIN_PT, DEF_CHART_BORDER, DEF_CHART_GRIDLINE, DEF_FONT_COLOR, DEF_FONT_SIZE, DEF_FONT_TITLE_SIZE, DEF_PRES_LAYOUT, DEF_PRES_LAYOUT_NAME, DEF_SHAPE_LINE_COLOR, DEF_SHAPE_SHADOW, DEF_SLIDE_BKGD, DEF_SLIDE_MARGIN_IN, DEF_TEXT_GLOW, DEF_TEXT_SHADOW, type DataOrPathProps, type DataOrPathRequiredProps, EMU, type HAlign, type HexColor, type HyperlinkProps, type IChartAreaProps, type IChartMulti, type IChartOpts, type IChartOptsLib, type IChartPropsAxisCat, type IChartPropsAxisSer, type IChartPropsAxisVal, type IChartPropsBase, type IChartPropsChartBar, type IChartPropsChartDoughnut, type IChartPropsChartLine, type IChartPropsChartPie, type IChartPropsChartRadar, type IChartPropsDataLabel, type IChartPropsDataTable, type IChartPropsFillLine, type IChartPropsLegend, type IChartPropsTitle, IMG_BROKEN, IMG_PLAYBTN, type IOptsChartData, type IPresentationProps, type ISlideObject, type ISlideRel, type ISlideRelChart, type ISlideRelMedia, type ImageProps, JSZIP_OUTPUT_TYPE, LAYOUT_IDX_SERIES_BASE, LETTERS, LINEH_MODIFIER, MASTER_OBJECTS, type Margin, type MediaProps, type MediaType, ONEPT, type ObjectNameProps, type ObjectOptions, type OptsChartData, type OptsChartGridLine, OutputType, PIECHART_COLORS, PLACEHOLDER_TYPE, PLACEHOLDER_TYPES, type PlaceholderProps, type PositionProps, PptxGenJS, PptxGenJS as Presentation, PptxGenJS as default, type PresLayout, type PresSlide, type PresSlide as Slide, type PresSlideInternal, type PresentationProps, REGEX_HEX_COLOR, SCHEME_COLORS, SCHEME_COLOR_NAMES, SHAPE_NAME, SHAPE_TYPE, SLDNUMFLDID, SLIDE_OBJECT_TYPES, SchemeColor, type SectionInternalProps, type SectionProps, type ShadowProps, type ShapeFillProps, type ShapeLineProps, type ShapeProps, ShapeType, type SlideBaseProps, type SlideLayout, type SlideLayoutInternal, type SlideMasterChartProps, type SlideMasterObject, type SlideMasterProps, type SlideNumberProps, TEXT_HALIGN, TEXT_VALIGN, type TableCell, type TableCellProps, type TableProps, type TableRow, type TableRowSlide, type TableToSlidesProps, type TextBaseProps, type TextGlowProps, type TextProps, type TextPropsOptions, type ThemeColor, type ThemeProps, type VAlign, WRITE_OUTPUT_TYPE, type WriteBaseProps, type WriteFileProps, type WriteProps };
10
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","names":[],"sources":["../src/browser.ts"],"mappings":";;;;cAGa,SAAA,SAAkB,WAAgB;EAAhB,WAAA;AAAA"}
@@ -0,0 +1,3 @@
1
+ import { A as EMU, B as PLACEHOLDER_TYPES, C as DEF_PRES_LAYOUT_NAME, D as DEF_SLIDE_MARGIN_IN, E as DEF_SLIDE_BKGD, F as LINEH_MODIFIER, G as SLIDE_OBJECT_TYPES, H as SCHEME_COLOR_NAMES, I as MASTER_OBJECTS, J as TEXT_HALIGN, K as SchemeColor, L as ONEPT, M as IMG_PLAYBTN, N as LAYOUT_IDX_SERIES_BASE, O as DEF_TEXT_GLOW, P as LETTERS, R as OutputType, S as DEF_PRES_LAYOUT, T as DEF_SHAPE_SHADOW, U as SHAPE_TYPE, V as REGEX_HEX_COLOR, W as SLDNUMFLDID, Y as TEXT_VALIGN, _ as DEF_CHART_BORDER, a as AXIS_ID_VALUE_SECONDARY, b as DEF_FONT_SIZE, c as BARCHART_COLORS, d as CRLF, f as ChartType, g as DEF_CELL_MARGIN_PT, h as DEF_CELL_MARGIN_IN, i as AXIS_ID_VALUE_PRIMARY, j as IMG_BROKEN, k as DEF_TEXT_SHADOW, l as BULLET_TYPES, m as DEF_CELL_BORDER, n as AXIS_ID_CATEGORY_SECONDARY, o as AlignH, p as DEF_BULLET_MARGIN, q as ShapeType, r as AXIS_ID_SERIES_PRIMARY, s as AlignV, t as AXIS_ID_CATEGORY_PRIMARY, u as CHART_TYPE, v as DEF_CHART_GRIDLINE, w as DEF_SHAPE_LINE_COLOR, x as DEF_FONT_TITLE_SIZE, y as DEF_FONT_COLOR, z as PIECHART_COLORS } from "./core-enums-BkfumA6H.js";
2
+ import { t as PptxGenJS } from "./browser-Bf1I0xPr.js";
3
+ export { AXIS_ID_CATEGORY_PRIMARY, AXIS_ID_CATEGORY_SECONDARY, AXIS_ID_SERIES_PRIMARY, AXIS_ID_VALUE_PRIMARY, AXIS_ID_VALUE_SECONDARY, AlignH, AlignV, BARCHART_COLORS, BULLET_TYPES, CHART_TYPE, CRLF, ChartType, DEF_BULLET_MARGIN, DEF_CELL_BORDER, DEF_CELL_MARGIN_IN, DEF_CELL_MARGIN_PT, DEF_CHART_BORDER, DEF_CHART_GRIDLINE, DEF_FONT_COLOR, DEF_FONT_SIZE, DEF_FONT_TITLE_SIZE, DEF_PRES_LAYOUT, DEF_PRES_LAYOUT_NAME, DEF_SHAPE_LINE_COLOR, DEF_SHAPE_SHADOW, DEF_SLIDE_BKGD, DEF_SLIDE_MARGIN_IN, DEF_TEXT_GLOW, DEF_TEXT_SHADOW, EMU, IMG_BROKEN, IMG_PLAYBTN, LAYOUT_IDX_SERIES_BASE, LETTERS, LINEH_MODIFIER, MASTER_OBJECTS, ONEPT, OutputType, PIECHART_COLORS, PLACEHOLDER_TYPES, PptxGenJS, PptxGenJS as Presentation, PptxGenJS as default, REGEX_HEX_COLOR, SCHEME_COLOR_NAMES, SHAPE_TYPE, SLDNUMFLDID, SLIDE_OBJECT_TYPES, SchemeColor, ShapeType, TEXT_HALIGN, TEXT_VALIGN };