pptxgenjs-plus-jsx 4.1.17

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.
@@ -0,0 +1,565 @@
1
+ /**
2
+ * Component factory definitions for pptxgenjsx.
3
+ *
4
+ * Each component factory creates a tagged PptxNode that the renderer later
5
+ * maps to the corresponding PptxGenJS method.
6
+ *
7
+ * All positioning / sizing values are in inches.
8
+ * Default canvas: 13.333 x 7.5 (WIDE).
9
+ *
10
+ * @module components
11
+ */
12
+ import type PptxGenJSType from "pptxgenjs-plus";
13
+ import { type ComponentFactory, type ComponentProps, type PptxChildren, type PptxNode, type LeafProps } from "./node.js";
14
+ /** Props for the root `<Deck>` / `<Presentation>` component.
15
+ *
16
+ * Maps presentation-level metadata, layout, themes, and slide masters
17
+ * to the underlying `new PptxGenJS()` constructor and `pptx.defineLayout`,
18
+ * `pptx.defineSlideMaster`, etc.
19
+ */
20
+ export type DeckProps = {
21
+ /** Presentation title metadata. */
22
+ title?: string;
23
+ /** Presentation author metadata. */
24
+ author?: string;
25
+ /** Presentation company metadata. */
26
+ company?: string;
27
+ /** Presentation subject metadata. */
28
+ subject?: string;
29
+ /** Presentation revision metadata. Must be a whole-number string for PowerPoint compatibility. */
30
+ revision?: string;
31
+ /** Enable right-to-left mode for the whole presentation. */
32
+ rtlMode?: boolean;
33
+ /** OPC core `dcterms:created`. Maps to `pptx.created`. */
34
+ created?: Date;
35
+ /** OPC core `dcterms:modified`. Maps to `pptx.modified`. */
36
+ modified?: Date;
37
+ /** Failed media handling. Maps to `pptx.mediaOnError`. */
38
+ mediaOnError?: PptxGenJSType.MediaOnError;
39
+ /** Default theme fonts. Maps to `pptx.theme`. */
40
+ theme?: PptxGenJSType.ThemeProps;
41
+ /** Built-in layout name or custom layout object. Use `layouts` for additional custom layouts. */
42
+ layout?: string | PptxGenJSType.PresLayout;
43
+ /** Additional custom layouts passed to `pptx.defineLayout`. */
44
+ layouts?: PptxGenJSType.PresLayout[];
45
+ /** Master slides passed to `pptx.defineSlideMaster`. */
46
+ masters?: PptxGenJSType.SlideMasterProps[];
47
+ /** Presentation sections passed to `pptx.addSection`. */
48
+ sections?: PptxGenJSType.SectionProps[];
49
+ /** Child nodes — typically `<Slide />`, `<Layout />`, `<Master />`, `<Section />`. */
50
+ children?: PptxChildren;
51
+ };
52
+ /** A lazy component import — analogous to React Router's `component={() => import('./path')}`.
53
+ * The function returns a Promise resolving to a module whose `default` export is a
54
+ * {@link ComponentFactory}. The component is loaded and rendered during `createPptx()`.
55
+ */
56
+ export type ComponentImport<P extends ComponentProps = ComponentProps> = () => Promise<{
57
+ default: ComponentFactory<P>;
58
+ }>;
59
+ /** Props for `<Slide>`. Maps to `pptx.addSlide()`.
60
+ * Supports background, visibility, slide number format, layout selection,
61
+ * and a lazy `component` prop for code-split slide definitions.
62
+ */
63
+ export type SlideProps = Partial<Pick<PptxGenJSType.PresSlide, "background" | "color" | "hidden" | "slideNumber">> & PptxGenJSType.AddSlideProps & {
64
+ /** Lazy-loaded component factory. Accepts `() => import('./path')` — the loaded
65
+ * module's `default` export is called as a component factory during rendering.
66
+ * When provided, the component result replaces direct children for slide content.
67
+ */
68
+ component?: ComponentImport;
69
+ children?: PptxChildren;
70
+ };
71
+ /** Props for `<Layout>`. Maps to `pptx.defineLayout()`. */
72
+ export type LayoutProps = PptxGenJSType.PresLayout & LeafProps;
73
+ /** Props for `<Section>`. Maps to `pptx.addSection()`. */
74
+ export type SectionProps = PptxGenJSType.SectionProps & {
75
+ children?: PptxChildren;
76
+ };
77
+ /** Props for `<Master>`. Maps to `pptx.defineSlideMaster()`. */
78
+ export type MasterProps = PptxGenJSType.SlideMasterProps & {
79
+ children?: PptxChildren;
80
+ };
81
+ /** Props for `<Placeholder>` (inside `<Master>`).
82
+ * Maps to `SlideMasterProps.objects[].placeholder` entries.
83
+ */
84
+ export type PlaceholderProps = {
85
+ /** Placeholder options used inside `defineSlideMaster({ objects })`. */
86
+ options: PptxGenJSType.PlaceholderProps;
87
+ /** Placeholder text shown until edited. Falls back to children strings. */
88
+ text?: string;
89
+ children?: PptxChildren;
90
+ };
91
+ /** Props for `<TextRun>` — a single formatted run inside `<Text>`.
92
+ * Maps to an entry in the `TextProps[]` array passed to `slide.addText()`.
93
+ *
94
+ * The run's text comes from the `text` prop or, when absent, from the
95
+ * element's string/number children: `<TextRun options={{ bold: true }}>Bold</TextRun>`.
96
+ */
97
+ export type TextRunProps = PptxGenJSType.TextProps & {
98
+ /** Run text. Falls back to string/number children. */
99
+ children?: string | number | Array<string | number>;
100
+ };
101
+ /** Props for `<Text>` — a text box, rich text container, or text inside a shape.
102
+ * Maps to `slide.addText(text, options)`.
103
+ *
104
+ * Text can come from one of four sources. When more than one is present,
105
+ * the following priority applies (higher wins, the rest is ignored):
106
+ *
107
+ * 1. child `<TextRun />` nodes — plain string/number children mixed among
108
+ * them are converted to default-style runs (order preserved)
109
+ * 2. the `runs` prop (rich text array)
110
+ * 3. the `text` prop
111
+ * 4. plain-string children
112
+ *
113
+ * Plain strings mix freely with `<TextRun />` children (each becomes a
114
+ * default-style run in place; whitespace-only text between elements is
115
+ * ignored). Mixing the other modes drops the lower-priority content.
116
+ */
117
+ export type TextProps = Omit<PptxGenJSType.TextPropsOptions, "children"> & {
118
+ /** Text string or rich-text array passed to `slide.addText`. Falls back to children strings. */
119
+ text?: string | PptxGenJSType.TextProps[];
120
+ /** Rich text runs passed to `slide.addText`. Same shape as PptxGenJS `TextProps[]`. */
121
+ runs?: PptxGenJSType.TextProps[];
122
+ /** Optional nested `<TextRun />` nodes or plain strings. */
123
+ children?: PptxChildren;
124
+ /** Options forwarded to the underlying PptxGenJS API call. */
125
+ options?: PptxGenJSType.TextPropsOptions;
126
+ };
127
+ /** Props for `<Notes>` — speaker notes for a slide.
128
+ * Maps to `slide.addNotes()`.
129
+ */
130
+ export type NotesProps = {
131
+ /** Speaker notes text. Falls back to children strings. */
132
+ text?: string;
133
+ children?: PptxChildren;
134
+ };
135
+ /** Generic shape props for `<Shape>`. Use this for any PptxGenJS shape
136
+ * that does not have a dedicated component (e.g. `<Rect />`, `<Ellipse />`).
137
+ * Maps to `slide.addShape(shape, options)`.
138
+ */
139
+ export type ShapeProps = Omit<PptxGenJSType.ShapeProps, "children"> & {
140
+ /** Shape type passed as first argument to `slide.addShape()`. e.g. `"rect"`, `"ellipse"`, `"roundRect"`, `"line"`. */
141
+ shape: PptxGenJSType.SHAPE_NAME;
142
+ /** Options forwarded to the underlying PptxGenJS API call. */
143
+ options?: PptxGenJSType.ShapeProps;
144
+ } & LeafProps;
145
+ /** Props for `<Line>` — a simple line shape.
146
+ * Maps to `slide.addShape("line", options)`. For lines defined by two
147
+ * endpoints, use `<LineBetween>` instead.
148
+ */
149
+ export type LineProps = Omit<ShapeProps, "shape">;
150
+ /** Props for `<LineBetween>` — a line connecting two absolute coordinates.
151
+ * Pass start/end points via `x1`/`y1`/`x2`/`y2`.
152
+ */
153
+ export type LineBetweenProps = Omit<LineProps, "x" | "y" | "w" | "h" | "flipH" | "flipV"> & {
154
+ /** Start x coordinate. Supports inches (number) or percentage of group/parent width (`${number}%`). */
155
+ x1: PptxGenJSType.Coord;
156
+ /** Start y coordinate. Supports inches (number) or percentage of group/parent height (`${number}%`). */
157
+ y1: PptxGenJSType.Coord;
158
+ /** End x coordinate. Supports inches (number) or percentage of group/parent width (`${number}%`). */
159
+ x2: PptxGenJSType.Coord;
160
+ /** End y coordinate. Supports inches (number) or percentage of group/parent height (`${number}%`). */
161
+ y2: PptxGenJSType.Coord;
162
+ };
163
+ /** Shared shape-options base for all named shape components. */
164
+ export type ShapeOptionsProps = Omit<PptxGenJSType.ShapeProps, "children"> & {
165
+ /** Options forwarded to the underlying PptxGenJS API call. */
166
+ options?: PptxGenJSType.ShapeProps;
167
+ } & LeafProps;
168
+ /** Props for `<Rect>`. Maps to `slide.addShape("rect", options)`. */
169
+ export type RectProps = ShapeOptionsProps;
170
+ /** Props for `<Ellipse>` / `<Oval>`. Maps to `slide.addShape("ellipse", options)`. */
171
+ export type EllipseProps = ShapeOptionsProps;
172
+ /** Props for `<Triangle>`. Maps to `slide.addShape("triangle", options)`. */
173
+ export type TriangleProps = ShapeOptionsProps;
174
+ /** Props for `<Diamond>`. Maps to `slide.addShape("diamond", options)`. */
175
+ export type DiamondProps = ShapeOptionsProps;
176
+ /** Props for `<Pentagon>`. Maps to `slide.addShape("pentagon", options)`. */
177
+ export type PentagonProps = ShapeOptionsProps;
178
+ /** Props for `<Hexagon>`. Maps to `slide.addShape("hexagon", options)`. */
179
+ export type HexagonProps = ShapeOptionsProps;
180
+ /** Props for star shapes (`<Star>`, `<Star4>`–`<Star10>`). Maps to `slide.addShape("star*", options)`. */
181
+ export type StarProps = ShapeOptionsProps;
182
+ /** Props for arrow shapes (`<LeftArrow>`, `<RightArrow>`, etc.). Maps to `slide.addShape("*Arrow", options)`. */
183
+ export type ArrowProps = ShapeOptionsProps;
184
+ /** Props for `<RoundRect>`. Maps to `slide.addShape("roundRect", options)`.
185
+ * @property rectRadius — corner radius; valid only for `roundRect`, range 0.0 (square) to 1.0 (fully rounded).
186
+ */
187
+ export type RoundRectProps = ShapeOptionsProps & {
188
+ /** Rounded rectangle radius. Valid only for `roundRect`; range 0.0 to 1.0. */
189
+ rectRadius?: number;
190
+ };
191
+ /** Props for `<Arc>`. Maps to `slide.addShape("arc", options)`.
192
+ * @property angleRange — start and sweep angles in degrees [start, sweep]; valid for `arc`, `pie`, `blockArc`.
193
+ */
194
+ export type ArcProps = ShapeOptionsProps & {
195
+ /** Arc angle range. Valid for `arc`, `pie`, and `blockArc`; range [0-359, 0-359]. */
196
+ angleRange?: [number, number];
197
+ };
198
+ /** Props for `<BlockArc>`. Maps to `slide.addShape("blockArc", options)`.
199
+ * Extends `<Arc>` with a thickness ratio.
200
+ */
201
+ export type BlockArcProps = ArcProps & {
202
+ /** Block arc thickness ratio. Valid only for `blockArc`; range 0.0 to 1.0. */
203
+ arcThicknessRatio?: number;
204
+ };
205
+ /** Props for `<PieShape>` (visual pie-slice shape, NOT a data chart).
206
+ * Maps to `slide.addShape("pie", options)`.
207
+ */
208
+ export type PieShapeProps = ArcProps;
209
+ /** A single point or segment in a custom geometry path.
210
+ * Supports move-to, line-to, close, and three curve types (arc, cubic, quadratic).
211
+ */
212
+ export type CustomGeometryPoint = {
213
+ x: PptxGenJSType.Coord;
214
+ y: PptxGenJSType.Coord;
215
+ moveTo?: boolean;
216
+ } | {
217
+ x: PptxGenJSType.Coord;
218
+ y: PptxGenJSType.Coord;
219
+ curve: {
220
+ type: "arc";
221
+ hR: PptxGenJSType.Coord;
222
+ wR: PptxGenJSType.Coord;
223
+ stAng: number;
224
+ swAng: number;
225
+ };
226
+ } | {
227
+ x: PptxGenJSType.Coord;
228
+ y: PptxGenJSType.Coord;
229
+ curve: {
230
+ type: "cubic";
231
+ x1: PptxGenJSType.Coord;
232
+ y1: PptxGenJSType.Coord;
233
+ x2: PptxGenJSType.Coord;
234
+ y2: PptxGenJSType.Coord;
235
+ };
236
+ } | {
237
+ x: PptxGenJSType.Coord;
238
+ y: PptxGenJSType.Coord;
239
+ curve: {
240
+ type: "quadratic";
241
+ x1: PptxGenJSType.Coord;
242
+ y1: PptxGenJSType.Coord;
243
+ };
244
+ } | {
245
+ close: true;
246
+ };
247
+ /** Props for `<CustomGeometry>`. Maps to `slide.addShape("custGeom", options)`.
248
+ * Convert SVG path commands to points:
249
+ * | SVG | CustomGeometryPoint |
250
+ * |-----|---------------------|
251
+ * | `M x y` | `{ x, y, moveTo:true }` |
252
+ * | `L x y` | `{ x, y }` |
253
+ * | `C x1 y1, x2 y2, x y` | cubic curve entry |
254
+ * | `Q x1 y1, x y` | quadratic curve entry |
255
+ * | `A ...` | arc curve entry |
256
+ * | `Z` / `z` | `{ close:true }` |
257
+ */
258
+ export type CustomGeometryProps = ShapeOptionsProps & {
259
+ /** Custom geometry path points passed to PptxGenJS `custGeom`. */
260
+ points: CustomGeometryPoint[];
261
+ };
262
+ /** Props for `<Image>`. Maps to `slide.addImage(options)`.
263
+ * Accepts a file path, data URI, or base64 string via the `path` prop.
264
+ */
265
+ export type ImageProps = PptxGenJSType.ImageProps & {
266
+ /** Options forwarded to the underlying PptxGenJS API call. */
267
+ options?: PptxGenJSType.ImageProps;
268
+ } & LeafProps;
269
+ /** Props for `<Media>` — audio, video, or online media.
270
+ * Maps to `slide.addMedia(options)`.
271
+ */
272
+ export type MediaProps = PptxGenJSType.MediaProps & {
273
+ /** Options forwarded to the underlying PptxGenJS API call. */
274
+ options?: PptxGenJSType.MediaProps;
275
+ } & LeafProps;
276
+ /** Props for `<Chart>` — generic chart with explicit `type` + `data`.
277
+ * Maps to `slide.addChart(type, data, options)`.
278
+ * Use typed chart components (`<BarChart />`, `<LineChart />`, etc.)
279
+ * for a more concise syntax.
280
+ */
281
+ export type ChartProps = Omit<PptxGenJSType.IChartOpts, "children"> & {
282
+ /** Chart type or multi-chart descriptor. */
283
+ type: PptxGenJSType.CHART_NAME | PptxGenJSType.IChartMulti[];
284
+ /** Chart series data. */
285
+ data: PptxGenJSType.OptsChartData[];
286
+ /** Options forwarded to the underlying PptxGenJS API call. */
287
+ options?: PptxGenJSType.IChartOpts;
288
+ } & LeafProps;
289
+ /** Props shared by typed chart components. */
290
+ export type TypedChartProps = Omit<ChartProps, "type">;
291
+ /** Props for `<AreaChart>`. Maps to `slide.addChart("area", data, options)`. */
292
+ export type AreaChartProps = TypedChartProps;
293
+ /** Props for `<BarChart>`. Maps to `slide.addChart("bar", data, options)`. */
294
+ export type BarChartProps = TypedChartProps;
295
+ /** Props for `<Bar3DChart>`. Maps to `slide.addChart("bar3D", data, options)`. */
296
+ export type Bar3DChartProps = TypedChartProps;
297
+ /** Props for `<BubbleChart>`. Maps to `slide.addChart("bubble", data, options)`. */
298
+ export type BubbleChartProps = TypedChartProps;
299
+ /** Props for `<DoughnutChart>`. Maps to `slide.addChart("doughnut", data, options)`. */
300
+ export type DoughnutChartProps = TypedChartProps;
301
+ /** Props for `<LineChart>`. Maps to `slide.addChart("line", data, options)`. */
302
+ export type LineChartProps = TypedChartProps;
303
+ /** Props for `<PieChart>`. Maps to `slide.addChart("pie", data, options)`. */
304
+ export type PieChartProps = TypedChartProps;
305
+ /** Props for `<RadarChart>`. Maps to `slide.addChart("radar", data, options)`. */
306
+ export type RadarChartProps = TypedChartProps;
307
+ /** Props for `<ScatterChart>`. Maps to `slide.addChart("scatter", data, options)`. */
308
+ export type ScatterChartProps = TypedChartProps;
309
+ /** Props for `<TableCell>` — a single cell in a table row.
310
+ * Maps to an entry in the `PptxGenJS.TableCell[]` array.
311
+ */
312
+ export type TableCellProps = PptxGenJSType.TableCellProps & {
313
+ /** Cell text. Falls back to children strings. */
314
+ text?: string | PptxGenJSType.TableCell[];
315
+ children?: PptxChildren;
316
+ /** Options forwarded to the underlying PptxGenJS API call. */
317
+ options?: PptxGenJSType.TableCellProps;
318
+ };
319
+ /** Props for `<TableRow>` — a single row in a table.
320
+ * Maps to `PptxGenJS.TableRow`.
321
+ */
322
+ export type TableRowProps = {
323
+ /** Row data. Falls back to child `<TableCell />` nodes. */
324
+ cells?: PptxGenJSType.TableRow;
325
+ children?: PptxChildren;
326
+ };
327
+ /** Props for `<Table>`. Maps to `slide.addTable(rows, options)`.
328
+ * Rows can be provided via the `rows` prop or as child `<TableRow />` nodes.
329
+ */
330
+ export type TableProps = Omit<PptxGenJSType.TableProps, "children"> & {
331
+ /** Table rows passed as first argument to `slide.addTable`. */
332
+ rows?: PptxGenJSType.TableRow[];
333
+ children?: PptxChildren;
334
+ /** Options forwarded to the underlying PptxGenJS API call. */
335
+ options?: PptxGenJSType.TableProps;
336
+ };
337
+ /** Props for `<TableToSlides>` — split an HTML table across multiple slides.
338
+ * Maps to `pptx.tableToSlides(eleId, options)` (browser / runtime DOM only).
339
+ */
340
+ export type TableToSlidesProps = PptxGenJSType.TableToSlidesProps & {
341
+ /** HTML table element id passed to `pptx.tableToSlides`. */
342
+ eleId: string;
343
+ /** Options forwarded to the underlying PptxGenJS API call. */
344
+ options?: PptxGenJSType.TableToSlidesProps;
345
+ } & LeafProps;
346
+ /** Props for `<Group>`. Maps to `slide.addGroup()`.
347
+ * Child coordinates are relative to the group origin. Only shapes, text,
348
+ * images, and nested groups are valid children (not tables, charts, or media).
349
+ */
350
+ export type GroupProps = Omit<PptxGenJSType.GroupProps, "_objects"> & {
351
+ children?: PptxChildren;
352
+ };
353
+ /** Props for `<WordArt>`. Maps to `slide.addWordArt()`. */
354
+ export type WordArtProps = TextProps;
355
+ /** Props for `<Raw>` — escape hatch for unsupported or newly added PptxGenJS APIs.
356
+ * Provides direct access to the `pptx` instance and the current `slide`.
357
+ */
358
+ export type RawProps = {
359
+ /** Custom render callback invoked during rendering. Supports sync or async. */
360
+ render: (context: RenderContext) => void | Promise<void>;
361
+ /** Raw children are NOT auto-rendered. They are only accessible via
362
+ * `context.node.children` inside the `render` callback — an escape
363
+ * hatch for fully custom content. */
364
+ children?: PptxChildren;
365
+ };
366
+ /** Context passed to the `<Raw>` render callback. */
367
+ export type RenderContext = {
368
+ /** The root PptxGenJS instance. */
369
+ pptx: PptxGenJSType;
370
+ /** The current slide being rendered (undefined during presentation-level rendering). */
371
+ slide?: PptxGenJSType.PresSlide;
372
+ /** The current group builder when rendering inside `<Group>`. */
373
+ group?: PptxGenJSType.Group;
374
+ /** The raw node being rendered. */
375
+ node: PptxNode<"Raw">;
376
+ };
377
+ /** Root presentation wrapper. Maps to `new PptxGenJS()`.
378
+ *
379
+ * Usage:
380
+ * ```tsx
381
+ * <Deck title="My Deck">
382
+ * <Slide>...</Slide>
383
+ * </Deck>
384
+ * ```
385
+ */
386
+ export declare const Deck: ComponentFactory<DeckProps>;
387
+ /** Alias for `<Deck />`. */
388
+ export declare const Presentation: ComponentFactory<DeckProps>;
389
+ /** A single slide in the presentation. Maps to `pptx.addSlide()`.
390
+ *
391
+ * Usage:
392
+ * ```tsx
393
+ * <Slide layout="TITLE_ONLY">
394
+ * <Text>Hello</Text>
395
+ * </Slide>
396
+ * ```
397
+ */
398
+ export declare const Slide: ComponentFactory<SlideProps>;
399
+ /** Define an additional custom slide layout. Maps to `pptx.defineLayout()`.
400
+ * Provide the layout object via props (name, width, height).
401
+ */
402
+ export declare const Layout: ComponentFactory<LayoutProps>;
403
+ /** Group one or more slides into a named PowerPoint section.
404
+ * Maps to `pptx.addSection()`.
405
+ *
406
+ * Usage:
407
+ * ```tsx
408
+ * <Section name="Overview">
409
+ * <Slide>...</Slide>
410
+ * </Section>
411
+ * ```
412
+ */
413
+ export declare const Section: ComponentFactory<SectionProps>;
414
+ /** Define a reusable slide master. Maps to `pptx.defineSlideMaster()`.
415
+ * Supports placeholders via nested `<Placeholder />` nodes.
416
+ */
417
+ export declare const Master: ComponentFactory<MasterProps>;
418
+ /** Declare a placeholder inside a slide master.
419
+ * Maps to `SlideMasterProps.objects[].placeholder` entries.
420
+ */
421
+ export declare const Placeholder: ComponentFactory<PlaceholderProps>;
422
+ /** Text box or rich text block. Maps to `slide.addText(text, options)`.
423
+ *
424
+ * Usage:
425
+ * ```tsx
426
+ * <Text x={1} y={1} w={4} fontSize={24}>Hello World</Text>
427
+ * <Text x={1} y={2} w={4}>
428
+ * <TextRun bold fontSize={24}>Bold</TextRun>
429
+ * <TextRun color="888">Regular</TextRun>
430
+ * </Text>
431
+ * ```
432
+ *
433
+ * Text content can come from the `text` prop, child `<TextRun />` nodes,
434
+ * plain-string children, or the `runs` prop. */
435
+ export declare const Text: ComponentFactory<TextProps>;
436
+ /** A single formatted text run inside `<Text />`. Maps to `PptxGenJS.TextProps`.
437
+ * Supports per-run font, color, bold, italic, etc.
438
+ */
439
+ export declare const TextRun: ComponentFactory<TextRunProps>;
440
+ /** Speaker notes for a slide. Maps to `slide.addNotes()`.
441
+ *
442
+ * Usage:
443
+ * ```tsx
444
+ * <Slide>
445
+ * <Notes>Remember to mention the quarterly results.</Notes>
446
+ * </Slide>
447
+ * ```
448
+ */
449
+ export declare const Notes: ComponentFactory<NotesProps>;
450
+ /** Generic shape — for any PptxGenJS shape without a dedicated component.
451
+ * Maps to `slide.addShape(shape, options)`. */
452
+ export declare const Shape: ComponentFactory<ShapeProps>;
453
+ /** Rectangle. Maps to `slide.addShape("rect", options)`. */
454
+ export declare const Rect: ComponentFactory<RectProps>;
455
+ /** Rounded rectangle; supports `rectRadius` for corner rounding.
456
+ * Maps to `slide.addShape("roundRect", options)`. */
457
+ export declare const RoundRect: ComponentFactory<RoundRectProps>;
458
+ /** Ellipse / oval. Maps to `slide.addShape("ellipse", options)`. */
459
+ export declare const Ellipse: ComponentFactory<EllipseProps>;
460
+ /** Alias for `<Ellipse />`. */
461
+ export declare const Oval: ComponentFactory<ShapeOptionsProps>;
462
+ /** Triangle. Maps to `slide.addShape("triangle", options)`. */
463
+ export declare const Triangle: ComponentFactory<TriangleProps>;
464
+ /** Right-angle triangle. Maps to `slide.addShape("rtTriangle", options)`. */
465
+ export declare const RightTriangle: ComponentFactory<TriangleProps>;
466
+ /** Diamond. Maps to `slide.addShape("diamond", options)`. */
467
+ export declare const Diamond: ComponentFactory<DiamondProps>;
468
+ /** Pentagon. Maps to `slide.addShape("pentagon", options)`. */
469
+ export declare const Pentagon: ComponentFactory<ShapeOptionsProps>;
470
+ /** Hexagon. Maps to `slide.addShape("hexagon", options)`. */
471
+ export declare const Hexagon: ComponentFactory<HexagonProps>;
472
+ /** Five-point star. Maps to `slide.addShape("star5", options)`. */
473
+ export declare const Star: ComponentFactory<StarProps>;
474
+ /** Four-point star. Maps to `slide.addShape("star4", options)`. */
475
+ export declare const Star4: ComponentFactory<StarProps>;
476
+ /** Alias for `<Star />` (five-point). */
477
+ export declare const Star5: ComponentFactory<ShapeOptionsProps>;
478
+ /** Six-point star. Maps to `slide.addShape("star6", options)`. */
479
+ export declare const Star6: ComponentFactory<StarProps>;
480
+ /** Eight-point star. Maps to `slide.addShape("star8", options)`. */
481
+ export declare const Star8: ComponentFactory<StarProps>;
482
+ /** Ten-point star. Maps to `slide.addShape("star10", options)`. */
483
+ export declare const Star10: ComponentFactory<StarProps>;
484
+ /** Simple line. Maps to `slide.addShape("line", options)`.
485
+ * For lines defined by start/end points, use `<LineBetween />` instead. */
486
+ export declare const Line: ComponentFactory<LineProps>;
487
+ /** Line connecting two absolute coordinates.
488
+ * Pass start/end points via `x1`/`y1`/`x2`/`y2`. */
489
+ export declare const LineBetween: ComponentFactory<LineBetweenProps>;
490
+ /** Arc shape; supports `angleRange`. Maps to `slide.addShape("arc", options)`. */
491
+ export declare const Arc: ComponentFactory<ArcProps>;
492
+ /** Thick arc; supports `angleRange` and `arcThicknessRatio`.
493
+ * Maps to `slide.addShape("blockArc", options)`. */
494
+ export declare const BlockArc: ComponentFactory<BlockArcProps>;
495
+ /** Pie-slice shape (visual only — not a data chart).
496
+ * Maps to `slide.addShape("pie", options)`. */
497
+ export declare const PieShape: ComponentFactory<PieShapeProps>;
498
+ /** Editable custom path geometry. Maps to `slide.addShape("custGeom", options)`. */
499
+ export declare const CustomGeometry: ComponentFactory<CustomGeometryProps>;
500
+ /** Left-pointing arrow. Maps to `slide.addShape("leftArrow", options)`. */
501
+ export declare const LeftArrow: ComponentFactory<ArrowProps>;
502
+ /** Right-pointing arrow. Maps to `slide.addShape("rightArrow", options)`. */
503
+ export declare const RightArrow: ComponentFactory<ArrowProps>;
504
+ /** Up-pointing arrow. Maps to `slide.addShape("upArrow", options)`. */
505
+ export declare const UpArrow: ComponentFactory<ArrowProps>;
506
+ /** Down-pointing arrow. Maps to `slide.addShape("downArrow", options)`. */
507
+ export declare const DownArrow: ComponentFactory<ArrowProps>;
508
+ /** Left-right bidirectional arrow. Maps to `slide.addShape("leftRightArrow", options)`. */
509
+ export declare const LeftRightArrow: ComponentFactory<ArrowProps>;
510
+ /** Up-down bidirectional arrow. Maps to `slide.addShape("upDownArrow", options)`. */
511
+ export declare const UpDownArrow: ComponentFactory<ArrowProps>;
512
+ /** Chevron / angle bracket. Maps to `slide.addShape("chevron", options)`. */
513
+ export declare const Chevron: ComponentFactory<ArrowProps>;
514
+ /** Cloud shape. Maps to `slide.addShape("cloud", options)`. */
515
+ export declare const Cloud: ComponentFactory<ShapeOptionsProps>;
516
+ /** Heart shape. Maps to `slide.addShape("heart", options)`. */
517
+ export declare const Heart: ComponentFactory<ShapeOptionsProps>;
518
+ /** Donut / ring shape. Maps to `slide.addShape("donut", options)`. */
519
+ export declare const Donut: ComponentFactory<ShapeOptionsProps>;
520
+ /** Plus / cross shape. Maps to `slide.addShape("plus", options)`. */
521
+ export declare const Plus: ComponentFactory<ShapeOptionsProps>;
522
+ /** Image (path, data URI, or base64). Maps to `slide.addImage(options)`. */
523
+ export declare const Image: ComponentFactory<ImageProps>;
524
+ /** Audio, video, or online media. Maps to `slide.addMedia(options)`. */
525
+ export declare const Media: ComponentFactory<MediaProps>;
526
+ /** Generic chart with explicit type + data. Maps to `slide.addChart(type, data, options)`.
527
+ * For common chart types, prefer typed components (`<BarChart />`, `<LineChart />`, etc.). */
528
+ export declare const Chart: ComponentFactory<ChartProps>;
529
+ /** Area chart. Maps to `slide.addChart("area", data, options)`. */
530
+ export declare const AreaChart: ComponentFactory<AreaChartProps>;
531
+ /** Bar chart. Maps to `slide.addChart("bar", data, options)`. */
532
+ export declare const BarChart: ComponentFactory<BarChartProps>;
533
+ /** 3D bar chart. Maps to `slide.addChart("bar3D", data, options)`. */
534
+ export declare const Bar3DChart: ComponentFactory<Bar3DChartProps>;
535
+ /** Bubble chart. Maps to `slide.addChart("bubble", data, options)`. */
536
+ export declare const BubbleChart: ComponentFactory<BubbleChartProps>;
537
+ /** Doughnut chart. Maps to `slide.addChart("doughnut", data, options)`. */
538
+ export declare const DoughnutChart: ComponentFactory<DoughnutChartProps>;
539
+ /** Line chart. Maps to `slide.addChart("line", data, options)`. */
540
+ export declare const LineChart: ComponentFactory<LineChartProps>;
541
+ /** Pie chart. Maps to `slide.addChart("pie", data, options)`. */
542
+ export declare const PieChart: ComponentFactory<PieChartProps>;
543
+ /** Radar chart. Maps to `slide.addChart("radar", data, options)`. */
544
+ export declare const RadarChart: ComponentFactory<RadarChartProps>;
545
+ /** Scatter chart. Maps to `slide.addChart("scatter", data, options)`. */
546
+ export declare const ScatterChart: ComponentFactory<ScatterChartProps>;
547
+ /** Table of rows and cells. Maps to `slide.addTable(rows, options)`. */
548
+ export declare const Table: ComponentFactory<TableProps>;
549
+ /** A row inside `<Table />`. Maps to `PptxGenJS.TableRow`. */
550
+ export declare const TableRow: ComponentFactory<TableRowProps>;
551
+ /** A cell inside `<TableRow />`. Maps to `PptxGenJS.TableCell`. */
552
+ export declare const TableCell: ComponentFactory<TableCellProps>;
553
+ /** Split an HTML table across multiple slides (browser runtime only).
554
+ * Maps to `pptx.tableToSlides(eleId, options)`. */
555
+ export declare const TableToSlides: ComponentFactory<TableToSlidesProps>;
556
+ /** Escape hatch for unsupported or new PptxGenJS APIs.
557
+ * Provides direct access via a custom render callback.
558
+ * Maps to the `<Raw>` custom render protocol. */
559
+ export declare const Raw: ComponentFactory<RawProps>;
560
+ /** PresentationML group (`p:grpSp`). Child coordinates are relative to
561
+ * the group's origin. Maps to `slide.addGroup()`. Nested groups use
562
+ * `group.addGroup()`. Tables, charts, and media are not valid children. */
563
+ export declare const Group: ComponentFactory<GroupProps>;
564
+ /** WordArt text with a warp (`a:prstTxWarp`). Maps to `slide.addWordArt()`. */
565
+ export declare const WordArt: ComponentFactory<WordArtProps>;