@shbernal/pptxgenjs 5.2.0 → 5.3.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/dist/{browser-DraPrTLD.js → browser-CzGC6NnM.js} +3 -3
- package/dist/{browser-DraPrTLD.js.map → browser-CzGC6NnM.js.map} +1 -1
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +4 -4
- package/dist/{core-interfaces-vUc0ElZs.js → core-interfaces-BFXQk67T.js} +30 -9
- package/dist/core-interfaces-BFXQk67T.js.map +1 -0
- package/dist/core.d.ts +2 -2
- package/dist/core.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/inspect.js +1 -1
- package/dist/node.d.ts +3 -3
- package/dist/node.js +4 -4
- package/dist/{pptxgen--5RWzhb4.js → pptxgen-B-mAxCRC.js} +655 -211
- package/dist/pptxgen-B-mAxCRC.js.map +1 -0
- package/dist/{pptxgen-DzBNFPxG.d.ts → pptxgen-Clv3zz3l.d.ts} +2 -2
- package/dist/{pptxgen-DzBNFPxG.d.ts.map → pptxgen-Clv3zz3l.d.ts.map} +1 -1
- package/dist/standalone.d.ts +288 -30
- package/dist/standalone.d.ts.map +1 -1
- package/dist/standalone.js +724 -215
- package/dist/standalone.js.map +1 -1
- package/dist/units-BMrBTU0-.js +106 -0
- package/dist/units-BMrBTU0-.js.map +1 -0
- package/dist/{units-y594YyBo.d.ts → units-BPRPrYRg.d.ts} +289 -31
- package/dist/units-BPRPrYRg.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/core-interfaces-vUc0ElZs.js.map +0 -1
- package/dist/pptxgen--5RWzhb4.js.map +0 -1
- package/dist/units-DmzbVUNp.js +0 -62
- package/dist/units-DmzbVUNp.js.map +0 -1
- package/dist/units-y594YyBo.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bn as SlideMasterProps, E as CHART_TYPE, In as SlideLayout, Jn as TableStyleProps, O as ChartType, S as AlignV, Tn as PresSlide, Xn as TableToSlidesProps, bt as AddSlideProps, cn as ISlideRelMedia, cr as WriteProps, ct as SCHEME_COLOR_NAMES, ir as ThemeProps, kn as SectionProps, kt as CustomPropertyValue, mt as ShapeType, nt as OutputType, o as StandardLayout, or as WriteBaseProps, pt as SchemeColor, sr as WriteFileProps, ut as SHAPE_TYPE, wn as PresLayout, x as AlignH, yt as WRITE_OUTPUT_TYPE } from "./units-BPRPrYRg.js";
|
|
2
2
|
|
|
3
3
|
//#region src/runtime/types.d.ts
|
|
4
4
|
type RuntimeAdapter = {
|
|
@@ -233,4 +233,4 @@ declare class PptxGenJS {
|
|
|
233
233
|
}
|
|
234
234
|
//#endregion
|
|
235
235
|
export { PptxGenJS as t };
|
|
236
|
-
//# sourceMappingURL=pptxgen-
|
|
236
|
+
//# sourceMappingURL=pptxgen-Clv3zz3l.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pptxgen-
|
|
1
|
+
{"version":3,"file":"pptxgen-Clv3zz3l.d.ts","names":[],"sources":["../src/runtime/types.ts","../src/pptxgen.ts"],"mappings":"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"}
|
package/dist/standalone.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
//#region src/core-interfaces.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Coordinate number -
|
|
4
|
-
*
|
|
5
|
-
* -
|
|
3
|
+
* Coordinate value. A bare `number` is **always inches** — there is no magnitude-based unit
|
|
4
|
+
* guessing. For other units use an explicit string suffix:
|
|
5
|
+
* - `number` → inches (e.g. `10.25`)
|
|
6
|
+
* - `"<n>%"` → percentage of the slide axis (e.g. `"75%"`)
|
|
7
|
+
* - `"<n>in"` → inches (e.g. `"10.25in"`)
|
|
8
|
+
* - `"<n>pt"` → points (e.g. `"72pt"` = 1 inch)
|
|
9
|
+
* - `"<n>emu"` → raw EMU, the escape hatch for exact OOXML units (e.g. `"914400emu"` = 1 inch)
|
|
6
10
|
*
|
|
7
|
-
* @example 10.25 //
|
|
8
|
-
* @example '75%' //
|
|
11
|
+
* @example 10.25 // inches
|
|
12
|
+
* @example '75%' // percentage of slide size
|
|
13
|
+
* @example '72pt' // points
|
|
14
|
+
* @example '914400emu' // raw EMU
|
|
9
15
|
*/
|
|
10
|
-
type Coord = number | `${number}
|
|
16
|
+
type Coord = number | `${number}%` | `${number}in` | `${number}pt` | `${number}emu`;
|
|
11
17
|
interface PositionProps {
|
|
12
18
|
/**
|
|
13
19
|
* Horizontal position
|
|
@@ -205,6 +211,11 @@ interface BorderProps {
|
|
|
205
211
|
* @default 1
|
|
206
212
|
*/
|
|
207
213
|
pt?: number;
|
|
214
|
+
/**
|
|
215
|
+
* Line end cap style
|
|
216
|
+
* @default 'flat'
|
|
217
|
+
*/
|
|
218
|
+
cap?: LineCap;
|
|
208
219
|
}
|
|
209
220
|
interface HyperlinkProps {
|
|
210
221
|
_rId?: number;
|
|
@@ -307,6 +318,11 @@ interface ShapeLineProps extends ShapeFillProps {
|
|
|
307
318
|
* @default 'solid'
|
|
308
319
|
*/
|
|
309
320
|
dashType?: 'solid' | 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'sysDash' | 'sysDot';
|
|
321
|
+
/**
|
|
322
|
+
* Line end cap style
|
|
323
|
+
* @default 'flat'
|
|
324
|
+
*/
|
|
325
|
+
cap?: LineCap;
|
|
310
326
|
/**
|
|
311
327
|
* Begin arrow type
|
|
312
328
|
* @since v3.3.0
|
|
@@ -548,6 +564,56 @@ interface ObjectNameProps {
|
|
|
548
564
|
* @example 'Quarterly revenue bar chart'
|
|
549
565
|
*/
|
|
550
566
|
altText?: string;
|
|
567
|
+
/**
|
|
568
|
+
* Object lock flags (DrawingML `a:spLocks` / `a:picLocks` / `a:graphicFrameLocks`)
|
|
569
|
+
* - restrict how the object can be manipulated in PowerPoint (e.g. prevent moving, resizing, or grouping)
|
|
570
|
+
* - each flag maps 1:1 to the OOXML attribute of the same name; only flags set to `true` are emitted
|
|
571
|
+
* - PowerPoint UI: Selection Pane / right-click protections (most locks are honored at edit time, not as a password)
|
|
572
|
+
* - flags only apply to the object types that support them (see each flag); flags set on an unsupported
|
|
573
|
+
* object type are ignored with a console warning
|
|
574
|
+
* @since v4.0.0
|
|
575
|
+
* @example { noMove: true, noResize: true } // pin an object in place
|
|
576
|
+
* @example { noGrp: true } // exclude from grouping
|
|
577
|
+
*/
|
|
578
|
+
objectLock?: ObjectLockProps;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Object lock flags. Maps to DrawingML locking elements:
|
|
582
|
+
* - shapes / text boxes / placeholders → `a:spLocks`
|
|
583
|
+
* - images / media → `a:picLocks`
|
|
584
|
+
* - tables → `a:graphicFrameLocks`
|
|
585
|
+
*
|
|
586
|
+
* Each property mirrors the OOXML attribute name. A flag is only serialized for object types whose
|
|
587
|
+
* locking element defines it (noted per-flag); setting an unsupported flag logs a warning and is ignored.
|
|
588
|
+
* @since v4.0.0
|
|
589
|
+
*/
|
|
590
|
+
interface ObjectLockProps {
|
|
591
|
+
/** Disallow grouping/ungrouping with other objects. (shapes, images, tables) */
|
|
592
|
+
noGrp?: boolean;
|
|
593
|
+
/** Disallow selecting the object. (shapes, images, tables) */
|
|
594
|
+
noSelect?: boolean;
|
|
595
|
+
/** Disallow moving the object. (shapes, images, tables) */
|
|
596
|
+
noMove?: boolean;
|
|
597
|
+
/** Disallow resizing the object. (shapes, images, tables) */
|
|
598
|
+
noResize?: boolean;
|
|
599
|
+
/** Disallow changing the aspect ratio. (shapes, images, tables) */
|
|
600
|
+
noChangeAspect?: boolean;
|
|
601
|
+
/** Disallow rotating the object. (shapes, images) */
|
|
602
|
+
noRot?: boolean;
|
|
603
|
+
/** Disallow editing the freeform/custom-geometry points. (shapes, images) */
|
|
604
|
+
noEditPoints?: boolean;
|
|
605
|
+
/** Disallow moving the shape's adjustment handles. (shapes, images) */
|
|
606
|
+
noAdjustHandles?: boolean;
|
|
607
|
+
/** Disallow changing arrowheads. (shapes, images) */
|
|
608
|
+
noChangeArrowheads?: boolean;
|
|
609
|
+
/** Disallow changing the shape type (preset geometry). (shapes, images) */
|
|
610
|
+
noChangeShapeType?: boolean;
|
|
611
|
+
/** Disallow editing the text body. (shapes / text boxes) */
|
|
612
|
+
noTextEdit?: boolean;
|
|
613
|
+
/** Disallow cropping the picture. (images) */
|
|
614
|
+
noCrop?: boolean;
|
|
615
|
+
/** Disallow drilling down into the graphical object (e.g. chart data). (tables) */
|
|
616
|
+
noDrilldown?: boolean;
|
|
551
617
|
}
|
|
552
618
|
interface ThemeProps {
|
|
553
619
|
/**
|
|
@@ -565,6 +631,15 @@ interface ThemeProps {
|
|
|
565
631
|
}
|
|
566
632
|
type MediaType = 'audio' | 'online' | 'video';
|
|
567
633
|
interface ImageBaseProps extends PositionProps, ObjectNameProps {
|
|
634
|
+
/**
|
|
635
|
+
* Sizing note (`w`/`h` inherited from {@link PositionProps}):
|
|
636
|
+
* - When a `data` (base64) image is supplied and `w`/`h` are omitted, the natural pixel
|
|
637
|
+
* size is read from the image header (PNG/JPEG/GIF/BMP/WebP) and used at 96 DPI
|
|
638
|
+
* (natural pixels / 96 = inches).
|
|
639
|
+
* - When only one of `w`/`h` is given, the other is derived from the natural aspect ratio.
|
|
640
|
+
* - `path` images and vector (SVG) data cannot be measured synchronously, so an omitted
|
|
641
|
+
* dimension falls back to 1 inch.
|
|
642
|
+
*/
|
|
568
643
|
/**
|
|
569
644
|
* Alt Text value ("How would you describe this object and its contents to someone who is blind?")
|
|
570
645
|
* - PowerPoint: [right-click on an image] > "Edit Alt Text..."
|
|
@@ -624,6 +699,14 @@ interface ImageBaseProps extends PositionProps, ObjectNameProps {
|
|
|
624
699
|
* @default 0
|
|
625
700
|
*/
|
|
626
701
|
rectRadius?: number;
|
|
702
|
+
/**
|
|
703
|
+
* Preset-geometry adjustment handles (`<a:avLst>` guides) for the clip `shape`.
|
|
704
|
+
* - tune adjustment handles that lack a dedicated option, e.g. chevron point depth
|
|
705
|
+
* - accepts a single guide or an array; each `value` is a `0.0–1.0` fraction (see {@link ShapeAdjustValue})
|
|
706
|
+
* @since v4.0.0
|
|
707
|
+
* @example { name: 'adj', value: 0.25 }
|
|
708
|
+
*/
|
|
709
|
+
shapeAdjust?: ShapeAdjustValue | ShapeAdjustValue[];
|
|
627
710
|
/**
|
|
628
711
|
* Shadow Props
|
|
629
712
|
* - MS-PPT > Format Picture > Shadow
|
|
@@ -747,6 +830,21 @@ type MediaProps = MediaBaseProps & ((DataOrPathRequiredProps & {
|
|
|
747
830
|
*/
|
|
748
831
|
link: string;
|
|
749
832
|
}));
|
|
833
|
+
/**
|
|
834
|
+
* A single preset-geometry adjustment guide (`<a:gd>` inside `<a:avLst>`).
|
|
835
|
+
* - `name` is the guide name the preset defines, e.g. `'adj'`, `'adj1'`, `'adj2'`.
|
|
836
|
+
* PowerPoint shows these handles as the yellow drag dots on a selected shape.
|
|
837
|
+
* - `value` is a fraction `0.0–1.0` of the handle's range, emitted as a percentage
|
|
838
|
+
* guide formula (`val`, in 1/100000 units, so `0.25` → `fmla="val 25000"`).
|
|
839
|
+
* Most adjustment handles (corner radius, chevron point, callout depth, bevel
|
|
840
|
+
* width, …) are percentage-based and map directly; some shapes accept values
|
|
841
|
+
* beyond `1.0`. For angle-based handles, prefer the `angleRange` shortcut.
|
|
842
|
+
* @since v4.0.0
|
|
843
|
+
*/
|
|
844
|
+
interface ShapeAdjustValue {
|
|
845
|
+
name: string;
|
|
846
|
+
value: number;
|
|
847
|
+
}
|
|
750
848
|
interface ShapeProps extends PositionProps, ObjectNameProps {
|
|
751
849
|
/**
|
|
752
850
|
* Horizontal alignment
|
|
@@ -761,6 +859,19 @@ interface ShapeProps extends PositionProps, ObjectNameProps {
|
|
|
761
859
|
* @default [270, 0]
|
|
762
860
|
*/
|
|
763
861
|
angleRange?: [number, number];
|
|
862
|
+
/**
|
|
863
|
+
* Preset-geometry adjustment handles (`<a:avLst>` guides) for any preset shape.
|
|
864
|
+
* - Use this to tune adjustment handles that lack a dedicated shortcut option,
|
|
865
|
+
* e.g. chevron/arrow point depth, callout pointer, bevel/frame thickness.
|
|
866
|
+
* - Accepts a single guide or an array; each `value` is a `0.0–1.0` fraction of
|
|
867
|
+
* the handle's range (see {@link ShapeAdjustValue}).
|
|
868
|
+
* - `rectRadius` / `angleRange` remain friendly shortcuts; any `shapeAdjust`
|
|
869
|
+
* guide that does not collide with a shortcut name is emitted in addition.
|
|
870
|
+
* @since v4.0.0
|
|
871
|
+
* @example { name: 'adj', value: 0.25 } // set the single adjust handle to 25%
|
|
872
|
+
* @example [{ name: 'adj1', value: 0.5 }, { name: 'adj2', value: 0.25 }] // two handles
|
|
873
|
+
*/
|
|
874
|
+
shapeAdjust?: ShapeAdjustValue | ShapeAdjustValue[];
|
|
764
875
|
/**
|
|
765
876
|
* Radius (only for pptx.shapes.BLOCK_ARC)
|
|
766
877
|
* - You have to setup the angleRange values too
|
|
@@ -1213,6 +1324,9 @@ interface TableCell {
|
|
|
1213
1324
|
_hmerge?: boolean;
|
|
1214
1325
|
_vmerge?: boolean;
|
|
1215
1326
|
_rowContinue?: number;
|
|
1327
|
+
/** origin cell of a colspan/rowspan span, set on the dummy `_hmerge`/`_vmerge` cells so they can
|
|
1328
|
+
* inherit the origin's border/fill and render the merged region's outer edges (Issue #680) */
|
|
1329
|
+
_spanOrigin?: TableCell;
|
|
1216
1330
|
_optImp?: any;
|
|
1217
1331
|
text?: string | number | TableCell[];
|
|
1218
1332
|
options?: TableCellProps;
|
|
@@ -1238,6 +1352,27 @@ interface TextGlowProps {
|
|
|
1238
1352
|
*/
|
|
1239
1353
|
size: number;
|
|
1240
1354
|
}
|
|
1355
|
+
interface TextFitShrinkProps {
|
|
1356
|
+
/**
|
|
1357
|
+
* Shrink text on overflow (`<a:normAutofit>`)
|
|
1358
|
+
*/
|
|
1359
|
+
type: 'shrink';
|
|
1360
|
+
/**
|
|
1361
|
+
* Font scale as a percent (0-100), mapped to `<a:normAutofit fontScale="..">`.
|
|
1362
|
+
*
|
|
1363
|
+
* PowerPoint normally calculates this dynamically when text overflows; set it
|
|
1364
|
+
* explicitly to bake the scale into the generated file.
|
|
1365
|
+
* @example 85 // render text at 85% of its nominal size
|
|
1366
|
+
* @default undefined // attribute omitted (PowerPoint defaults to 100%)
|
|
1367
|
+
*/
|
|
1368
|
+
fontScale?: number;
|
|
1369
|
+
/**
|
|
1370
|
+
* Line-space reduction as a percent (0-100), mapped to `<a:normAutofit lnSpcReduction="..">`.
|
|
1371
|
+
* @example 20 // reduce line spacing by 20%
|
|
1372
|
+
* @default undefined // attribute omitted (PowerPoint defaults to 0%)
|
|
1373
|
+
*/
|
|
1374
|
+
lnSpcReduction?: number;
|
|
1375
|
+
}
|
|
1241
1376
|
interface TextPropsOptions extends PositionProps, DataOrPathProps, TextBaseProps, ObjectNameProps {
|
|
1242
1377
|
_bodyProp?: {
|
|
1243
1378
|
autoFit?: boolean;
|
|
@@ -1247,6 +1382,8 @@ interface TextPropsOptions extends PositionProps, DataOrPathProps, TextBaseProps
|
|
|
1247
1382
|
rIns?: number;
|
|
1248
1383
|
tIns?: number;
|
|
1249
1384
|
bIns?: number;
|
|
1385
|
+
numCol?: number;
|
|
1386
|
+
spcCol?: number;
|
|
1250
1387
|
vert?: TextVertType;
|
|
1251
1388
|
wrap?: boolean;
|
|
1252
1389
|
};
|
|
@@ -1256,6 +1393,24 @@ interface TextPropsOptions extends PositionProps, DataOrPathProps, TextBaseProps
|
|
|
1256
1393
|
* Character spacing
|
|
1257
1394
|
*/
|
|
1258
1395
|
charSpacing?: number;
|
|
1396
|
+
/**
|
|
1397
|
+
* Number of text columns in the text body
|
|
1398
|
+
* - PowerPoint: Format Shape > Shape Options > Size & Properties > Text Box > Columns > "Number"
|
|
1399
|
+
* - range: 1-16
|
|
1400
|
+
* @since v5.3.0
|
|
1401
|
+
* @default 1
|
|
1402
|
+
* @example 2 // flow text into two columns
|
|
1403
|
+
*/
|
|
1404
|
+
columns?: number;
|
|
1405
|
+
/**
|
|
1406
|
+
* Spacing between text columns (points)
|
|
1407
|
+
* - PowerPoint: Format Shape > Shape Options > Size & Properties > Text Box > Columns > "Spacing"
|
|
1408
|
+
* - only applies when `columns` > 1
|
|
1409
|
+
* @since v5.3.0
|
|
1410
|
+
* @default 0
|
|
1411
|
+
* @example 10 // 10pt gap between columns
|
|
1412
|
+
*/
|
|
1413
|
+
columnSpacing?: number;
|
|
1259
1414
|
/**
|
|
1260
1415
|
* Text fit options
|
|
1261
1416
|
*
|
|
@@ -1267,11 +1422,15 @@ interface TextPropsOptions extends PositionProps, DataOrPathProps, TextBaseProps
|
|
|
1267
1422
|
* **Note** 'shrink' and 'resize' only take effect after editing text/resize shape.
|
|
1268
1423
|
* Both PowerPoint and Word dynamically calculate a scaling factor and apply it when edit/resize occurs.
|
|
1269
1424
|
*
|
|
1270
|
-
* There is no way for this library to trigger that behavior, sorry.
|
|
1425
|
+
* There is no way for this library to trigger that behavior, sorry. As a workaround,
|
|
1426
|
+
* pass an object form of 'shrink' to bake explicit `fontScale`/`lnSpcReduction` values
|
|
1427
|
+
* into the file so the text renders pre-shrunk without an edit/resize.
|
|
1271
1428
|
* @since v3.3.0
|
|
1429
|
+
* @example 'shrink' // emit a bare <a:normAutofit/>
|
|
1430
|
+
* @example { type: 'shrink', fontScale: 85, lnSpcReduction: 20 } // pre-shrink text
|
|
1272
1431
|
* @default "none"
|
|
1273
1432
|
*/
|
|
1274
|
-
fit?: 'none' | 'shrink' | 'resize';
|
|
1433
|
+
fit?: 'none' | 'shrink' | 'resize' | TextFitShrinkProps;
|
|
1275
1434
|
/**
|
|
1276
1435
|
* Shape fill
|
|
1277
1436
|
* @example { color:'FF0000' } // hex color (red)
|
|
@@ -1401,7 +1560,12 @@ declare function textRun(text: string | number, options?: TextPropsOptions): Tex
|
|
|
1401
1560
|
/** Wraps a run array so TypeScript accepts it as `TextProps[]` without a cast. */
|
|
1402
1561
|
declare function textRuns(runs: TextProps[]): TextProps[];
|
|
1403
1562
|
type ChartAxisTickMark = 'none' | 'inside' | 'outside' | 'cross';
|
|
1404
|
-
|
|
1563
|
+
/**
|
|
1564
|
+
* Line end cap style. Maps to the OOXML `cap` attribute on `<a:ln>` (`flat`/`sq`/`rnd`).
|
|
1565
|
+
*/
|
|
1566
|
+
type LineCap = 'flat' | 'round' | 'square';
|
|
1567
|
+
/** @deprecated use `LineCap` (the cap type is not chart-specific) */
|
|
1568
|
+
type ChartLineCap = LineCap;
|
|
1405
1569
|
type ChartLineDash = 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'solid' | 'sysDash' | 'sysDot';
|
|
1406
1570
|
interface OptsChartData {
|
|
1407
1571
|
_dataIndex?: number;
|
|
@@ -1427,6 +1591,45 @@ interface OptsChartData {
|
|
|
1427
1591
|
* @example [2000, 2010, 2020]
|
|
1428
1592
|
*/
|
|
1429
1593
|
values?: number[];
|
|
1594
|
+
/**
|
|
1595
|
+
* Custom text label per data point, replacing the auto-generated value label.
|
|
1596
|
+
* Index aligns with `values[]`. Empty string or missing entries fall back to the chart-level label settings.
|
|
1597
|
+
* Supported for BAR, LINE, AREA, RADAR, PIE, and DOUGHNUT chart types.
|
|
1598
|
+
* @example ['Low', '', 'High'] // only points 0 and 2 get custom labels
|
|
1599
|
+
*/
|
|
1600
|
+
customLabels?: string[];
|
|
1601
|
+
/**
|
|
1602
|
+
* Per-data-point visual overrides (border / fill), index-aligned with `values[]`.
|
|
1603
|
+
* Empty (`{}`) or missing entries fall back to series/chart styling.
|
|
1604
|
+
* Supported for BAR, LINE, AREA, SCATTER, PIE, and DOUGHNUT chart types.
|
|
1605
|
+
* @example
|
|
1606
|
+
* pointStyles: [
|
|
1607
|
+
* { border: { pt: 2, color: 'FF0000' } }, // point 0: red 2pt border
|
|
1608
|
+
* {}, // point 1: default
|
|
1609
|
+
* { fill: '00B050', border: { type: 'dash', color: '404040' } }, // point 2
|
|
1610
|
+
* ]
|
|
1611
|
+
* @since v5.3.0
|
|
1612
|
+
*/
|
|
1613
|
+
pointStyles?: ChartDataPointStyle[];
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
* Per-data-point style override for a chart series.
|
|
1617
|
+
* Each entry applies to the data point at the same index in `values[]`.
|
|
1618
|
+
* Unset fields fall back to the series/chart-level styling.
|
|
1619
|
+
*/
|
|
1620
|
+
interface ChartDataPointStyle {
|
|
1621
|
+
/**
|
|
1622
|
+
* Data-point border (line). Reuses {@link BorderProps}.
|
|
1623
|
+
* - `type: 'none'` hides the border; `'dash'` draws a dashed border.
|
|
1624
|
+
* @example { pt: 2, color: 'FF0000' }
|
|
1625
|
+
*/
|
|
1626
|
+
border?: BorderProps;
|
|
1627
|
+
/**
|
|
1628
|
+
* Data-point fill color (hex), overriding `chartColors[idx]`.
|
|
1629
|
+
* Most meaningful on fill-based charts (BAR, AREA, PIE, DOUGHNUT).
|
|
1630
|
+
* @example '00B050'
|
|
1631
|
+
*/
|
|
1632
|
+
fill?: HexColor;
|
|
1430
1633
|
}
|
|
1431
1634
|
interface IOptsChartData extends OptsChartData {
|
|
1432
1635
|
labels?: string[][];
|
|
@@ -1497,6 +1700,12 @@ interface IChartPropsBase {
|
|
|
1497
1700
|
lang?: string;
|
|
1498
1701
|
layout?: PositionProps;
|
|
1499
1702
|
shadow?: ShadowProps;
|
|
1703
|
+
/**
|
|
1704
|
+
* Show each bubble's size value as a data label (bubble / bubble3D charts only).
|
|
1705
|
+
* Has no effect on other chart types.
|
|
1706
|
+
* @default false
|
|
1707
|
+
*/
|
|
1708
|
+
showBubbleSize?: boolean;
|
|
1500
1709
|
/**
|
|
1501
1710
|
* @default false
|
|
1502
1711
|
*/
|
|
@@ -1735,6 +1944,20 @@ interface IChartPropsChartBar {
|
|
|
1735
1944
|
* @default 0
|
|
1736
1945
|
*/
|
|
1737
1946
|
barOverlapPct?: number;
|
|
1947
|
+
/**
|
|
1948
|
+
* Draw connector lines between data points across stacked bar/column series
|
|
1949
|
+
* ("Series Lines" in PowerPoint). Emits `<c:serLines>` in the bar chart.
|
|
1950
|
+
*
|
|
1951
|
+
* - `true` uses PowerPoint's automatic line styling.
|
|
1952
|
+
* - An {@link OptsChartGridLine} object customizes color/size/style/cap.
|
|
1953
|
+
* - Omit (or pass an object with `style: 'none'`) to disable.
|
|
1954
|
+
*
|
|
1955
|
+
* Bar (`bar`) charts only; ignored for 3D bar charts.
|
|
1956
|
+
* @default undefined
|
|
1957
|
+
* @example true
|
|
1958
|
+
* @example { color: '777777', size: 1, style: 'dash' }
|
|
1959
|
+
*/
|
|
1960
|
+
barSeriesLine?: boolean | OptsChartGridLine;
|
|
1738
1961
|
}
|
|
1739
1962
|
interface IChartPropsChartDoughnut {
|
|
1740
1963
|
dataNoEffects?: boolean;
|
|
@@ -1891,9 +2114,16 @@ interface IChartPropsTitle extends TextBaseProps {
|
|
|
1891
2114
|
titleColor?: string;
|
|
1892
2115
|
titleFontFace?: string;
|
|
1893
2116
|
titleFontSize?: number;
|
|
2117
|
+
titleItalic?: boolean;
|
|
2118
|
+
titleUnderline?: boolean;
|
|
2119
|
+
/**
|
|
2120
|
+
* Manual title position (inches), relative to the chart.
|
|
2121
|
+
* Each axis is independent: omit `x` to keep automatic horizontal centering,
|
|
2122
|
+
* or omit `y` to keep automatic vertical placement. Provide at least one.
|
|
2123
|
+
*/
|
|
1894
2124
|
titlePos?: {
|
|
1895
|
-
x
|
|
1896
|
-
y
|
|
2125
|
+
x?: number;
|
|
2126
|
+
y?: number;
|
|
1897
2127
|
};
|
|
1898
2128
|
titleRotate?: number;
|
|
1899
2129
|
}
|
|
@@ -2224,14 +2454,7 @@ declare const DEF_SHAPE_SHADOW: {
|
|
|
2224
2454
|
};
|
|
2225
2455
|
declare const DEF_SLIDE_BKGD = "FFFFFF";
|
|
2226
2456
|
declare const DEF_SLIDE_MARGIN_IN: [number, number, number, number];
|
|
2227
|
-
declare const DEF_TEXT_SHADOW:
|
|
2228
|
-
type: string;
|
|
2229
|
-
blur: number;
|
|
2230
|
-
offset: number;
|
|
2231
|
-
angle: number;
|
|
2232
|
-
color: string;
|
|
2233
|
-
opacity: number;
|
|
2234
|
-
};
|
|
2457
|
+
declare const DEF_TEXT_SHADOW: ShadowProps;
|
|
2235
2458
|
declare const DEF_TEXT_GLOW: {
|
|
2236
2459
|
size: number;
|
|
2237
2460
|
color: string;
|
|
@@ -2370,7 +2593,7 @@ declare enum ShapeType {
|
|
|
2370
2593
|
'flowChartSort' = "flowChartSort",
|
|
2371
2594
|
'flowChartSummingJunction' = "flowChartSummingJunction",
|
|
2372
2595
|
'flowChartTerminator' = "flowChartTerminator",
|
|
2373
|
-
'
|
|
2596
|
+
'foldedCorner' = "foldedCorner",
|
|
2374
2597
|
'frame' = "frame",
|
|
2375
2598
|
'funnel' = "funnel",
|
|
2376
2599
|
'gear6' = "gear6",
|
|
@@ -2569,7 +2792,7 @@ declare enum SHAPE_TYPE {
|
|
|
2569
2792
|
FLOWCHART_STORED_DATA = "flowChartOnlineStorage",
|
|
2570
2793
|
FLOWCHART_SUMMING_JUNCTION = "flowChartSummingJunction",
|
|
2571
2794
|
FLOWCHART_TERMINATOR = "flowChartTerminator",
|
|
2572
|
-
FOLDED_CORNER = "
|
|
2795
|
+
FOLDED_CORNER = "foldedCorner",
|
|
2573
2796
|
FRAME = "frame",
|
|
2574
2797
|
FUNNEL = "funnel",
|
|
2575
2798
|
GEAR_6 = "gear6",
|
|
@@ -2604,10 +2827,6 @@ declare enum SHAPE_TYPE {
|
|
|
2604
2827
|
LINE_CALLOUT_3_ACCENT_BAR = "accentCallout3",
|
|
2605
2828
|
LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR = "accentBorderCallout3",
|
|
2606
2829
|
LINE_CALLOUT_3_NO_BORDER = "callout3",
|
|
2607
|
-
LINE_CALLOUT_4 = "borderCallout4",
|
|
2608
|
-
LINE_CALLOUT_4_ACCENT_BAR = "accentCallout3=4",
|
|
2609
|
-
LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR = "accentBorderCallout4",
|
|
2610
|
-
LINE_CALLOUT_4_NO_BORDER = "callout4",
|
|
2611
2830
|
LINE = "line",
|
|
2612
2831
|
LINE_INVERSE = "lineInv",
|
|
2613
2832
|
MATH_DIVIDE = "mathDivide",
|
|
@@ -2674,7 +2893,16 @@ declare enum SHAPE_TYPE {
|
|
|
2674
2893
|
VERTICAL_SCROLL = "verticalScroll",
|
|
2675
2894
|
WAVE = "wave"
|
|
2676
2895
|
}
|
|
2677
|
-
type SHAPE_NAME = 'accentBorderCallout1' | 'accentBorderCallout2' | 'accentBorderCallout3' | 'accentCallout1' | 'accentCallout2' | 'accentCallout3' | 'actionButtonBackPrevious' | 'actionButtonBeginning' | 'actionButtonBlank' | 'actionButtonDocument' | 'actionButtonEnd' | 'actionButtonForwardNext' | 'actionButtonHelp' | 'actionButtonHome' | 'actionButtonInformation' | 'actionButtonMovie' | 'actionButtonReturn' | 'actionButtonSound' | 'arc' | 'bentArrow' | 'bentUpArrow' | 'bevel' | 'blockArc' | 'borderCallout1' | 'borderCallout2' | 'borderCallout3' | 'bracePair' | 'bracketPair' | 'callout1' | 'callout2' | 'callout3' | 'can' | 'chartPlus' | 'chartStar' | 'chartX' | 'chevron' | 'chord' | 'circularArrow' | 'cloud' | 'cloudCallout' | 'corner' | 'cornerTabs' | 'cube' | 'curvedDownArrow' | 'curvedLeftArrow' | 'curvedRightArrow' | 'curvedUpArrow' | 'custGeom' | 'decagon' | 'diagStripe' | 'diamond' | 'dodecagon' | 'donut' | 'doubleWave' | 'downArrow' | 'downArrowCallout' | 'ellipse' | 'ellipseRibbon' | 'ellipseRibbon2' | 'flowChartAlternateProcess' | 'flowChartCollate' | 'flowChartConnector' | 'flowChartDecision' | 'flowChartDelay' | 'flowChartDisplay' | 'flowChartDocument' | 'flowChartExtract' | 'flowChartInputOutput' | 'flowChartInternalStorage' | 'flowChartMagneticDisk' | 'flowChartMagneticDrum' | 'flowChartMagneticTape' | 'flowChartManualInput' | 'flowChartManualOperation' | 'flowChartMerge' | 'flowChartMultidocument' | 'flowChartOfflineStorage' | 'flowChartOffpageConnector' | 'flowChartOnlineStorage' | 'flowChartOr' | 'flowChartPredefinedProcess' | 'flowChartPreparation' | 'flowChartProcess' | 'flowChartPunchedCard' | 'flowChartPunchedTape' | 'flowChartSort' | 'flowChartSummingJunction' | 'flowChartTerminator' | '
|
|
2896
|
+
type SHAPE_NAME = 'accentBorderCallout1' | 'accentBorderCallout2' | 'accentBorderCallout3' | 'accentCallout1' | 'accentCallout2' | 'accentCallout3' | 'actionButtonBackPrevious' | 'actionButtonBeginning' | 'actionButtonBlank' | 'actionButtonDocument' | 'actionButtonEnd' | 'actionButtonForwardNext' | 'actionButtonHelp' | 'actionButtonHome' | 'actionButtonInformation' | 'actionButtonMovie' | 'actionButtonReturn' | 'actionButtonSound' | 'arc' | 'bentArrow' | 'bentUpArrow' | 'bevel' | 'blockArc' | 'borderCallout1' | 'borderCallout2' | 'borderCallout3' | 'bracePair' | 'bracketPair' | 'callout1' | 'callout2' | 'callout3' | 'can' | 'chartPlus' | 'chartStar' | 'chartX' | 'chevron' | 'chord' | 'circularArrow' | 'cloud' | 'cloudCallout' | 'corner' | 'cornerTabs' | 'cube' | 'curvedDownArrow' | 'curvedLeftArrow' | 'curvedRightArrow' | 'curvedUpArrow' | 'custGeom' | 'decagon' | 'diagStripe' | 'diamond' | 'dodecagon' | 'donut' | 'doubleWave' | 'downArrow' | 'downArrowCallout' | 'ellipse' | 'ellipseRibbon' | 'ellipseRibbon2' | 'flowChartAlternateProcess' | 'flowChartCollate' | 'flowChartConnector' | 'flowChartDecision' | 'flowChartDelay' | 'flowChartDisplay' | 'flowChartDocument' | 'flowChartExtract' | 'flowChartInputOutput' | 'flowChartInternalStorage' | 'flowChartMagneticDisk' | 'flowChartMagneticDrum' | 'flowChartMagneticTape' | 'flowChartManualInput' | 'flowChartManualOperation' | 'flowChartMerge' | 'flowChartMultidocument' | 'flowChartOfflineStorage' | 'flowChartOffpageConnector' | 'flowChartOnlineStorage' | 'flowChartOr' | 'flowChartPredefinedProcess' | 'flowChartPreparation' | 'flowChartProcess' | 'flowChartPunchedCard' | 'flowChartPunchedTape' | 'flowChartSort' | 'flowChartSummingJunction' | 'flowChartTerminator' | 'foldedCorner' | 'frame' | 'funnel' | 'gear6' | 'gear9' | 'halfFrame' | 'heart' | 'heptagon' | 'hexagon' | 'homePlate' | 'horizontalScroll' | 'irregularSeal1' | 'irregularSeal2' | 'leftArrow' | 'leftArrowCallout' | 'leftBrace' | 'leftBracket' | 'leftCircularArrow' | 'leftRightArrow' | 'leftRightArrowCallout' | 'leftRightCircularArrow' | 'leftRightRibbon' | 'leftRightUpArrow' | 'leftUpArrow' | 'lightningBolt' | 'line' | 'lineInv' | 'mathDivide' | 'mathEqual' | 'mathMinus' | 'mathMultiply' | 'mathNotEqual' | 'mathPlus' | 'moon' | 'noSmoking' | 'nonIsoscelesTrapezoid' | 'notchedRightArrow' | 'octagon' | 'parallelogram' | 'pentagon' | 'pie' | 'pieWedge' | 'plaque' | 'plaqueTabs' | 'plus' | 'quadArrow' | 'quadArrowCallout' | 'rect' | 'ribbon' | 'ribbon2' | 'rightArrow' | 'rightArrowCallout' | 'rightBrace' | 'rightBracket' | 'round1Rect' | 'round2DiagRect' | 'round2SameRect' | 'roundRect' | 'rtTriangle' | 'smileyFace' | 'snip1Rect' | 'snip2DiagRect' | 'snip2SameRect' | 'snipRoundRect' | 'squareTabs' | 'star10' | 'star12' | 'star16' | 'star24' | 'star32' | 'star4' | 'star5' | 'star6' | 'star7' | 'star8' | 'stripedRightArrow' | 'sun' | 'swooshArrow' | 'teardrop' | 'trapezoid' | 'triangle' | 'upArrow' | 'upArrowCallout' | 'upDownArrow' | 'upDownArrowCallout' | 'uturnArrow' | 'verticalScroll' | 'wave' | 'wedgeEllipseCallout' | 'wedgeRectCallout' | 'wedgeRoundRectCallout';
|
|
2897
|
+
/**
|
|
2898
|
+
* Every shape geometry name PptxGenJS can serialize without corrupting the
|
|
2899
|
+
* package: the OOXML preset geometries (`ST_ShapeType` — `SHAPE_TYPE` values
|
|
2900
|
+
* plus the unexposed connectors above) and `custGeom` (freeform paths, emitted
|
|
2901
|
+
* as `<a:custGeom>` rather than `<a:prstGeom>`). Used to reject bogus presets
|
|
2902
|
+
* before they become an invalid `<a:prstGeom prst="...">` that triggers
|
|
2903
|
+
* PowerPoint's "needs repair" dialog and drops the shape.
|
|
2904
|
+
*/
|
|
2905
|
+
declare const VALID_SHAPE_PRESETS: ReadonlySet<string>;
|
|
2678
2906
|
declare enum CHART_TYPE {
|
|
2679
2907
|
'AREA' = "area",
|
|
2680
2908
|
'BAR' = "bar",
|
|
@@ -2849,6 +3077,17 @@ type RuntimeAdapter = {
|
|
|
2849
3077
|
declare const EMU_PER_INCH = 914400;
|
|
2850
3078
|
declare const EMU_PER_POINT = 12700;
|
|
2851
3079
|
declare const POINTS_PER_INCH = 72;
|
|
3080
|
+
/**
|
|
3081
|
+
* English Metric Units — the integer unit OOXML serializes geometry in (914400 per inch).
|
|
3082
|
+
*
|
|
3083
|
+
* Branded so a value that has already been resolved to EMU cannot be silently fed back into a
|
|
3084
|
+
* unit converter: {@link coordToEmu} only accepts a user `Coord`, so passing an `Emu` into it is
|
|
3085
|
+
* a compile-time error. This replaces the old runtime "a number ≥ 100 must already be EMU"
|
|
3086
|
+
* magnitude guess, which silently mis-rendered values near the threshold.
|
|
3087
|
+
*/
|
|
3088
|
+
type Emu = number & {
|
|
3089
|
+
readonly __unit: 'emu';
|
|
3090
|
+
};
|
|
2852
3091
|
type StandardLayoutName = 'LAYOUT_4x3' | 'LAYOUT_16x9' | 'LAYOUT_16x10' | 'LAYOUT_WIDE';
|
|
2853
3092
|
interface StandardLayout {
|
|
2854
3093
|
/** PptxGenJS layout key used with `pptx.layout`. */
|
|
@@ -2868,9 +3107,28 @@ interface StandardLayout {
|
|
|
2868
3107
|
/** Slide height in English Metric Units. */
|
|
2869
3108
|
readonly heightEmu: number;
|
|
2870
3109
|
}
|
|
2871
|
-
declare function inchesToEmu(inches: number):
|
|
2872
|
-
declare function pointsToEmu(points: number):
|
|
2873
|
-
declare function pixelsToEmu(pixels: number, dpi: number):
|
|
3110
|
+
declare function inchesToEmu(inches: number): Emu;
|
|
3111
|
+
declare function pointsToEmu(points: number): Emu;
|
|
3112
|
+
declare function pixelsToEmu(pixels: number, dpi: number): Emu;
|
|
3113
|
+
/**
|
|
3114
|
+
* Resolve a percentage of an axis length to EMU.
|
|
3115
|
+
* @param percent - percentage value (e.g. `50` for 50%)
|
|
3116
|
+
* @param axisEmu - the axis length in EMU (slide width for x/w, height for y/h)
|
|
3117
|
+
*/
|
|
3118
|
+
declare function percentToEmu(percent: number, axisEmu: number): Emu;
|
|
3119
|
+
/**
|
|
3120
|
+
* The single user-coordinate → EMU boundary. Convert each user-supplied coordinate exactly once.
|
|
3121
|
+
*
|
|
3122
|
+
* Accepts (see {@link Coord}):
|
|
3123
|
+
* - a bare `number` → **always inches** (the documented unit); no magnitude guessing
|
|
3124
|
+
* - `"<n>%"` → percentage of `axisEmu`
|
|
3125
|
+
* - `"<n>in"` / `"<n>pt"` / `"<n>emu"` → explicit units (the escape hatch for non-inch values)
|
|
3126
|
+
*
|
|
3127
|
+
* Throws on non-finite or unparseable input rather than silently emitting a degenerate 0-size.
|
|
3128
|
+
* @param value - user coordinate
|
|
3129
|
+
* @param axisEmu - axis length in EMU, used only to resolve percentages
|
|
3130
|
+
*/
|
|
3131
|
+
declare function coordToEmu(value: number | string, axisEmu: number): Emu;
|
|
2874
3132
|
declare function emuToInches(emu: number): number;
|
|
2875
3133
|
declare function emuToPoints(emu: number): number;
|
|
2876
3134
|
declare function emuToPixels(emu: number, dpi: number): number;
|
|
@@ -3103,5 +3361,5 @@ declare class PptxGenJS extends PptxGenJS$1 {
|
|
|
3103
3361
|
constructor();
|
|
3104
3362
|
}
|
|
3105
3363
|
//#endregion
|
|
3106
|
-
export { AXIS_ID_CATEGORY_PRIMARY, AXIS_ID_CATEGORY_SECONDARY, AXIS_ID_SERIES_PRIMARY, AXIS_ID_VALUE_PRIMARY, AXIS_ID_VALUE_SECONDARY, AddSlideProps, AlignH, AlignV, BARCHART_COLORS, BULLET_TYPES, BackgroundProps, BorderProps, CHART_NAME, CHART_TYPE, CRLF, ChartAxisTickMark, ChartLineCap, ChartLineDash, ChartType, Color, Coord, CustomPropertyValue, 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, DataOrPathProps, DataOrPathRequiredProps, EMU, EMU_PER_INCH, EMU_PER_POINT, GeometryPoint, GradientFillProps, GradientStopProps, HAlign, HexColor, HyperlinkProps, IChartAreaProps, IChartMulti, IChartOpts, IChartOptsLib, IChartPropsAxisCat, IChartPropsAxisSer, IChartPropsAxisVal, IChartPropsBase, IChartPropsChartBar, IChartPropsChartDoughnut, IChartPropsChartLine, IChartPropsChartPie, IChartPropsChartRadar, IChartPropsDataLabel, IChartPropsDataTable, IChartPropsFillLine, IChartPropsLegend, IChartPropsTitle, IChartSeriesOpts, IMG_BROKEN, IMG_PLAYBTN, IMG_SVG_PLACEHOLDER, IOptsChartData, IPresentationProps, ISlideObject, ISlideRel, ISlideRelChart, ISlideRelMedia, ImageProps, JSZIP_OUTPUT_TYPE, LAYOUT_IDX_SERIES_BASE, LETTERS, LINEH_MODIFIER, LinearGradientFillProps, MASTER_OBJECTS, Margin, MediaProps, MediaType, ONEPT, ObjectNameProps, ObjectOptions, OptsChartData, OptsChartGridLine, OutputType, PIECHART_COLORS, PLACEHOLDER_TYPE, PLACEHOLDER_TYPES, POINTS_PER_INCH, PatternFillProps, PatternPreset, PlaceholderProps, PositionProps, PptxGenJS, PptxGenJS as Presentation, PptxGenJS as default, PresLayout, PresSlide, type PresSlide as Slide, PresSlideInternal, PresentationProps, REGEX_HEX_COLOR, SCHEME_COLORS, SCHEME_COLOR_NAMES, SHAPE_NAME, SHAPE_TYPE, SLDNUMFLDID, SLIDE_OBJECT_TYPES, STANDARD_LAYOUTS, SchemeColor, SectionInternalProps, SectionProps, ShadowProps, ShapeFillProps, ShapeLineProps, ShapeProps, ShapeType, SlideBaseProps, SlideLayout, SlideLayoutInternal, SlideMasterChartProps, SlideMasterObject, SlideMasterProps, SlideNumberProps, StandardLayout, StandardLayoutName, TABLE_STYLE, TEXT_HALIGN, TEXT_VALIGN, TableCell, TableCellProps, TableProps, TableRow, TableRowSlide, TableStyleInternal, TableStyleProps, TableStyleRegionProps, TableToSlidesProps, TextBaseProps, TextGlowProps, TextProps, TextPropsOptions, TextVertType, ThemeColor, ThemeProps, VAlign, WRITE_OUTPUT_TYPE, WriteBaseProps, WriteFileProps, WriteProps, emuToInches, emuToPixels, emuToPoints, inchesToEmu, pixelsToEmu, pointsToEmu, textRun, textRuns };
|
|
3364
|
+
export { AXIS_ID_CATEGORY_PRIMARY, AXIS_ID_CATEGORY_SECONDARY, AXIS_ID_SERIES_PRIMARY, AXIS_ID_VALUE_PRIMARY, AXIS_ID_VALUE_SECONDARY, AddSlideProps, AlignH, AlignV, BARCHART_COLORS, BULLET_TYPES, BackgroundProps, BorderProps, CHART_NAME, CHART_TYPE, CRLF, ChartAxisTickMark, ChartDataPointStyle, ChartLineCap, ChartLineDash, ChartType, Color, Coord, CustomPropertyValue, 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, DataOrPathProps, DataOrPathRequiredProps, EMU, EMU_PER_INCH, EMU_PER_POINT, Emu, GeometryPoint, GradientFillProps, GradientStopProps, HAlign, HexColor, HyperlinkProps, IChartAreaProps, IChartMulti, IChartOpts, IChartOptsLib, IChartPropsAxisCat, IChartPropsAxisSer, IChartPropsAxisVal, IChartPropsBase, IChartPropsChartBar, IChartPropsChartDoughnut, IChartPropsChartLine, IChartPropsChartPie, IChartPropsChartRadar, IChartPropsDataLabel, IChartPropsDataTable, IChartPropsFillLine, IChartPropsLegend, IChartPropsTitle, IChartSeriesOpts, IMG_BROKEN, IMG_PLAYBTN, IMG_SVG_PLACEHOLDER, IOptsChartData, IPresentationProps, ISlideObject, ISlideRel, ISlideRelChart, ISlideRelMedia, ImageProps, JSZIP_OUTPUT_TYPE, LAYOUT_IDX_SERIES_BASE, LETTERS, LINEH_MODIFIER, LineCap, LinearGradientFillProps, MASTER_OBJECTS, Margin, MediaProps, MediaType, ONEPT, ObjectLockProps, ObjectNameProps, ObjectOptions, OptsChartData, OptsChartGridLine, OutputType, PIECHART_COLORS, PLACEHOLDER_TYPE, PLACEHOLDER_TYPES, POINTS_PER_INCH, PatternFillProps, PatternPreset, PlaceholderProps, PositionProps, PptxGenJS, PptxGenJS as Presentation, PptxGenJS as default, PresLayout, PresSlide, type PresSlide as Slide, PresSlideInternal, PresentationProps, REGEX_HEX_COLOR, SCHEME_COLORS, SCHEME_COLOR_NAMES, SHAPE_NAME, SHAPE_TYPE, SLDNUMFLDID, SLIDE_OBJECT_TYPES, STANDARD_LAYOUTS, SchemeColor, SectionInternalProps, SectionProps, ShadowProps, ShapeAdjustValue, ShapeFillProps, ShapeLineProps, ShapeProps, ShapeType, SlideBaseProps, SlideLayout, SlideLayoutInternal, SlideMasterChartProps, SlideMasterObject, SlideMasterProps, SlideNumberProps, StandardLayout, StandardLayoutName, TABLE_STYLE, TEXT_HALIGN, TEXT_VALIGN, TableCell, TableCellProps, TableProps, TableRow, TableRowSlide, TableStyleInternal, TableStyleProps, TableStyleRegionProps, TableToSlidesProps, TextBaseProps, TextFitShrinkProps, TextGlowProps, TextProps, TextPropsOptions, TextVertType, ThemeColor, ThemeProps, VALID_SHAPE_PRESETS, VAlign, WRITE_OUTPUT_TYPE, WriteBaseProps, WriteFileProps, WriteProps, coordToEmu, emuToInches, emuToPixels, emuToPoints, inchesToEmu, percentToEmu, pixelsToEmu, pointsToEmu, textRun, textRuns };
|
|
3107
3365
|
//# sourceMappingURL=standalone.d.ts.map
|