@office-open/core 0.8.1 → 0.9.1
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/README.md +32 -60
- package/dist/chart/index.d.mts +2 -2
- package/dist/chart/index.mjs +2 -2
- package/dist/chart-DNpai28f.mjs +365 -0
- package/dist/descriptor/index.d.mts +2 -0
- package/dist/descriptor/index.mjs +2 -0
- package/dist/descriptor-57JUzfpG.mjs +282 -0
- package/dist/drawingml/index.d.mts +2 -2
- package/dist/drawingml/index.mjs +2 -2
- package/dist/{index-Cj2Yf5mk.d.mts → index-BKotL3AP.d.mts} +10 -7
- package/dist/{index-DEvpdl1o.d.mts → index-BqJRDf5H.d.mts} +1423 -1837
- package/dist/index-D81RV9Vc.d.mts +153 -0
- package/dist/{index-BCUfgp9A.d.mts → index-DmPBJwSk.d.mts} +2 -2
- package/dist/{index-D0N5Bw2M.d.mts → index-eu1aFQCm.d.mts} +39 -28
- package/dist/index-xXbaecaB.d.mts +137 -0
- package/dist/index.d.mts +8 -558
- package/dist/index.mjs +7 -2091
- package/dist/patch/index.d.mts +1 -1
- package/dist/smartart/index.d.mts +2 -2
- package/dist/smartart/index.mjs +2 -2
- package/dist/{smartart-9ZpWgmIy.mjs → smartart-DCY-Vdv7.mjs} +120 -204
- package/dist/src-DPuDEZYF.mjs +7477 -0
- package/dist/theme/index.d.mts +2 -2
- package/dist/theme/index.mjs +2 -2
- package/dist/{theme-FWD_20fH.mjs → theme-CiNzdl-9.mjs} +117 -22
- package/dist/{values.d.mts → util/values.d.mts} +1 -1
- package/dist/{values.mjs → util/values.mjs} +1 -1
- package/dist/{values-BOWpTgBE.mjs → values-CVIZcTRw.mjs} +1 -1
- package/dist/{values-COjPGYkS.d.mts → values-Dqj8cbcy.d.mts} +1 -1
- package/package.json +13 -10
- package/dist/chart-CigYrDhf.mjs +0 -1242
- package/dist/drawingml-B-2eEHAF.mjs +0 -7109
- package/dist/index-Bh6s66Up.d.mts +0 -381
- package/dist/index-CoTp4wVf.d.mts +0 -202
- package/dist/xml-components-BuFdDxHN.mjs +0 -322
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as CustomDescriptor } from "./index-D81RV9Vc.mjs";
|
|
2
|
+
import { s as UniversalMeasure } from "./values-Dqj8cbcy.mjs";
|
|
3
|
+
import { Element } from "@office-open/xml";
|
|
4
|
+
import { ZipOptions, Zippable, Zippable as Zippable$1, strFromU8 as strFromU8$1, unzipSync as unzipSync$1 } from "fflate";
|
|
2
5
|
import { Buffer } from "\u0000polyfill-node.buffer";
|
|
3
6
|
|
|
4
7
|
//#region src/drawingml/color/color-transform.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Color transform elements for DrawingML colors.
|
|
10
|
+
*
|
|
11
|
+
* This module provides color transformation elements defined in EG_ColorTransform,
|
|
12
|
+
* which can be applied as child elements to any color type (srgbClr, schemeClr, etc.).
|
|
13
|
+
*
|
|
14
|
+
* Reference: ISO/IEC 29500-4, dml-main.xsd, EG_ColorTransform
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
*/
|
|
5
18
|
/**
|
|
6
19
|
* Options for color transforms.
|
|
7
20
|
*
|
|
@@ -12,64 +25,64 @@ import { Buffer } from "\u0000polyfill-node.buffer";
|
|
|
12
25
|
*/
|
|
13
26
|
interface ColorTransformOptions {
|
|
14
27
|
/** Tint: moves color toward white (0-100000) */
|
|
15
|
-
|
|
28
|
+
tint?: number;
|
|
16
29
|
/** Shade: moves color toward black (0-100000) */
|
|
17
|
-
|
|
30
|
+
shade?: number;
|
|
18
31
|
/** Complement: inverts the color (no value) */
|
|
19
|
-
|
|
32
|
+
comp?: boolean;
|
|
20
33
|
/** Inverse: inverts the color (no value) */
|
|
21
|
-
|
|
34
|
+
inv?: boolean;
|
|
22
35
|
/** Grayscale: converts to grayscale (no value) */
|
|
23
|
-
|
|
36
|
+
gray?: boolean;
|
|
24
37
|
/** Alpha: sets transparency (0-100000) */
|
|
25
|
-
|
|
38
|
+
alpha?: number;
|
|
26
39
|
/** Alpha offset: adjusts alpha by fixed amount (-100000 to 100000) */
|
|
27
|
-
|
|
40
|
+
alphaOff?: number;
|
|
28
41
|
/** Alpha modulation: scales alpha by percentage (0-100000) */
|
|
29
|
-
|
|
42
|
+
alphaMod?: number;
|
|
30
43
|
/** Hue: sets hue angle (0-21600000) */
|
|
31
|
-
|
|
44
|
+
hue?: number;
|
|
32
45
|
/** Hue offset: adjusts hue by angle (-5400000 to 5400000) */
|
|
33
|
-
|
|
46
|
+
hueOff?: number;
|
|
34
47
|
/** Hue modulation: scales hue by percentage (0-100000) */
|
|
35
|
-
|
|
48
|
+
hueMod?: number;
|
|
36
49
|
/** Saturation: sets saturation (-100000 to 100000) */
|
|
37
|
-
|
|
50
|
+
sat?: number;
|
|
38
51
|
/** Saturation offset: adjusts saturation (-100000 to 100000) */
|
|
39
|
-
|
|
52
|
+
satOff?: number;
|
|
40
53
|
/** Saturation modulation: scales saturation (0-100000) */
|
|
41
|
-
|
|
54
|
+
satMod?: number;
|
|
42
55
|
/** Luminance: sets luminance (-100000 to 100000) */
|
|
43
|
-
|
|
56
|
+
lum?: number;
|
|
44
57
|
/** Luminance offset: adjusts luminance (-100000 to 100000) */
|
|
45
|
-
|
|
58
|
+
lumOff?: number;
|
|
46
59
|
/** Luminance modulation: scales luminance (0-100000) */
|
|
47
|
-
|
|
60
|
+
lumMod?: number;
|
|
48
61
|
/** Red: sets red channel (-100000 to 100000) */
|
|
49
|
-
|
|
62
|
+
red?: number;
|
|
50
63
|
/** Red offset: adjusts red channel (-100000 to 100000) */
|
|
51
|
-
|
|
64
|
+
redOff?: number;
|
|
52
65
|
/** Red modulation: scales red channel (0-100000) */
|
|
53
|
-
|
|
66
|
+
redMod?: number;
|
|
54
67
|
/** Green: sets green channel (-100000 to 100000) */
|
|
55
|
-
|
|
68
|
+
green?: number;
|
|
56
69
|
/** Green offset: adjusts green channel (-100000 to 100000) */
|
|
57
|
-
|
|
70
|
+
greenOff?: number;
|
|
58
71
|
/** Green modulation: scales green channel (0-100000) */
|
|
59
|
-
|
|
72
|
+
greenMod?: number;
|
|
60
73
|
/** Blue: sets blue channel (-100000 to 100000) */
|
|
61
|
-
|
|
74
|
+
blue?: number;
|
|
62
75
|
/** Blue offset: adjusts blue channel (-100000 to 100000) */
|
|
63
|
-
|
|
76
|
+
blueOff?: number;
|
|
64
77
|
/** Blue modulation: scales blue channel (0-100000) */
|
|
65
|
-
|
|
78
|
+
blueMod?: number;
|
|
66
79
|
/** Gamma correction (no value) */
|
|
67
|
-
|
|
80
|
+
gamma?: boolean;
|
|
68
81
|
/** Inverse gamma correction (no value) */
|
|
69
|
-
|
|
82
|
+
invGamma?: boolean;
|
|
70
83
|
}
|
|
71
84
|
/**
|
|
72
|
-
* Creates color transform child elements.
|
|
85
|
+
* Creates color transform child elements as XML strings.
|
|
73
86
|
*
|
|
74
87
|
* These elements modify the parent color according to OOXML color transform rules.
|
|
75
88
|
* Multiple transforms can be applied in sequence.
|
|
@@ -82,7 +95,7 @@ interface ColorTransformOptions {
|
|
|
82
95
|
* createColorTransforms({ alpha: 50000 });
|
|
83
96
|
* ```
|
|
84
97
|
*/
|
|
85
|
-
declare const createColorTransforms: (options: ColorTransformOptions) => readonly
|
|
98
|
+
declare const createColorTransforms: (options: ColorTransformOptions) => readonly string[];
|
|
86
99
|
//#endregion
|
|
87
100
|
//#region src/drawingml/color/hsl-color.d.ts
|
|
88
101
|
/**
|
|
@@ -90,16 +103,16 @@ declare const createColorTransforms: (options: ColorTransformOptions) => readonl
|
|
|
90
103
|
*/
|
|
91
104
|
interface HslColorOptions {
|
|
92
105
|
/** Hue angle in 60,000ths of a degree (0-21600000) */
|
|
93
|
-
|
|
106
|
+
hue: number;
|
|
94
107
|
/** Saturation in 1/1000th of a percent (0-100000) */
|
|
95
|
-
|
|
108
|
+
saturation: number;
|
|
96
109
|
/** Luminance in 1/1000th of a percent (0-100000) */
|
|
97
|
-
|
|
110
|
+
luminance: number;
|
|
98
111
|
/** Optional color transforms */
|
|
99
|
-
|
|
112
|
+
transforms?: ColorTransformOptions;
|
|
100
113
|
}
|
|
101
114
|
/**
|
|
102
|
-
* Creates an HSL color element.
|
|
115
|
+
* Creates an HSL color element as an XML string.
|
|
103
116
|
*
|
|
104
117
|
* Specifies a color using Hue, Saturation, and Luminance values.
|
|
105
118
|
*
|
|
@@ -115,7 +128,7 @@ interface HslColorOptions {
|
|
|
115
128
|
* </xsd:complexType>
|
|
116
129
|
* ```
|
|
117
130
|
*/
|
|
118
|
-
declare const createHslColor: (options: HslColorOptions) =>
|
|
131
|
+
declare const createHslColor: (options: HslColorOptions) => string;
|
|
119
132
|
//#endregion
|
|
120
133
|
//#region src/drawingml/color/preset-color.d.ts
|
|
121
134
|
/**
|
|
@@ -286,12 +299,12 @@ declare const PresetColor: {
|
|
|
286
299
|
*/
|
|
287
300
|
interface PresetColorOptions {
|
|
288
301
|
/** Preset color value */
|
|
289
|
-
|
|
302
|
+
value: (typeof PresetColor)[keyof typeof PresetColor];
|
|
290
303
|
/** Optional color transforms */
|
|
291
|
-
|
|
304
|
+
transforms?: ColorTransformOptions;
|
|
292
305
|
}
|
|
293
306
|
/**
|
|
294
|
-
* Creates a preset color element.
|
|
307
|
+
* Creates a preset color element as an XML string.
|
|
295
308
|
*
|
|
296
309
|
* Specifies a color using a named preset (CSS named color).
|
|
297
310
|
*
|
|
@@ -305,7 +318,7 @@ interface PresetColorOptions {
|
|
|
305
318
|
* </xsd:complexType>
|
|
306
319
|
* ```
|
|
307
320
|
*/
|
|
308
|
-
declare const createPresetColor: (options: PresetColorOptions) =>
|
|
321
|
+
declare const createPresetColor: (options: PresetColorOptions) => string;
|
|
309
322
|
//#endregion
|
|
310
323
|
//#region src/drawingml/color/rgb-color.d.ts
|
|
311
324
|
/**
|
|
@@ -313,12 +326,12 @@ declare const createPresetColor: (options: PresetColorOptions) => XmlComponent;
|
|
|
313
326
|
*/
|
|
314
327
|
interface RgbColorOptions {
|
|
315
328
|
/** Hex color value (e.g., "FF0000" for red) */
|
|
316
|
-
|
|
329
|
+
value: string;
|
|
317
330
|
/** Optional color transforms */
|
|
318
|
-
|
|
331
|
+
transforms?: ColorTransformOptions;
|
|
319
332
|
}
|
|
320
333
|
/**
|
|
321
|
-
* Creates an sRGB color element.
|
|
334
|
+
* Creates an sRGB color element as an XML string.
|
|
322
335
|
*
|
|
323
336
|
* Specifies a color using RGB hex values.
|
|
324
337
|
*
|
|
@@ -339,7 +352,7 @@ interface RgbColorOptions {
|
|
|
339
352
|
* const semiRed = createRgbColor({ value: "FF0000", transforms: { alpha: 50000 } });
|
|
340
353
|
* ```
|
|
341
354
|
*/
|
|
342
|
-
declare const createRgbColor: (options: RgbColorOptions) =>
|
|
355
|
+
declare const createRgbColor: (options: RgbColorOptions) => string;
|
|
343
356
|
//#endregion
|
|
344
357
|
//#region src/drawingml/color/sc-rgb-color.d.ts
|
|
345
358
|
/**
|
|
@@ -347,16 +360,16 @@ declare const createRgbColor: (options: RgbColorOptions) => XmlComponent;
|
|
|
347
360
|
*/
|
|
348
361
|
interface ScRgbColorOptions {
|
|
349
362
|
/** Red percentage (e.g., "50%" or "100%") */
|
|
350
|
-
|
|
363
|
+
r: string;
|
|
351
364
|
/** Green percentage (e.g., "50%" or "100%") */
|
|
352
|
-
|
|
365
|
+
g: string;
|
|
353
366
|
/** Blue percentage (e.g., "50%" or "100%") */
|
|
354
|
-
|
|
367
|
+
b: string;
|
|
355
368
|
/** Optional color transforms */
|
|
356
|
-
|
|
369
|
+
transforms?: ColorTransformOptions;
|
|
357
370
|
}
|
|
358
371
|
/**
|
|
359
|
-
* Creates an scRGB color element.
|
|
372
|
+
* Creates an scRGB color element as an XML string.
|
|
360
373
|
*
|
|
361
374
|
* Specifies a color using percentage-based RGB values.
|
|
362
375
|
*
|
|
@@ -379,7 +392,7 @@ interface ScRgbColorOptions {
|
|
|
379
392
|
* const semiRed = createScRgbColor({ r: "100%", g: "0%", b: "0%", transforms: { alpha: 50000 } });
|
|
380
393
|
* ```
|
|
381
394
|
*/
|
|
382
|
-
declare const createScRgbColor: (options: ScRgbColorOptions) =>
|
|
395
|
+
declare const createScRgbColor: (options: ScRgbColorOptions) => string;
|
|
383
396
|
//#endregion
|
|
384
397
|
//#region src/drawingml/color/scheme-color.d.ts
|
|
385
398
|
/**
|
|
@@ -387,9 +400,9 @@ declare const createScRgbColor: (options: ScRgbColorOptions) => XmlComponent;
|
|
|
387
400
|
*/
|
|
388
401
|
interface SchemeColorOptions {
|
|
389
402
|
/** Scheme color value */
|
|
390
|
-
|
|
403
|
+
value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
391
404
|
/** Optional color transforms */
|
|
392
|
-
|
|
405
|
+
transforms?: ColorTransformOptions;
|
|
393
406
|
}
|
|
394
407
|
/**
|
|
395
408
|
* Scheme color values for theme-based colors.
|
|
@@ -416,7 +429,7 @@ declare const SchemeColor: {
|
|
|
416
429
|
readonly PHCLR: "phClr";
|
|
417
430
|
};
|
|
418
431
|
/**
|
|
419
|
-
* Creates a scheme color element.
|
|
432
|
+
* Creates a scheme color element as an XML string.
|
|
420
433
|
*
|
|
421
434
|
* Specifies a color using a theme color scheme reference.
|
|
422
435
|
*
|
|
@@ -440,7 +453,7 @@ declare const SchemeColor: {
|
|
|
440
453
|
* });
|
|
441
454
|
* ```
|
|
442
455
|
*/
|
|
443
|
-
declare const createSchemeColor: (options: SchemeColorOptions) =>
|
|
456
|
+
declare const createSchemeColor: (options: SchemeColorOptions) => string;
|
|
444
457
|
//#endregion
|
|
445
458
|
//#region src/drawingml/color/system-color.d.ts
|
|
446
459
|
/**
|
|
@@ -495,14 +508,14 @@ declare const SystemColor: {
|
|
|
495
508
|
*/
|
|
496
509
|
interface SystemColorOptions {
|
|
497
510
|
/** System color value */
|
|
498
|
-
|
|
511
|
+
value: (typeof SystemColor)[keyof typeof SystemColor];
|
|
499
512
|
/** Last known RGB color value (optional fallback) */
|
|
500
|
-
|
|
513
|
+
lastClr?: string;
|
|
501
514
|
/** Optional color transforms */
|
|
502
|
-
|
|
515
|
+
transforms?: ColorTransformOptions;
|
|
503
516
|
}
|
|
504
517
|
/**
|
|
505
|
-
* Creates a system color element.
|
|
518
|
+
* Creates a system color element as an XML string.
|
|
506
519
|
*
|
|
507
520
|
* References a system-defined UI color (e.g., window background, button face).
|
|
508
521
|
*
|
|
@@ -517,7 +530,7 @@ interface SystemColorOptions {
|
|
|
517
530
|
* </xsd:complexType>
|
|
518
531
|
* ```
|
|
519
532
|
*/
|
|
520
|
-
declare const createSystemColor: (options: SystemColorOptions) =>
|
|
533
|
+
declare const createSystemColor: (options: SystemColorOptions) => string;
|
|
521
534
|
//#endregion
|
|
522
535
|
//#region src/drawingml/color/solid-fill.d.ts
|
|
523
536
|
/**
|
|
@@ -527,9 +540,9 @@ declare const createSystemColor: (options: SystemColorOptions) => XmlComponent;
|
|
|
527
540
|
* RGB, scheme, HSL, system, and preset colors.
|
|
528
541
|
*/
|
|
529
542
|
type SolidFillOptions = ScRgbColorOptions | RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions;
|
|
530
|
-
declare const createColorElement: (color: SolidFillOptions) =>
|
|
543
|
+
declare const createColorElement: (color: SolidFillOptions) => string;
|
|
531
544
|
/**
|
|
532
|
-
* Creates a solid fill element.
|
|
545
|
+
* Creates a solid fill element as an XML string.
|
|
533
546
|
*
|
|
534
547
|
* Specifies a solid color fill using any supported color type.
|
|
535
548
|
*
|
|
@@ -555,7 +568,7 @@ declare const createColorElement: (color: SolidFillOptions) => XmlComponent;
|
|
|
555
568
|
* const hslFill = createSolidFill({ hue: 120000, saturation: 100000, luminance: 50000 });
|
|
556
569
|
* ```
|
|
557
570
|
*/
|
|
558
|
-
declare const createSolidFill: (options: SolidFillOptions) =>
|
|
571
|
+
declare const createSolidFill: (options: SolidFillOptions) => string;
|
|
559
572
|
//#endregion
|
|
560
573
|
//#region src/drawingml/blip/blip-effects.d.ts
|
|
561
574
|
/**
|
|
@@ -569,9 +582,9 @@ declare const createSolidFill: (options: SolidFillOptions) => XmlComponent;
|
|
|
569
582
|
*/
|
|
570
583
|
interface LuminanceEffectOptions$1 {
|
|
571
584
|
/** Brightness adjustment in percentage points (-100 to 100). Default 0. */
|
|
572
|
-
|
|
585
|
+
bright?: number;
|
|
573
586
|
/** Contrast adjustment in percentage points (-100 to 100). Default 0. */
|
|
574
|
-
|
|
587
|
+
contrast?: number;
|
|
575
588
|
}
|
|
576
589
|
/**
|
|
577
590
|
* Options for HSL effect.
|
|
@@ -585,11 +598,11 @@ interface LuminanceEffectOptions$1 {
|
|
|
585
598
|
*/
|
|
586
599
|
interface HSLEffectOptions$1 {
|
|
587
600
|
/** Hue rotation in 60000ths of a degree. Default 0. */
|
|
588
|
-
|
|
601
|
+
hue?: number;
|
|
589
602
|
/** Saturation adjustment in percentage points (-100 to 100). Default 0. */
|
|
590
|
-
|
|
603
|
+
saturation?: number;
|
|
591
604
|
/** Luminance adjustment in percentage points (-100 to 100). Default 0. */
|
|
592
|
-
|
|
605
|
+
luminance?: number;
|
|
593
606
|
}
|
|
594
607
|
/**
|
|
595
608
|
* Options for tint effect.
|
|
@@ -602,9 +615,9 @@ interface HSLEffectOptions$1 {
|
|
|
602
615
|
*/
|
|
603
616
|
interface TintEffectOptions$1 {
|
|
604
617
|
/** Hue in 60000ths of a degree. Default 0. */
|
|
605
|
-
|
|
618
|
+
hue?: number;
|
|
606
619
|
/** Amount in percentage points (0 to 100). Default 0. */
|
|
607
|
-
|
|
620
|
+
amount?: number;
|
|
608
621
|
}
|
|
609
622
|
/**
|
|
610
623
|
* Options for duotone effect.
|
|
@@ -616,9 +629,9 @@ interface TintEffectOptions$1 {
|
|
|
616
629
|
*/
|
|
617
630
|
interface DuotoneEffectOptions$1 {
|
|
618
631
|
/** First color (dark). */
|
|
619
|
-
|
|
632
|
+
color1: SolidFillOptions;
|
|
620
633
|
/** Second color (light). */
|
|
621
|
-
|
|
634
|
+
color2: SolidFillOptions;
|
|
622
635
|
}
|
|
623
636
|
/**
|
|
624
637
|
* Options for biLevel (black & white threshold) effect.
|
|
@@ -630,7 +643,7 @@ interface DuotoneEffectOptions$1 {
|
|
|
630
643
|
*/
|
|
631
644
|
interface BiLevelEffectOptions {
|
|
632
645
|
/** Threshold percentage (0 to 100). Pixels above are white, below are black. */
|
|
633
|
-
|
|
646
|
+
threshold: number;
|
|
634
647
|
}
|
|
635
648
|
/**
|
|
636
649
|
* Options for alpha replace effect.
|
|
@@ -642,7 +655,7 @@ interface BiLevelEffectOptions {
|
|
|
642
655
|
*/
|
|
643
656
|
interface AlphaReplaceEffectOptions$1 {
|
|
644
657
|
/** Alpha percentage (0 = fully transparent, 100 = fully opaque). */
|
|
645
|
-
|
|
658
|
+
amount: number;
|
|
646
659
|
}
|
|
647
660
|
/**
|
|
648
661
|
* Options for alpha bi-level effect.
|
|
@@ -654,7 +667,7 @@ interface AlphaReplaceEffectOptions$1 {
|
|
|
654
667
|
*/
|
|
655
668
|
interface AlphaBiLevelEffectOptions$1 {
|
|
656
669
|
/** Threshold percentage (0 to 100). Alpha above is fully opaque, below is fully transparent. */
|
|
657
|
-
|
|
670
|
+
threshold: number;
|
|
658
671
|
}
|
|
659
672
|
/**
|
|
660
673
|
* Options for alpha modulate fixed effect.
|
|
@@ -666,7 +679,7 @@ interface AlphaBiLevelEffectOptions$1 {
|
|
|
666
679
|
*/
|
|
667
680
|
interface AlphaModulateFixedEffectOptions$1 {
|
|
668
681
|
/** Alpha amount in percentage (0 to 100). Default 100. */
|
|
669
|
-
|
|
682
|
+
amount?: number;
|
|
670
683
|
}
|
|
671
684
|
/**
|
|
672
685
|
* Options for color change effect.
|
|
@@ -680,11 +693,11 @@ interface AlphaModulateFixedEffectOptions$1 {
|
|
|
680
693
|
*/
|
|
681
694
|
interface ColorChangeEffectOptions$1 {
|
|
682
695
|
/** Source color to change from. */
|
|
683
|
-
|
|
696
|
+
from: SolidFillOptions;
|
|
684
697
|
/** Target color to change to. */
|
|
685
|
-
|
|
698
|
+
to: SolidFillOptions;
|
|
686
699
|
/** Whether to use alpha channel. Default true. */
|
|
687
|
-
|
|
700
|
+
useAlpha?: boolean;
|
|
688
701
|
}
|
|
689
702
|
/**
|
|
690
703
|
* Options for color replace effect.
|
|
@@ -696,7 +709,7 @@ interface ColorChangeEffectOptions$1 {
|
|
|
696
709
|
*/
|
|
697
710
|
interface ColorReplaceEffectOptions {
|
|
698
711
|
/** Replacement color. */
|
|
699
|
-
|
|
712
|
+
color: SolidFillOptions;
|
|
700
713
|
}
|
|
701
714
|
/**
|
|
702
715
|
* Options for blur effect on blip.
|
|
@@ -709,51 +722,51 @@ interface ColorReplaceEffectOptions {
|
|
|
709
722
|
*/
|
|
710
723
|
interface BlipBlurEffectOptions {
|
|
711
724
|
/** Blur radius in EMUs. Default 0. */
|
|
712
|
-
|
|
725
|
+
radius?: number;
|
|
713
726
|
/** Whether to grow the blur boundary. Default true. */
|
|
714
|
-
|
|
727
|
+
grow?: boolean;
|
|
715
728
|
}
|
|
716
729
|
/**
|
|
717
730
|
* All blip image adjustment effects.
|
|
718
731
|
*/
|
|
719
732
|
interface BlipEffectsOptions {
|
|
720
733
|
/** Grayscale effect (no options needed). */
|
|
721
|
-
|
|
734
|
+
grayscale?: boolean;
|
|
722
735
|
/** Luminance (brightness/contrast) effect. */
|
|
723
|
-
|
|
736
|
+
luminance?: LuminanceEffectOptions$1;
|
|
724
737
|
/** HSL adjustment effect. */
|
|
725
|
-
|
|
738
|
+
hsl?: HSLEffectOptions$1;
|
|
726
739
|
/** Tint effect. */
|
|
727
|
-
|
|
740
|
+
tint?: TintEffectOptions$1;
|
|
728
741
|
/** Duotone effect (two-color mapping). */
|
|
729
|
-
|
|
742
|
+
duotone?: DuotoneEffectOptions$1;
|
|
730
743
|
/** Black & white threshold effect. */
|
|
731
|
-
|
|
744
|
+
biLevel?: BiLevelEffectOptions;
|
|
732
745
|
/** Alpha ceiling effect (no options needed). */
|
|
733
|
-
|
|
746
|
+
alphaCeiling?: boolean;
|
|
734
747
|
/** Alpha floor effect (no options needed). */
|
|
735
|
-
|
|
748
|
+
alphaFloor?: boolean;
|
|
736
749
|
/** Alpha inverse effect (with optional color). */
|
|
737
|
-
|
|
750
|
+
alphaInverse?: SolidFillOptions;
|
|
738
751
|
/** Alpha modulate fixed effect. */
|
|
739
|
-
|
|
752
|
+
alphaModFix?: AlphaModulateFixedEffectOptions$1;
|
|
740
753
|
/** Alpha replace effect. */
|
|
741
|
-
|
|
754
|
+
alphaRepl?: AlphaReplaceEffectOptions$1;
|
|
742
755
|
/** Alpha bi-level effect. */
|
|
743
|
-
|
|
756
|
+
alphaBiLevel?: AlphaBiLevelEffectOptions$1;
|
|
744
757
|
/** Color change effect. */
|
|
745
|
-
|
|
758
|
+
colorChange?: ColorChangeEffectOptions$1;
|
|
746
759
|
/** Color replace effect. */
|
|
747
|
-
|
|
760
|
+
colorRepl?: ColorReplaceEffectOptions;
|
|
748
761
|
/** Blur effect on blip. */
|
|
749
|
-
|
|
762
|
+
blur?: BlipBlurEffectOptions;
|
|
750
763
|
}
|
|
751
764
|
/**
|
|
752
765
|
* Creates blip effect elements from BlipEffectsOptions.
|
|
753
766
|
*
|
|
754
|
-
* @returns Array of XML
|
|
767
|
+
* @returns Array of XML strings representing blip effects
|
|
755
768
|
*/
|
|
756
|
-
declare const createBlipEffects: (options: BlipEffectsOptions) =>
|
|
769
|
+
declare const createBlipEffects: (options: BlipEffectsOptions) => string[];
|
|
757
770
|
//#endregion
|
|
758
771
|
//#region src/drawingml/blip/source-rectangle.d.ts
|
|
759
772
|
/**
|
|
@@ -764,13 +777,13 @@ declare const createBlipEffects: (options: BlipEffectsOptions) => XmlComponent[]
|
|
|
764
777
|
*/
|
|
765
778
|
interface SourceRectangleOptions {
|
|
766
779
|
/** Left inset percentage (0-100000) */
|
|
767
|
-
|
|
780
|
+
left?: number;
|
|
768
781
|
/** Top inset percentage (0-100000) */
|
|
769
|
-
|
|
782
|
+
top?: number;
|
|
770
783
|
/** Right inset percentage (0-100000) */
|
|
771
|
-
|
|
784
|
+
right?: number;
|
|
772
785
|
/** Bottom inset percentage (0-100000) */
|
|
773
|
-
|
|
786
|
+
bottom?: number;
|
|
774
787
|
}
|
|
775
788
|
/**
|
|
776
789
|
* Creates a source rectangle element for blip fill cropping.
|
|
@@ -796,7 +809,7 @@ interface SourceRectangleOptions {
|
|
|
796
809
|
* createSourceRectangle({ left: 10000, right: 10000 });
|
|
797
810
|
* ```
|
|
798
811
|
*/
|
|
799
|
-
declare const createSourceRectangle: (options?: SourceRectangleOptions) =>
|
|
812
|
+
declare const createSourceRectangle: (options?: SourceRectangleOptions) => string;
|
|
800
813
|
//#endregion
|
|
801
814
|
//#region src/drawingml/blip/tile.d.ts
|
|
802
815
|
/**
|
|
@@ -834,17 +847,17 @@ declare const TileAlignment: {
|
|
|
834
847
|
*/
|
|
835
848
|
interface TileOptions {
|
|
836
849
|
/** Horizontal offset for the tile origin (in EMUs) */
|
|
837
|
-
|
|
850
|
+
tx?: number;
|
|
838
851
|
/** Vertical offset for the tile origin (in EMUs) */
|
|
839
|
-
|
|
852
|
+
ty?: number;
|
|
840
853
|
/** Horizontal scale factor as percentage (e.g., 50 = 50%) */
|
|
841
|
-
|
|
854
|
+
sx?: number;
|
|
842
855
|
/** Vertical scale factor as percentage (e.g., 50 = 50%) */
|
|
843
|
-
|
|
856
|
+
sy?: number;
|
|
844
857
|
/** Flip mode for alternating tiles */
|
|
845
|
-
|
|
858
|
+
flip?: (typeof TileFlipMode$1)[keyof typeof TileFlipMode$1];
|
|
846
859
|
/** Alignment of the first tile within the shape */
|
|
847
|
-
|
|
860
|
+
align?: (typeof TileAlignment)[keyof typeof TileAlignment];
|
|
848
861
|
}
|
|
849
862
|
/**
|
|
850
863
|
* Creates a tile fill mode element for blip fills.
|
|
@@ -875,7 +888,7 @@ interface TileOptions {
|
|
|
875
888
|
* createTileInfo({ flip: "XY", align: "CENTER" });
|
|
876
889
|
* ```
|
|
877
890
|
*/
|
|
878
|
-
declare const createTileInfo: (options?: TileOptions) =>
|
|
891
|
+
declare const createTileInfo: (options?: TileOptions) => string;
|
|
879
892
|
//#endregion
|
|
880
893
|
//#region src/drawingml/fill/gradient-fill.d.ts
|
|
881
894
|
/**
|
|
@@ -883,9 +896,9 @@ declare const createTileInfo: (options?: TileOptions) => BuilderElement<{}>;
|
|
|
883
896
|
*/
|
|
884
897
|
interface GradientStop {
|
|
885
898
|
/** Position of the color stop (0-100000) */
|
|
886
|
-
|
|
899
|
+
position: number;
|
|
887
900
|
/** Color at this stop */
|
|
888
|
-
|
|
901
|
+
color: SolidFillOptions;
|
|
889
902
|
}
|
|
890
903
|
/**
|
|
891
904
|
* Path shade type for radial gradients.
|
|
@@ -921,9 +934,9 @@ declare const TileFlipMode: {
|
|
|
921
934
|
*/
|
|
922
935
|
interface LinearShadeOptions {
|
|
923
936
|
/** Angle in 60,000ths of a degree (e.g., 5400000 = 90°) */
|
|
924
|
-
|
|
937
|
+
angle?: number;
|
|
925
938
|
/** Whether the angle scales with the shape */
|
|
926
|
-
|
|
939
|
+
scaled?: boolean;
|
|
927
940
|
}
|
|
928
941
|
/**
|
|
929
942
|
* Relative rectangle (CT_RelativeRect) with percentage offsets.
|
|
@@ -940,26 +953,26 @@ interface LinearShadeOptions {
|
|
|
940
953
|
*/
|
|
941
954
|
interface RelativeRect {
|
|
942
955
|
/** Left offset percentage (e.g., "0%") */
|
|
943
|
-
|
|
956
|
+
left?: string;
|
|
944
957
|
/** Top offset percentage (e.g., "0%") */
|
|
945
|
-
|
|
958
|
+
top?: string;
|
|
946
959
|
/** Right offset percentage (e.g., "0%") */
|
|
947
|
-
|
|
960
|
+
right?: string;
|
|
948
961
|
/** Bottom offset percentage (e.g., "0%") */
|
|
949
|
-
|
|
962
|
+
bottom?: string;
|
|
950
963
|
}
|
|
951
964
|
/**
|
|
952
965
|
* Options for path (radial) gradient shading.
|
|
953
966
|
*/
|
|
954
967
|
interface PathShadeOptions {
|
|
955
968
|
/** Path type */
|
|
956
|
-
|
|
969
|
+
path?: (typeof PathShadeType)[keyof typeof PathShadeType];
|
|
957
970
|
/**
|
|
958
971
|
* Fill-to rectangle for path gradient.
|
|
959
972
|
*
|
|
960
973
|
* Defines the rectangle to which the gradient fills.
|
|
961
974
|
*/
|
|
962
|
-
|
|
975
|
+
fillToRect?: RelativeRect;
|
|
963
976
|
}
|
|
964
977
|
/**
|
|
965
978
|
* Gradient shade options (linear or path).
|
|
@@ -983,23 +996,23 @@ type GradientShadeOptions = LinearShadeOptions | PathShadeOptions;
|
|
|
983
996
|
*/
|
|
984
997
|
interface GradientFillOptions {
|
|
985
998
|
/** Gradient color stops (minimum 2) */
|
|
986
|
-
|
|
999
|
+
stops: readonly GradientStop[];
|
|
987
1000
|
/** Shade type (linear or path) */
|
|
988
|
-
|
|
1001
|
+
shade?: GradientShadeOptions;
|
|
989
1002
|
/**
|
|
990
1003
|
* Tile flip mode.
|
|
991
1004
|
*
|
|
992
1005
|
* Controls how the gradient is flipped when tiled.
|
|
993
1006
|
*/
|
|
994
|
-
|
|
1007
|
+
flip?: (typeof TileFlipMode)[keyof typeof TileFlipMode];
|
|
995
1008
|
/**
|
|
996
1009
|
* Tile rectangle for gradient tiling.
|
|
997
1010
|
*
|
|
998
1011
|
* Defines the rectangle used for gradient tiling.
|
|
999
1012
|
*/
|
|
1000
|
-
|
|
1013
|
+
tileRect?: RelativeRect;
|
|
1001
1014
|
/** Whether gradient rotates with the shape */
|
|
1002
|
-
|
|
1015
|
+
rotateWithShape?: boolean;
|
|
1003
1016
|
}
|
|
1004
1017
|
/**
|
|
1005
1018
|
* Creates a gradient stop element (a:gs).
|
|
@@ -1010,7 +1023,7 @@ interface GradientFillOptions {
|
|
|
1010
1023
|
* createGradientStop({ position: 100000, color: { value: "0000FF" } });
|
|
1011
1024
|
* ```
|
|
1012
1025
|
*/
|
|
1013
|
-
declare const createGradientStop: (stop: GradientStop) =>
|
|
1026
|
+
declare const createGradientStop: (stop: GradientStop) => string;
|
|
1014
1027
|
/**
|
|
1015
1028
|
* Creates a gradient fill element.
|
|
1016
1029
|
*
|
|
@@ -1037,7 +1050,7 @@ declare const createGradientStop: (stop: GradientStop) => XmlComponent;
|
|
|
1037
1050
|
* });
|
|
1038
1051
|
* ```
|
|
1039
1052
|
*/
|
|
1040
|
-
declare const createGradientFill: (options: GradientFillOptions) =>
|
|
1053
|
+
declare const createGradientFill: (options: GradientFillOptions) => string;
|
|
1041
1054
|
//#endregion
|
|
1042
1055
|
//#region src/drawingml/fill/fill-options.d.ts
|
|
1043
1056
|
/**
|
|
@@ -1045,35 +1058,35 @@ declare const createGradientFill: (options: GradientFillOptions) => XmlComponent
|
|
|
1045
1058
|
* Position is 0-100 (percentage), color is a hex string or SolidFillOptions.
|
|
1046
1059
|
*/
|
|
1047
1060
|
interface GradientStopOptions {
|
|
1048
|
-
|
|
1049
|
-
|
|
1061
|
+
position: number;
|
|
1062
|
+
color: string | SolidFillOptions;
|
|
1050
1063
|
}
|
|
1051
1064
|
/**
|
|
1052
1065
|
* Blip fill options (image fill) for DrawingML shapes.
|
|
1053
1066
|
*/
|
|
1054
1067
|
interface BlipFillConfigOptions {
|
|
1055
1068
|
/** Image data (raw bytes) */
|
|
1056
|
-
|
|
1069
|
+
data: Uint8Array | ArrayBuffer | Buffer;
|
|
1057
1070
|
/** Image type */
|
|
1058
|
-
|
|
1071
|
+
imageType: "png" | "jpg" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
|
|
1059
1072
|
/** DPI of the image */
|
|
1060
|
-
|
|
1073
|
+
dpi?: number;
|
|
1061
1074
|
/** Whether the fill rotates with the shape */
|
|
1062
|
-
|
|
1075
|
+
rotWithShape?: boolean;
|
|
1063
1076
|
/** Image adjustment effects (brightness, contrast, grayscale, etc.) */
|
|
1064
|
-
|
|
1077
|
+
blipEffects?: BlipEffectsOptions;
|
|
1065
1078
|
/** Source rectangle for cropping */
|
|
1066
|
-
|
|
1079
|
+
srcRect?: SourceRectangleOptions;
|
|
1067
1080
|
/** Tile fill mode (if omitted, defaults to stretch) */
|
|
1068
|
-
|
|
1081
|
+
tile?: TileOptions;
|
|
1069
1082
|
}
|
|
1070
1083
|
/**
|
|
1071
1084
|
* Media data extracted from a blip fill, for registration with the document's media store.
|
|
1072
1085
|
*/
|
|
1073
1086
|
interface BlipFillMediaData {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1087
|
+
fileName: string;
|
|
1088
|
+
data: Uint8Array;
|
|
1089
|
+
type: string;
|
|
1077
1090
|
}
|
|
1078
1091
|
/**
|
|
1079
1092
|
* Fill options — discriminated union for DrawingML EG_FillProperties.
|
|
@@ -1103,28 +1116,28 @@ interface BlipFillMediaData {
|
|
|
1103
1116
|
* fill: { type: "group" }
|
|
1104
1117
|
*/
|
|
1105
1118
|
type FillOptions = string | {
|
|
1106
|
-
|
|
1107
|
-
|
|
1119
|
+
type: "solid";
|
|
1120
|
+
color: string | SolidFillOptions;
|
|
1108
1121
|
} | {
|
|
1109
|
-
|
|
1122
|
+
type: "none";
|
|
1110
1123
|
} | {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1124
|
+
type: "gradient";
|
|
1125
|
+
angle?: number;
|
|
1126
|
+
scaled?: boolean;
|
|
1127
|
+
path?: "shape" | "circle" | "rect";
|
|
1128
|
+
stops: readonly GradientStopOptions[];
|
|
1116
1129
|
} | {
|
|
1117
|
-
|
|
1118
|
-
|
|
1130
|
+
type: "gradient";
|
|
1131
|
+
options: GradientFillOptions;
|
|
1119
1132
|
} | ({
|
|
1120
|
-
|
|
1133
|
+
type: "blip";
|
|
1121
1134
|
} & BlipFillConfigOptions) | {
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1135
|
+
type: "pattern";
|
|
1136
|
+
pattern: string;
|
|
1137
|
+
foregroundColor?: string | SolidFillOptions;
|
|
1138
|
+
backgroundColor?: string | SolidFillOptions;
|
|
1126
1139
|
} | {
|
|
1127
|
-
|
|
1140
|
+
type: "group";
|
|
1128
1141
|
};
|
|
1129
1142
|
/**
|
|
1130
1143
|
* Extracts media data from a blip fill option, if present.
|
|
@@ -1135,9 +1148,9 @@ type FillOptions = string | {
|
|
|
1135
1148
|
*/
|
|
1136
1149
|
declare const extractBlipFillMedia: (fill: FillOptions) => BlipFillMediaData | undefined;
|
|
1137
1150
|
/**
|
|
1138
|
-
* Builds a DrawingML fill
|
|
1151
|
+
* Builds a DrawingML fill XML string from a FillOptions config.
|
|
1139
1152
|
*/
|
|
1140
|
-
declare const buildFill: (options: FillOptions) =>
|
|
1153
|
+
declare const buildFill: (options: FillOptions) => string;
|
|
1141
1154
|
//#endregion
|
|
1142
1155
|
//#region src/drawingml/fill/no-fill.d.ts
|
|
1143
1156
|
/**
|
|
@@ -1155,7 +1168,7 @@ declare const buildFill: (options: FillOptions) => XmlComponent;
|
|
|
1155
1168
|
* const noFill = createNoFill();
|
|
1156
1169
|
* ```
|
|
1157
1170
|
*/
|
|
1158
|
-
declare const createNoFill: () =>
|
|
1171
|
+
declare const createNoFill: () => string;
|
|
1159
1172
|
//#endregion
|
|
1160
1173
|
//#region src/drawingml/fill/pattern-fill.d.ts
|
|
1161
1174
|
/**
|
|
@@ -1244,11 +1257,11 @@ declare const PresetPattern: {
|
|
|
1244
1257
|
*/
|
|
1245
1258
|
interface PatternFillOptions {
|
|
1246
1259
|
/** Preset pattern type */
|
|
1247
|
-
|
|
1260
|
+
pattern: (typeof PresetPattern)[keyof typeof PresetPattern];
|
|
1248
1261
|
/** Foreground color */
|
|
1249
|
-
|
|
1262
|
+
foregroundColor?: SolidFillOptions;
|
|
1250
1263
|
/** Background color */
|
|
1251
|
-
|
|
1264
|
+
backgroundColor?: SolidFillOptions;
|
|
1252
1265
|
}
|
|
1253
1266
|
/**
|
|
1254
1267
|
* Creates a pattern fill element (a:pattFill).
|
|
@@ -1284,7 +1297,7 @@ interface PatternFillOptions {
|
|
|
1284
1297
|
* });
|
|
1285
1298
|
* ```
|
|
1286
1299
|
*/
|
|
1287
|
-
declare const createPatternFill: (options: PatternFillOptions) =>
|
|
1300
|
+
declare const createPatternFill: (options: PatternFillOptions) => string;
|
|
1288
1301
|
//#endregion
|
|
1289
1302
|
//#region src/drawingml/fill/group-fill.d.ts
|
|
1290
1303
|
/**
|
|
@@ -1305,7 +1318,692 @@ declare const createPatternFill: (options: PatternFillOptions) => XmlComponent;
|
|
|
1305
1318
|
* createGroupFill();
|
|
1306
1319
|
* ```
|
|
1307
1320
|
*/
|
|
1308
|
-
declare const createGroupFill: () =>
|
|
1321
|
+
declare const createGroupFill: () => string;
|
|
1322
|
+
//#endregion
|
|
1323
|
+
//#region src/opc/app-properties.d.ts
|
|
1324
|
+
/** Static app properties XML constant. */
|
|
1325
|
+
declare const APP_PROPS_XML = "<Properties xmlns=\"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\" xmlns:vt=\"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\"><Application>Microsoft Office Word</Application></Properties>";
|
|
1326
|
+
//#endregion
|
|
1327
|
+
//#region src/opc/relationships.d.ts
|
|
1328
|
+
type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramLayout" | "http://schemas.microsoft.com/office/2007/relationships/diagramStyle" | "http://schemas.microsoft.com/office/2007/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/bibliography" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideSyncProperties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" | "http://schemas.microsoft.com/office/2007/relationships/media" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath";
|
|
1329
|
+
declare const TargetModeType: {
|
|
1330
|
+
readonly EXTERNAL: "External";
|
|
1331
|
+
};
|
|
1332
|
+
/**
|
|
1333
|
+
* Manages OOXML relationship entries and serializes to XML.
|
|
1334
|
+
*
|
|
1335
|
+
* Standalone class — no XmlComponent inheritance.
|
|
1336
|
+
* Pure string concatenation for zero-allocation XML output.
|
|
1337
|
+
*/
|
|
1338
|
+
declare class Relationships {
|
|
1339
|
+
private entries;
|
|
1340
|
+
addRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): void;
|
|
1341
|
+
get relationshipCount(): number;
|
|
1342
|
+
/** Directly builds XML string — zero intermediate tree allocation. */
|
|
1343
|
+
serialize(): string;
|
|
1344
|
+
}
|
|
1345
|
+
//#endregion
|
|
1346
|
+
//#region src/opc/content-types.d.ts
|
|
1347
|
+
/**
|
|
1348
|
+
* Content Types components for OPC (Open Packaging Convention).
|
|
1349
|
+
*
|
|
1350
|
+
* Provides Default and Override elements used in [Content_Types].xml
|
|
1351
|
+
* to map file extensions and part paths to MIME content types.
|
|
1352
|
+
*
|
|
1353
|
+
* Reference: ECMA-376 Part 2, Section 10.1
|
|
1354
|
+
*
|
|
1355
|
+
* @module
|
|
1356
|
+
*/
|
|
1357
|
+
interface DefaultAttributes {
|
|
1358
|
+
readonly contentType: string;
|
|
1359
|
+
readonly extension?: string;
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* Creates a Default element mapping a file extension to a MIME content type.
|
|
1363
|
+
*/
|
|
1364
|
+
declare const createDefault: (contentType: string, extension?: string) => string;
|
|
1365
|
+
interface OverrideAttributes {
|
|
1366
|
+
readonly contentType: string;
|
|
1367
|
+
readonly partName?: string;
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Creates an Override element mapping a specific part path to a MIME content type.
|
|
1371
|
+
*/
|
|
1372
|
+
declare const createOverride: (contentType: string, partName?: string) => string;
|
|
1373
|
+
//#endregion
|
|
1374
|
+
//#region src/opc/core.d.ts
|
|
1375
|
+
type IXmlableObject = Readonly<Record<string, unknown>>;
|
|
1376
|
+
interface CoreProperties {
|
|
1377
|
+
title?: string;
|
|
1378
|
+
subject?: string;
|
|
1379
|
+
creator?: string;
|
|
1380
|
+
keywords?: string;
|
|
1381
|
+
description?: string;
|
|
1382
|
+
lastModifiedBy?: string;
|
|
1383
|
+
revision?: string;
|
|
1384
|
+
created?: string;
|
|
1385
|
+
modified?: string;
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* Parse core properties from an already-parsed XML element.
|
|
1389
|
+
* Shared by docx and pptx to extract Dublin Core metadata.
|
|
1390
|
+
*/
|
|
1391
|
+
declare function parseCorePropsElement(el: Element | undefined): CoreProperties;
|
|
1392
|
+
/**
|
|
1393
|
+
* Build a cp:coreProperties XML object from metadata.
|
|
1394
|
+
*
|
|
1395
|
+
* Shared by docx and pptx to avoid duplicating namespace declarations
|
|
1396
|
+
* and Dublin Core property construction.
|
|
1397
|
+
*/
|
|
1398
|
+
declare function buildCorePropertiesXml(opts: {
|
|
1399
|
+
readonly title?: string;
|
|
1400
|
+
readonly subject?: string;
|
|
1401
|
+
readonly creator?: string;
|
|
1402
|
+
readonly keywords?: string;
|
|
1403
|
+
readonly description?: string;
|
|
1404
|
+
readonly lastModifiedBy?: string;
|
|
1405
|
+
readonly revision?: number;
|
|
1406
|
+
}): IXmlableObject;
|
|
1407
|
+
/**
|
|
1408
|
+
* Build a cp:coreProperties XML string directly (fast path).
|
|
1409
|
+
*
|
|
1410
|
+
* Shared by pptx and xlsx to bypass the toXml() → xml() pipeline.
|
|
1411
|
+
*/
|
|
1412
|
+
declare function buildCorePropertiesXmlString(opts: {
|
|
1413
|
+
readonly title?: string;
|
|
1414
|
+
readonly subject?: string;
|
|
1415
|
+
readonly creator?: string;
|
|
1416
|
+
readonly keywords?: string;
|
|
1417
|
+
readonly description?: string;
|
|
1418
|
+
readonly lastModifiedBy?: string;
|
|
1419
|
+
readonly revision?: number;
|
|
1420
|
+
}): string;
|
|
1421
|
+
//#endregion
|
|
1422
|
+
//#region src/opc/output.d.ts
|
|
1423
|
+
/**
|
|
1424
|
+
* Output type definitions for OOXML document export.
|
|
1425
|
+
*
|
|
1426
|
+
* @module
|
|
1427
|
+
*/
|
|
1428
|
+
interface OutputByType {
|
|
1429
|
+
readonly base64: string;
|
|
1430
|
+
readonly string: string;
|
|
1431
|
+
readonly text: string;
|
|
1432
|
+
readonly binarystring: string;
|
|
1433
|
+
readonly array: readonly number[];
|
|
1434
|
+
readonly uint8array: Uint8Array;
|
|
1435
|
+
readonly arraybuffer: ArrayBuffer;
|
|
1436
|
+
readonly blob: Blob;
|
|
1437
|
+
readonly nodebuffer: Buffer;
|
|
1438
|
+
}
|
|
1439
|
+
type OutputType = keyof OutputByType;
|
|
1440
|
+
declare const OoxmlMimeType: {
|
|
1441
|
+
readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
1442
|
+
readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
1443
|
+
readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
1444
|
+
};
|
|
1445
|
+
declare const convertOutput: <T extends OutputType>(data: Uint8Array, type: T, mimeType?: string) => OutputByType[T];
|
|
1446
|
+
//#endregion
|
|
1447
|
+
//#region src/opc/packer.d.ts
|
|
1448
|
+
type DataType = ArrayBufferLike | Blob | DataView | number[] | ReadableStream | string | Uint8Array;
|
|
1449
|
+
declare function toUint8Array(data: DataType): Uint8Array;
|
|
1450
|
+
interface XmlifyedFile {
|
|
1451
|
+
path: string;
|
|
1452
|
+
data: string | Uint8Array;
|
|
1453
|
+
}
|
|
1454
|
+
/** Default DEFLATE level for XML entries (SuperFast, matching MS Office). */
|
|
1455
|
+
declare const ZIP_DEFLATE_LEVEL = 1;
|
|
1456
|
+
/** Default level for media entries (STORE — no compression). */
|
|
1457
|
+
declare const ZIP_STORED_LEVEL = 0;
|
|
1458
|
+
/** Compression options for ZIP output (zlib levels 0-9, matching fflate). */
|
|
1459
|
+
interface CompressionOptions {
|
|
1460
|
+
/** DEFLATE level for XML files. Default: 1 (SuperFast, matching MS Office). */
|
|
1461
|
+
xml?: number;
|
|
1462
|
+
/** DEFLATE level for media files. Default: 0 (STORE, no compression). */
|
|
1463
|
+
media?: number;
|
|
1464
|
+
}
|
|
1465
|
+
/** Options for Packer output methods. */
|
|
1466
|
+
interface PackerOptions<T extends OutputType = "nodebuffer"> {
|
|
1467
|
+
/** Output format. Defaults to `"nodebuffer"` (Node.js Buffer). */
|
|
1468
|
+
type?: T;
|
|
1469
|
+
/** Custom XML/ZIP file overrides. */
|
|
1470
|
+
overrides?: XmlifyedFile[];
|
|
1471
|
+
/** Compression levels for ZIP entries. */
|
|
1472
|
+
compression?: CompressionOptions;
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Asynchronously compress files and convert to the requested output format.
|
|
1476
|
+
*
|
|
1477
|
+
* Uses fflate Web Workers for non-blocking DEFLATE compression.
|
|
1478
|
+
* XML entries use DEFLATE by default; media entries should explicitly set
|
|
1479
|
+
* `{ level: ZIP_STORED_LEVEL }` to avoid redundant compression.
|
|
1480
|
+
*/
|
|
1481
|
+
declare const zipAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => Promise<OutputByType[T]>;
|
|
1482
|
+
/**
|
|
1483
|
+
* Synchronously compress files and convert to the requested output format.
|
|
1484
|
+
*
|
|
1485
|
+
* Uses synchronous DEFLATE compression for maximum throughput.
|
|
1486
|
+
* Blocks the event loop — prefer {@link zipAndConvert} in server contexts.
|
|
1487
|
+
*/
|
|
1488
|
+
declare const zipSyncAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => OutputByType[T];
|
|
1489
|
+
/**
|
|
1490
|
+
* Create a `ReadableStream<Uint8Array>` from compressed file entries.
|
|
1491
|
+
*
|
|
1492
|
+
* Uses fflate's `AsyncZipDeflate` for non-blocking DEFLATE compression.
|
|
1493
|
+
* `STORED` entries (media) pass through synchronously.
|
|
1494
|
+
* Works in both Node.js and browsers (Web Streams API).
|
|
1495
|
+
*/
|
|
1496
|
+
declare const createZipStream: (files: Zippable, defaultLevel?: number) => ReadableStream<Uint8Array>;
|
|
1497
|
+
/**
|
|
1498
|
+
* Compile function provided by each package to convert a file object into a Zippable map.
|
|
1499
|
+
*/
|
|
1500
|
+
type CompileFn<TFile> = (file: TFile, overrides?: XmlifyedFile[], mediaLevel?: number) => Zippable;
|
|
1501
|
+
/**
|
|
1502
|
+
* Packer interface returned by {@link createPacker}.
|
|
1503
|
+
*
|
|
1504
|
+
* Async methods use fflate Web Workers for non-blocking compression.
|
|
1505
|
+
* Sync methods use synchronous compression for maximum throughput in
|
|
1506
|
+
* CLI scripts and build tools.
|
|
1507
|
+
*/
|
|
1508
|
+
interface Packer<TFile> {
|
|
1509
|
+
/** Compile file to Zippable map (synchronous). */
|
|
1510
|
+
compile: CompileFn<TFile>;
|
|
1511
|
+
/** Generic async output — returns the requested OutputType. */
|
|
1512
|
+
pack<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): Promise<OutputByType[T]>;
|
|
1513
|
+
/** Generic sync output — returns the requested OutputType. */
|
|
1514
|
+
packSync<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): OutputByType[T];
|
|
1515
|
+
/** Async → `Promise<Uint8Array>` (like `Response.bytes()`). */
|
|
1516
|
+
toBytes(file: TFile, options?: PackerOptions): Promise<Uint8Array>;
|
|
1517
|
+
/** Sync → `Uint8Array`. */
|
|
1518
|
+
toBytesSync(file: TFile, options?: PackerOptions): Uint8Array;
|
|
1519
|
+
/** Async → `Promise<string>` (raw ZIP content as string). */
|
|
1520
|
+
toString(file: TFile, options?: PackerOptions): Promise<string>;
|
|
1521
|
+
/** Sync → `string`. */
|
|
1522
|
+
toStringSync(file: TFile, options?: PackerOptions): string;
|
|
1523
|
+
/** Async → `Promise<Buffer>` (Node.js). */
|
|
1524
|
+
toBuffer(file: TFile, options?: PackerOptions): Promise<Buffer>;
|
|
1525
|
+
/** Sync → `Buffer` (Node.js). */
|
|
1526
|
+
toBufferSync(file: TFile, options?: PackerOptions): Buffer;
|
|
1527
|
+
/** Async → `Promise<string>` (base64-encoded). */
|
|
1528
|
+
toBase64(file: TFile, options?: PackerOptions): Promise<string>;
|
|
1529
|
+
/** Sync → `string` (base64-encoded). */
|
|
1530
|
+
toBase64Sync(file: TFile, options?: PackerOptions): string;
|
|
1531
|
+
/** Async → `Promise<Blob>` (browser). */
|
|
1532
|
+
toBlob(file: TFile, options?: PackerOptions): Promise<Blob>;
|
|
1533
|
+
/** Sync → `Blob`. */
|
|
1534
|
+
toBlobSync(file: TFile, options?: PackerOptions): Blob;
|
|
1535
|
+
/** Async → `Promise<ArrayBuffer>`. */
|
|
1536
|
+
toArrayBuffer(file: TFile, options?: PackerOptions): Promise<ArrayBuffer>;
|
|
1537
|
+
/** Sync → `ArrayBuffer`. */
|
|
1538
|
+
toArrayBufferSync(file: TFile, options?: PackerOptions): ArrayBuffer;
|
|
1539
|
+
/** Streaming output via `ReadableStream<Uint8Array>` (cross-platform, uses Web Workers). */
|
|
1540
|
+
toStream(file: TFile, options?: PackerOptions): ReadableStream<Uint8Array>;
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
* Create a Packer object with all output format methods.
|
|
1544
|
+
*
|
|
1545
|
+
* Centralises the ZIP → convert pipeline and the streaming implementation
|
|
1546
|
+
* so that each OOXML package only needs to provide a `compile` function and
|
|
1547
|
+
* a MIME type.
|
|
1548
|
+
*/
|
|
1549
|
+
declare const createPacker: <TFile>(options: {
|
|
1550
|
+
readonly compile: CompileFn<TFile>;
|
|
1551
|
+
readonly mimeType: string;
|
|
1552
|
+
}) => Packer<TFile>;
|
|
1553
|
+
//#endregion
|
|
1554
|
+
//#region src/opc/parser.d.ts
|
|
1555
|
+
/**
|
|
1556
|
+
* Parsed OOXML archive backed by an unzipped ZIP map.
|
|
1557
|
+
*
|
|
1558
|
+
* Provides unstorage-style API (get/set/getRaw/setRaw/remove/has/keys)
|
|
1559
|
+
* for reading and modifying individual parts, then serializing back to a ZIP buffer.
|
|
1560
|
+
*/
|
|
1561
|
+
declare class ParsedArchive {
|
|
1562
|
+
private readonly zip;
|
|
1563
|
+
private readonly modified;
|
|
1564
|
+
private readonly wrapperCache;
|
|
1565
|
+
constructor(data: Uint8Array);
|
|
1566
|
+
/** Read an XML part as an Element tree. */
|
|
1567
|
+
get(path: string): Element | undefined;
|
|
1568
|
+
/** Write an XML part (Element → XML string). */
|
|
1569
|
+
set(path: string, element: Element): void;
|
|
1570
|
+
/** Read raw binary data (images, media, etc.). */
|
|
1571
|
+
getRaw(path: string): Uint8Array | undefined;
|
|
1572
|
+
/** Write raw binary data. */
|
|
1573
|
+
setRaw(path: string, data: Uint8Array): void;
|
|
1574
|
+
/** Remove a part. Returns true if it existed. */
|
|
1575
|
+
remove(path: string): boolean;
|
|
1576
|
+
/** Check if a part exists. */
|
|
1577
|
+
has(path: string): boolean;
|
|
1578
|
+
/** List all paths matching an optional prefix. */
|
|
1579
|
+
keys(prefix?: string): string[];
|
|
1580
|
+
/** Serialize back to a ZIP buffer, merging original zip + modifications. */
|
|
1581
|
+
save(): Uint8Array;
|
|
1582
|
+
}
|
|
1583
|
+
/** Parse an OOXML archive (.docx, .pptx, .xlsx) into a ParsedArchive. */
|
|
1584
|
+
declare function parseArchive(data: Uint8Array): ParsedArchive;
|
|
1585
|
+
//#endregion
|
|
1586
|
+
//#region src/util/compile.d.ts
|
|
1587
|
+
/**
|
|
1588
|
+
* Convert a mapping of XML files + overrides + media into a Zippable structure.
|
|
1589
|
+
*
|
|
1590
|
+
* Centralises the mapping→Zippable conversion shared by all three compilers.
|
|
1591
|
+
*/
|
|
1592
|
+
declare function compileMapping(mapping: Record<string, {
|
|
1593
|
+
data: string;
|
|
1594
|
+
path: string;
|
|
1595
|
+
}>, overrides?: XmlifyedFile[], media?: {
|
|
1596
|
+
data: Uint8Array;
|
|
1597
|
+
path: string;
|
|
1598
|
+
}[], mediaLevel?: number): Zippable$1;
|
|
1599
|
+
//#endregion
|
|
1600
|
+
//#region src/util/converters.d.ts
|
|
1601
|
+
/**
|
|
1602
|
+
* OOXML unit conversion utilities.
|
|
1603
|
+
*
|
|
1604
|
+
* @module
|
|
1605
|
+
*/
|
|
1606
|
+
/**
|
|
1607
|
+
* Converts millimeters to TWIP (twentieths of a point).
|
|
1608
|
+
*/
|
|
1609
|
+
declare const convertMillimetersToTwip: (millimeters: number) => number;
|
|
1610
|
+
/**
|
|
1611
|
+
* Converts inches to TWIP (twentieths of a point).
|
|
1612
|
+
*/
|
|
1613
|
+
declare const convertInchesToTwip: (inches: number) => number;
|
|
1614
|
+
/**
|
|
1615
|
+
* Converts pixels to EMU (96 DPI).
|
|
1616
|
+
*/
|
|
1617
|
+
declare const convertPixelsToEmu: (pixels: number) => number;
|
|
1618
|
+
/**
|
|
1619
|
+
* Converts EMU to pixels (96 DPI).
|
|
1620
|
+
*/
|
|
1621
|
+
declare const convertEmuToPixels: (emus: number) => number;
|
|
1622
|
+
/**
|
|
1623
|
+
* Converts inches to EMU.
|
|
1624
|
+
*/
|
|
1625
|
+
declare const convertInchesToEmu: (inches: number) => number;
|
|
1626
|
+
/**
|
|
1627
|
+
* Converts EMU to inches.
|
|
1628
|
+
*/
|
|
1629
|
+
declare const convertEmuToInches: (emus: number) => number;
|
|
1630
|
+
/**
|
|
1631
|
+
* Converts points to EMU.
|
|
1632
|
+
*/
|
|
1633
|
+
declare const convertPointsToEmu: (points: number) => number;
|
|
1634
|
+
/**
|
|
1635
|
+
* Converts EMU to points.
|
|
1636
|
+
*/
|
|
1637
|
+
declare const convertEmuToPoints: (emus: number) => number;
|
|
1638
|
+
/** A rectangular position in pixels. */
|
|
1639
|
+
interface PixelPosition {
|
|
1640
|
+
readonly x: number;
|
|
1641
|
+
readonly y: number;
|
|
1642
|
+
readonly width: number;
|
|
1643
|
+
readonly height: number;
|
|
1644
|
+
}
|
|
1645
|
+
/** An EMU-based rectangular position. */
|
|
1646
|
+
interface EmuPosition {
|
|
1647
|
+
readonly x: number;
|
|
1648
|
+
readonly y: number;
|
|
1649
|
+
readonly cx: number;
|
|
1650
|
+
readonly cy: number;
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Converts a pixel-based position to EMU coordinates.
|
|
1654
|
+
*/
|
|
1655
|
+
declare const convertPositionToEmu: (pos: PixelPosition) => EmuPosition;
|
|
1656
|
+
/** Parsed result of a UniversalMeasure string. */
|
|
1657
|
+
interface ParsedMeasure {
|
|
1658
|
+
value: number;
|
|
1659
|
+
unit: "mm" | "cm" | "in" | "pt" | "pc" | "pi";
|
|
1660
|
+
}
|
|
1661
|
+
/**
|
|
1662
|
+
* Parse a UniversalMeasure string into its numeric value and unit.
|
|
1663
|
+
*
|
|
1664
|
+
* @param measure - A universal measure string like "2.54cm", "-10mm", "1in"
|
|
1665
|
+
* @returns The parsed value and unit
|
|
1666
|
+
* @throws Error if the format is invalid
|
|
1667
|
+
*
|
|
1668
|
+
* @example
|
|
1669
|
+
* ```typescript
|
|
1670
|
+
* parseUniversalMeasure("2.54cm"); // { value: 2.54, unit: "cm" }
|
|
1671
|
+
* parseUniversalMeasure("-10mm"); // { value: -10, unit: "mm" }
|
|
1672
|
+
* ```
|
|
1673
|
+
*/
|
|
1674
|
+
declare const parseUniversalMeasure: (measure: string) => ParsedMeasure;
|
|
1675
|
+
/**
|
|
1676
|
+
* Converts a UniversalMeasure string to TWIP (twentieths of a point).
|
|
1677
|
+
*
|
|
1678
|
+
* Supports units: mm, cm, in, pt, pc (picas, 1pc = 12pt), pi (alias for pc).
|
|
1679
|
+
*
|
|
1680
|
+
* @param measure - A universal measure string like "2.54cm", "1in", "12pt"
|
|
1681
|
+
* @returns The value in TWIP
|
|
1682
|
+
*
|
|
1683
|
+
* @example
|
|
1684
|
+
* ```typescript
|
|
1685
|
+
* convertUniversalMeasureToTwip("1in"); // 1440
|
|
1686
|
+
* convertUniversalMeasureToTwip("2.54cm"); // ~1440 (1 inch)
|
|
1687
|
+
* convertUniversalMeasureToTwip("72pt"); // 1440 (1 inch = 72pt = 1440 twips)
|
|
1688
|
+
* ```
|
|
1689
|
+
*/
|
|
1690
|
+
declare const convertUniversalMeasureToTwip: (measure: string) => number;
|
|
1691
|
+
/**
|
|
1692
|
+
* Converts a measurement value (number or UniversalMeasure) to TWIP.
|
|
1693
|
+
*
|
|
1694
|
+
* If the value is already a number, it is returned as-is (assumed to be in twips).
|
|
1695
|
+
* If the value is a UniversalMeasure string, it is converted to twips.
|
|
1696
|
+
*
|
|
1697
|
+
* Useful for accepting both `number` and `UniversalMeasure` inputs where
|
|
1698
|
+
* the XSD type is a union (e.g., ST_TwipsMeasure, ST_SignedTwipsMeasure).
|
|
1699
|
+
*
|
|
1700
|
+
* @param val - A numeric twip value or a universal measure string
|
|
1701
|
+
* @returns The value in TWIP
|
|
1702
|
+
*
|
|
1703
|
+
* @example
|
|
1704
|
+
* ```typescript
|
|
1705
|
+
* convertToTwip(1440); // 1440 (already twips)
|
|
1706
|
+
* convertToTwip("1in"); // 1440
|
|
1707
|
+
* convertToTwip("2.54cm"); // ~1440
|
|
1708
|
+
* ```
|
|
1709
|
+
*/
|
|
1710
|
+
declare const convertToTwip: (val: number | string) => number;
|
|
1711
|
+
/**
|
|
1712
|
+
* Converts a UniversalMeasure string to EMU (English Metric Units).
|
|
1713
|
+
*
|
|
1714
|
+
* Supports units: mm, cm, in, pt, pc (picas, 1pc = 12pt), pi (alias for pc).
|
|
1715
|
+
*
|
|
1716
|
+
* @param measure - A universal measure string like "2.54cm", "1in", "12pt"
|
|
1717
|
+
* @returns The value in EMU
|
|
1718
|
+
*
|
|
1719
|
+
* @example
|
|
1720
|
+
* ```typescript
|
|
1721
|
+
* convertUniversalMeasureToEmu("1in"); // 914400
|
|
1722
|
+
* convertUniversalMeasureToEmu("2.54cm"); // 914400
|
|
1723
|
+
* convertUniversalMeasureToEmu("12pt"); // 152400
|
|
1724
|
+
* ```
|
|
1725
|
+
*/
|
|
1726
|
+
declare const convertUniversalMeasureToEmu: (measure: string) => number;
|
|
1727
|
+
/**
|
|
1728
|
+
* Converts a measurement value (number or UniversalMeasure) to EMU.
|
|
1729
|
+
*
|
|
1730
|
+
* If the value is already a number, it is returned as-is (assumed to be in EMU).
|
|
1731
|
+
* If the value is a UniversalMeasure string, it is converted to EMU.
|
|
1732
|
+
*
|
|
1733
|
+
* Useful for accepting both `number` and `UniversalMeasure` inputs in DrawingML
|
|
1734
|
+
* where the XSD type is a union (e.g., ST_Coordinate).
|
|
1735
|
+
*
|
|
1736
|
+
* @param val - A numeric EMU value or a universal measure string
|
|
1737
|
+
* @returns The value in EMU
|
|
1738
|
+
*
|
|
1739
|
+
* @example
|
|
1740
|
+
* ```typescript
|
|
1741
|
+
* convertToEmu(914400); // 914400 (already EMU)
|
|
1742
|
+
* convertToEmu("1in"); // 914400
|
|
1743
|
+
* convertToEmu("2.54cm"); // 914400
|
|
1744
|
+
* ```
|
|
1745
|
+
*/
|
|
1746
|
+
declare const convertToEmu: (val: number | string) => number;
|
|
1747
|
+
//#endregion
|
|
1748
|
+
//#region src/util/crypto.d.ts
|
|
1749
|
+
/**
|
|
1750
|
+
* Password hashing utilities for OOXML document protection.
|
|
1751
|
+
*
|
|
1752
|
+
* Implements ECMA-376 Agile Encryption password derivation.
|
|
1753
|
+
* Passwords are encoded as UTF-16LE per the OOXML specification.
|
|
1754
|
+
*
|
|
1755
|
+
* Uses @noble/hashes for SHA-512 — audited, cross-platform,
|
|
1756
|
+
* and comparable in speed to node:crypto for this workload.
|
|
1757
|
+
*
|
|
1758
|
+
* @module
|
|
1759
|
+
*/
|
|
1760
|
+
declare function randomBytes(length: number): Uint8Array;
|
|
1761
|
+
/**
|
|
1762
|
+
* Computes the ECMA-376 Agile Encryption hash for a password.
|
|
1763
|
+
*
|
|
1764
|
+
* Algorithm: SHA-512(salt + UTF-16LE(password)), then iterate
|
|
1765
|
+
* SHA-512(hash + i.toUint32LE()) spinCount times.
|
|
1766
|
+
*/
|
|
1767
|
+
declare function hashPasswordAgile(password: string, salt: Uint8Array, spinCount: number): string;
|
|
1768
|
+
/**
|
|
1769
|
+
* Derives a password hash for OOXML document protection.
|
|
1770
|
+
*
|
|
1771
|
+
* Returns base64-encoded hashValue, saltValue, spinCount, and algorithmName
|
|
1772
|
+
* suitable for direct use in document protection options.
|
|
1773
|
+
*/
|
|
1774
|
+
declare function derivePasswordHash(password: string, spinCount?: number): {
|
|
1775
|
+
hashValue: string;
|
|
1776
|
+
saltValue: string;
|
|
1777
|
+
spinCount: number;
|
|
1778
|
+
algorithmName: string;
|
|
1779
|
+
};
|
|
1780
|
+
//#endregion
|
|
1781
|
+
//#region src/util/generators.d.ts
|
|
1782
|
+
/**
|
|
1783
|
+
* Unique ID generation utilities.
|
|
1784
|
+
*
|
|
1785
|
+
* @module
|
|
1786
|
+
*/
|
|
1787
|
+
/**
|
|
1788
|
+
* A function that generates unique sequential numeric IDs.
|
|
1789
|
+
*/
|
|
1790
|
+
type UniqueNumericIdCreator = () => number;
|
|
1791
|
+
/**
|
|
1792
|
+
* Creates a unique numeric ID generator with sequential numbering.
|
|
1793
|
+
*/
|
|
1794
|
+
declare const uniqueNumericIdCreator: (initial?: number) => UniqueNumericIdCreator;
|
|
1795
|
+
/**
|
|
1796
|
+
* Generates a unique lowercase alphanumeric ID using crypto.getRandomValues.
|
|
1797
|
+
*/
|
|
1798
|
+
declare const uniqueId: () => string;
|
|
1799
|
+
/**
|
|
1800
|
+
* Generates a SHA-1 hash of the provided data.
|
|
1801
|
+
*/
|
|
1802
|
+
declare const hashedId: (data: Uint8Array | ArrayBuffer | string) => string;
|
|
1803
|
+
/**
|
|
1804
|
+
* Generates a UUID v4-style unique identifier using crypto.randomUUID.
|
|
1805
|
+
*/
|
|
1806
|
+
declare const uniqueUuid: () => string;
|
|
1807
|
+
//#endregion
|
|
1808
|
+
//#region src/util/mappings.d.ts
|
|
1809
|
+
/**
|
|
1810
|
+
* Bidirectional mappings between user-friendly values and XSD abbreviated values.
|
|
1811
|
+
*
|
|
1812
|
+
* When XSD uses full English words (e.g. "center", "start"), values are used directly — no mapping needed.
|
|
1813
|
+
* When XSD uses abbreviations (e.g. "ctr", "l", "rnd"), this module maps them to full words.
|
|
1814
|
+
*
|
|
1815
|
+
* Usage in generation (Options → XML): xsdAlign.to("center") → "ctr"
|
|
1816
|
+
* Usage in parsing (XML → Options): xsdAlign.from("ctr") → "center"
|
|
1817
|
+
*/
|
|
1818
|
+
/** Invert a Record<K, V> into Record<V, K>. */
|
|
1819
|
+
declare function invertMap<K extends string, V extends string>(map: Record<K, V>): Record<V, K>;
|
|
1820
|
+
declare const xsdRectAlignment: {
|
|
1821
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1822
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1823
|
+
forward: Record<"topLeft" | "top" | "topRight" | "left" | "center" | "right" | "bottomLeft" | "bottom" | "bottomRight", "b" | "ctr" | "l" | "r" | "t" | "tl" | "tr" | "bl" | "br">; /** The reverse map (XSD → user) */
|
|
1824
|
+
reverse: Record<"b" | "ctr" | "l" | "r" | "t" | "tl" | "tr" | "bl" | "br", "topLeft" | "top" | "topRight" | "left" | "center" | "right" | "bottomLeft" | "bottom" | "bottomRight">;
|
|
1825
|
+
};
|
|
1826
|
+
declare const xsdTextAlign: {
|
|
1827
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1828
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1829
|
+
forward: Record<"left" | "center" | "right" | "justify", "ctr" | "l" | "r" | "just">; /** The reverse map (XSD → user) */
|
|
1830
|
+
reverse: Record<"ctr" | "l" | "r" | "just", "left" | "center" | "right" | "justify">;
|
|
1831
|
+
};
|
|
1832
|
+
declare const xsdTextAnchor: {
|
|
1833
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1834
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1835
|
+
forward: Record<"top" | "center" | "bottom" | "justify" | "distribute", "b" | "ctr" | "t" | "just" | "dist">; /** The reverse map (XSD → user) */
|
|
1836
|
+
reverse: Record<"b" | "ctr" | "t" | "just" | "dist", "top" | "center" | "bottom" | "justify" | "distribute">;
|
|
1837
|
+
};
|
|
1838
|
+
declare const xsdLineCap: {
|
|
1839
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1840
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1841
|
+
forward: Record<"round" | "square" | "flat", "rnd" | "sq" | "flat">; /** The reverse map (XSD → user) */
|
|
1842
|
+
reverse: Record<"rnd" | "sq" | "flat", "round" | "square" | "flat">;
|
|
1843
|
+
};
|
|
1844
|
+
declare const xsdCompoundLine: {
|
|
1845
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1846
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1847
|
+
forward: Record<"single" | "double" | "thickThin" | "thinThick" | "triple", "sng" | "dbl" | "thickThin" | "thinThick" | "tri">; /** The reverse map (XSD → user) */
|
|
1848
|
+
reverse: Record<"sng" | "dbl" | "thickThin" | "thinThick" | "tri", "single" | "double" | "thickThin" | "thinThick" | "triple">;
|
|
1849
|
+
};
|
|
1850
|
+
declare const xsdPenAlignment: {
|
|
1851
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1852
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1853
|
+
forward: Record<"center" | "inside", "in" | "ctr">; /** The reverse map (XSD → user) */
|
|
1854
|
+
reverse: Record<"in" | "ctr", "center" | "inside">;
|
|
1855
|
+
};
|
|
1856
|
+
declare const xsdLineEndSize: {
|
|
1857
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1858
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1859
|
+
forward: Record<"small" | "medium" | "large", "sm" | "med" | "lg">; /** The reverse map (XSD → user) */
|
|
1860
|
+
reverse: Record<"sm" | "med" | "lg", "small" | "medium" | "large">;
|
|
1861
|
+
};
|
|
1862
|
+
declare const xsdBlendMode: {
|
|
1863
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1864
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1865
|
+
forward: Record<"over" | "multiply" | "screen" | "darken" | "lighten", "over" | "mult" | "screen" | "darken" | "lighten">; /** The reverse map (XSD → user) */
|
|
1866
|
+
reverse: Record<"over" | "mult" | "screen" | "darken" | "lighten", "over" | "multiply" | "screen" | "darken" | "lighten">;
|
|
1867
|
+
};
|
|
1868
|
+
declare const xsdPathFillMode: {
|
|
1869
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1870
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1871
|
+
forward: Record<"none" | "darken" | "lighten" | "normal" | "lightenLess" | "darkenLess", "none" | "darken" | "lighten" | "norm" | "lightenLess" | "darkenLess">; /** The reverse map (XSD → user) */
|
|
1872
|
+
reverse: Record<"none" | "darken" | "lighten" | "norm" | "lightenLess" | "darkenLess", "none" | "darken" | "lighten" | "normal" | "lightenLess" | "darkenLess">;
|
|
1873
|
+
};
|
|
1874
|
+
declare const xsdEffectContainer: {
|
|
1875
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1876
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1877
|
+
forward: Record<"sibling" | "tree", "sib" | "tree">; /** The reverse map (XSD → user) */
|
|
1878
|
+
reverse: Record<"sib" | "tree", "sibling" | "tree">;
|
|
1879
|
+
};
|
|
1880
|
+
declare const xsdPresetShadow: {
|
|
1881
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1882
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1883
|
+
forward: Record<"shadow1" | "shadow2" | "shadow3" | "shadow4" | "shadow5" | "shadow6" | "shadow7" | "shadow8" | "shadow9" | "shadow10" | "shadow11" | "shadow12" | "shadow13" | "shadow14" | "shadow15" | "shadow16" | "shadow17" | "shadow18" | "shadow19" | "shadow20", "shdw1" | "shdw2" | "shdw3" | "shdw4" | "shdw5" | "shdw6" | "shdw7" | "shdw8" | "shdw9" | "shdw10" | "shdw11" | "shdw12" | "shdw13" | "shdw14" | "shdw15" | "shdw16" | "shdw17" | "shdw18" | "shdw19" | "shdw20">; /** The reverse map (XSD → user) */
|
|
1884
|
+
reverse: Record<"shdw1" | "shdw2" | "shdw3" | "shdw4" | "shdw5" | "shdw6" | "shdw7" | "shdw8" | "shdw9" | "shdw10" | "shdw11" | "shdw12" | "shdw13" | "shdw14" | "shdw15" | "shdw16" | "shdw17" | "shdw18" | "shdw19" | "shdw20", "shadow1" | "shadow2" | "shadow3" | "shadow4" | "shadow5" | "shadow6" | "shadow7" | "shadow8" | "shadow9" | "shadow10" | "shadow11" | "shadow12" | "shadow13" | "shadow14" | "shadow15" | "shadow16" | "shadow17" | "shadow18" | "shadow19" | "shadow20">;
|
|
1885
|
+
};
|
|
1886
|
+
declare const xsdMaterialType: {
|
|
1887
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1888
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1889
|
+
forward: Record<"flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "darkEdge" | "softEdge" | "clear" | "softMetal", "flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "dkEdge" | "softEdge" | "clear" | "softmetal">; /** The reverse map (XSD → user) */
|
|
1890
|
+
reverse: Record<"flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "dkEdge" | "softEdge" | "clear" | "softmetal", "flat" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "darkEdge" | "softEdge" | "clear" | "softMetal">;
|
|
1891
|
+
};
|
|
1892
|
+
declare const xsdPattern: {
|
|
1893
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1894
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1895
|
+
forward: Record<"percent5" | "percent10" | "percent20" | "percent25" | "percent30" | "percent40" | "percent50" | "percent60" | "percent70" | "percent75" | "percent80" | "percent90" | "horizontal" | "vertical" | "lightHorizontal" | "lightVertical" | "darkHorizontal" | "darkVertical" | "narrowHorizontal" | "narrowVertical" | "dashedHorizontal" | "dashedVertical" | "cross" | "downDiagonal" | "upDiagonal" | "lightDownDiagonal" | "lightUpDiagonal" | "darkDownDiagonal" | "darkUpDiagonal" | "wideDownDiagonal" | "wideUpDiagonal" | "dashedDownDiagonal" | "dashedUpDiagonal" | "diagonalCross" | "smallChecker" | "largeChecker" | "smallGrid" | "largeGrid" | "dotGrid" | "smallConfetti" | "largeConfetti" | "horizontalBrick" | "diagonalBrick" | "solidDiamond" | "openDiamond" | "dottedDiamond" | "plaid" | "sphere" | "weave" | "divot" | "shingle" | "wave" | "trellis" | "zigZag", "pct5" | "pct10" | "pct20" | "pct25" | "pct30" | "pct40" | "pct50" | "pct60" | "pct70" | "pct75" | "pct80" | "pct90" | "horz" | "vert" | "ltHorz" | "ltVert" | "dkHorz" | "dkVert" | "narHorz" | "narVert" | "dashHorz" | "dashVert" | "cross" | "dnDiag" | "upDiag" | "ltDnDiag" | "ltUpDiag" | "dkDnDiag" | "dkUpDiag" | "wdDnDiag" | "wdUpDiag" | "dashDnDiag" | "dashUpDiag" | "diagCross" | "smCheck" | "lgCheck" | "smGrid" | "lgGrid" | "dotGrid" | "smConfetti" | "lgConfetti" | "horzBrick" | "diagBrick" | "solidDmnd" | "openDmnd" | "dotDmnd" | "plaid" | "sphere" | "weave" | "divot" | "shingle" | "wave" | "trellis" | "zigZag">; /** The reverse map (XSD → user) */
|
|
1896
|
+
reverse: Record<"pct5" | "pct10" | "pct20" | "pct25" | "pct30" | "pct40" | "pct50" | "pct60" | "pct70" | "pct75" | "pct80" | "pct90" | "horz" | "vert" | "ltHorz" | "ltVert" | "dkHorz" | "dkVert" | "narHorz" | "narVert" | "dashHorz" | "dashVert" | "cross" | "dnDiag" | "upDiag" | "ltDnDiag" | "ltUpDiag" | "dkDnDiag" | "dkUpDiag" | "wdDnDiag" | "wdUpDiag" | "dashDnDiag" | "dashUpDiag" | "diagCross" | "smCheck" | "lgCheck" | "smGrid" | "lgGrid" | "dotGrid" | "smConfetti" | "lgConfetti" | "horzBrick" | "diagBrick" | "solidDmnd" | "openDmnd" | "dotDmnd" | "plaid" | "sphere" | "weave" | "divot" | "shingle" | "wave" | "trellis" | "zigZag", "percent5" | "percent10" | "percent20" | "percent25" | "percent30" | "percent40" | "percent50" | "percent60" | "percent70" | "percent75" | "percent80" | "percent90" | "horizontal" | "vertical" | "lightHorizontal" | "lightVertical" | "darkHorizontal" | "darkVertical" | "narrowHorizontal" | "narrowVertical" | "dashedHorizontal" | "dashedVertical" | "cross" | "downDiagonal" | "upDiagonal" | "lightDownDiagonal" | "lightUpDiagonal" | "darkDownDiagonal" | "darkUpDiagonal" | "wideDownDiagonal" | "wideUpDiagonal" | "dashedDownDiagonal" | "dashedUpDiagonal" | "diagonalCross" | "smallChecker" | "largeChecker" | "smallGrid" | "largeGrid" | "dotGrid" | "smallConfetti" | "largeConfetti" | "horizontalBrick" | "diagonalBrick" | "solidDiamond" | "openDiamond" | "dottedDiamond" | "plaid" | "sphere" | "weave" | "divot" | "shingle" | "wave" | "trellis" | "zigZag">;
|
|
1897
|
+
};
|
|
1898
|
+
declare const xsdVerticalMergeRev: {
|
|
1899
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1900
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1901
|
+
forward: Record<"continue" | "restart", "cont" | "rest">; /** The reverse map (XSD → user) */
|
|
1902
|
+
reverse: Record<"cont" | "rest", "continue" | "restart">;
|
|
1903
|
+
};
|
|
1904
|
+
declare const xsdUnderlineStyle: {
|
|
1905
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1906
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1907
|
+
forward: Record<"none" | "single" | "double", "none" | "sng" | "dbl">; /** The reverse map (XSD → user) */
|
|
1908
|
+
reverse: Record<"none" | "sng" | "dbl", "none" | "single" | "double">;
|
|
1909
|
+
};
|
|
1910
|
+
declare const xsdStrikeStyle: {
|
|
1911
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1912
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1913
|
+
forward: Record<"singleStrike" | "doubleStrike" | "noStrike", "sngStrike" | "dblStrike" | "noStrike">; /** The reverse map (XSD → user) */
|
|
1914
|
+
reverse: Record<"sngStrike" | "dblStrike" | "noStrike", "singleStrike" | "doubleStrike" | "noStrike">;
|
|
1915
|
+
};
|
|
1916
|
+
declare const xsdTextCaps: {
|
|
1917
|
+
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
1918
|
+
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
1919
|
+
forward: Record<"none" | "small" | "all", "none" | "small" | "all">; /** The reverse map (XSD → user) */
|
|
1920
|
+
reverse: Record<"none" | "small" | "all", "none" | "small" | "all">;
|
|
1921
|
+
};
|
|
1922
|
+
//#endregion
|
|
1923
|
+
//#region src/util/placeholder.d.ts
|
|
1924
|
+
/**
|
|
1925
|
+
* Placeholder detection and replacement utilities for compiler post-processing.
|
|
1926
|
+
*
|
|
1927
|
+
* Both DOCX and PPTX compilers use placeholder tokens (e.g. `{chart:key}`)
|
|
1928
|
+
* in XML strings to defer relationship ID assignment. This module provides
|
|
1929
|
+
* fast pre-check utilities and shared replacement functions.
|
|
1930
|
+
*/
|
|
1931
|
+
type IdFormat = "rId" | "plain";
|
|
1932
|
+
declare const formatId: (offset: number, index: number, style: IdFormat) => string;
|
|
1933
|
+
declare function hasPlaceholders(xml: string): boolean;
|
|
1934
|
+
declare function collectPlaceholderKeys(xml: string, prefix: string): string[];
|
|
1935
|
+
declare function replaceImagePlaceholders(xml: string, mediaData: {
|
|
1936
|
+
fileName: string;
|
|
1937
|
+
}[], offset: number, idFormat?: IdFormat): string;
|
|
1938
|
+
declare function getReferencedMedia(xml: string, mediaArray: {
|
|
1939
|
+
fileName: string;
|
|
1940
|
+
}[]): {
|
|
1941
|
+
fileName: string;
|
|
1942
|
+
}[];
|
|
1943
|
+
/**
|
|
1944
|
+
* Combined find + replace for image placeholders in a single pass.
|
|
1945
|
+
*
|
|
1946
|
+
* Scans XML for `{fileName}` placeholders, replaces them with formatted IDs,
|
|
1947
|
+
* and returns the list of referenced media items for relationship registration.
|
|
1948
|
+
* More efficient than calling getReferencedMedia() + replaceImagePlaceholders() separately.
|
|
1949
|
+
*/
|
|
1950
|
+
declare function findAndReplaceImagePlaceholders(xml: string, mediaArray: {
|
|
1951
|
+
fileName: string;
|
|
1952
|
+
}[], offset: number, idFormat?: IdFormat): {
|
|
1953
|
+
xml: string;
|
|
1954
|
+
referenced: {
|
|
1955
|
+
fileName: string;
|
|
1956
|
+
}[];
|
|
1957
|
+
};
|
|
1958
|
+
/**
|
|
1959
|
+
* Replace all placeholder types in a single pass.
|
|
1960
|
+
*
|
|
1961
|
+
* Combines image, chart, smartart, and arbitrary key-value replacements
|
|
1962
|
+
* into one regex scan of the XML string. Used by compilers to avoid
|
|
1963
|
+
* multiple full-string passes on large documents.
|
|
1964
|
+
*/
|
|
1965
|
+
declare function replaceAllPlaceholders(xml: string, entries: Array<{
|
|
1966
|
+
prefix?: string;
|
|
1967
|
+
key: string;
|
|
1968
|
+
value: string;
|
|
1969
|
+
}>): string;
|
|
1970
|
+
declare function replaceChartPlaceholders(xml: string, chartKeys: string[], offset: number, idFormat?: IdFormat): string;
|
|
1971
|
+
interface SmartArtRelOptions {
|
|
1972
|
+
pathPrefix: string;
|
|
1973
|
+
styleRelType: RelationshipType;
|
|
1974
|
+
}
|
|
1975
|
+
declare function replaceSmartArtPlaceholders(xml: string, keys: string[], dataOffset: number, idFormat?: IdFormat): string;
|
|
1976
|
+
declare function addSmartArtRelationships(keys: string[], addRel: (id: number, type: RelationshipType, target: string, targetMode?: string) => void, baseOffset: number, globalStartIndex: number, options: SmartArtRelOptions): void;
|
|
1977
|
+
/** Replace `{reference-instance}` placeholders with numId values. */
|
|
1978
|
+
declare function replaceNumberingPlaceholders(xml: string, concreteNumberings: readonly {
|
|
1979
|
+
reference: string;
|
|
1980
|
+
instance: number;
|
|
1981
|
+
numId: number;
|
|
1982
|
+
}[]): string;
|
|
1983
|
+
/** Replace `{media:fileName}` placeholders with relationship IDs. */
|
|
1984
|
+
declare function replaceMediaPlaceholders(xml: string, mediaData: {
|
|
1985
|
+
fileName: string;
|
|
1986
|
+
}[], offset: number): string;
|
|
1987
|
+
/** Replace `{video:fileName}` placeholders with relationship IDs. */
|
|
1988
|
+
declare function replaceVideoPlaceholders(xml: string, mediaData: {
|
|
1989
|
+
fileName: string;
|
|
1990
|
+
}[], offset: number): string;
|
|
1991
|
+
/** Collect media items referenced by `{media:...}` placeholders in XML. */
|
|
1992
|
+
declare function getMediaRefs(xml: string, mediaArray: {
|
|
1993
|
+
fileName: string;
|
|
1994
|
+
}[]): {
|
|
1995
|
+
fileName: string;
|
|
1996
|
+
}[];
|
|
1997
|
+
/** Collect media items referenced by `{video:...}` placeholders in XML. */
|
|
1998
|
+
declare function getVideoRefs(xml: string, mediaArray: {
|
|
1999
|
+
fileName: string;
|
|
2000
|
+
}[]): {
|
|
2001
|
+
fileName: string;
|
|
2002
|
+
}[];
|
|
2003
|
+
/** Replace `{hlink:key}` placeholders with relationship IDs. */
|
|
2004
|
+
declare function replaceHyperlinkPlaceholders(xml: string, hyperlinks: {
|
|
2005
|
+
key: string;
|
|
2006
|
+
}[], offset: number): string;
|
|
1309
2007
|
//#endregion
|
|
1310
2008
|
//#region src/drawingml/outline/custom-dash.d.ts
|
|
1311
2009
|
/**
|
|
@@ -1330,9 +2028,9 @@ declare const createGroupFill: () => XmlComponent;
|
|
|
1330
2028
|
*/
|
|
1331
2029
|
interface DashStop {
|
|
1332
2030
|
/** Dash length as a percentage of line width (e.g., "500%") */
|
|
1333
|
-
|
|
2031
|
+
d: string;
|
|
1334
2032
|
/** Space length as a percentage of line width (e.g., "200%") */
|
|
1335
|
-
|
|
2033
|
+
sp: string;
|
|
1336
2034
|
}
|
|
1337
2035
|
/**
|
|
1338
2036
|
* Creates a custom dash element (a:custDash) for outlines.
|
|
@@ -1364,7 +2062,7 @@ interface DashStop {
|
|
|
1364
2062
|
* ]);
|
|
1365
2063
|
* ```
|
|
1366
2064
|
*/
|
|
1367
|
-
declare const createCustomDash: (stops: readonly DashStop[]) =>
|
|
2065
|
+
declare const createCustomDash: (stops: readonly DashStop[]) => string;
|
|
1368
2066
|
//#endregion
|
|
1369
2067
|
//#region src/drawingml/outline/line-end.d.ts
|
|
1370
2068
|
/**
|
|
@@ -1432,7 +2130,7 @@ declare const LineEndWidth: {
|
|
|
1432
2130
|
* @publicApi
|
|
1433
2131
|
*/
|
|
1434
2132
|
declare const LineEndLength: {
|
|
1435
|
-
/** Small length */readonly SMALL: "small"; /**
|
|
2133
|
+
/** Small length */readonly SMALL: "small"; /** MEDIUM length */
|
|
1436
2134
|
readonly MEDIUM: "medium"; /** Large length */
|
|
1437
2135
|
readonly LARGE: "large";
|
|
1438
2136
|
};
|
|
@@ -1450,11 +2148,11 @@ declare const LineEndLength: {
|
|
|
1450
2148
|
*/
|
|
1451
2149
|
interface LineEndOptions {
|
|
1452
2150
|
/** Arrow/head type */
|
|
1453
|
-
|
|
2151
|
+
type: (typeof LineEndType)[keyof typeof LineEndType];
|
|
1454
2152
|
/** Arrow width */
|
|
1455
|
-
|
|
2153
|
+
width?: (typeof LineEndWidth)[keyof typeof LineEndWidth];
|
|
1456
2154
|
/** Arrow length */
|
|
1457
|
-
|
|
2155
|
+
length?: (typeof LineEndLength)[keyof typeof LineEndLength];
|
|
1458
2156
|
}
|
|
1459
2157
|
/**
|
|
1460
2158
|
* Creates a line end element (a:headEnd or a:tailEnd).
|
|
@@ -1467,7 +2165,7 @@ interface LineEndOptions {
|
|
|
1467
2165
|
* createLineEnd("a:tailEnd", { type: "TRIANGLE" });
|
|
1468
2166
|
* ```
|
|
1469
2167
|
*/
|
|
1470
|
-
declare const createLineEnd: (name: string, options: LineEndOptions) =>
|
|
2168
|
+
declare const createLineEnd: (name: string, options: LineEndOptions) => string;
|
|
1471
2169
|
//#endregion
|
|
1472
2170
|
//#region src/drawingml/outline/outline.d.ts
|
|
1473
2171
|
/**
|
|
@@ -1548,34 +2246,34 @@ declare const LineJoin: {
|
|
|
1548
2246
|
* Attributes for configuring outline properties.
|
|
1549
2247
|
*/
|
|
1550
2248
|
interface OutlineAttributes {
|
|
1551
|
-
/** Line width in EMUs (English Metric Units) */
|
|
1552
|
-
|
|
2249
|
+
/** Line width in EMUs (English Metric Units) or universal measure (e.g., "1pt", "2mm") */
|
|
2250
|
+
width?: number | UniversalMeasure;
|
|
1553
2251
|
/** Line cap style */
|
|
1554
|
-
|
|
2252
|
+
cap?: (typeof LineCap)[keyof typeof LineCap];
|
|
1555
2253
|
/** Compound line type */
|
|
1556
|
-
|
|
2254
|
+
compoundLine?: (typeof CompoundLine)[keyof typeof CompoundLine];
|
|
1557
2255
|
/** Pen alignment */
|
|
1558
|
-
|
|
2256
|
+
align?: (typeof PenAlignment)[keyof typeof PenAlignment];
|
|
1559
2257
|
/**
|
|
1560
2258
|
* Preset dash style.
|
|
1561
2259
|
*
|
|
1562
2260
|
* Mutually exclusive with `customDash` — only one can be specified.
|
|
1563
2261
|
*/
|
|
1564
|
-
|
|
2262
|
+
dash?: (typeof PresetDash)[keyof typeof PresetDash];
|
|
1565
2263
|
/**
|
|
1566
2264
|
* Custom dash pattern (list of dash/space stops).
|
|
1567
2265
|
*
|
|
1568
2266
|
* Mutually exclusive with `dash` — only one can be specified.
|
|
1569
2267
|
*/
|
|
1570
|
-
|
|
2268
|
+
customDash?: readonly DashStop[];
|
|
1571
2269
|
/** Line join style */
|
|
1572
|
-
|
|
2270
|
+
join?: (typeof LineJoin)[keyof typeof LineJoin];
|
|
1573
2271
|
/** Miter limit (only when join is MITER) */
|
|
1574
|
-
|
|
2272
|
+
miterLimit?: number;
|
|
1575
2273
|
/** Line start arrow/head */
|
|
1576
|
-
|
|
2274
|
+
headEnd?: LineEndOptions;
|
|
1577
2275
|
/** Line end arrow/tail */
|
|
1578
|
-
|
|
2276
|
+
tailEnd?: LineEndOptions;
|
|
1579
2277
|
}
|
|
1580
2278
|
/**
|
|
1581
2279
|
* Fill properties for outline (EG_LineFillProperties).
|
|
@@ -1585,13 +2283,13 @@ interface OutlineAttributes {
|
|
|
1585
2283
|
*/
|
|
1586
2284
|
interface OutlineFillProperties {
|
|
1587
2285
|
/** Fill type */
|
|
1588
|
-
|
|
2286
|
+
type?: "noFill" | "solidFill" | "gradFill" | "pattFill";
|
|
1589
2287
|
/** Color definition (required when type is "solidFill") */
|
|
1590
|
-
|
|
2288
|
+
color?: SolidFillOptions;
|
|
1591
2289
|
/** Gradient fill options (required when type is "gradFill") */
|
|
1592
|
-
|
|
2290
|
+
gradientFill?: GradientFillOptions;
|
|
1593
2291
|
/** Pattern fill options (required when type is "pattFill") */
|
|
1594
|
-
|
|
2292
|
+
patternFill?: PatternFillOptions;
|
|
1595
2293
|
}
|
|
1596
2294
|
/**
|
|
1597
2295
|
* Complete outline configuration options.
|
|
@@ -1631,7 +2329,7 @@ type OutlineOptions = OutlineAttributes & OutlineFillProperties;
|
|
|
1631
2329
|
* });
|
|
1632
2330
|
* ```
|
|
1633
2331
|
*/
|
|
1634
|
-
declare const createOutline: (options: OutlineOptions) =>
|
|
2332
|
+
declare const createOutline: (options: OutlineOptions) => string;
|
|
1635
2333
|
//#endregion
|
|
1636
2334
|
//#region src/drawingml/effects/fill-overlay.d.ts
|
|
1637
2335
|
/**
|
|
@@ -1662,17 +2360,17 @@ declare const BlendMode: {
|
|
|
1662
2360
|
*/
|
|
1663
2361
|
interface FillOverlayEffectOptions {
|
|
1664
2362
|
/** Blend mode (required) */
|
|
1665
|
-
|
|
2363
|
+
blend: (typeof BlendMode)[keyof typeof BlendMode];
|
|
1666
2364
|
/** Solid fill color */
|
|
1667
|
-
|
|
2365
|
+
solidFill?: SolidFillOptions;
|
|
1668
2366
|
/** Gradient fill */
|
|
1669
|
-
|
|
2367
|
+
gradientFill?: GradientFillOptions;
|
|
1670
2368
|
/** Pattern fill */
|
|
1671
|
-
|
|
2369
|
+
patternFill?: PatternFillOptions;
|
|
1672
2370
|
/** Group fill (inherit from parent) */
|
|
1673
|
-
|
|
2371
|
+
groupFill?: boolean;
|
|
1674
2372
|
/** No fill */
|
|
1675
|
-
|
|
2373
|
+
noFill?: boolean;
|
|
1676
2374
|
}
|
|
1677
2375
|
/**
|
|
1678
2376
|
* Creates a fill overlay effect element.
|
|
@@ -1702,7 +2400,7 @@ interface FillOverlayEffectOptions {
|
|
|
1702
2400
|
* });
|
|
1703
2401
|
* ```
|
|
1704
2402
|
*/
|
|
1705
|
-
declare const createFillOverlayEffect: (options: FillOverlayEffectOptions) =>
|
|
2403
|
+
declare const createFillOverlayEffect: (options: FillOverlayEffectOptions) => string;
|
|
1706
2404
|
//#endregion
|
|
1707
2405
|
//#region src/drawingml/effects/glow.d.ts
|
|
1708
2406
|
/**
|
|
@@ -1710,9 +2408,9 @@ declare const createFillOverlayEffect: (options: FillOverlayEffectOptions) => Xm
|
|
|
1710
2408
|
*/
|
|
1711
2409
|
interface GlowEffectOptions {
|
|
1712
2410
|
/** Glow radius in EMUs */
|
|
1713
|
-
|
|
2411
|
+
radius?: number;
|
|
1714
2412
|
/** Glow color */
|
|
1715
|
-
|
|
2413
|
+
color: SolidFillOptions;
|
|
1716
2414
|
}
|
|
1717
2415
|
/**
|
|
1718
2416
|
* Creates a glow effect element.
|
|
@@ -1727,7 +2425,7 @@ interface GlowEffectOptions {
|
|
|
1727
2425
|
* </xsd:complexType>
|
|
1728
2426
|
* ```
|
|
1729
2427
|
*/
|
|
1730
|
-
declare const createGlowEffect: (options: GlowEffectOptions) =>
|
|
2428
|
+
declare const createGlowEffect: (options: GlowEffectOptions) => string;
|
|
1731
2429
|
//#endregion
|
|
1732
2430
|
//#region src/drawingml/effects/inner-shadow.d.ts
|
|
1733
2431
|
/**
|
|
@@ -1735,13 +2433,13 @@ declare const createGlowEffect: (options: GlowEffectOptions) => XmlComponent;
|
|
|
1735
2433
|
*/
|
|
1736
2434
|
interface InnerShadowEffectOptions {
|
|
1737
2435
|
/** Blur radius in EMUs */
|
|
1738
|
-
|
|
2436
|
+
blurRadius?: number;
|
|
1739
2437
|
/** Distance from shape edge in EMUs */
|
|
1740
|
-
|
|
2438
|
+
distance?: number;
|
|
1741
2439
|
/** Direction angle in 60,000ths of a degree */
|
|
1742
|
-
|
|
2440
|
+
direction?: number;
|
|
1743
2441
|
/** Shadow color */
|
|
1744
|
-
|
|
2442
|
+
color: SolidFillOptions;
|
|
1745
2443
|
}
|
|
1746
2444
|
/**
|
|
1747
2445
|
* Creates an inner shadow effect element.
|
|
@@ -1758,7 +2456,7 @@ interface InnerShadowEffectOptions {
|
|
|
1758
2456
|
* </xsd:complexType>
|
|
1759
2457
|
* ```
|
|
1760
2458
|
*/
|
|
1761
|
-
declare const createInnerShadowEffect: (options: InnerShadowEffectOptions) =>
|
|
2459
|
+
declare const createInnerShadowEffect: (options: InnerShadowEffectOptions) => string;
|
|
1762
2460
|
//#endregion
|
|
1763
2461
|
//#region src/drawingml/effects/outer-shadow.d.ts
|
|
1764
2462
|
/**
|
|
@@ -1780,25 +2478,25 @@ declare const RectAlignment: {
|
|
|
1780
2478
|
*/
|
|
1781
2479
|
interface OuterShadowEffectOptions {
|
|
1782
2480
|
/** Blur radius in EMUs */
|
|
1783
|
-
|
|
2481
|
+
blurRadius?: number;
|
|
1784
2482
|
/** Distance from shape in EMUs */
|
|
1785
|
-
|
|
2483
|
+
distance?: number;
|
|
1786
2484
|
/** Direction angle in 60,000ths of a degree */
|
|
1787
|
-
|
|
2485
|
+
direction?: number;
|
|
1788
2486
|
/** Horizontal scale percentage (e.g., 100000 = 100%) */
|
|
1789
|
-
|
|
2487
|
+
scaleX?: number;
|
|
1790
2488
|
/** Vertical scale percentage */
|
|
1791
|
-
|
|
2489
|
+
scaleY?: number;
|
|
1792
2490
|
/** Horizontal skew angle in 60,000ths of a degree */
|
|
1793
|
-
|
|
2491
|
+
skewX?: number;
|
|
1794
2492
|
/** Vertical skew angle */
|
|
1795
|
-
|
|
2493
|
+
skewY?: number;
|
|
1796
2494
|
/** Shadow alignment */
|
|
1797
|
-
|
|
2495
|
+
alignment?: (typeof RectAlignment)[keyof typeof RectAlignment];
|
|
1798
2496
|
/** Whether shadow rotates with shape */
|
|
1799
|
-
|
|
2497
|
+
rotWithShape?: boolean;
|
|
1800
2498
|
/** Shadow color */
|
|
1801
|
-
|
|
2499
|
+
color: SolidFillOptions;
|
|
1802
2500
|
}
|
|
1803
2501
|
/**
|
|
1804
2502
|
* Creates an outer shadow effect element.
|
|
@@ -1821,7 +2519,7 @@ interface OuterShadowEffectOptions {
|
|
|
1821
2519
|
* </xsd:complexType>
|
|
1822
2520
|
* ```
|
|
1823
2521
|
*/
|
|
1824
|
-
declare const createOuterShadowEffect: (options: OuterShadowEffectOptions) =>
|
|
2522
|
+
declare const createOuterShadowEffect: (options: OuterShadowEffectOptions) => string;
|
|
1825
2523
|
//#endregion
|
|
1826
2524
|
//#region src/drawingml/effects/preset-shadow.d.ts
|
|
1827
2525
|
/**
|
|
@@ -1856,13 +2554,13 @@ declare const PresetShadowVal: {
|
|
|
1856
2554
|
*/
|
|
1857
2555
|
interface PresetShadowEffectOptions {
|
|
1858
2556
|
/** Preset shadow type (required) */
|
|
1859
|
-
|
|
2557
|
+
preset: (typeof PresetShadowVal)[keyof typeof PresetShadowVal];
|
|
1860
2558
|
/** Distance from shape in EMUs */
|
|
1861
|
-
|
|
2559
|
+
distance?: number;
|
|
1862
2560
|
/** Direction angle in 60,000ths of a degree */
|
|
1863
|
-
|
|
2561
|
+
direction?: number;
|
|
1864
2562
|
/** Shadow color */
|
|
1865
|
-
|
|
2563
|
+
color: SolidFillOptions;
|
|
1866
2564
|
}
|
|
1867
2565
|
/**
|
|
1868
2566
|
* Creates a preset shadow effect element.
|
|
@@ -1879,7 +2577,7 @@ interface PresetShadowEffectOptions {
|
|
|
1879
2577
|
* </xsd:complexType>
|
|
1880
2578
|
* ```
|
|
1881
2579
|
*/
|
|
1882
|
-
declare const createPresetShadowEffect: (options: PresetShadowEffectOptions) =>
|
|
2580
|
+
declare const createPresetShadowEffect: (options: PresetShadowEffectOptions) => string;
|
|
1883
2581
|
//#endregion
|
|
1884
2582
|
//#region src/drawingml/effects/reflection.d.ts
|
|
1885
2583
|
/**
|
|
@@ -1889,33 +2587,33 @@ declare const createPresetShadowEffect: (options: PresetShadowEffectOptions) =>
|
|
|
1889
2587
|
*/
|
|
1890
2588
|
interface ReflectionEffectOptions {
|
|
1891
2589
|
/** Blur radius in EMUs */
|
|
1892
|
-
|
|
2590
|
+
blurRadius?: number;
|
|
1893
2591
|
/** Start opacity (fixed percentage, e.g., 100000 = 100%) */
|
|
1894
|
-
|
|
2592
|
+
startAlpha?: number;
|
|
1895
2593
|
/** Start position (fixed percentage) */
|
|
1896
|
-
|
|
2594
|
+
startPosition?: number;
|
|
1897
2595
|
/** End opacity (fixed percentage) */
|
|
1898
|
-
|
|
2596
|
+
endAlpha?: number;
|
|
1899
2597
|
/** End position (fixed percentage) */
|
|
1900
|
-
|
|
2598
|
+
endPosition?: number;
|
|
1901
2599
|
/** Distance from shape in EMUs */
|
|
1902
|
-
|
|
2600
|
+
distance?: number;
|
|
1903
2601
|
/** Direction angle in 60,000ths of a degree */
|
|
1904
|
-
|
|
2602
|
+
direction?: number;
|
|
1905
2603
|
/** Fade direction angle in 60,000ths of a degree */
|
|
1906
|
-
|
|
2604
|
+
fadeDirection?: number;
|
|
1907
2605
|
/** Horizontal scale percentage */
|
|
1908
|
-
|
|
2606
|
+
scaleX?: number;
|
|
1909
2607
|
/** Vertical scale percentage */
|
|
1910
|
-
|
|
2608
|
+
scaleY?: number;
|
|
1911
2609
|
/** Horizontal skew angle */
|
|
1912
|
-
|
|
2610
|
+
skewX?: number;
|
|
1913
2611
|
/** Vertical skew angle */
|
|
1914
|
-
|
|
2612
|
+
skewY?: number;
|
|
1915
2613
|
/** Alignment */
|
|
1916
|
-
|
|
2614
|
+
alignment?: string;
|
|
1917
2615
|
/** Whether reflection rotates with shape */
|
|
1918
|
-
|
|
2616
|
+
rotWithShape?: boolean;
|
|
1919
2617
|
}
|
|
1920
2618
|
/**
|
|
1921
2619
|
* Creates a reflection effect element.
|
|
@@ -1940,17 +2638,44 @@ interface ReflectionEffectOptions {
|
|
|
1940
2638
|
* </xsd:complexType>
|
|
1941
2639
|
* ```
|
|
1942
2640
|
*/
|
|
1943
|
-
declare const createReflectionEffect: (options?: ReflectionEffectOptions) =>
|
|
2641
|
+
declare const createReflectionEffect: (options?: ReflectionEffectOptions) => string;
|
|
1944
2642
|
//#endregion
|
|
1945
2643
|
//#region src/drawingml/effects/effect-list.d.ts
|
|
2644
|
+
/**
|
|
2645
|
+
* Effect extent calculation result.
|
|
2646
|
+
* Represents the additional space needed on each edge (in EMUs).
|
|
2647
|
+
*/
|
|
2648
|
+
interface EffectExtent {
|
|
2649
|
+
/** Left edge extension */
|
|
2650
|
+
l: number;
|
|
2651
|
+
/** Top edge extension */
|
|
2652
|
+
t: number;
|
|
2653
|
+
/** Right edge extension */
|
|
2654
|
+
r: number;
|
|
2655
|
+
/** Bottom edge extension */
|
|
2656
|
+
b: number;
|
|
2657
|
+
}
|
|
2658
|
+
/**
|
|
2659
|
+
* Calculates the effect extent for a given set of effects.
|
|
2660
|
+
*
|
|
2661
|
+
* The effectExtent specifies the additional extent which shall be added to each edge
|
|
2662
|
+
* of the image (top, bottom, left, right) in order to compensate for any drawing effects
|
|
2663
|
+
* applied to the DrawingML object.
|
|
2664
|
+
*
|
|
2665
|
+
* Reference: CT_EffectExtent in dml-wordprocessingDrawing.xsd
|
|
2666
|
+
*
|
|
2667
|
+
* @param options - Effect list options
|
|
2668
|
+
* @returns The calculated effect extent in EMUs
|
|
2669
|
+
*/
|
|
2670
|
+
declare const calculateEffectExtent: (options?: EffectListOptions) => EffectExtent;
|
|
1946
2671
|
/**
|
|
1947
2672
|
* Blur effect options.
|
|
1948
2673
|
*/
|
|
1949
2674
|
interface BlurEffectOptions {
|
|
1950
2675
|
/** Blur radius in EMUs */
|
|
1951
|
-
|
|
2676
|
+
radius?: number;
|
|
1952
2677
|
/** Whether to grow the shape boundary */
|
|
1953
|
-
|
|
2678
|
+
grow?: boolean;
|
|
1954
2679
|
}
|
|
1955
2680
|
/**
|
|
1956
2681
|
* Options for the effect list container.
|
|
@@ -1960,21 +2685,21 @@ interface BlurEffectOptions {
|
|
|
1960
2685
|
*/
|
|
1961
2686
|
interface EffectListOptions {
|
|
1962
2687
|
/** Blur effect */
|
|
1963
|
-
|
|
2688
|
+
blur?: BlurEffectOptions;
|
|
1964
2689
|
/** Fill overlay effect */
|
|
1965
|
-
|
|
2690
|
+
fillOverlay?: FillOverlayEffectOptions;
|
|
1966
2691
|
/** Glow effect */
|
|
1967
|
-
|
|
2692
|
+
glow?: GlowEffectOptions;
|
|
1968
2693
|
/** Inner shadow effect */
|
|
1969
|
-
|
|
2694
|
+
innerShadow?: InnerShadowEffectOptions;
|
|
1970
2695
|
/** Outer shadow effect */
|
|
1971
|
-
|
|
2696
|
+
outerShadow?: OuterShadowEffectOptions;
|
|
1972
2697
|
/** Preset shadow effect */
|
|
1973
|
-
|
|
2698
|
+
presetShadow?: PresetShadowEffectOptions;
|
|
1974
2699
|
/** Reflection effect (pass object for attributes, or true for defaults) */
|
|
1975
|
-
|
|
2700
|
+
reflection?: ReflectionEffectOptions | true;
|
|
1976
2701
|
/** Soft edge radius in EMUs */
|
|
1977
|
-
|
|
2702
|
+
softEdge?: number;
|
|
1978
2703
|
}
|
|
1979
2704
|
/**
|
|
1980
2705
|
* Creates an effect list element (a:effectLst).
|
|
@@ -1998,7 +2723,7 @@ interface EffectListOptions {
|
|
|
1998
2723
|
* </xsd:complexType>
|
|
1999
2724
|
* ```
|
|
2000
2725
|
*/
|
|
2001
|
-
declare const createEffectList: (options: EffectListOptions) =>
|
|
2726
|
+
declare const createEffectList: (options: EffectListOptions) => string;
|
|
2002
2727
|
//#endregion
|
|
2003
2728
|
//#region src/drawingml/effects/effect-dag.d.ts
|
|
2004
2729
|
/**
|
|
@@ -2025,113 +2750,113 @@ declare const EffectContainerType: {
|
|
|
2025
2750
|
/** Alpha bi-level effect — clips alpha to threshold (CT_AlphaBiLevelEffect). */
|
|
2026
2751
|
interface AlphaBiLevelEffectOptions {
|
|
2027
2752
|
/** Alpha threshold (fixed percentage, required) */
|
|
2028
|
-
|
|
2753
|
+
threshold: number;
|
|
2029
2754
|
}
|
|
2030
2755
|
/** Alpha inverse effect — inverts alpha, optionally with color (CT_AlphaInverseEffect). */
|
|
2031
2756
|
interface AlphaInverseEffectOptions {
|
|
2032
2757
|
/** Optional color to apply inverse to */
|
|
2033
|
-
|
|
2758
|
+
color?: SolidFillOptions;
|
|
2034
2759
|
}
|
|
2035
2760
|
/** Alpha modulate fixed effect (CT_AlphaModulateFixedEffect). */
|
|
2036
2761
|
interface AlphaModulateFixedEffectOptions {
|
|
2037
2762
|
/** Amount percentage (default 100%) */
|
|
2038
|
-
|
|
2763
|
+
amount?: number;
|
|
2039
2764
|
}
|
|
2040
2765
|
/** Alpha outset effect (CT_AlphaOutsetEffect). */
|
|
2041
2766
|
interface AlphaOutsetEffectOptions {
|
|
2042
2767
|
/** Outset radius */
|
|
2043
|
-
|
|
2768
|
+
radius?: number;
|
|
2044
2769
|
}
|
|
2045
2770
|
/** Alpha replace effect — replaces alpha value (CT_AlphaReplaceEffect). */
|
|
2046
2771
|
interface AlphaReplaceEffectOptions {
|
|
2047
2772
|
/** New alpha value (fixed percentage, required) */
|
|
2048
|
-
|
|
2773
|
+
alpha: number;
|
|
2049
2774
|
}
|
|
2050
2775
|
/** Blend effect — blends with nested container (CT_BlendEffect). */
|
|
2051
2776
|
interface BlendEffectOptions {
|
|
2052
2777
|
/** Blend mode (required) */
|
|
2053
|
-
|
|
2778
|
+
blend: (typeof BlendMode)[keyof typeof BlendMode];
|
|
2054
2779
|
/** Nested effect container */
|
|
2055
|
-
|
|
2780
|
+
container: EffectDagOptions;
|
|
2056
2781
|
}
|
|
2057
2782
|
/** Color change effect — maps one color to another (CT_ColorChangeEffect). */
|
|
2058
2783
|
interface ColorChangeEffectOptions {
|
|
2059
2784
|
/** Source color to replace */
|
|
2060
|
-
|
|
2785
|
+
from: SolidFillOptions;
|
|
2061
2786
|
/** Target color */
|
|
2062
|
-
|
|
2787
|
+
to: SolidFillOptions;
|
|
2063
2788
|
/** Whether to use alpha channel (default true) */
|
|
2064
|
-
|
|
2789
|
+
useA?: boolean;
|
|
2065
2790
|
}
|
|
2066
2791
|
/** Duotone effect — two-color tone mapping (CT_DuotoneEffect). */
|
|
2067
2792
|
interface DuotoneEffectOptions {
|
|
2068
2793
|
/** First color */
|
|
2069
|
-
|
|
2794
|
+
color1: SolidFillOptions;
|
|
2070
2795
|
/** Second color */
|
|
2071
|
-
|
|
2796
|
+
color2: SolidFillOptions;
|
|
2072
2797
|
}
|
|
2073
2798
|
/** Fill effect — applies a fill as an effect (CT_FillEffect). */
|
|
2074
2799
|
interface FillEffectOptions {
|
|
2075
2800
|
/** Solid fill */
|
|
2076
|
-
|
|
2801
|
+
solidFill?: SolidFillOptions;
|
|
2077
2802
|
/** Gradient fill */
|
|
2078
|
-
|
|
2803
|
+
gradientFill?: GradientFillOptions;
|
|
2079
2804
|
/** Pattern fill */
|
|
2080
|
-
|
|
2805
|
+
patternFill?: PatternFillOptions;
|
|
2081
2806
|
/** Group fill (inherit from parent) */
|
|
2082
|
-
|
|
2807
|
+
groupFill?: boolean;
|
|
2083
2808
|
/** No fill */
|
|
2084
|
-
|
|
2809
|
+
noFill?: boolean;
|
|
2085
2810
|
}
|
|
2086
2811
|
/** HSL effect — adjusts hue, saturation, luminance (CT_HSLEffect). */
|
|
2087
2812
|
interface HSLEffectOptions {
|
|
2088
2813
|
/** Hue angle in 60,000ths of a degree (default 0) */
|
|
2089
|
-
|
|
2814
|
+
hue?: number;
|
|
2090
2815
|
/** Saturation percentage (default 0%) */
|
|
2091
|
-
|
|
2816
|
+
saturation?: number;
|
|
2092
2817
|
/** Luminance percentage (default 0%) */
|
|
2093
|
-
|
|
2818
|
+
luminance?: number;
|
|
2094
2819
|
}
|
|
2095
2820
|
/** Luminance effect — adjusts brightness and contrast (CT_LuminanceEffect). */
|
|
2096
2821
|
interface LuminanceEffectOptions {
|
|
2097
2822
|
/** Brightness percentage (default 0%) */
|
|
2098
|
-
|
|
2823
|
+
bright?: number;
|
|
2099
2824
|
/** Contrast percentage (default 0%) */
|
|
2100
|
-
|
|
2825
|
+
contrast?: number;
|
|
2101
2826
|
}
|
|
2102
2827
|
/** Tint effect — applies tint with hue and amount (CT_TintEffect). */
|
|
2103
2828
|
interface TintEffectOptions {
|
|
2104
2829
|
/** Hue angle in 60,000ths of a degree (default 0) */
|
|
2105
|
-
|
|
2830
|
+
hue?: number;
|
|
2106
2831
|
/** Tint amount percentage (default 0%) */
|
|
2107
|
-
|
|
2832
|
+
amount?: number;
|
|
2108
2833
|
}
|
|
2109
2834
|
/** Relative offset effect (CT_RelativeOffsetEffect). */
|
|
2110
2835
|
interface RelativeOffsetEffectOptions {
|
|
2111
2836
|
/** Horizontal offset percentage (default 0%) */
|
|
2112
|
-
|
|
2837
|
+
translateX?: number;
|
|
2113
2838
|
/** Vertical offset percentage (default 0%) */
|
|
2114
|
-
|
|
2839
|
+
translateY?: number;
|
|
2115
2840
|
}
|
|
2116
2841
|
/** Transform effect — scale, skew, translate (CT_TransformEffect). */
|
|
2117
2842
|
interface TransformEffectOptions {
|
|
2118
2843
|
/** Horizontal scale percentage (default 100%) */
|
|
2119
|
-
|
|
2844
|
+
scaleX?: number;
|
|
2120
2845
|
/** Vertical scale percentage (default 100%) */
|
|
2121
|
-
|
|
2846
|
+
scaleY?: number;
|
|
2122
2847
|
/** Horizontal skew angle (default 0) */
|
|
2123
|
-
|
|
2848
|
+
skewX?: number;
|
|
2124
2849
|
/** Vertical skew angle (default 0) */
|
|
2125
|
-
|
|
2850
|
+
skewY?: number;
|
|
2126
2851
|
/** Horizontal translation */
|
|
2127
|
-
|
|
2852
|
+
translateX?: number;
|
|
2128
2853
|
/** Vertical translation */
|
|
2129
|
-
|
|
2854
|
+
translateY?: number;
|
|
2130
2855
|
}
|
|
2131
2856
|
/** Effect reference — references an effect by ID (CT_EffectReference). */
|
|
2132
2857
|
interface EffectReferenceOptions {
|
|
2133
2858
|
/** Reference ID (required) */
|
|
2134
|
-
|
|
2859
|
+
ref: string;
|
|
2135
2860
|
}
|
|
2136
2861
|
/**
|
|
2137
2862
|
* Options for an effect container (CT_EffectContainer).
|
|
@@ -2149,63 +2874,63 @@ interface EffectReferenceOptions {
|
|
|
2149
2874
|
*/
|
|
2150
2875
|
interface EffectDagOptions {
|
|
2151
2876
|
/** Container type: "sib" (parallel) or "tree" (sequential) */
|
|
2152
|
-
|
|
2877
|
+
type?: (typeof EffectContainerType)[keyof typeof EffectContainerType];
|
|
2153
2878
|
/** Container name */
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2879
|
+
name?: string;
|
|
2880
|
+
blur?: BlurEffectOptions;
|
|
2881
|
+
fillOverlay?: FillOverlayEffectOptions;
|
|
2882
|
+
glow?: GlowEffectOptions;
|
|
2883
|
+
innerShadow?: InnerShadowEffectOptions;
|
|
2884
|
+
outerShadow?: OuterShadowEffectOptions;
|
|
2885
|
+
presetShadow?: PresetShadowEffectOptions;
|
|
2886
|
+
reflection?: ReflectionEffectOptions | true;
|
|
2887
|
+
softEdge?: number;
|
|
2163
2888
|
/** Nested effect containers */
|
|
2164
|
-
|
|
2889
|
+
containers?: readonly EffectDagOptions[];
|
|
2165
2890
|
/** Effect references */
|
|
2166
|
-
|
|
2891
|
+
effectRefs?: readonly EffectReferenceOptions[];
|
|
2167
2892
|
/** Alpha bi-level effect */
|
|
2168
|
-
|
|
2893
|
+
alphaBiLevel?: AlphaBiLevelEffectOptions;
|
|
2169
2894
|
/** Alpha ceiling effect (empty element) */
|
|
2170
|
-
|
|
2895
|
+
alphaCeiling?: boolean;
|
|
2171
2896
|
/** Alpha floor effect (empty element) */
|
|
2172
|
-
|
|
2897
|
+
alphaFloor?: boolean;
|
|
2173
2898
|
/** Alpha inverse effect */
|
|
2174
|
-
|
|
2899
|
+
alphaInverse?: AlphaInverseEffectOptions;
|
|
2175
2900
|
/** Alpha modulate effect (requires nested container) */
|
|
2176
|
-
|
|
2901
|
+
alphaModulate?: EffectDagOptions;
|
|
2177
2902
|
/** Alpha modulate fixed effect */
|
|
2178
|
-
|
|
2903
|
+
alphaModulateFixed?: AlphaModulateFixedEffectOptions;
|
|
2179
2904
|
/** Alpha outset effect */
|
|
2180
|
-
|
|
2905
|
+
alphaOutset?: AlphaOutsetEffectOptions;
|
|
2181
2906
|
/** Alpha replace effect */
|
|
2182
|
-
|
|
2907
|
+
alphaReplace?: AlphaReplaceEffectOptions;
|
|
2183
2908
|
/** Bi-level effect (threshold) */
|
|
2184
|
-
|
|
2185
|
-
|
|
2909
|
+
biLevel?: {
|
|
2910
|
+
threshold: number;
|
|
2186
2911
|
};
|
|
2187
2912
|
/** Blend effect (requires nested container) */
|
|
2188
|
-
|
|
2913
|
+
blend?: BlendEffectOptions;
|
|
2189
2914
|
/** Color change effect */
|
|
2190
|
-
|
|
2915
|
+
colorChange?: ColorChangeEffectOptions;
|
|
2191
2916
|
/** Color replace effect */
|
|
2192
|
-
|
|
2917
|
+
colorReplace?: SolidFillOptions;
|
|
2193
2918
|
/** Duotone effect */
|
|
2194
|
-
|
|
2919
|
+
duotone?: DuotoneEffectOptions;
|
|
2195
2920
|
/** Fill effect */
|
|
2196
|
-
|
|
2921
|
+
fill?: FillEffectOptions;
|
|
2197
2922
|
/** Grayscale effect (empty element) */
|
|
2198
|
-
|
|
2923
|
+
grayscale?: boolean;
|
|
2199
2924
|
/** HSL effect */
|
|
2200
|
-
|
|
2925
|
+
hsl?: HSLEffectOptions;
|
|
2201
2926
|
/** Luminance effect */
|
|
2202
|
-
|
|
2927
|
+
luminance?: LuminanceEffectOptions;
|
|
2203
2928
|
/** Tint effect */
|
|
2204
|
-
|
|
2929
|
+
tint?: TintEffectOptions;
|
|
2205
2930
|
/** Relative offset effect */
|
|
2206
|
-
|
|
2931
|
+
relativeOffset?: RelativeOffsetEffectOptions;
|
|
2207
2932
|
/** Transform effect */
|
|
2208
|
-
|
|
2933
|
+
transform?: TransformEffectOptions;
|
|
2209
2934
|
}
|
|
2210
2935
|
/**
|
|
2211
2936
|
* Creates an effect DAG element (a:effectDag).
|
|
@@ -2231,9 +2956,16 @@ interface EffectDagOptions {
|
|
|
2231
2956
|
* });
|
|
2232
2957
|
* ```
|
|
2233
2958
|
*/
|
|
2234
|
-
declare const createEffectDag: (options: EffectDagOptions) =>
|
|
2959
|
+
declare const createEffectDag: (options: EffectDagOptions) => string;
|
|
2235
2960
|
//#endregion
|
|
2236
2961
|
//#region src/drawingml/effects/soft-edge.d.ts
|
|
2962
|
+
/**
|
|
2963
|
+
* Soft edge effect for DrawingML shapes.
|
|
2964
|
+
*
|
|
2965
|
+
* Reference: ISO/IEC 29500-4, dml-main.xsd, CT_SoftEdgesEffect
|
|
2966
|
+
*
|
|
2967
|
+
* @module
|
|
2968
|
+
*/
|
|
2237
2969
|
/**
|
|
2238
2970
|
* Creates a soft edge effect element.
|
|
2239
2971
|
*
|
|
@@ -2246,9 +2978,7 @@ declare const createEffectDag: (options: EffectDagOptions) => XmlComponent;
|
|
|
2246
2978
|
*
|
|
2247
2979
|
* @param rad - Soft edge radius in EMUs (required)
|
|
2248
2980
|
*/
|
|
2249
|
-
declare const createSoftEdgeEffect: (rad: number) =>
|
|
2250
|
-
readonly rad: number;
|
|
2251
|
-
}>;
|
|
2981
|
+
declare const createSoftEdgeEffect: (rad: number) => string;
|
|
2252
2982
|
//#endregion
|
|
2253
2983
|
//#region src/drawingml/three-d/scene-3d.d.ts
|
|
2254
2984
|
/**
|
|
@@ -2267,11 +2997,11 @@ declare const createSoftEdgeEffect: (rad: number) => BuilderElement<{
|
|
|
2267
2997
|
*/
|
|
2268
2998
|
interface SphereCoords {
|
|
2269
2999
|
/** Latitude angle (0 to 21600000, in 1/60000 degree units) */
|
|
2270
|
-
|
|
3000
|
+
lat: number;
|
|
2271
3001
|
/** Longitude angle (0 to 21600000) */
|
|
2272
|
-
|
|
3002
|
+
lon: number;
|
|
2273
3003
|
/** Revolution angle (0 to 21600000) */
|
|
2274
|
-
|
|
3004
|
+
rev: number;
|
|
2275
3005
|
}
|
|
2276
3006
|
/**
|
|
2277
3007
|
* Camera options (CT_Camera).
|
|
@@ -2292,13 +3022,13 @@ interface SphereCoords {
|
|
|
2292
3022
|
*/
|
|
2293
3023
|
interface CameraOptions {
|
|
2294
3024
|
/** Preset camera type (e.g., "perspectiveFront", "isometricTopUp") */
|
|
2295
|
-
|
|
3025
|
+
preset: string;
|
|
2296
3026
|
/** Field of view angle (0 to 10800000, in 1/60000 degree units, max 180°) */
|
|
2297
|
-
|
|
3027
|
+
fov?: number;
|
|
2298
3028
|
/** Zoom percentage (e.g., "100%") */
|
|
2299
|
-
|
|
3029
|
+
zoom?: string;
|
|
2300
3030
|
/** Camera rotation */
|
|
2301
|
-
|
|
3031
|
+
rotation?: SphereCoords;
|
|
2302
3032
|
}
|
|
2303
3033
|
/**
|
|
2304
3034
|
* Light rig options (CT_LightRig).
|
|
@@ -2318,27 +3048,27 @@ interface CameraOptions {
|
|
|
2318
3048
|
*/
|
|
2319
3049
|
interface LightRigOptions {
|
|
2320
3050
|
/** Light rig type (e.g., "threePt", "balanced", "soft") */
|
|
2321
|
-
|
|
3051
|
+
rig: string;
|
|
2322
3052
|
/** Light direction (e.g., "tl", "t", "tr", "l", "r", "bl", "b", "br") */
|
|
2323
|
-
|
|
3053
|
+
direction: string;
|
|
2324
3054
|
/** Light rig rotation */
|
|
2325
|
-
|
|
3055
|
+
rotation?: SphereCoords;
|
|
2326
3056
|
}
|
|
2327
3057
|
/**
|
|
2328
3058
|
* 3D point (CT_Point3D).
|
|
2329
3059
|
*/
|
|
2330
3060
|
interface Point3D {
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
3061
|
+
x: number;
|
|
3062
|
+
y: number;
|
|
3063
|
+
z: number;
|
|
2334
3064
|
}
|
|
2335
3065
|
/**
|
|
2336
3066
|
* 3D vector (CT_Vector3D).
|
|
2337
3067
|
*/
|
|
2338
3068
|
interface Vector3D {
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
3069
|
+
dx: number;
|
|
3070
|
+
dy: number;
|
|
3071
|
+
dz: number;
|
|
2342
3072
|
}
|
|
2343
3073
|
/**
|
|
2344
3074
|
* Backdrop options (CT_Backdrop).
|
|
@@ -2358,11 +3088,11 @@ interface Vector3D {
|
|
|
2358
3088
|
*/
|
|
2359
3089
|
interface BackdropOptions {
|
|
2360
3090
|
/** Anchor point */
|
|
2361
|
-
|
|
3091
|
+
anchor: Point3D;
|
|
2362
3092
|
/** Normal vector */
|
|
2363
|
-
|
|
3093
|
+
normal: Vector3D;
|
|
2364
3094
|
/** Up vector */
|
|
2365
|
-
|
|
3095
|
+
up: Vector3D;
|
|
2366
3096
|
}
|
|
2367
3097
|
/**
|
|
2368
3098
|
* Options for a 3D scene (CT_Scene3D).
|
|
@@ -2390,11 +3120,11 @@ interface BackdropOptions {
|
|
|
2390
3120
|
*/
|
|
2391
3121
|
interface Scene3DOptions {
|
|
2392
3122
|
/** Camera settings (required) */
|
|
2393
|
-
|
|
3123
|
+
camera: CameraOptions;
|
|
2394
3124
|
/** Light rig settings (required) */
|
|
2395
|
-
|
|
3125
|
+
lightRig: LightRigOptions;
|
|
2396
3126
|
/** Backdrop settings (optional) */
|
|
2397
|
-
|
|
3127
|
+
backdrop?: BackdropOptions;
|
|
2398
3128
|
}
|
|
2399
3129
|
/**
|
|
2400
3130
|
* Creates a 3D scene element (a:scene3d).
|
|
@@ -2422,7 +3152,7 @@ interface Scene3DOptions {
|
|
|
2422
3152
|
* });
|
|
2423
3153
|
* ```
|
|
2424
3154
|
*/
|
|
2425
|
-
declare const createScene3D: (options: Scene3DOptions) =>
|
|
3155
|
+
declare const createScene3D: (options: Scene3DOptions) => string;
|
|
2426
3156
|
//#endregion
|
|
2427
3157
|
//#region src/drawingml/three-d/bevel.d.ts
|
|
2428
3158
|
/**
|
|
@@ -2449,11 +3179,11 @@ declare const BevelPresetType: {
|
|
|
2449
3179
|
*/
|
|
2450
3180
|
interface BevelOptions {
|
|
2451
3181
|
/** Bevel width in EMUs (default 76200) */
|
|
2452
|
-
|
|
3182
|
+
w?: number;
|
|
2453
3183
|
/** Bevel height in EMUs (default 76200) */
|
|
2454
|
-
|
|
3184
|
+
h?: number;
|
|
2455
3185
|
/** Bevel preset type */
|
|
2456
|
-
|
|
3186
|
+
prst?: (typeof BevelPresetType)[keyof typeof BevelPresetType];
|
|
2457
3187
|
}
|
|
2458
3188
|
/**
|
|
2459
3189
|
* Creates a bevel element.
|
|
@@ -2467,11 +3197,11 @@ interface BevelOptions {
|
|
|
2467
3197
|
* </xsd:complexType>
|
|
2468
3198
|
* ```
|
|
2469
3199
|
*/
|
|
2470
|
-
declare const createBevel: (options?: BevelOptions) =>
|
|
3200
|
+
declare const createBevel: (options?: BevelOptions) => string;
|
|
2471
3201
|
/**
|
|
2472
3202
|
* Creates a bottom bevel element (a:bevelB).
|
|
2473
3203
|
*/
|
|
2474
|
-
declare const createBottomBevel: (options?: BevelOptions) =>
|
|
3204
|
+
declare const createBottomBevel: (options?: BevelOptions) => string;
|
|
2475
3205
|
//#endregion
|
|
2476
3206
|
//#region src/drawingml/three-d/shape-3d.d.ts
|
|
2477
3207
|
/**
|
|
@@ -2501,21 +3231,21 @@ declare const PresetMaterialType: {
|
|
|
2501
3231
|
*/
|
|
2502
3232
|
interface Shape3DOptions {
|
|
2503
3233
|
/** Top bevel options */
|
|
2504
|
-
|
|
3234
|
+
bevelT?: BevelOptions;
|
|
2505
3235
|
/** Bottom bevel options */
|
|
2506
|
-
|
|
3236
|
+
bevelB?: BevelOptions;
|
|
2507
3237
|
/** Extrusion color (CT_Color / EG_ColorChoice) */
|
|
2508
|
-
|
|
3238
|
+
extrusionColor?: SolidFillOptions;
|
|
2509
3239
|
/** Contour color (CT_Color / EG_ColorChoice) */
|
|
2510
|
-
|
|
3240
|
+
contourColor?: SolidFillOptions;
|
|
2511
3241
|
/** Depth in EMUs (default 0) */
|
|
2512
|
-
|
|
3242
|
+
z?: number;
|
|
2513
3243
|
/** Extrusion height in EMUs (default 0) */
|
|
2514
|
-
|
|
3244
|
+
extrusionH?: number;
|
|
2515
3245
|
/** Contour width in EMUs (default 0) */
|
|
2516
|
-
|
|
3246
|
+
contourW?: number;
|
|
2517
3247
|
/** Material preset type */
|
|
2518
|
-
|
|
3248
|
+
prstMaterial?: (typeof PresetMaterialType)[keyof typeof PresetMaterialType];
|
|
2519
3249
|
}
|
|
2520
3250
|
/**
|
|
2521
3251
|
* Creates a 3D shape properties element (a:sp3d).
|
|
@@ -2536,116 +3266,37 @@ interface Shape3DOptions {
|
|
|
2536
3266
|
* </xsd:complexType>
|
|
2537
3267
|
* ```
|
|
2538
3268
|
*/
|
|
2539
|
-
declare const createShape3D: (options: Shape3DOptions) =>
|
|
3269
|
+
declare const createShape3D: (options: Shape3DOptions) => string;
|
|
2540
3270
|
//#endregion
|
|
2541
3271
|
//#region src/drawingml/geometry/adjustment-values.d.ts
|
|
2542
3272
|
/**
|
|
2543
|
-
*
|
|
3273
|
+
* Adjustment values module for preset geometries.
|
|
2544
3274
|
*
|
|
2545
|
-
*
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
*
|
|
2549
|
-
* <xsd:attribute name="fmla" type="ST_GeomGuideFormula" use="required"/>
|
|
2550
|
-
* </xsd:complexType>
|
|
2551
|
-
* ```
|
|
2552
|
-
*
|
|
2553
|
-
* @example
|
|
2554
|
-
* ```typescript
|
|
2555
|
-
* // Adjust rounded rectangle corner radius
|
|
2556
|
-
* { name: "adj", formula: "val 16667" }
|
|
2557
|
-
*
|
|
2558
|
-
* // Adjust star inner radius
|
|
2559
|
-
* { name: "val", formula: "val 50000" }
|
|
2560
|
-
* ```
|
|
2561
|
-
*
|
|
2562
|
-
* Note: Formula examples like `val 16667` define fixed adjustment values.
|
|
3275
|
+
* @module
|
|
3276
|
+
*/
|
|
3277
|
+
/**
|
|
3278
|
+
* A single geometry guide that defines an adjustment value.
|
|
2563
3279
|
*/
|
|
2564
3280
|
interface GeometryGuide {
|
|
2565
3281
|
/** Guide name (identifier) */
|
|
2566
|
-
|
|
3282
|
+
name: string;
|
|
2567
3283
|
/** Guide formula (e.g., "val 16667") */
|
|
2568
|
-
|
|
3284
|
+
formula: string;
|
|
2569
3285
|
}
|
|
2570
3286
|
/**
|
|
2571
|
-
*
|
|
2572
|
-
*
|
|
2573
|
-
* The adjustment values list contains geometry guides that modify
|
|
2574
|
-
* the appearance of a preset geometric shape. When empty, default
|
|
2575
|
-
* values are used.
|
|
2576
|
-
*
|
|
2577
|
-
* ## XSD Schema
|
|
2578
|
-
* ```xml
|
|
2579
|
-
* <xsd:complexType name="CT_GeomGuideList">
|
|
2580
|
-
* <xsd:sequence>
|
|
2581
|
-
* <xsd:element name="gd" type="CT_GeomGuide" minOccurs="0" maxOccurs="unbounded"/>
|
|
2582
|
-
* </xsd:sequence>
|
|
2583
|
-
* </xsd:complexType>
|
|
2584
|
-
* ```
|
|
2585
|
-
*
|
|
2586
|
-
* @example
|
|
2587
|
-
* ```typescript
|
|
2588
|
-
* // Empty adjustment values (defaults)
|
|
2589
|
-
* createAdjustmentValues();
|
|
2590
|
-
*
|
|
2591
|
-
* // With guides
|
|
2592
|
-
* createAdjustmentValues([
|
|
2593
|
-
* { name: "adj", formula: "val 16667" },
|
|
2594
|
-
* ]);
|
|
2595
|
-
* ```
|
|
3287
|
+
* Build a:avLst XML string from geometry guides.
|
|
2596
3288
|
*/
|
|
2597
|
-
declare
|
|
3289
|
+
declare function stringifyAdjustmentValues(guides?: readonly GeometryGuide[]): string;
|
|
2598
3290
|
//#endregion
|
|
2599
3291
|
//#region src/drawingml/geometry/preset-geometry.d.ts
|
|
2600
|
-
/**
|
|
2601
|
-
* Options for preset geometry.
|
|
2602
|
-
*/
|
|
2603
3292
|
interface PresetGeometryOptions {
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
*
|
|
2607
|
-
* Defaults to `"rect"` if not specified.
|
|
2608
|
-
*/
|
|
2609
|
-
readonly preset?: string;
|
|
2610
|
-
/**
|
|
2611
|
-
* Adjustment values that modify the base shape.
|
|
2612
|
-
*
|
|
2613
|
-
* Each guide has a name and formula (e.g., `{ name: "adj", formula: "val 16667" }`).
|
|
2614
|
-
*/
|
|
2615
|
-
readonly adjustmentValues?: readonly GeometryGuide[];
|
|
3293
|
+
preset?: string;
|
|
3294
|
+
adjustmentValues?: readonly GeometryGuide[];
|
|
2616
3295
|
}
|
|
2617
3296
|
/**
|
|
2618
|
-
*
|
|
2619
|
-
*
|
|
2620
|
-
* This element specifies when a preset geometric shape should be used instead
|
|
2621
|
-
* of a custom geometry. It includes a shape preset identifier and optional
|
|
2622
|
-
* adjustment values that modify the base shape.
|
|
2623
|
-
*
|
|
2624
|
-
* ## XSD Schema
|
|
2625
|
-
* ```xml
|
|
2626
|
-
* <xsd:complexType name="CT_PresetGeometry2D">
|
|
2627
|
-
* <xsd:sequence>
|
|
2628
|
-
* <xsd:element name="avLst" type="CT_GeomGuideList" minOccurs="0" maxOccurs="1"/>
|
|
2629
|
-
* </xsd:sequence>
|
|
2630
|
-
* <xsd:attribute name="prst" type="ST_ShapeType" use="required"/>
|
|
2631
|
-
* </xsd:complexType>
|
|
2632
|
-
* ```
|
|
2633
|
-
*
|
|
2634
|
-
* @example
|
|
2635
|
-
* ```typescript
|
|
2636
|
-
* // Default rectangle
|
|
2637
|
-
* const geometry = new PresetGeometry();
|
|
2638
|
-
*
|
|
2639
|
-
* // Rounded rectangle with adjustment
|
|
2640
|
-
* const geometry = new PresetGeometry({
|
|
2641
|
-
* preset: "roundRect",
|
|
2642
|
-
* adjustmentValues: [{ name: "adj", formula: "val 16667" }],
|
|
2643
|
-
* });
|
|
2644
|
-
* ```
|
|
3297
|
+
* Build a:prstGeom XML string.
|
|
2645
3298
|
*/
|
|
2646
|
-
declare
|
|
2647
|
-
constructor(options?: PresetGeometryOptions);
|
|
2648
|
-
}
|
|
3299
|
+
declare function stringifyPresetGeometry(options?: PresetGeometryOptions): string;
|
|
2649
3300
|
//#endregion
|
|
2650
3301
|
//#region src/drawingml/geometry/custom-geometry.d.ts
|
|
2651
3302
|
/**
|
|
@@ -2680,41 +3331,41 @@ declare const PathFillMode: {
|
|
|
2680
3331
|
*/
|
|
2681
3332
|
interface AdjPoint {
|
|
2682
3333
|
/** X coordinate (absolute value or guide name) */
|
|
2683
|
-
|
|
3334
|
+
x: string;
|
|
2684
3335
|
/** Y coordinate (absolute value or guide name) */
|
|
2685
|
-
|
|
3336
|
+
y: string;
|
|
2686
3337
|
}
|
|
2687
3338
|
/** Move-to path command (CT_Path2DMoveTo). */
|
|
2688
3339
|
interface PathMoveTo {
|
|
2689
|
-
|
|
2690
|
-
|
|
3340
|
+
command: "moveTo";
|
|
3341
|
+
point: AdjPoint;
|
|
2691
3342
|
}
|
|
2692
3343
|
/** Line-to path command (CT_Path2DLineTo). */
|
|
2693
3344
|
interface PathLineTo {
|
|
2694
|
-
|
|
2695
|
-
|
|
3345
|
+
command: "lineTo";
|
|
3346
|
+
point: AdjPoint;
|
|
2696
3347
|
}
|
|
2697
3348
|
/** Arc-to path command (CT_Path2DArcTo). */
|
|
2698
3349
|
interface PathArcTo {
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
3350
|
+
command: "arcTo";
|
|
3351
|
+
widthRadius: string;
|
|
3352
|
+
heightRadius: string;
|
|
3353
|
+
startAngle: string;
|
|
3354
|
+
sweepAngle: string;
|
|
2704
3355
|
}
|
|
2705
3356
|
/** Quadratic Bezier-to path command (CT_Path2DQuadBezierTo). */
|
|
2706
3357
|
interface PathQuadBezTo {
|
|
2707
|
-
|
|
2708
|
-
|
|
3358
|
+
command: "quadBezTo";
|
|
3359
|
+
points: readonly [AdjPoint, AdjPoint];
|
|
2709
3360
|
}
|
|
2710
3361
|
/** Cubic Bezier-to path command (CT_Path2DCubicBezierTo). */
|
|
2711
3362
|
interface PathCubicBezTo {
|
|
2712
|
-
|
|
2713
|
-
|
|
3363
|
+
command: "cubicBezTo";
|
|
3364
|
+
points: readonly [AdjPoint, AdjPoint, AdjPoint];
|
|
2714
3365
|
}
|
|
2715
3366
|
/** Close path command (CT_Path2DClose). */
|
|
2716
3367
|
interface PathClose {
|
|
2717
|
-
|
|
3368
|
+
command: "close";
|
|
2718
3369
|
}
|
|
2719
3370
|
/** A path command within a custom geometry path. */
|
|
2720
3371
|
type PathCommand = PathMoveTo | PathLineTo | PathArcTo | PathQuadBezTo | PathCubicBezTo | PathClose;
|
|
@@ -2742,24 +3393,24 @@ type PathCommand = PathMoveTo | PathLineTo | PathArcTo | PathQuadBezTo | PathCub
|
|
|
2742
3393
|
*/
|
|
2743
3394
|
interface PathOptions {
|
|
2744
3395
|
/** Path width (coordinate value, default 0 = use shape width) */
|
|
2745
|
-
|
|
3396
|
+
w?: number;
|
|
2746
3397
|
/** Path height (coordinate value, default 0 = use shape height) */
|
|
2747
|
-
|
|
3398
|
+
h?: number;
|
|
2748
3399
|
/** Fill mode for this path */
|
|
2749
|
-
|
|
3400
|
+
fill?: (typeof PathFillMode)[keyof typeof PathFillMode];
|
|
2750
3401
|
/** Whether to stroke the path */
|
|
2751
|
-
|
|
3402
|
+
stroke?: boolean;
|
|
2752
3403
|
/** Whether extrusion is allowed */
|
|
2753
|
-
|
|
3404
|
+
extrusionOk?: boolean;
|
|
2754
3405
|
/** Path commands (moveTo, lineTo, arcTo, etc.) */
|
|
2755
|
-
|
|
3406
|
+
commands: readonly PathCommand[];
|
|
2756
3407
|
}
|
|
2757
3408
|
/**
|
|
2758
3409
|
* A position reference for adjust handles and connection sites.
|
|
2759
3410
|
*/
|
|
2760
3411
|
interface AdjustHandlePosition {
|
|
2761
|
-
|
|
2762
|
-
|
|
3412
|
+
x: string;
|
|
3413
|
+
y: string;
|
|
2763
3414
|
}
|
|
2764
3415
|
/**
|
|
2765
3416
|
* XY adjust handle (CT_XYAdjustHandle).
|
|
@@ -2767,14 +3418,14 @@ interface AdjustHandlePosition {
|
|
|
2767
3418
|
* Allows the user to drag a handle in X/Y directions.
|
|
2768
3419
|
*/
|
|
2769
3420
|
interface XYAdjustHandle {
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
3421
|
+
type: "xy";
|
|
3422
|
+
guideRefX?: string;
|
|
3423
|
+
minX?: string;
|
|
3424
|
+
maxX?: string;
|
|
3425
|
+
guideRefY?: string;
|
|
3426
|
+
minY?: string;
|
|
3427
|
+
maxY?: string;
|
|
3428
|
+
position: AdjustHandlePosition;
|
|
2778
3429
|
}
|
|
2779
3430
|
/**
|
|
2780
3431
|
* Polar adjust handle (CT_PolarAdjustHandle).
|
|
@@ -2782,14 +3433,14 @@ interface XYAdjustHandle {
|
|
|
2782
3433
|
* Allows the user to drag a handle in radius/angle directions.
|
|
2783
3434
|
*/
|
|
2784
3435
|
interface PolarAdjustHandle {
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
3436
|
+
type: "polar";
|
|
3437
|
+
guideRefRadius?: string;
|
|
3438
|
+
minRadius?: string;
|
|
3439
|
+
maxRadius?: string;
|
|
3440
|
+
guideRefAngle?: string;
|
|
3441
|
+
minAngle?: string;
|
|
3442
|
+
maxAngle?: string;
|
|
3443
|
+
position: AdjustHandlePosition;
|
|
2793
3444
|
}
|
|
2794
3445
|
/** An adjust handle (XY or Polar). */
|
|
2795
3446
|
type AdjustHandle = XYAdjustHandle | PolarAdjustHandle;
|
|
@@ -2800,9 +3451,9 @@ type AdjustHandle = XYAdjustHandle | PolarAdjustHandle;
|
|
|
2800
3451
|
*/
|
|
2801
3452
|
interface ConnectionSite {
|
|
2802
3453
|
/** Angle (absolute value or guide name) */
|
|
2803
|
-
|
|
3454
|
+
angle: string;
|
|
2804
3455
|
/** Position */
|
|
2805
|
-
|
|
3456
|
+
position: AdjustHandlePosition;
|
|
2806
3457
|
}
|
|
2807
3458
|
/**
|
|
2808
3459
|
* Text insertion rectangle (CT_GeomRect).
|
|
@@ -2811,10 +3462,10 @@ interface ConnectionSite {
|
|
|
2811
3462
|
* Coordinates can be absolute values or references to geometry guide names.
|
|
2812
3463
|
*/
|
|
2813
3464
|
interface GeomRect {
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
3465
|
+
left: string;
|
|
3466
|
+
top: string;
|
|
3467
|
+
right: string;
|
|
3468
|
+
bottom: string;
|
|
2818
3469
|
}
|
|
2819
3470
|
/**
|
|
2820
3471
|
* Options for a custom 2D geometry (CT_CustomGeometry2D).
|
|
@@ -2852,20 +3503,20 @@ interface GeomRect {
|
|
|
2852
3503
|
*/
|
|
2853
3504
|
interface CustomGeometryOptions {
|
|
2854
3505
|
/** Adjustment value guides (a:avLst) */
|
|
2855
|
-
|
|
3506
|
+
adjustmentValues?: readonly GeometryGuide[];
|
|
2856
3507
|
/** Geometry guide formulas (a:gdLst) */
|
|
2857
|
-
|
|
3508
|
+
guides?: readonly GeometryGuide[];
|
|
2858
3509
|
/** Adjust handles (a:ahLst) */
|
|
2859
|
-
|
|
3510
|
+
adjustHandles?: readonly AdjustHandle[];
|
|
2860
3511
|
/** Connection sites (a:cxnLst) */
|
|
2861
|
-
|
|
3512
|
+
connectionSites?: readonly ConnectionSite[];
|
|
2862
3513
|
/** Text insertion rectangle (a:rect) */
|
|
2863
|
-
|
|
3514
|
+
textRect?: GeomRect;
|
|
2864
3515
|
/** Path definitions (a:pathLst) — required */
|
|
2865
|
-
|
|
3516
|
+
pathList: readonly PathOptions[];
|
|
2866
3517
|
}
|
|
2867
3518
|
/**
|
|
2868
|
-
* Creates a custom 2D geometry element (a:custGeom).
|
|
3519
|
+
* Creates a custom 2D geometry element as an XML string (a:custGeom).
|
|
2869
3520
|
*
|
|
2870
3521
|
* @example
|
|
2871
3522
|
* ```typescript
|
|
@@ -2884,7 +3535,7 @@ interface CustomGeometryOptions {
|
|
|
2884
3535
|
* });
|
|
2885
3536
|
* ```
|
|
2886
3537
|
*/
|
|
2887
|
-
declare const createCustomGeometry: (options: CustomGeometryOptions) =>
|
|
3538
|
+
declare const createCustomGeometry: (options: CustomGeometryOptions) => string;
|
|
2888
3539
|
//#endregion
|
|
2889
3540
|
//#region src/drawingml/blip/blip.d.ts
|
|
2890
3541
|
/**
|
|
@@ -2892,11 +3543,11 @@ declare const createCustomGeometry: (options: CustomGeometryOptions) => XmlCompo
|
|
|
2892
3543
|
*/
|
|
2893
3544
|
interface BlipOptions {
|
|
2894
3545
|
/** File name used as placeholder; the packer's ImageReplacer replaces `{referenceId}` with `rId{N}` */
|
|
2895
|
-
|
|
3546
|
+
referenceId: string;
|
|
2896
3547
|
/** Image type for SVG detection */
|
|
2897
|
-
|
|
3548
|
+
type?: "svg" | string;
|
|
2898
3549
|
/** For SVG images, the fallback image file name */
|
|
2899
|
-
|
|
3550
|
+
fallbackFileName?: string;
|
|
2900
3551
|
}
|
|
2901
3552
|
/**
|
|
2902
3553
|
* Creates a blip element for an image.
|
|
@@ -2940,9 +3591,9 @@ interface BlipOptions {
|
|
|
2940
3591
|
*
|
|
2941
3592
|
* @param options - Blip options including referenceId and type
|
|
2942
3593
|
* @param blipEffects - Optional blip effects (brightness, contrast, etc.)
|
|
2943
|
-
* @returns An XML
|
|
3594
|
+
* @returns An XML string representing the blip element
|
|
2944
3595
|
*/
|
|
2945
|
-
declare const createBlip: (options: BlipOptions, blipEffects?: BlipEffectsOptions) =>
|
|
3596
|
+
declare const createBlip: (options: BlipOptions, blipEffects?: BlipEffectsOptions) => string;
|
|
2946
3597
|
//#endregion
|
|
2947
3598
|
//#region src/drawingml/blip/blip-fill.d.ts
|
|
2948
3599
|
/**
|
|
@@ -2950,15 +3601,15 @@ declare const createBlip: (options: BlipOptions, blipEffects?: BlipEffectsOption
|
|
|
2950
3601
|
*/
|
|
2951
3602
|
interface BlipFillOptions {
|
|
2952
3603
|
/** DPI of the image */
|
|
2953
|
-
|
|
3604
|
+
dpi?: number;
|
|
2954
3605
|
/** Whether the fill rotates with the shape */
|
|
2955
|
-
|
|
3606
|
+
rotWithShape?: boolean;
|
|
2956
3607
|
/** Image adjustment effects (brightness, contrast, grayscale, etc.) */
|
|
2957
|
-
|
|
3608
|
+
blipEffects?: BlipEffectsOptions;
|
|
2958
3609
|
/** Source rectangle for cropping */
|
|
2959
|
-
|
|
3610
|
+
srcRect?: SourceRectangleOptions;
|
|
2960
3611
|
/** Tile fill mode (if omitted, defaults to stretch) */
|
|
2961
|
-
|
|
3612
|
+
tile?: TileOptions;
|
|
2962
3613
|
}
|
|
2963
3614
|
/**
|
|
2964
3615
|
* Creates a blip fill element.
|
|
@@ -2983,8 +3634,9 @@ interface BlipFillOptions {
|
|
|
2983
3634
|
*
|
|
2984
3635
|
* @param blipOptions - Blip options including referenceId and type
|
|
2985
3636
|
* @param fillOptions - Optional blip fill options
|
|
3637
|
+
* @returns An XML string representing the blip fill element
|
|
2986
3638
|
*/
|
|
2987
|
-
declare const createBlipFill: (blipOptions: BlipOptions, fillOptions?: BlipFillOptions) =>
|
|
3639
|
+
declare const createBlipFill: (blipOptions: BlipOptions, fillOptions?: BlipFillOptions) => string;
|
|
2988
3640
|
//#endregion
|
|
2989
3641
|
//#region src/drawingml/blip/blip-extentions.d.ts
|
|
2990
3642
|
/**
|
|
@@ -3003,53 +3655,36 @@ declare const createBlipFill: (blipOptions: BlipOptions, fillOptions?: BlipFillO
|
|
|
3003
3655
|
* ```
|
|
3004
3656
|
*
|
|
3005
3657
|
* @param svgReferenceId - The reference ID for the SVG image
|
|
3006
|
-
* @returns An XML
|
|
3658
|
+
* @returns An XML string representing the extension list
|
|
3007
3659
|
*/
|
|
3008
|
-
declare const createExtentionList: (svgReferenceId: string) =>
|
|
3660
|
+
declare const createExtentionList: (svgReferenceId: string) => string;
|
|
3009
3661
|
//#endregion
|
|
3010
3662
|
//#region src/drawingml/blip/stretch.d.ts
|
|
3011
3663
|
/**
|
|
3012
|
-
*
|
|
3013
|
-
*
|
|
3014
|
-
* This element specifies that the blip (image) should be stretched to fill
|
|
3015
|
-
* the entire shape. The stretch fill is one of the fill mode properties
|
|
3016
|
-
* that determines how an image is applied to a shape.
|
|
3017
|
-
*
|
|
3018
|
-
* Reference: http://officeopenxml.com/drwPic.php
|
|
3019
|
-
*
|
|
3020
|
-
* ## XSD Schema
|
|
3021
|
-
* ```xml
|
|
3022
|
-
* <xsd:complexType name="CT_StretchInfoProperties">
|
|
3023
|
-
* <xsd:sequence>
|
|
3024
|
-
* <xsd:element name="fillRect" type="CT_RelativeRect" minOccurs="0" maxOccurs="1"/>
|
|
3025
|
-
* </xsd:sequence>
|
|
3026
|
-
* </xsd:complexType>
|
|
3027
|
-
* ```
|
|
3664
|
+
* Stretch fill stringifier for blip fills.
|
|
3028
3665
|
*
|
|
3029
|
-
* @
|
|
3030
|
-
* ```typescript
|
|
3031
|
-
* const stretch = new Stretch();
|
|
3032
|
-
* ```
|
|
3666
|
+
* @module
|
|
3033
3667
|
*/
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3668
|
+
/**
|
|
3669
|
+
* Build a:stretch XML string with a:fillRect child.
|
|
3670
|
+
*/
|
|
3671
|
+
declare function stringifyStretch(): string;
|
|
3037
3672
|
//#endregion
|
|
3038
3673
|
//#region src/drawingml/transform.d.ts
|
|
3039
3674
|
interface Transform2DOptions {
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3675
|
+
x?: number | UniversalMeasure;
|
|
3676
|
+
y?: number | UniversalMeasure;
|
|
3677
|
+
width?: number | UniversalMeasure;
|
|
3678
|
+
height?: number | UniversalMeasure;
|
|
3679
|
+
flipHorizontal?: boolean;
|
|
3680
|
+
flipVertical?: boolean;
|
|
3681
|
+
rotation?: number;
|
|
3047
3682
|
}
|
|
3048
3683
|
interface GroupTransform2DOptions extends Transform2DOptions {
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3684
|
+
childOffsetX?: number | UniversalMeasure;
|
|
3685
|
+
childOffsetY?: number | UniversalMeasure;
|
|
3686
|
+
childExtentWidth?: number | UniversalMeasure;
|
|
3687
|
+
childExtentHeight?: number | UniversalMeasure;
|
|
3053
3688
|
}
|
|
3054
3689
|
/**
|
|
3055
3690
|
* Creates a 2D transform element (a:xfrm).
|
|
@@ -3057,43 +3692,43 @@ interface GroupTransform2DOptions extends Transform2DOptions {
|
|
|
3057
3692
|
* @param options - Transform options including position, size, rotation, and flip.
|
|
3058
3693
|
* @param elementName - Element name, defaults to "a:xfrm".
|
|
3059
3694
|
*/
|
|
3060
|
-
declare const createTransform2D: (options: Transform2DOptions, elementName?: string) =>
|
|
3695
|
+
declare const createTransform2D: (options: Transform2DOptions, elementName?: string) => string;
|
|
3061
3696
|
/**
|
|
3062
3697
|
* Creates a group transform element (a:xfrm with chOff/chExt children).
|
|
3063
3698
|
*/
|
|
3064
|
-
declare const createGroupTransform2D: (options: GroupTransform2DOptions, elementName?: string) =>
|
|
3699
|
+
declare const createGroupTransform2D: (options: GroupTransform2DOptions, elementName?: string) => string;
|
|
3065
3700
|
//#endregion
|
|
3066
3701
|
//#region src/drawingml/media/transformation.d.ts
|
|
3067
3702
|
/**
|
|
3068
3703
|
* Internal media data transformation with both pixel and EMU values.
|
|
3069
3704
|
*/
|
|
3070
3705
|
interface MediaDataTransformation {
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3706
|
+
offset?: {
|
|
3707
|
+
pixels: {
|
|
3708
|
+
x: number;
|
|
3709
|
+
y: number;
|
|
3075
3710
|
};
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3711
|
+
emus?: {
|
|
3712
|
+
x: number;
|
|
3713
|
+
y: number;
|
|
3079
3714
|
};
|
|
3080
3715
|
};
|
|
3081
|
-
|
|
3082
|
-
/** Width in pixels */
|
|
3083
|
-
|
|
3716
|
+
pixels: {
|
|
3717
|
+
/** Width in pixels */x: number; /** Height in pixels */
|
|
3718
|
+
y: number;
|
|
3084
3719
|
};
|
|
3085
3720
|
/** Display dimensions in EMUs (English Metric Units) */
|
|
3086
|
-
|
|
3087
|
-
/** Width in EMUs (1 inch = 914400 EMUs) */
|
|
3088
|
-
|
|
3721
|
+
emus: {
|
|
3722
|
+
/** Width in EMUs (1 inch = 914400 EMUs) */x: number; /** Height in EMUs (1 inch = 914400 EMUs) */
|
|
3723
|
+
y: number;
|
|
3089
3724
|
};
|
|
3090
3725
|
/** Optional flip transformations */
|
|
3091
|
-
|
|
3092
|
-
/** Whether to flip the image vertically */
|
|
3093
|
-
|
|
3726
|
+
flip?: {
|
|
3727
|
+
/** Whether to flip the image vertically */vertical?: boolean; /** Whether to flip the image horizontally */
|
|
3728
|
+
horizontal?: boolean;
|
|
3094
3729
|
};
|
|
3095
3730
|
/** Optional rotation angle in degrees */
|
|
3096
|
-
|
|
3731
|
+
rotation?: number;
|
|
3097
3732
|
}
|
|
3098
3733
|
/**
|
|
3099
3734
|
* Transformation options for media display.
|
|
@@ -3101,20 +3736,20 @@ interface MediaDataTransformation {
|
|
|
3101
3736
|
* Specifies how an image should be transformed when displayed in the document.
|
|
3102
3737
|
*/
|
|
3103
3738
|
interface MediaTransformation {
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3739
|
+
offset?: {
|
|
3740
|
+
top?: number;
|
|
3741
|
+
left?: number;
|
|
3107
3742
|
};
|
|
3108
|
-
|
|
3743
|
+
width: number;
|
|
3109
3744
|
/** Display height in pixels */
|
|
3110
|
-
|
|
3745
|
+
height: number;
|
|
3111
3746
|
/** Optional flip transformations */
|
|
3112
|
-
|
|
3113
|
-
/** Whether to flip the image vertically */
|
|
3114
|
-
|
|
3747
|
+
flip?: {
|
|
3748
|
+
/** Whether to flip the image vertically */vertical?: boolean; /** Whether to flip the image horizontally */
|
|
3749
|
+
horizontal?: boolean;
|
|
3115
3750
|
};
|
|
3116
3751
|
/** Optional rotation angle in degrees */
|
|
3117
|
-
|
|
3752
|
+
rotation?: number;
|
|
3118
3753
|
}
|
|
3119
3754
|
/**
|
|
3120
3755
|
* Converts user-facing transformation options (pixels) to internal
|
|
@@ -3130,1107 +3765,166 @@ type TableStyleRegion = "tblBg" | "wholeTbl" | "band1H" | "band2H" | "band1V" |
|
|
|
3130
3765
|
type OnOffStyleType = "on" | "off" | "def";
|
|
3131
3766
|
interface TablePartStyleOptions {
|
|
3132
3767
|
/** Cell text style */
|
|
3133
|
-
|
|
3768
|
+
text?: TableTextStyleOptions;
|
|
3134
3769
|
/** Cell style (fill, borders, 3D) */
|
|
3135
|
-
|
|
3770
|
+
cell?: TableCellStyleOptions;
|
|
3136
3771
|
}
|
|
3137
3772
|
interface TableTextStyleOptions {
|
|
3138
3773
|
/** Bold style */
|
|
3139
|
-
|
|
3774
|
+
bold?: OnOffStyleType;
|
|
3140
3775
|
/** Italic style */
|
|
3141
|
-
|
|
3776
|
+
italic?: OnOffStyleType;
|
|
3142
3777
|
/** Font reference (themeable) */
|
|
3143
|
-
|
|
3778
|
+
fontRef?: StyleMatrixReferenceOptions;
|
|
3144
3779
|
/** Color element */
|
|
3145
|
-
|
|
3780
|
+
color?: string;
|
|
3146
3781
|
}
|
|
3147
3782
|
interface TableCellStyleOptions {
|
|
3148
3783
|
/** Cell borders */
|
|
3149
|
-
|
|
3784
|
+
borders?: TableCellBorderOptions;
|
|
3150
3785
|
/** Fill reference (themeable) */
|
|
3151
|
-
|
|
3786
|
+
fillRef?: StyleMatrixReferenceOptions;
|
|
3152
3787
|
/** Direct fill */
|
|
3153
|
-
|
|
3788
|
+
fill?: string;
|
|
3154
3789
|
}
|
|
3155
3790
|
interface TableCellBorderOptions {
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3791
|
+
left?: ThemeableLineStyleOptions;
|
|
3792
|
+
right?: ThemeableLineStyleOptions;
|
|
3793
|
+
top?: ThemeableLineStyleOptions;
|
|
3794
|
+
bottom?: ThemeableLineStyleOptions;
|
|
3795
|
+
insideH?: ThemeableLineStyleOptions;
|
|
3796
|
+
insideV?: ThemeableLineStyleOptions;
|
|
3162
3797
|
}
|
|
3163
3798
|
interface ThemeableLineStyleOptions {
|
|
3164
3799
|
/** Line width in EMUs */
|
|
3165
|
-
|
|
3800
|
+
width?: number;
|
|
3166
3801
|
/** Fill color component */
|
|
3167
|
-
|
|
3802
|
+
color?: string;
|
|
3168
3803
|
/** Line reference index into theme style matrix */
|
|
3169
|
-
|
|
3804
|
+
lineRefIdx?: number;
|
|
3170
3805
|
}
|
|
3171
3806
|
interface StyleMatrixReferenceOptions {
|
|
3172
3807
|
/** Index into the theme style matrix */
|
|
3173
|
-
|
|
3808
|
+
idx: number;
|
|
3174
3809
|
/** Color component */
|
|
3175
|
-
|
|
3810
|
+
color?: string;
|
|
3176
3811
|
}
|
|
3177
3812
|
interface TableStyleOptions {
|
|
3178
3813
|
/** Unique GUID for this style */
|
|
3179
|
-
|
|
3814
|
+
styleId: string;
|
|
3180
3815
|
/** Display name */
|
|
3181
|
-
|
|
3816
|
+
styleName: string;
|
|
3182
3817
|
/** Style regions */
|
|
3183
|
-
|
|
3818
|
+
regions?: Partial<Record<TableStyleRegion, TablePartStyleOptions>>;
|
|
3184
3819
|
}
|
|
3185
3820
|
interface TableStyleListOptions {
|
|
3186
3821
|
/** Default style GUID */
|
|
3187
|
-
|
|
3822
|
+
defaultStyleId: string;
|
|
3188
3823
|
/** Custom table styles */
|
|
3189
|
-
|
|
3824
|
+
styles?: readonly TableStyleOptions[];
|
|
3190
3825
|
}
|
|
3191
3826
|
/** Create a single table style (CT_TableStyle) */
|
|
3192
|
-
declare function createTableStyle(opts: TableStyleOptions):
|
|
3827
|
+
declare function createTableStyle(opts: TableStyleOptions): string;
|
|
3193
3828
|
/** Create table style list (CT_TableStyleList) */
|
|
3194
|
-
declare function createTableStyleList(opts: TableStyleListOptions):
|
|
3829
|
+
declare function createTableStyleList(opts: TableStyleListOptions): string;
|
|
3195
3830
|
//#endregion
|
|
3196
3831
|
//#region src/drawingml/locking/locking.d.ts
|
|
3197
3832
|
interface BaseLockingOptions {
|
|
3198
3833
|
/** Prevent grouping */
|
|
3199
|
-
|
|
3834
|
+
noGrp?: boolean;
|
|
3200
3835
|
/** Prevent selection */
|
|
3201
|
-
|
|
3836
|
+
noSelect?: boolean;
|
|
3202
3837
|
/** Prevent rotation */
|
|
3203
|
-
|
|
3838
|
+
noRot?: boolean;
|
|
3204
3839
|
/** Prevent aspect ratio change */
|
|
3205
|
-
|
|
3840
|
+
noChangeAspect?: boolean;
|
|
3206
3841
|
/** Prevent moving */
|
|
3207
|
-
|
|
3842
|
+
noMove?: boolean;
|
|
3208
3843
|
/** Prevent resizing */
|
|
3209
|
-
|
|
3844
|
+
noResize?: boolean;
|
|
3210
3845
|
/** Prevent edit points */
|
|
3211
|
-
|
|
3846
|
+
noEditPoints?: boolean;
|
|
3212
3847
|
/** Prevent adjust handles */
|
|
3213
|
-
|
|
3848
|
+
noAdjustHandles?: boolean;
|
|
3214
3849
|
/** Prevent changing arrowheads */
|
|
3215
|
-
|
|
3850
|
+
noChangeArrowheads?: boolean;
|
|
3216
3851
|
/** Prevent changing shape type */
|
|
3217
|
-
|
|
3852
|
+
noChangeShapeType?: boolean;
|
|
3218
3853
|
}
|
|
3219
3854
|
interface ShapeLockingOptions extends BaseLockingOptions {
|
|
3220
3855
|
/** Prevent text editing */
|
|
3221
|
-
|
|
3856
|
+
noTextEdit?: boolean;
|
|
3222
3857
|
}
|
|
3223
3858
|
interface PictureLockingOptions extends BaseLockingOptions {
|
|
3224
3859
|
/** Prevent cropping */
|
|
3225
|
-
|
|
3860
|
+
noCrop?: boolean;
|
|
3226
3861
|
}
|
|
3227
3862
|
interface GroupLockingOptions {
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3863
|
+
noGrp?: boolean;
|
|
3864
|
+
noUngrp?: boolean;
|
|
3865
|
+
noSelect?: boolean;
|
|
3866
|
+
noRot?: boolean;
|
|
3867
|
+
noChangeAspect?: boolean;
|
|
3868
|
+
noMove?: boolean;
|
|
3869
|
+
noResize?: boolean;
|
|
3235
3870
|
}
|
|
3236
3871
|
interface GraphicFrameLockingOptions {
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
}
|
|
3244
|
-
declare function createShapeLocking(opts: ShapeLockingOptions):
|
|
3245
|
-
declare function createPictureLocking(opts: PictureLockingOptions):
|
|
3246
|
-
declare function createGroupLocking(opts: GroupLockingOptions):
|
|
3247
|
-
declare function createGraphicFrameLocking(opts: GraphicFrameLockingOptions):
|
|
3248
|
-
//#endregion
|
|
3249
|
-
//#region src/drawingml/chart-drawing/chart-drawing.d.ts
|
|
3250
|
-
/**
|
|
3251
|
-
* Creates a cdr:x element (Marker X Coordinate).
|
|
3252
|
-
*
|
|
3253
|
-
* ## XSD Schema
|
|
3254
|
-
* ```xml
|
|
3255
|
-
* <xsd:element name="x" type="ST_MarkerCoordinate"/>
|
|
3256
|
-
* ```
|
|
3257
|
-
*/
|
|
3258
|
-
declare const createCdrX: (value: number) => XmlComponent;
|
|
3259
|
-
/**
|
|
3260
|
-
* Creates a cdr:y element (Marker Y Coordinate).
|
|
3261
|
-
*
|
|
3262
|
-
* ## XSD Schema
|
|
3263
|
-
* ```xml
|
|
3264
|
-
* <xsd:element name="y" type="ST_MarkerCoordinate"/>
|
|
3265
|
-
* ```
|
|
3266
|
-
*/
|
|
3267
|
-
declare const createCdrY: (value: number) => XmlComponent;
|
|
3268
|
-
/**
|
|
3269
|
-
* Creates a cdr:from element (Marker - top-left corner).
|
|
3270
|
-
*
|
|
3271
|
-
* ## XSD Schema
|
|
3272
|
-
* ```xml
|
|
3273
|
-
* <xsd:element name="from" type="CT_Marker"/>
|
|
3274
|
-
* ```
|
|
3275
|
-
*/
|
|
3276
|
-
declare const createCdrFrom: (x: number, y: number) => XmlComponent;
|
|
3277
|
-
/**
|
|
3278
|
-
* Creates a cdr:to element (Marker - bottom-right corner).
|
|
3279
|
-
*
|
|
3280
|
-
* ## XSD Schema
|
|
3281
|
-
* ```xml
|
|
3282
|
-
* <xsd:element name="to" type="CT_Marker"/>
|
|
3283
|
-
* ```
|
|
3284
|
-
*/
|
|
3285
|
-
declare const createCdrTo: (x: number, y: number) => XmlComponent;
|
|
3286
|
-
/**
|
|
3287
|
-
* Creates a cdr:ext element (Positive Size 2D).
|
|
3288
|
-
*
|
|
3289
|
-
* ## XSD Schema
|
|
3290
|
-
* ```xml
|
|
3291
|
-
* <xsd:element name="ext" type="a:CT_PositiveSize2D"/>
|
|
3292
|
-
* ```
|
|
3293
|
-
*/
|
|
3294
|
-
declare const createCdrExt: (options: {
|
|
3295
|
-
readonly cx: number;
|
|
3296
|
-
readonly cy: number;
|
|
3297
|
-
}) => XmlComponent;
|
|
3298
|
-
/**
|
|
3299
|
-
* Creates a cdr:cNvPr element (Non-Visual Drawing Properties).
|
|
3300
|
-
*
|
|
3301
|
-
* ## XSD Schema
|
|
3302
|
-
* ```xml
|
|
3303
|
-
* <xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps"/>
|
|
3304
|
-
* ```
|
|
3305
|
-
*/
|
|
3306
|
-
declare const createCdrCNvPr: (options: {
|
|
3307
|
-
readonly id?: number;
|
|
3308
|
-
readonly name?: string;
|
|
3309
|
-
}) => XmlComponent;
|
|
3310
|
-
/**
|
|
3311
|
-
* Creates a cdr:cNvSpPr element (Non-Visual Drawing Shape Properties).
|
|
3312
|
-
*
|
|
3313
|
-
* ## XSD Schema
|
|
3314
|
-
* ```xml
|
|
3315
|
-
* <xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps"/>
|
|
3316
|
-
* ```
|
|
3317
|
-
*/
|
|
3318
|
-
declare const createCdrCNvSpPr: () => XmlComponent;
|
|
3319
|
-
/**
|
|
3320
|
-
* Creates a cdr:cNvCxnSpPr element (Non-Visual Connector Properties).
|
|
3321
|
-
*
|
|
3322
|
-
* ## XSD Schema
|
|
3323
|
-
* ```xml
|
|
3324
|
-
* <xsd:element name="cNvCxnSpPr" type="a:CT_NonVisualConnectorProperties"/>
|
|
3325
|
-
* ```
|
|
3326
|
-
*/
|
|
3327
|
-
declare const createCdrCNvCxnSpPr: () => XmlComponent;
|
|
3328
|
-
/**
|
|
3329
|
-
* Creates a cdr:cNvPicPr element (Non-Visual Picture Properties).
|
|
3330
|
-
*
|
|
3331
|
-
* ## XSD Schema
|
|
3332
|
-
* ```xml
|
|
3333
|
-
* <xsd:element name="cNvPicPr" type="a:CT_NonVisualPictureProperties"/>
|
|
3334
|
-
* ```
|
|
3335
|
-
*/
|
|
3336
|
-
declare const createCdrCNvPicPr: () => XmlComponent;
|
|
3337
|
-
/**
|
|
3338
|
-
* Creates a cdr:cNvGrpSpPr element (Non-Visual Group Shape Properties).
|
|
3339
|
-
*
|
|
3340
|
-
* ## XSD Schema
|
|
3341
|
-
* ```xml
|
|
3342
|
-
* <xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps"/>
|
|
3343
|
-
* ```
|
|
3344
|
-
*/
|
|
3345
|
-
declare const createCdrCNvGrpSpPr: () => XmlComponent;
|
|
3346
|
-
/**
|
|
3347
|
-
* Creates a cdr:cNvGraphicFramePr element (Non-Visual Graphic Frame Properties).
|
|
3348
|
-
*
|
|
3349
|
-
* ## XSD Schema
|
|
3350
|
-
* ```xml
|
|
3351
|
-
* <xsd:element name="cNvGraphicFramePr" type="a:CT_NonVisualGraphicFrameProperties"/>
|
|
3352
|
-
* ```
|
|
3353
|
-
*/
|
|
3354
|
-
declare const createCdrCNvGraphicFramePr: () => XmlComponent;
|
|
3355
|
-
/**
|
|
3356
|
-
* Creates a cdr:nvSpPr element (Shape Non-Visual Properties).
|
|
3357
|
-
*
|
|
3358
|
-
* ## XSD Schema
|
|
3359
|
-
* ```xml
|
|
3360
|
-
* <xsd:element name="nvSpPr" type="CT_ShapeNonVisual"/>
|
|
3361
|
-
* ```
|
|
3362
|
-
*/
|
|
3363
|
-
declare const createCdrNvSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3364
|
-
/**
|
|
3365
|
-
* Creates a cdr:nvCxnSpPr element (Connector Non-Visual Properties).
|
|
3366
|
-
*
|
|
3367
|
-
* ## XSD Schema
|
|
3368
|
-
* ```xml
|
|
3369
|
-
* <xsd:element name="nvCxnSpPr" type="CT_ConnectorNonVisual"/>
|
|
3370
|
-
* ```
|
|
3371
|
-
*/
|
|
3372
|
-
declare const createCdrNvCxnSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3373
|
-
/**
|
|
3374
|
-
* Creates a cdr:nvPicPr element (Picture Non-Visual Properties).
|
|
3375
|
-
*
|
|
3376
|
-
* ## XSD Schema
|
|
3377
|
-
* ```xml
|
|
3378
|
-
* <xsd:element name="nvPicPr" type="CT_PictureNonVisual"/>
|
|
3379
|
-
* ```
|
|
3380
|
-
*/
|
|
3381
|
-
declare const createCdrNvPicPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3382
|
-
/**
|
|
3383
|
-
* Creates a cdr:nvGrpSpPr element (Group Shape Non-Visual Properties).
|
|
3384
|
-
*
|
|
3385
|
-
* ## XSD Schema
|
|
3386
|
-
* ```xml
|
|
3387
|
-
* <xsd:element name="nvGrpSpPr" type="CT_GroupShapeNonVisual"/>
|
|
3388
|
-
* ```
|
|
3389
|
-
*/
|
|
3390
|
-
declare const createCdrNvGrpSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3391
|
-
/**
|
|
3392
|
-
* Creates a cdr:nvGraphicFramePr element (Graphic Frame Non-Visual Properties).
|
|
3393
|
-
*
|
|
3394
|
-
* ## XSD Schema
|
|
3395
|
-
* ```xml
|
|
3396
|
-
* <xsd:element name="nvGraphicFramePr" type="CT_GraphicFrameNonVisual"/>
|
|
3397
|
-
* ```
|
|
3398
|
-
*/
|
|
3399
|
-
declare const createCdrNvGraphicFramePr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3400
|
-
/**
|
|
3401
|
-
* Creates a cdr:sp element (Shape).
|
|
3402
|
-
*
|
|
3403
|
-
* ## XSD Schema
|
|
3404
|
-
* ```xml
|
|
3405
|
-
* <xsd:element name="sp" type="CT_Shape"/>
|
|
3406
|
-
* ```
|
|
3407
|
-
*/
|
|
3408
|
-
declare const createCdrSp: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3409
|
-
/**
|
|
3410
|
-
* Creates a cdr:cxnSp element (Connector Shape).
|
|
3411
|
-
*
|
|
3412
|
-
* ## XSD Schema
|
|
3413
|
-
* ```xml
|
|
3414
|
-
* <xsd:element name="cxnSp" type="CT_Connector"/>
|
|
3415
|
-
* ```
|
|
3416
|
-
*/
|
|
3417
|
-
declare const createCdrCxnSp: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3418
|
-
/**
|
|
3419
|
-
* Creates a cdr:pic element (Picture).
|
|
3420
|
-
*
|
|
3421
|
-
* ## XSD Schema
|
|
3422
|
-
* ```xml
|
|
3423
|
-
* <xsd:element name="pic" type="CT_Picture"/>
|
|
3424
|
-
* ```
|
|
3425
|
-
*/
|
|
3426
|
-
declare const createCdrPic: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3427
|
-
/**
|
|
3428
|
-
* Creates a cdr:grpSp element (Group Shape).
|
|
3429
|
-
*
|
|
3430
|
-
* ## XSD Schema
|
|
3431
|
-
* ```xml
|
|
3432
|
-
* <xsd:element name="grpSp" type="CT_GroupShape"/>
|
|
3433
|
-
* ```
|
|
3434
|
-
*/
|
|
3435
|
-
declare const createCdrGrpSp: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3436
|
-
/**
|
|
3437
|
-
* Creates a cdr:graphicFrame element (Graphic Frame).
|
|
3438
|
-
*
|
|
3439
|
-
* ## XSD Schema
|
|
3440
|
-
* ```xml
|
|
3441
|
-
* <xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
|
|
3442
|
-
* ```
|
|
3443
|
-
*/
|
|
3444
|
-
declare const createCdrGraphicFrame: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3445
|
-
/**
|
|
3446
|
-
* Creates a cdr:spPr element (Shape Properties).
|
|
3447
|
-
*
|
|
3448
|
-
* ## XSD Schema
|
|
3449
|
-
* ```xml
|
|
3450
|
-
* <xsd:element name="spPr" type="a:CT_ShapeProperties"/>
|
|
3451
|
-
* ```
|
|
3452
|
-
*/
|
|
3453
|
-
declare const createCdrSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3454
|
-
/**
|
|
3455
|
-
* Creates a cdr:grpSpPr element (Group Shape Properties).
|
|
3456
|
-
*
|
|
3457
|
-
* ## XSD Schema
|
|
3458
|
-
* ```xml
|
|
3459
|
-
* <xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties"/>
|
|
3460
|
-
* ```
|
|
3461
|
-
*/
|
|
3462
|
-
declare const createCdrGrpSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3463
|
-
/**
|
|
3464
|
-
* Creates a cdr:style element (Shape Style).
|
|
3465
|
-
*
|
|
3466
|
-
* ## XSD Schema
|
|
3467
|
-
* ```xml
|
|
3468
|
-
* <xsd:element name="style" type="a:CT_ShapeStyle"/>
|
|
3469
|
-
* ```
|
|
3470
|
-
*/
|
|
3471
|
-
declare const createCdrStyle: () => XmlComponent;
|
|
3472
|
-
/**
|
|
3473
|
-
* Creates a cdr:txBody element (Text Body).
|
|
3474
|
-
*
|
|
3475
|
-
* ## XSD Schema
|
|
3476
|
-
* ```xml
|
|
3477
|
-
* <xsd:element name="txBody" type="a:CT_TextBody"/>
|
|
3478
|
-
* ```
|
|
3479
|
-
*/
|
|
3480
|
-
declare const createCdrTxBody: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3481
|
-
/**
|
|
3482
|
-
* Creates a cdr:blipFill element (Blip Fill).
|
|
3483
|
-
*
|
|
3484
|
-
* ## XSD Schema
|
|
3485
|
-
* ```xml
|
|
3486
|
-
* <xsd:element name="blipFill" type="a:CT_BlipFillProperties"/>
|
|
3487
|
-
* ```
|
|
3488
|
-
*/
|
|
3489
|
-
declare const createCdrBlipFill: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3490
|
-
/**
|
|
3491
|
-
* Creates a cdr:xfrm element (2D Transform).
|
|
3492
|
-
*
|
|
3493
|
-
* ## XSD Schema
|
|
3494
|
-
* ```xml
|
|
3495
|
-
* <xsd:element name="xfrm" type="a:CT_Transform2D"/>
|
|
3496
|
-
* ```
|
|
3497
|
-
*/
|
|
3498
|
-
declare const createCdrXfrm: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3499
|
-
/**
|
|
3500
|
-
* Creates a cdr:relSizeAnchor element (Relative Size Anchor).
|
|
3501
|
-
*
|
|
3502
|
-
* ## XSD Schema
|
|
3503
|
-
* ```xml
|
|
3504
|
-
* <xsd:element name="relSizeAnchor" type="CT_RelSizeAnchor"/>
|
|
3505
|
-
* ```
|
|
3506
|
-
*/
|
|
3507
|
-
declare const createCdrRelSizeAnchor: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3508
|
-
/**
|
|
3509
|
-
* Creates a cdr:absSizeAnchor element (Absolute Size Anchor).
|
|
3510
|
-
*
|
|
3511
|
-
* ## XSD Schema
|
|
3512
|
-
* ```xml
|
|
3513
|
-
* <xsd:element name="absSizeAnchor" type="CT_AbsSizeAnchor"/>
|
|
3514
|
-
* ```
|
|
3515
|
-
*/
|
|
3516
|
-
declare const createCdrAbsSizeAnchor: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3517
|
-
//#endregion
|
|
3518
|
-
//#region src/drawingml/chart/dml-chart-elements.d.ts
|
|
3519
|
-
declare const createApplyToEnd: () => XmlComponent;
|
|
3520
|
-
declare const createApplyToFront: () => XmlComponent;
|
|
3521
|
-
declare const createApplyToSides: () => XmlComponent;
|
|
3522
|
-
declare const createAutoUpdate: () => XmlComponent;
|
|
3523
|
-
declare const createBubble3D: () => XmlComponent;
|
|
3524
|
-
declare const createInvertIfNegative: () => XmlComponent;
|
|
3525
|
-
declare const createPlotVisOnly: () => XmlComponent;
|
|
3526
|
-
declare const createShowDLblsOverMax: () => XmlComponent;
|
|
3527
|
-
declare const createShowNegBubbles: () => XmlComponent;
|
|
3528
|
-
declare const createShowLeaderLines: () => XmlComponent;
|
|
3529
|
-
declare const createSmooth: () => XmlComponent;
|
|
3530
|
-
declare const createExplosion: (val: number) => XmlComponent;
|
|
3531
|
-
declare const createFmtId: (val: number) => XmlComponent;
|
|
3532
|
-
declare const createSize: (val: number) => XmlComponent;
|
|
3533
|
-
declare const createBubbleScale: (val: number | string) => XmlComponent;
|
|
3534
|
-
declare const createCrossesAt: (val: number) => XmlComponent;
|
|
3535
|
-
declare const createCustUnit: (val: number) => XmlComponent;
|
|
3536
|
-
declare const createGapDepth: (val: number | string) => XmlComponent;
|
|
3537
|
-
declare const createGapWidth: (val: number | string) => XmlComponent;
|
|
3538
|
-
declare const createH: (val: number) => XmlComponent;
|
|
3539
|
-
declare const createHoleSize: (val: number | string) => XmlComponent;
|
|
3540
|
-
declare const createLogBase: (val: number) => XmlComponent;
|
|
3541
|
-
declare const createMajorUnit: (val: number) => XmlComponent;
|
|
3542
|
-
declare const createMax: (val: number) => XmlComponent;
|
|
3543
|
-
declare const createMin: (val: number) => XmlComponent;
|
|
3544
|
-
declare const createMinorUnit: (val: number) => XmlComponent;
|
|
3545
|
-
declare const createOverlap: (val: number | string) => XmlComponent;
|
|
3546
|
-
declare const createSecondPieSize: (val: number | string) => XmlComponent;
|
|
3547
|
-
declare const createSplitPos: (val: number) => XmlComponent;
|
|
3548
|
-
declare const createW: (val: number) => XmlComponent;
|
|
3549
|
-
declare const createX: (val: number) => XmlComponent;
|
|
3550
|
-
declare const createY: (val: number) => XmlComponent;
|
|
3551
|
-
declare const createBaseTimeUnit: (val: string) => XmlComponent;
|
|
3552
|
-
declare const createBuiltInUnit: (val: string) => XmlComponent;
|
|
3553
|
-
declare const createCrossBetween: (val: string) => XmlComponent;
|
|
3554
|
-
declare const createDispBlanksAs: (val: string) => XmlComponent;
|
|
3555
|
-
declare const createHMode: (val: string) => XmlComponent;
|
|
3556
|
-
declare const createLayoutTarget: (val: string) => XmlComponent;
|
|
3557
|
-
declare const createLblAlgn: (val: string) => XmlComponent;
|
|
3558
|
-
declare const createMajorTickMark: (val: string) => XmlComponent;
|
|
3559
|
-
declare const createMajorTimeUnit: (val: string) => XmlComponent;
|
|
3560
|
-
declare const createMinorTickMark: (val: string) => XmlComponent;
|
|
3561
|
-
declare const createMinorTimeUnit: (val: string) => XmlComponent;
|
|
3562
|
-
declare const createOfPieType: (val: string) => XmlComponent;
|
|
3563
|
-
declare const createPictureFormat: (val: string) => XmlComponent;
|
|
3564
|
-
declare const createPictureStackUnit: (val: number) => XmlComponent;
|
|
3565
|
-
declare const createShape: (val: string) => XmlComponent;
|
|
3566
|
-
declare const createSizeRepresents: (val: string) => XmlComponent;
|
|
3567
|
-
declare const createSplitType: (val: string) => XmlComponent;
|
|
3568
|
-
declare const createSymbol: (val: string) => XmlComponent;
|
|
3569
|
-
declare const createTickLblPos: (val: string) => XmlComponent;
|
|
3570
|
-
declare const createTickMarkSkip: (val: number) => XmlComponent;
|
|
3571
|
-
declare const createThickness: (val: number | string) => XmlComponent;
|
|
3572
|
-
declare const createWMode: (val: string) => XmlComponent;
|
|
3573
|
-
declare const createXMode: (val: string) => XmlComponent;
|
|
3574
|
-
declare const createYMode: (val: string) => XmlComponent;
|
|
3575
|
-
declare const createName: (val: string) => XmlComponent;
|
|
3576
|
-
declare const createBackWall: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3577
|
-
declare const createBandFmt: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3578
|
-
declare const createBandFmts: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3579
|
-
declare const createChartObject: () => XmlComponent;
|
|
3580
|
-
declare const createClrMapOvr: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3581
|
-
declare const createCustSplit: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3582
|
-
declare const createDLbl: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3583
|
-
declare const createDPt: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3584
|
-
declare const createDTable: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3585
|
-
declare const createData: () => XmlComponent;
|
|
3586
|
-
declare const createDispUnits: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3587
|
-
declare const createDispUnitsLbl: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3588
|
-
declare const createDownBars: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3589
|
-
declare const createEvenFooter: (val: string) => XmlComponent;
|
|
3590
|
-
declare const createEvenHeader: (val: string) => XmlComponent;
|
|
3591
|
-
declare const createExt: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3592
|
-
declare const createExtLst: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3593
|
-
declare const createExternalData: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3594
|
-
declare const createFirstFooter: (val: string) => XmlComponent;
|
|
3595
|
-
declare const createFirstHeader: (val: string) => XmlComponent;
|
|
3596
|
-
declare const createFloor: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3597
|
-
declare const createFormatting: () => XmlComponent;
|
|
3598
|
-
interface HeaderFooterOptions {
|
|
3599
|
-
readonly alignWithMargins?: boolean;
|
|
3600
|
-
readonly differentOddEven?: boolean;
|
|
3601
|
-
readonly differentFirst?: boolean;
|
|
3602
|
-
}
|
|
3603
|
-
declare const createHeaderFooter: (children?: readonly (IXmlableObject | XmlComponent)[], options?: HeaderFooterOptions) => XmlComponent;
|
|
3604
|
-
declare const createHiLowLines: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3605
|
-
declare const createLeaderLines: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3606
|
-
declare const createLegacyDrawingHF: () => XmlComponent;
|
|
3607
|
-
declare const createLegendEntry: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3608
|
-
declare const createLvl: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3609
|
-
declare const createMajorGridlines: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3610
|
-
declare const createManualLayout: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3611
|
-
declare const createMarker: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3612
|
-
declare const createMinorGridlines: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3613
|
-
declare const createMinus: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3614
|
-
declare const createMultiLvlStrCache: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3615
|
-
declare const createMultiLvlStrRef: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3616
|
-
declare const createNumLit: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3617
|
-
declare const createOddFooter: (val: string) => XmlComponent;
|
|
3618
|
-
declare const createOddHeader: (val: string) => XmlComponent;
|
|
3619
|
-
declare const createOfPieChart: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3620
|
-
interface PageMarginsOptions {
|
|
3621
|
-
readonly l: number;
|
|
3622
|
-
readonly r: number;
|
|
3623
|
-
readonly t: number;
|
|
3624
|
-
readonly b: number;
|
|
3625
|
-
readonly header: number;
|
|
3626
|
-
readonly footer: number;
|
|
3627
|
-
}
|
|
3628
|
-
declare const createPageMargins: (options: PageMarginsOptions) => XmlComponent;
|
|
3629
|
-
interface PageSetupOptions {
|
|
3630
|
-
readonly paperSize?: number;
|
|
3631
|
-
readonly paperHeight?: string;
|
|
3632
|
-
readonly paperWidth?: string;
|
|
3633
|
-
readonly firstPageNumber?: number;
|
|
3634
|
-
readonly orientation?: string;
|
|
3635
|
-
readonly blackAndWhite?: boolean;
|
|
3636
|
-
readonly draft?: boolean;
|
|
3637
|
-
readonly useFirstPageNumber?: boolean;
|
|
3638
|
-
readonly horizontalDpi?: number;
|
|
3639
|
-
readonly verticalDpi?: number;
|
|
3640
|
-
readonly copies?: number;
|
|
3641
|
-
}
|
|
3642
|
-
declare const createPageSetup: (options?: PageSetupOptions) => XmlComponent;
|
|
3643
|
-
declare const createPictureOptions: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3644
|
-
declare const createPivotFmt: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3645
|
-
declare const createPivotFmts: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3646
|
-
declare const createPivotSource: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3647
|
-
declare const createPlus: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3648
|
-
declare const createPrintSettings: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3649
|
-
declare const createProtection: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3650
|
-
declare const createSecondPiePt: (val: number) => XmlComponent;
|
|
3651
|
-
declare const createSelection: () => XmlComponent;
|
|
3652
|
-
declare const createSerLines: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3653
|
-
declare const createShowHorzBorder: () => XmlComponent;
|
|
3654
|
-
declare const createShowKeys: () => XmlComponent;
|
|
3655
|
-
declare const createShowOutline: () => XmlComponent;
|
|
3656
|
-
declare const createShowVertBorder: () => XmlComponent;
|
|
3657
|
-
declare const createSideWall: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3658
|
-
declare const createStrLit: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3659
|
-
declare const createSurface3DChart: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3660
|
-
declare const createTrendlineLbl: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3661
|
-
declare const createUpBars: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3662
|
-
declare const createUpDownBars: (children?: readonly (IXmlableObject | XmlComponent)[]) => XmlComponent;
|
|
3663
|
-
declare const createUserInterface: () => XmlComponent;
|
|
3664
|
-
declare const createUserShapes: () => XmlComponent;
|
|
3665
|
-
//#endregion
|
|
3666
|
-
//#region src/drawingml/spreadsheet-drawing/spreadsheet-drawing.d.ts
|
|
3667
|
-
interface XdrMarkerOptions {
|
|
3668
|
-
readonly col: number;
|
|
3669
|
-
readonly colOff: number;
|
|
3670
|
-
readonly row: number;
|
|
3671
|
-
readonly rowOff: number;
|
|
3672
|
-
}
|
|
3673
|
-
/**
|
|
3674
|
-
* Creates an xdr:col element (Column ID).
|
|
3675
|
-
*
|
|
3676
|
-
* ## XSD Schema
|
|
3677
|
-
* ```xml
|
|
3678
|
-
* <xsd:element name="col" type="ST_ColID"/>
|
|
3679
|
-
* ```
|
|
3680
|
-
*/
|
|
3681
|
-
declare const createXdrCol: (value: number) => XmlComponent;
|
|
3682
|
-
/**
|
|
3683
|
-
* Creates an xdr:colOff element (Column Offset).
|
|
3684
|
-
*
|
|
3685
|
-
* ## XSD Schema
|
|
3686
|
-
* ```xml
|
|
3687
|
-
* <xsd:element name="colOff" type="a:ST_Coordinate"/>
|
|
3688
|
-
* ```
|
|
3689
|
-
*/
|
|
3690
|
-
declare const createXdrColOff: (value: number) => XmlComponent;
|
|
3691
|
-
/**
|
|
3692
|
-
* Creates an xdr:row element (Row ID).
|
|
3693
|
-
*
|
|
3694
|
-
* ## XSD Schema
|
|
3695
|
-
* ```xml
|
|
3696
|
-
* <xsd:element name="row" type="ST_RowID"/>
|
|
3697
|
-
* ```
|
|
3698
|
-
*/
|
|
3699
|
-
declare const createXdrRow: (value: number) => XmlComponent;
|
|
3700
|
-
/**
|
|
3701
|
-
* Creates an xdr:rowOff element (Row Offset).
|
|
3702
|
-
*
|
|
3703
|
-
* ## XSD Schema
|
|
3704
|
-
* ```xml
|
|
3705
|
-
* <xsd:element name="rowOff" type="a:ST_Coordinate"/>
|
|
3706
|
-
* ```
|
|
3707
|
-
*/
|
|
3708
|
-
declare const createXdrRowOff: (value: number) => XmlComponent;
|
|
3709
|
-
/**
|
|
3710
|
-
* Creates an xdr:from element (Marker - top-left corner).
|
|
3711
|
-
*
|
|
3712
|
-
* ## XSD Schema
|
|
3713
|
-
* ```xml
|
|
3714
|
-
* <xsd:element name="from" type="CT_Marker"/>
|
|
3715
|
-
* ```
|
|
3716
|
-
*/
|
|
3717
|
-
declare const createXdrFrom: (options: XdrMarkerOptions) => XmlComponent;
|
|
3718
|
-
/**
|
|
3719
|
-
* Creates an xdr:to element (Marker - bottom-right corner).
|
|
3720
|
-
*
|
|
3721
|
-
* ## XSD Schema
|
|
3722
|
-
* ```xml
|
|
3723
|
-
* <xsd:element name="to" type="CT_Marker"/>
|
|
3724
|
-
* ```
|
|
3725
|
-
*/
|
|
3726
|
-
declare const createXdrTo: (options: XdrMarkerOptions) => XmlComponent;
|
|
3727
|
-
/**
|
|
3728
|
-
* Creates an xdr:cNvPr element (Non-Visual Drawing Properties).
|
|
3729
|
-
*
|
|
3730
|
-
* ## XSD Schema
|
|
3731
|
-
* ```xml
|
|
3732
|
-
* <xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps"/>
|
|
3733
|
-
* ```
|
|
3734
|
-
*/
|
|
3735
|
-
declare const createXdrCNvPr: (options: {
|
|
3736
|
-
readonly id?: number;
|
|
3737
|
-
readonly name?: string;
|
|
3738
|
-
}) => XmlComponent;
|
|
3739
|
-
/**
|
|
3740
|
-
* Creates an xdr:cNvSpPr element (Non-Visual Drawing Shape Properties).
|
|
3741
|
-
*
|
|
3742
|
-
* ## XSD Schema
|
|
3743
|
-
* ```xml
|
|
3744
|
-
* <xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps"/>
|
|
3745
|
-
* ```
|
|
3746
|
-
*/
|
|
3747
|
-
declare const createXdrCNvSpPr: () => XmlComponent;
|
|
3748
|
-
/**
|
|
3749
|
-
* Creates an xdr:cNvCxnSpPr element (Non-Visual Connector Properties).
|
|
3750
|
-
*
|
|
3751
|
-
* ## XSD Schema
|
|
3752
|
-
* ```xml
|
|
3753
|
-
* <xsd:element name="cNvCxnSpPr" type="a:CT_NonVisualConnectorProperties"/>
|
|
3754
|
-
* ```
|
|
3755
|
-
*/
|
|
3756
|
-
declare const createXdrCNvCxnSpPr: () => XmlComponent;
|
|
3757
|
-
/**
|
|
3758
|
-
* Creates an xdr:cNvPicPr element (Non-Visual Picture Properties).
|
|
3759
|
-
*
|
|
3760
|
-
* ## XSD Schema
|
|
3761
|
-
* ```xml
|
|
3762
|
-
* <xsd:element name="cNvPicPr" type="a:CT_NonVisualPictureProperties"/>
|
|
3763
|
-
* ```
|
|
3764
|
-
*/
|
|
3765
|
-
declare const createXdrCNvPicPr: (options?: {
|
|
3766
|
-
readonly preferRelativeResize?: boolean;
|
|
3767
|
-
}) => XmlComponent;
|
|
3768
|
-
/**
|
|
3769
|
-
* Creates an xdr:cNvGrpSpPr element (Non-Visual Group Shape Properties).
|
|
3770
|
-
*
|
|
3771
|
-
* ## XSD Schema
|
|
3772
|
-
* ```xml
|
|
3773
|
-
* <xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps"/>
|
|
3774
|
-
* ```
|
|
3775
|
-
*/
|
|
3776
|
-
declare const createXdrCNvGrpSpPr: () => XmlComponent;
|
|
3777
|
-
/**
|
|
3778
|
-
* Creates an xdr:nvSpPr element (Shape Non-Visual Properties).
|
|
3779
|
-
*
|
|
3780
|
-
* ## XSD Schema
|
|
3781
|
-
* ```xml
|
|
3782
|
-
* <xsd:element name="nvSpPr" type="CT_ShapeNonVisual"/>
|
|
3783
|
-
* ```
|
|
3784
|
-
*/
|
|
3785
|
-
declare const createXdrNvSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3786
|
-
/**
|
|
3787
|
-
* Creates an xdr:nvCxnSpPr element (Connector Non-Visual Properties).
|
|
3788
|
-
*
|
|
3789
|
-
* ## XSD Schema
|
|
3790
|
-
* ```xml
|
|
3791
|
-
* <xsd:element name="nvCxnSpPr" type="CT_ConnectorNonVisual"/>
|
|
3792
|
-
* ```
|
|
3793
|
-
*/
|
|
3794
|
-
declare const createXdrNvCxnSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3795
|
-
/**
|
|
3796
|
-
* Creates an xdr:nvPicPr element (Picture Non-Visual Properties).
|
|
3797
|
-
*
|
|
3798
|
-
* ## XSD Schema
|
|
3799
|
-
* ```xml
|
|
3800
|
-
* <xsd:element name="nvPicPr" type="CT_PictureNonVisual"/>
|
|
3801
|
-
* ```
|
|
3802
|
-
*/
|
|
3803
|
-
declare const createXdrNvPicPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3804
|
-
/**
|
|
3805
|
-
* Creates an xdr:nvGrpSpPr element (Group Shape Non-Visual Properties).
|
|
3806
|
-
*
|
|
3807
|
-
* ## XSD Schema
|
|
3808
|
-
* ```xml
|
|
3809
|
-
* <xsd:element name="nvGrpSpPr" type="CT_GroupShapeNonVisual"/>
|
|
3810
|
-
* ```
|
|
3811
|
-
*/
|
|
3812
|
-
declare const createXdrNvGrpSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3813
|
-
interface XdrShapeAttributes {
|
|
3814
|
-
readonly macro?: string;
|
|
3815
|
-
readonly textlink?: string;
|
|
3816
|
-
readonly fLocksText?: boolean;
|
|
3817
|
-
readonly fPublished?: boolean;
|
|
3818
|
-
}
|
|
3819
|
-
/**
|
|
3820
|
-
* Creates an xdr:sp element (Shape).
|
|
3821
|
-
*
|
|
3822
|
-
* ## XSD Schema
|
|
3823
|
-
* ```xml
|
|
3824
|
-
* <xsd:element name="sp" type="CT_Shape"/>
|
|
3825
|
-
* ```
|
|
3826
|
-
*/
|
|
3827
|
-
declare const createXdrSp: (options?: {
|
|
3828
|
-
readonly attributes?: XdrShapeAttributes;
|
|
3829
|
-
readonly children?: readonly IXmlableObject[];
|
|
3830
|
-
}) => XmlComponent;
|
|
3831
|
-
/**
|
|
3832
|
-
* Creates an xdr:cxnSp element (Connector Shape).
|
|
3833
|
-
*
|
|
3834
|
-
* ## XSD Schema
|
|
3835
|
-
* ```xml
|
|
3836
|
-
* <xsd:element name="cxnSp" type="CT_Connector"/>
|
|
3837
|
-
* ```
|
|
3838
|
-
*/
|
|
3839
|
-
declare const createXdrCxnSp: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3840
|
-
/**
|
|
3841
|
-
* Creates an xdr:pic element (Picture).
|
|
3842
|
-
*
|
|
3843
|
-
* ## XSD Schema
|
|
3844
|
-
* ```xml
|
|
3845
|
-
* <xsd:element name="pic" type="CT_Picture"/>
|
|
3846
|
-
* ```
|
|
3847
|
-
*/
|
|
3848
|
-
declare const createXdrPic: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3849
|
-
/**
|
|
3850
|
-
* Creates an xdr:grpSp element (Group Shape).
|
|
3851
|
-
*
|
|
3852
|
-
* ## XSD Schema
|
|
3853
|
-
* ```xml
|
|
3854
|
-
* <xsd:element name="grpSp" type="CT_GroupShape"/>
|
|
3855
|
-
* ```
|
|
3856
|
-
*/
|
|
3857
|
-
declare const createXdrGrpSp: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3858
|
-
/**
|
|
3859
|
-
* Creates an xdr:spPr element (Shape Properties).
|
|
3860
|
-
*
|
|
3861
|
-
* ## XSD Schema
|
|
3862
|
-
* ```xml
|
|
3863
|
-
* <xsd:element name="spPr" type="a:CT_ShapeProperties"/>
|
|
3864
|
-
* ```
|
|
3865
|
-
*/
|
|
3866
|
-
declare const createXdrSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3867
|
-
/**
|
|
3868
|
-
* Creates an xdr:grpSpPr element (Group Shape Properties).
|
|
3869
|
-
*
|
|
3870
|
-
* ## XSD Schema
|
|
3871
|
-
* ```xml
|
|
3872
|
-
* <xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties"/>
|
|
3873
|
-
* ```
|
|
3874
|
-
*/
|
|
3875
|
-
declare const createXdrGrpSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3876
|
-
/**
|
|
3877
|
-
* Creates an xdr:style element (Shape Style).
|
|
3878
|
-
*
|
|
3879
|
-
* ## XSD Schema
|
|
3880
|
-
* ```xml
|
|
3881
|
-
* <xsd:element name="style" type="a:CT_ShapeStyle"/>
|
|
3882
|
-
* ```
|
|
3883
|
-
*/
|
|
3884
|
-
declare const createXdrStyle: () => XmlComponent;
|
|
3885
|
-
/**
|
|
3886
|
-
* Creates an xdr:txBody element (Text Body).
|
|
3887
|
-
*
|
|
3888
|
-
* ## XSD Schema
|
|
3889
|
-
* ```xml
|
|
3890
|
-
* <xsd:element name="txBody" type="a:CT_TextBody"/>
|
|
3891
|
-
* ```
|
|
3892
|
-
*/
|
|
3893
|
-
declare const createXdrTxBody: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3894
|
-
/**
|
|
3895
|
-
* Creates an xdr:blipFill element (Blip Fill).
|
|
3896
|
-
*
|
|
3897
|
-
* ## XSD Schema
|
|
3898
|
-
* ```xml
|
|
3899
|
-
* <xsd:element name="blipFill" type="a:CT_BlipFillProperties"/>
|
|
3900
|
-
* ```
|
|
3901
|
-
*/
|
|
3902
|
-
declare const createXdrBlipFill: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3903
|
-
/**
|
|
3904
|
-
* Creates an xdr:contentPart element (Content Part).
|
|
3905
|
-
*
|
|
3906
|
-
* ## XSD Schema
|
|
3907
|
-
* ```xml
|
|
3908
|
-
* <xsd:element name="contentPart" type="CT_Rel"/>
|
|
3909
|
-
* ```
|
|
3910
|
-
*/
|
|
3911
|
-
declare const createXdrContentPart: (rId?: string) => XmlComponent;
|
|
3912
|
-
interface XdrTwoCellAnchorOptions {
|
|
3913
|
-
readonly editAs?: "twoCell" | "oneCell" | "absolute";
|
|
3914
|
-
readonly children?: readonly IXmlableObject[];
|
|
3915
|
-
}
|
|
3916
|
-
/**
|
|
3917
|
-
* Creates an xdr:twoCellAnchor element (Two Cell Anchor).
|
|
3918
|
-
*
|
|
3919
|
-
* ## XSD Schema
|
|
3920
|
-
* ```xml
|
|
3921
|
-
* <xsd:element name="twoCellAnchor" type="CT_TwoCellAnchor"/>
|
|
3922
|
-
* ```
|
|
3923
|
-
*/
|
|
3924
|
-
declare const createXdrTwoCellAnchor: (options?: XdrTwoCellAnchorOptions) => XmlComponent;
|
|
3925
|
-
/**
|
|
3926
|
-
* Creates an xdr:oneCellAnchor element (One Cell Anchor).
|
|
3927
|
-
*
|
|
3928
|
-
* ## XSD Schema
|
|
3929
|
-
* ```xml
|
|
3930
|
-
* <xsd:element name="oneCellAnchor" type="CT_OneCellAnchor"/>
|
|
3931
|
-
* ```
|
|
3932
|
-
*/
|
|
3933
|
-
declare const createXdrOneCellAnchor: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
3934
|
-
//#endregion
|
|
3935
|
-
//#region src/drawingml/wordprocessing-drawing/wordprocessing-drawing.d.ts
|
|
3936
|
-
interface WpNonVisualDrawingPropsOptions {
|
|
3937
|
-
readonly id?: number;
|
|
3938
|
-
readonly name?: string;
|
|
3939
|
-
readonly descr?: string;
|
|
3940
|
-
readonly hidden?: boolean;
|
|
3941
|
-
}
|
|
3942
|
-
/**
|
|
3943
|
-
* Creates a wp:cNvPr element (Non-Visual Drawing Properties).
|
|
3944
|
-
*
|
|
3945
|
-
* ## XSD Schema
|
|
3946
|
-
* ```xml
|
|
3947
|
-
* <xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps"/>
|
|
3948
|
-
* ```
|
|
3949
|
-
*/
|
|
3950
|
-
declare const createWpCNvPr: (options?: WpNonVisualDrawingPropsOptions) => XmlComponent;
|
|
3951
|
-
/**
|
|
3952
|
-
* Creates a wp:cNvSpPr element (Non-Visual Drawing Shape Properties).
|
|
3953
|
-
*
|
|
3954
|
-
* ## XSD Schema
|
|
3955
|
-
* ```xml
|
|
3956
|
-
* <xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps"/>
|
|
3957
|
-
* ```
|
|
3958
|
-
*/
|
|
3959
|
-
declare const createWpCNvSpPr: (options?: {
|
|
3960
|
-
readonly txSp?: boolean;
|
|
3961
|
-
}) => XmlComponent;
|
|
3962
|
-
/**
|
|
3963
|
-
* Creates a wp:cNvCnPr element (Non-Visual Connector Properties).
|
|
3964
|
-
*
|
|
3965
|
-
* ## XSD Schema
|
|
3966
|
-
* ```xml
|
|
3967
|
-
* <xsd:element name="cNvCnPr" type="a:CT_NonVisualConnectorProperties"/>
|
|
3968
|
-
* ```
|
|
3969
|
-
*/
|
|
3970
|
-
declare const createWpCNvCnPr: () => XmlComponent;
|
|
3971
|
-
/**
|
|
3972
|
-
* Creates a wp:cNvFrPr element (Non-Visual Graphic Frame Properties).
|
|
3973
|
-
*
|
|
3974
|
-
* ## XSD Schema
|
|
3975
|
-
* ```xml
|
|
3976
|
-
* <xsd:element name="cNvFrPr" type="a:CT_NonVisualGraphicFrameProperties"/>
|
|
3977
|
-
* ```
|
|
3978
|
-
*/
|
|
3979
|
-
declare const createWpCNvFrPr: () => XmlComponent;
|
|
3980
|
-
/**
|
|
3981
|
-
* Creates a wp:cNvGrpSpPr element (Non-Visual Group Shape Properties).
|
|
3982
|
-
*
|
|
3983
|
-
* ## XSD Schema
|
|
3984
|
-
* ```xml
|
|
3985
|
-
* <xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps"/>
|
|
3986
|
-
* ```
|
|
3987
|
-
*/
|
|
3988
|
-
declare const createWpCNvGrpSpPr: () => XmlComponent;
|
|
3989
|
-
/**
|
|
3990
|
-
* Creates a wp:cNvContentPartPr element (Non-Visual Content Part Properties).
|
|
3991
|
-
*
|
|
3992
|
-
* ## XSD Schema
|
|
3993
|
-
* ```xml
|
|
3994
|
-
* <xsd:element name="cNvContentPartPr" type="a:CT_NonVisualContentPartProperties"/>
|
|
3995
|
-
* ```
|
|
3996
|
-
*/
|
|
3997
|
-
interface ContentPartPropertiesOptions {
|
|
3998
|
-
readonly isComment?: boolean;
|
|
3999
|
-
}
|
|
4000
|
-
declare const createWpCNvContentPartPr: (options?: ContentPartPropertiesOptions) => XmlComponent;
|
|
4001
|
-
interface WpShapeOptions {
|
|
4002
|
-
readonly cNvPr?: WpNonVisualDrawingPropsOptions;
|
|
4003
|
-
readonly normalEastAsianFlow?: boolean;
|
|
4004
|
-
readonly children?: readonly IXmlableObject[];
|
|
4005
|
-
}
|
|
4006
|
-
/**
|
|
4007
|
-
* Creates a wp:wsp element (Wordprocessing Shape).
|
|
4008
|
-
*
|
|
4009
|
-
* ## XSD Schema
|
|
4010
|
-
* ```xml
|
|
4011
|
-
* <xsd:element name="wsp" type="CT_WordprocessingShape"/>
|
|
4012
|
-
* ```
|
|
4013
|
-
*/
|
|
4014
|
-
declare const createWpSp: (options?: WpShapeOptions) => XmlComponent;
|
|
4015
|
-
/**
|
|
4016
|
-
* Creates a wp:spPr element (Shape Properties within wp namespace).
|
|
4017
|
-
*
|
|
4018
|
-
* ## XSD Schema
|
|
4019
|
-
* ```xml
|
|
4020
|
-
* <xsd:element name="spPr" type="a:CT_ShapeProperties"/>
|
|
4021
|
-
* ```
|
|
4022
|
-
*/
|
|
4023
|
-
declare const createWpSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4024
|
-
/**
|
|
4025
|
-
* Creates a wp:grpSpPr element (Group Shape Properties within wp namespace).
|
|
4026
|
-
*
|
|
4027
|
-
* ## XSD Schema
|
|
4028
|
-
* ```xml
|
|
4029
|
-
* <xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties"/>
|
|
4030
|
-
* ```
|
|
4031
|
-
*/
|
|
4032
|
-
declare const createWpGrpSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4033
|
-
/**
|
|
4034
|
-
* Creates a wp:style element (Shape Style).
|
|
4035
|
-
*
|
|
4036
|
-
* ## XSD Schema
|
|
4037
|
-
* ```xml
|
|
4038
|
-
* <xsd:element name="style" type="a:CT_ShapeStyle"/>
|
|
4039
|
-
* ```
|
|
4040
|
-
*/
|
|
4041
|
-
declare const createWpStyle: () => XmlComponent;
|
|
4042
|
-
/**
|
|
4043
|
-
* Creates a wp:xfrm element (2D Transform).
|
|
4044
|
-
*
|
|
4045
|
-
* ## XSD Schema
|
|
4046
|
-
* ```xml
|
|
4047
|
-
* <xsd:element name="xfrm" type="a:CT_Transform2D"/>
|
|
4048
|
-
* ```
|
|
4049
|
-
*/
|
|
4050
|
-
declare const createWpXfrm: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4051
|
-
/**
|
|
4052
|
-
* Creates a wp:bodyPr element (Text Body Properties).
|
|
4053
|
-
*
|
|
4054
|
-
* ## XSD Schema
|
|
4055
|
-
* ```xml
|
|
4056
|
-
* <xsd:element name="bodyPr" type="a:CT_TextBodyProperties"/>
|
|
4057
|
-
* ```
|
|
4058
|
-
*/
|
|
4059
|
-
declare const createWpBodyPr: () => XmlComponent;
|
|
4060
|
-
interface WpTextboxOptions {
|
|
4061
|
-
readonly id?: number;
|
|
4062
|
-
readonly children?: readonly IXmlableObject[];
|
|
4063
|
-
}
|
|
4064
|
-
/**
|
|
4065
|
-
* Creates a wp:txbx element (Textbox Info).
|
|
4066
|
-
*
|
|
4067
|
-
* ## XSD Schema
|
|
4068
|
-
* ```xml
|
|
4069
|
-
* <xsd:element name="txbx" type="CT_TextboxInfo"/>
|
|
4070
|
-
* ```
|
|
4071
|
-
*/
|
|
4072
|
-
declare const createWpTxbx: (options?: WpTextboxOptions) => XmlComponent;
|
|
4073
|
-
/**
|
|
4074
|
-
* Creates a wp:txbxContent element (Textbox Content).
|
|
4075
|
-
*
|
|
4076
|
-
* ## XSD Schema
|
|
4077
|
-
* ```xml
|
|
4078
|
-
* <xsd:element name="txbxContent" type="CT_TxbxContent"/>
|
|
4079
|
-
* ```
|
|
4080
|
-
*/
|
|
4081
|
-
declare const createWpTxbxContent: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4082
|
-
interface WpLinkedTextboxOptions {
|
|
4083
|
-
readonly id: number;
|
|
4084
|
-
readonly seq: number;
|
|
4085
|
-
}
|
|
4086
|
-
/**
|
|
4087
|
-
* Creates a wp:linkedTxbx element (Linked Textbox Information).
|
|
4088
|
-
*
|
|
4089
|
-
* ## XSD Schema
|
|
4090
|
-
* ```xml
|
|
4091
|
-
* <xsd:element name="linkedTxbx" type="CT_LinkedTextboxInformation"/>
|
|
4092
|
-
* ```
|
|
4093
|
-
*/
|
|
4094
|
-
declare const createWpLinkedTxbx: (options: WpLinkedTextboxOptions) => XmlComponent;
|
|
4095
|
-
/**
|
|
4096
|
-
* Creates a wp:extLst element (Extension List).
|
|
4097
|
-
*
|
|
4098
|
-
* ## XSD Schema
|
|
4099
|
-
* ```xml
|
|
4100
|
-
* <xsd:element name="extLst" type="a:CT_OfficeArtExtensionList"/>
|
|
4101
|
-
* ```
|
|
4102
|
-
*/
|
|
4103
|
-
declare const createWpExtLst: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4104
|
-
interface WpGraphicFrameOptions {
|
|
4105
|
-
readonly children?: readonly IXmlableObject[];
|
|
4106
|
-
}
|
|
4107
|
-
/**
|
|
4108
|
-
* Creates a wp:graphicFrame element (Graphic Frame).
|
|
4109
|
-
*
|
|
4110
|
-
* ## XSD Schema
|
|
4111
|
-
* ```xml
|
|
4112
|
-
* <xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
|
|
4113
|
-
* ```
|
|
4114
|
-
*/
|
|
4115
|
-
declare const createWpGraphicFrame: (options?: WpGraphicFrameOptions) => XmlComponent;
|
|
4116
|
-
interface WpContentPartOptions {
|
|
4117
|
-
readonly bwMode?: string;
|
|
4118
|
-
readonly rId?: string;
|
|
4119
|
-
}
|
|
4120
|
-
/**
|
|
4121
|
-
* Creates a wp:contentPart element (Content Part).
|
|
4122
|
-
*
|
|
4123
|
-
* ## XSD Schema
|
|
4124
|
-
* ```xml
|
|
4125
|
-
* <xsd:element name="contentPart" type="CT_WordprocessingContentPart"/>
|
|
4126
|
-
* ```
|
|
4127
|
-
*/
|
|
4128
|
-
declare const createWpContentPart: (options?: WpContentPartOptions) => XmlComponent;
|
|
4129
|
-
/**
|
|
4130
|
-
* Creates a wp:nvContentPartPr element (Non-Visual Content Part Properties).
|
|
4131
|
-
*
|
|
4132
|
-
* ## XSD Schema
|
|
4133
|
-
* ```xml
|
|
4134
|
-
* <xsd:element name="nvContentPartPr" type="CT_WordprocessingContentPartNonVisual"/>
|
|
4135
|
-
* ```
|
|
4136
|
-
*/
|
|
4137
|
-
declare const createWpNvContentPartPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4138
|
-
interface WpGroupOptions {
|
|
4139
|
-
readonly children?: readonly IXmlableObject[];
|
|
4140
|
-
}
|
|
4141
|
-
/**
|
|
4142
|
-
* Creates a wp:wgp element (Wordprocessing Group).
|
|
4143
|
-
*
|
|
4144
|
-
* ## XSD Schema
|
|
4145
|
-
* ```xml
|
|
4146
|
-
* <xsd:element name="wgp" type="CT_WordprocessingGroup"/>
|
|
4147
|
-
* ```
|
|
4148
|
-
*/
|
|
4149
|
-
declare const createWpGrpSp: (options?: WpGroupOptions) => XmlComponent;
|
|
4150
|
-
/**
|
|
4151
|
-
* Creates a wp:grpSp element (Nested Group Shape within Wordprocessing Group).
|
|
4152
|
-
*
|
|
4153
|
-
* ## XSD Schema
|
|
4154
|
-
* ```xml
|
|
4155
|
-
* <xsd:element name="grpSp" type="CT_WordprocessingGroup"/>
|
|
4156
|
-
* ```
|
|
4157
|
-
*/
|
|
4158
|
-
declare const createWpNestedGrpSp: (options?: WpGroupOptions) => XmlComponent;
|
|
4159
|
-
interface WpCanvasOptions {
|
|
4160
|
-
readonly children?: readonly IXmlableObject[];
|
|
4161
|
-
}
|
|
4162
|
-
/**
|
|
4163
|
-
* Creates a wp:wpc element (Wordprocessing Canvas).
|
|
4164
|
-
*
|
|
4165
|
-
* ## XSD Schema
|
|
4166
|
-
* ```xml
|
|
4167
|
-
* <xsd:element name="wpc" type="CT_WordprocessingCanvas"/>
|
|
4168
|
-
* ```
|
|
4169
|
-
*/
|
|
4170
|
-
declare const createWpCanvas: (options?: WpCanvasOptions) => XmlComponent;
|
|
4171
|
-
/**
|
|
4172
|
-
* Creates a wp:bg element (Background Formatting).
|
|
4173
|
-
*
|
|
4174
|
-
* ## XSD Schema
|
|
4175
|
-
* ```xml
|
|
4176
|
-
* <xsd:element name="bg" type="a:CT_BackgroundFormatting"/>
|
|
4177
|
-
* ```
|
|
4178
|
-
*/
|
|
4179
|
-
declare const createWpBg: () => XmlComponent;
|
|
4180
|
-
/**
|
|
4181
|
-
* Creates a wp:whole element (Whole E2O Formatting).
|
|
4182
|
-
*
|
|
4183
|
-
* ## XSD Schema
|
|
4184
|
-
* ```xml
|
|
4185
|
-
* <xsd:element name="whole" type="a:CT_WholeE2oFormatting"/>
|
|
4186
|
-
* ```
|
|
4187
|
-
*/
|
|
4188
|
-
declare const createWpWhole: () => XmlComponent;
|
|
3872
|
+
noGrp?: boolean;
|
|
3873
|
+
noDrilldown?: boolean;
|
|
3874
|
+
noSelect?: boolean;
|
|
3875
|
+
noChangeAspect?: boolean;
|
|
3876
|
+
noMove?: boolean;
|
|
3877
|
+
noResize?: boolean;
|
|
3878
|
+
}
|
|
3879
|
+
declare function createShapeLocking(opts: ShapeLockingOptions): string;
|
|
3880
|
+
declare function createPictureLocking(opts: PictureLockingOptions): string;
|
|
3881
|
+
declare function createGroupLocking(opts: GroupLockingOptions): string;
|
|
3882
|
+
declare function createGraphicFrameLocking(opts: GraphicFrameLockingOptions): string;
|
|
4189
3883
|
//#endregion
|
|
4190
3884
|
//#region src/drawingml/diagram/layout-vars.d.ts
|
|
4191
3885
|
interface AdjOptions {
|
|
4192
3886
|
/** 1-based index (required) */
|
|
4193
|
-
|
|
3887
|
+
idx: number;
|
|
4194
3888
|
/** Adjustment value (required) */
|
|
4195
|
-
|
|
3889
|
+
val: number;
|
|
4196
3890
|
}
|
|
4197
3891
|
/** Creates a dgm:adj element. */
|
|
4198
|
-
declare const createAdj: (options: AdjOptions) =>
|
|
3892
|
+
declare const createAdj: (options: AdjOptions) => string;
|
|
4199
3893
|
declare const AnimLevelValue: {
|
|
4200
3894
|
readonly NONE: "none";
|
|
4201
3895
|
readonly LEVEL: "lvl";
|
|
4202
3896
|
readonly CENTER: "ctr";
|
|
4203
3897
|
};
|
|
4204
3898
|
interface AnimLvlOptions {
|
|
4205
|
-
|
|
3899
|
+
val?: (typeof AnimLevelValue)[keyof typeof AnimLevelValue];
|
|
4206
3900
|
}
|
|
4207
3901
|
/** Creates a dgm:animLvl element. */
|
|
4208
|
-
declare const createAnimLvl: (options?: AnimLvlOptions) =>
|
|
3902
|
+
declare const createAnimLvl: (options?: AnimLvlOptions) => string;
|
|
4209
3903
|
declare const AnimOneValue: {
|
|
4210
3904
|
readonly NONE: "none";
|
|
4211
3905
|
readonly ONE: "one";
|
|
4212
3906
|
readonly BRANCH: "branch";
|
|
4213
3907
|
};
|
|
4214
3908
|
interface AnimOneOptions {
|
|
4215
|
-
|
|
3909
|
+
val?: (typeof AnimOneValue)[keyof typeof AnimOneValue];
|
|
4216
3910
|
}
|
|
4217
3911
|
/** Creates a dgm:animOne element. */
|
|
4218
|
-
declare const createAnimOne: (options?: AnimOneOptions) =>
|
|
3912
|
+
declare const createAnimOne: (options?: AnimOneOptions) => string;
|
|
4219
3913
|
interface ChMaxOptions {
|
|
4220
|
-
|
|
3914
|
+
val?: number;
|
|
4221
3915
|
}
|
|
4222
3916
|
/** Creates a dgm:chMax element. */
|
|
4223
|
-
declare const createChMax: (options?: ChMaxOptions) =>
|
|
3917
|
+
declare const createChMax: (options?: ChMaxOptions) => string;
|
|
4224
3918
|
interface ChPrefOptions {
|
|
4225
|
-
|
|
3919
|
+
val?: number;
|
|
4226
3920
|
}
|
|
4227
3921
|
/** Creates a dgm:chPref element. */
|
|
4228
|
-
declare const createChPref: (options?: ChPrefOptions) =>
|
|
3922
|
+
declare const createChPref: (options?: ChPrefOptions) => string;
|
|
4229
3923
|
interface OrgChartOptions {
|
|
4230
|
-
|
|
3924
|
+
val?: boolean;
|
|
4231
3925
|
}
|
|
4232
3926
|
/** Creates a dgm:orgChart element. */
|
|
4233
|
-
declare const createOrgChart: (options?: OrgChartOptions) =>
|
|
3927
|
+
declare const createOrgChart: (options?: OrgChartOptions) => string;
|
|
4234
3928
|
declare const HierBranchStyle: {
|
|
4235
3929
|
readonly LEFT: "l";
|
|
4236
3930
|
readonly RIGHT: "r";
|
|
@@ -4239,17 +3933,17 @@ declare const HierBranchStyle: {
|
|
|
4239
3933
|
readonly INITIAL: "init";
|
|
4240
3934
|
};
|
|
4241
3935
|
interface HierBranchOptions {
|
|
4242
|
-
|
|
3936
|
+
val?: (typeof HierBranchStyle)[keyof typeof HierBranchStyle];
|
|
4243
3937
|
}
|
|
4244
3938
|
/** Creates a dgm:hierBranch element. */
|
|
4245
|
-
declare const createHierBranch: (options?: HierBranchOptions) =>
|
|
3939
|
+
declare const createHierBranch: (options?: HierBranchOptions) => string;
|
|
4246
3940
|
interface PresLayoutVarsOptions {
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
3941
|
+
orgChart?: OrgChartOptions;
|
|
3942
|
+
chMax?: ChMaxOptions;
|
|
3943
|
+
chPref?: ChPrefOptions;
|
|
3944
|
+
animOne?: AnimOneOptions;
|
|
3945
|
+
animLvl?: AnimLvlOptions;
|
|
3946
|
+
hierBranch?: HierBranchOptions;
|
|
4253
3947
|
}
|
|
4254
3948
|
/**
|
|
4255
3949
|
* Creates a dgm:presLayoutVars element (CT_LayoutVariablePropertySet).
|
|
@@ -4271,33 +3965,33 @@ interface PresLayoutVarsOptions {
|
|
|
4271
3965
|
* </xsd:complexType>
|
|
4272
3966
|
* ```
|
|
4273
3967
|
*/
|
|
4274
|
-
declare const createPresLayoutVars: (options?: PresLayoutVarsOptions) =>
|
|
3968
|
+
declare const createPresLayoutVars: (options?: PresLayoutVarsOptions) => string;
|
|
4275
3969
|
interface AdjLstOptions {
|
|
4276
|
-
|
|
3970
|
+
adj?: readonly AdjOptions[];
|
|
4277
3971
|
}
|
|
4278
3972
|
/** Creates a dgm:adjLst element containing dgm:adj children. */
|
|
4279
|
-
declare const createAdjLst: (options?: AdjLstOptions) =>
|
|
3973
|
+
declare const createAdjLst: (options?: AdjLstOptions) => string;
|
|
4280
3974
|
//#endregion
|
|
4281
3975
|
//#region src/drawingml/diagram/headers.d.ts
|
|
4282
3976
|
interface DiagramNameOptions {
|
|
4283
|
-
|
|
4284
|
-
|
|
3977
|
+
lang?: string;
|
|
3978
|
+
val: string;
|
|
4285
3979
|
}
|
|
4286
3980
|
interface DiagramDescriptionOptions {
|
|
4287
|
-
|
|
4288
|
-
|
|
3981
|
+
lang?: string;
|
|
3982
|
+
val: string;
|
|
4289
3983
|
}
|
|
4290
3984
|
interface DiagramCategoryOptions {
|
|
4291
|
-
|
|
4292
|
-
|
|
3985
|
+
type: string;
|
|
3986
|
+
pri: number;
|
|
4293
3987
|
}
|
|
4294
3988
|
interface ColorsDefHdrOptions {
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
3989
|
+
uniqueId: string;
|
|
3990
|
+
minVer?: string;
|
|
3991
|
+
resId?: number;
|
|
3992
|
+
title: readonly DiagramNameOptions[];
|
|
3993
|
+
desc: readonly DiagramDescriptionOptions[];
|
|
3994
|
+
categories?: readonly DiagramCategoryOptions[];
|
|
4301
3995
|
}
|
|
4302
3996
|
/**
|
|
4303
3997
|
* Creates a dgm:colorsDefHdr element (CT_ColorTransformHeader).
|
|
@@ -4317,20 +4011,20 @@ interface ColorsDefHdrOptions {
|
|
|
4317
4011
|
* </xsd:complexType>
|
|
4318
4012
|
* ```
|
|
4319
4013
|
*/
|
|
4320
|
-
declare const createColorsDefHdr: (options: ColorsDefHdrOptions) =>
|
|
4014
|
+
declare const createColorsDefHdr: (options: ColorsDefHdrOptions) => string;
|
|
4321
4015
|
interface ColorsDefHdrLstOptions {
|
|
4322
|
-
|
|
4016
|
+
headers?: readonly ColorsDefHdrOptions[];
|
|
4323
4017
|
}
|
|
4324
4018
|
/** Creates a dgm:colorsDefHdrLst element. */
|
|
4325
|
-
declare const createColorsDefHdrLst: (options?: ColorsDefHdrLstOptions) =>
|
|
4019
|
+
declare const createColorsDefHdrLst: (options?: ColorsDefHdrLstOptions) => string;
|
|
4326
4020
|
interface LayoutDefHdrOptions {
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4021
|
+
uniqueId: string;
|
|
4022
|
+
minVer?: string;
|
|
4023
|
+
defStyle?: string;
|
|
4024
|
+
resId?: number;
|
|
4025
|
+
title: readonly DiagramNameOptions[];
|
|
4026
|
+
desc: readonly DiagramDescriptionOptions[];
|
|
4027
|
+
categories?: readonly DiagramCategoryOptions[];
|
|
4334
4028
|
}
|
|
4335
4029
|
/**
|
|
4336
4030
|
* Creates a dgm:layoutDefHdr element (CT_DiagramDefinitionHeader).
|
|
@@ -4351,19 +4045,19 @@ interface LayoutDefHdrOptions {
|
|
|
4351
4045
|
* </xsd:complexType>
|
|
4352
4046
|
* ```
|
|
4353
4047
|
*/
|
|
4354
|
-
declare const createLayoutDefHdr: (options: LayoutDefHdrOptions) =>
|
|
4048
|
+
declare const createLayoutDefHdr: (options: LayoutDefHdrOptions) => string;
|
|
4355
4049
|
interface LayoutDefHdrLstOptions {
|
|
4356
|
-
|
|
4050
|
+
headers?: readonly LayoutDefHdrOptions[];
|
|
4357
4051
|
}
|
|
4358
4052
|
/** Creates a dgm:layoutDefHdrLst element. */
|
|
4359
|
-
declare const createLayoutDefHdrLst: (options?: LayoutDefHdrLstOptions) =>
|
|
4053
|
+
declare const createLayoutDefHdrLst: (options?: LayoutDefHdrLstOptions) => string;
|
|
4360
4054
|
interface StyleDefHdrOptions {
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4055
|
+
uniqueId: string;
|
|
4056
|
+
minVer?: string;
|
|
4057
|
+
resId?: number;
|
|
4058
|
+
title: readonly DiagramNameOptions[];
|
|
4059
|
+
desc: readonly DiagramDescriptionOptions[];
|
|
4060
|
+
categories?: readonly DiagramCategoryOptions[];
|
|
4367
4061
|
}
|
|
4368
4062
|
/**
|
|
4369
4063
|
* Creates a dgm:styleDefHdr element (CT_StyleDefinitionHeader).
|
|
@@ -4383,12 +4077,12 @@ interface StyleDefHdrOptions {
|
|
|
4383
4077
|
* </xsd:complexType>
|
|
4384
4078
|
* ```
|
|
4385
4079
|
*/
|
|
4386
|
-
declare const createStyleDefHdr: (options: StyleDefHdrOptions) =>
|
|
4080
|
+
declare const createStyleDefHdr: (options: StyleDefHdrOptions) => string;
|
|
4387
4081
|
interface StyleDefHdrLstOptions {
|
|
4388
|
-
|
|
4082
|
+
headers?: readonly StyleDefHdrOptions[];
|
|
4389
4083
|
}
|
|
4390
4084
|
/** Creates a dgm:styleDefHdrLst element. */
|
|
4391
|
-
declare const createStyleDefHdrLst: (options?: StyleDefHdrLstOptions) =>
|
|
4085
|
+
declare const createStyleDefHdrLst: (options?: StyleDefHdrLstOptions) => string;
|
|
4392
4086
|
//#endregion
|
|
4393
4087
|
//#region src/drawingml/diagram/diagram-style.d.ts
|
|
4394
4088
|
declare const StyleMatrixIndex: {
|
|
@@ -4403,13 +4097,13 @@ declare const FontCollectionIndex: {
|
|
|
4403
4097
|
};
|
|
4404
4098
|
interface DiagramStyleOptions {
|
|
4405
4099
|
/** Line style matrix reference index */
|
|
4406
|
-
|
|
4100
|
+
lnIdx?: number;
|
|
4407
4101
|
/** Fill style matrix reference index */
|
|
4408
|
-
|
|
4102
|
+
fillIdx?: number;
|
|
4409
4103
|
/** Effect style matrix reference index */
|
|
4410
|
-
|
|
4104
|
+
effectIdx?: number;
|
|
4411
4105
|
/** Font reference collection index */
|
|
4412
|
-
|
|
4106
|
+
fontIdx?: string;
|
|
4413
4107
|
}
|
|
4414
4108
|
/**
|
|
4415
4109
|
* Creates a dgm:style element (a:CT_ShapeStyle).
|
|
@@ -4426,7 +4120,7 @@ interface DiagramStyleOptions {
|
|
|
4426
4120
|
* </xsd:complexType>
|
|
4427
4121
|
* ```
|
|
4428
4122
|
*/
|
|
4429
|
-
declare const createDiagramStyle: (options?: DiagramStyleOptions) =>
|
|
4123
|
+
declare const createDiagramStyle: (options?: DiagramStyleOptions) => string;
|
|
4430
4124
|
declare const ColorMethod: {
|
|
4431
4125
|
readonly SPAN: "span";
|
|
4432
4126
|
readonly CYCLE: "cycle";
|
|
@@ -4438,27 +4132,27 @@ declare const HueDirection: {
|
|
|
4438
4132
|
};
|
|
4439
4133
|
interface ColorListOptions {
|
|
4440
4134
|
/** Color method (default: span) */
|
|
4441
|
-
|
|
4135
|
+
meth?: (typeof ColorMethod)[keyof typeof ColorMethod];
|
|
4442
4136
|
/** Hue direction (default: cw) */
|
|
4443
|
-
|
|
4137
|
+
hueDir?: (typeof HueDirection)[keyof typeof HueDirection];
|
|
4444
4138
|
/** Colors (EG_ColorChoice items) */
|
|
4445
|
-
|
|
4446
|
-
}
|
|
4447
|
-
declare const createFillClrLst: (options?: ColorListOptions) =>
|
|
4448
|
-
declare const createLinClrLst: (options?: ColorListOptions) =>
|
|
4449
|
-
declare const createEffectClrLst: (options?: ColorListOptions) =>
|
|
4450
|
-
declare const createTxFillClrLst: (options?: ColorListOptions) =>
|
|
4451
|
-
declare const createTxLinClrLst: (options?: ColorListOptions) =>
|
|
4452
|
-
declare const createTxEffectClrLst: (options?: ColorListOptions) =>
|
|
4139
|
+
colors?: readonly SolidFillOptions[];
|
|
4140
|
+
}
|
|
4141
|
+
declare const createFillClrLst: (options?: ColorListOptions) => string;
|
|
4142
|
+
declare const createLinClrLst: (options?: ColorListOptions) => string;
|
|
4143
|
+
declare const createEffectClrLst: (options?: ColorListOptions) => string;
|
|
4144
|
+
declare const createTxFillClrLst: (options?: ColorListOptions) => string;
|
|
4145
|
+
declare const createTxLinClrLst: (options?: ColorListOptions) => string;
|
|
4146
|
+
declare const createTxEffectClrLst: (options?: ColorListOptions) => string;
|
|
4453
4147
|
interface DiagramStyleLblOptions {
|
|
4454
4148
|
/** Label name (required) */
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4149
|
+
name: string;
|
|
4150
|
+
fillClrLst?: ColorListOptions;
|
|
4151
|
+
linClrLst?: ColorListOptions;
|
|
4152
|
+
effectClrLst?: ColorListOptions;
|
|
4153
|
+
txFillClrLst?: ColorListOptions;
|
|
4154
|
+
txLinClrLst?: ColorListOptions;
|
|
4155
|
+
txEffectClrLst?: ColorListOptions;
|
|
4462
4156
|
}
|
|
4463
4157
|
/**
|
|
4464
4158
|
* Creates a dgm:styleLbl element (CT_StyleLabel or CT_CTStyleLabel).
|
|
@@ -4493,18 +4187,25 @@ interface DiagramStyleLblOptions {
|
|
|
4493
4187
|
* </xsd:complexType>
|
|
4494
4188
|
* ```
|
|
4495
4189
|
*/
|
|
4496
|
-
declare const createStyleLbl: (options: DiagramStyleLblOptions) =>
|
|
4190
|
+
declare const createStyleLbl: (options: DiagramStyleLblOptions) => string;
|
|
4497
4191
|
//#endregion
|
|
4498
4192
|
//#region src/drawingml/diagram/diagram-rel.d.ts
|
|
4193
|
+
/**
|
|
4194
|
+
* Diagram relationship IDs element.
|
|
4195
|
+
*
|
|
4196
|
+
* Reference: ISO/IEC 29500-4, dml-diagram.xsd, CT_RelIds
|
|
4197
|
+
*
|
|
4198
|
+
* @module
|
|
4199
|
+
*/
|
|
4499
4200
|
interface DiagramRelIdsOptions {
|
|
4500
4201
|
/** Relationship to data model part */
|
|
4501
|
-
|
|
4202
|
+
dm: string;
|
|
4502
4203
|
/** Relationship to layout definition part */
|
|
4503
|
-
|
|
4204
|
+
lo: string;
|
|
4504
4205
|
/** Relationship to quick style part */
|
|
4505
|
-
|
|
4206
|
+
qs: string;
|
|
4506
4207
|
/** Relationship to color transform part */
|
|
4507
|
-
|
|
4208
|
+
cs: string;
|
|
4508
4209
|
}
|
|
4509
4210
|
/**
|
|
4510
4211
|
* Creates a dgm:relIds element (CT_RelIds).
|
|
@@ -4519,32 +4220,32 @@ interface DiagramRelIdsOptions {
|
|
|
4519
4220
|
* </xsd:complexType>
|
|
4520
4221
|
* ```
|
|
4521
4222
|
*/
|
|
4522
|
-
declare const createDiagramRelIds: (options: DiagramRelIdsOptions) =>
|
|
4223
|
+
declare const createDiagramRelIds: (options: DiagramRelIdsOptions) => string;
|
|
4523
4224
|
//#endregion
|
|
4524
4225
|
//#region src/drawingml/diagram/diagram-props.d.ts
|
|
4525
4226
|
interface DiagramExtLstOptions {
|
|
4526
4227
|
/** Extension URIs */
|
|
4527
|
-
|
|
4228
|
+
extensions?: readonly DiagramExtensionOptions[];
|
|
4528
4229
|
}
|
|
4529
4230
|
interface DiagramExtensionOptions {
|
|
4530
|
-
|
|
4531
|
-
|
|
4231
|
+
uri: string;
|
|
4232
|
+
content?: string;
|
|
4532
4233
|
}
|
|
4533
4234
|
/**
|
|
4534
4235
|
* Creates a dgm:extLst element (a:CT_OfficeArtExtensionList).
|
|
4535
4236
|
*
|
|
4536
4237
|
* Generic extension list pattern used across OOXML.
|
|
4537
4238
|
*/
|
|
4538
|
-
declare const createDiagramExtLst: (options?: DiagramExtLstOptions) =>
|
|
4239
|
+
declare const createDiagramExtLst: (options?: DiagramExtLstOptions) => string;
|
|
4539
4240
|
/**
|
|
4540
4241
|
* Creates a dgm:sp3d element wrapping a:CT_Shape3D.
|
|
4541
4242
|
*
|
|
4542
4243
|
* Delegates to the shared createShape3D factory but wraps in dgm: namespace context.
|
|
4543
4244
|
*/
|
|
4544
|
-
declare const createDiagramSp3d: (options: Shape3DOptions) =>
|
|
4245
|
+
declare const createDiagramSp3d: (options: Shape3DOptions) => string;
|
|
4545
4246
|
interface DiagramTextPropsOptions {
|
|
4546
4247
|
/** 3D text properties (flat text, no 3D) — empty element */
|
|
4547
|
-
|
|
4248
|
+
flat?: boolean;
|
|
4548
4249
|
}
|
|
4549
4250
|
/**
|
|
4550
4251
|
* Creates a dgm:txPr element (CT_TextProps).
|
|
@@ -4558,179 +4259,64 @@ interface DiagramTextPropsOptions {
|
|
|
4558
4259
|
* </xsd:complexType>
|
|
4559
4260
|
* ```
|
|
4560
4261
|
*/
|
|
4561
|
-
declare const createDiagramTxPr: (_options?: DiagramTextPropsOptions) =>
|
|
4262
|
+
declare const createDiagramTxPr: (_options?: DiagramTextPropsOptions) => string;
|
|
4263
|
+
//#endregion
|
|
4264
|
+
//#region src/drawingml/color/color-descriptors.d.ts
|
|
4265
|
+
declare const rgbColorDesc: CustomDescriptor<RgbColorOptions>;
|
|
4266
|
+
declare const schemeColorDesc: CustomDescriptor<SchemeColorOptions>;
|
|
4267
|
+
declare const hslColorDesc: CustomDescriptor<HslColorOptions>;
|
|
4268
|
+
declare const systemColorDesc: CustomDescriptor<SystemColorOptions>;
|
|
4269
|
+
declare const presetColorDesc: CustomDescriptor<PresetColorOptions>;
|
|
4270
|
+
declare const scRgbColorDesc: CustomDescriptor<ScRgbColorOptions>;
|
|
4271
|
+
declare function getColorDescriptor(color: SolidFillOptions): CustomDescriptor<any>;
|
|
4272
|
+
declare const solidFillDesc: CustomDescriptor<SolidFillOptions>;
|
|
4273
|
+
//#endregion
|
|
4274
|
+
//#region src/drawingml/fill/fill-descriptors.d.ts
|
|
4275
|
+
declare const gradientFillDesc: CustomDescriptor<GradientFillOptions>;
|
|
4276
|
+
declare const patternFillDesc: CustomDescriptor<PatternFillOptions>;
|
|
4277
|
+
declare const fillDesc: CustomDescriptor<FillOptions>;
|
|
4278
|
+
//#endregion
|
|
4279
|
+
//#region src/drawingml/outline/outline-descriptors.d.ts
|
|
4280
|
+
declare const outlineDesc: CustomDescriptor<OutlineOptions>;
|
|
4281
|
+
//#endregion
|
|
4282
|
+
//#region src/drawingml/effects/effect-descriptors.d.ts
|
|
4283
|
+
declare const effectListDesc: CustomDescriptor<EffectListOptions>;
|
|
4284
|
+
//#endregion
|
|
4285
|
+
//#region src/drawingml/locking/locking-descriptors.d.ts
|
|
4286
|
+
declare const shapeLockingDesc: CustomDescriptor<ShapeLockingOptions>;
|
|
4287
|
+
declare const pictureLockingDesc: CustomDescriptor<PictureLockingOptions>;
|
|
4288
|
+
declare const groupLockingDesc: CustomDescriptor<GroupLockingOptions>;
|
|
4289
|
+
declare const graphicFrameLockingDesc: CustomDescriptor<GraphicFrameLockingOptions>;
|
|
4290
|
+
//#endregion
|
|
4291
|
+
//#region src/drawingml/geometry/geometry-descriptors.d.ts
|
|
4292
|
+
declare const presetGeometryDesc: CustomDescriptor<PresetGeometryOptions>;
|
|
4293
|
+
declare const customGeometryDesc: CustomDescriptor<CustomGeometryOptions>;
|
|
4294
|
+
//#endregion
|
|
4295
|
+
//#region src/drawingml/transform-descriptors.d.ts
|
|
4296
|
+
declare const transform2DDesc: CustomDescriptor<Transform2DOptions>;
|
|
4297
|
+
declare const groupTransform2DDesc: CustomDescriptor<GroupTransform2DOptions>;
|
|
4298
|
+
//#endregion
|
|
4299
|
+
//#region src/drawingml/three-d/three-d-descriptors.d.ts
|
|
4300
|
+
declare const bevelDesc: CustomDescriptor<BevelOptions>;
|
|
4301
|
+
declare const shape3DDesc: CustomDescriptor<Shape3DOptions>;
|
|
4302
|
+
declare const scene3DDesc: CustomDescriptor<Scene3DOptions>;
|
|
4303
|
+
//#endregion
|
|
4304
|
+
//#region src/drawingml/blip/blip-descriptors.d.ts
|
|
4305
|
+
declare const tileDesc: CustomDescriptor<TileOptions>;
|
|
4306
|
+
declare const sourceRectangleDesc: CustomDescriptor<SourceRectangleOptions>;
|
|
4307
|
+
declare const stretchDesc: CustomDescriptor<SourceRectangleOptions>;
|
|
4308
|
+
declare const blipDesc: CustomDescriptor<BlipOptions & {
|
|
4309
|
+
blipEffects?: BlipEffectsOptions;
|
|
4310
|
+
}>;
|
|
4311
|
+
declare const blipFillDesc: CustomDescriptor<BlipFillOptions & {
|
|
4312
|
+
referenceId?: string;
|
|
4313
|
+
blipEffects?: BlipEffectsOptions;
|
|
4314
|
+
}>;
|
|
4562
4315
|
//#endregion
|
|
4563
|
-
//#region src/drawingml/
|
|
4564
|
-
|
|
4565
|
-
declare const
|
|
4566
|
-
|
|
4567
|
-
declare const
|
|
4568
|
-
/** Creates an a:grpSp element (Group Shape). */
|
|
4569
|
-
declare const createGrpSp: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4570
|
-
/** Creates an a:pic element (Picture). */
|
|
4571
|
-
declare const createPic: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4572
|
-
/** Creates an a:graphicFrame element (Graphic Frame). */
|
|
4573
|
-
declare const createGraphicFrame: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4574
|
-
/** Creates an a:txSp element (Text Shape). */
|
|
4575
|
-
declare const createTxSp: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4576
|
-
/** Creates an a:cNvSpPr element (Non-Visual Drawing Shape Properties). */
|
|
4577
|
-
declare const createCNvSpPr: () => XmlComponent;
|
|
4578
|
-
/** Creates an a:cNvCxnSpPr element (Non-Visual Connector Properties). */
|
|
4579
|
-
declare const createCNvCxnSpPr: () => XmlComponent;
|
|
4580
|
-
/** Creates an a:cNvGrpSpPr element (Non-Visual Group Shape Properties). */
|
|
4581
|
-
declare const createCNvGrpSpPr: () => XmlComponent;
|
|
4582
|
-
/** Creates an a:cNvGraphicFramePr element (Non-Visual Graphic Frame Properties). */
|
|
4583
|
-
declare const createCNvGraphicFramePr: () => XmlComponent;
|
|
4584
|
-
/** Creates an a:nvSpPr element (Shape Non-Visual Properties). */
|
|
4585
|
-
declare const createNvSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4586
|
-
/** Creates an a:nvCxnSpPr element (Connector Non-Visual Properties). */
|
|
4587
|
-
declare const createNvCxnSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4588
|
-
/** Creates an a:nvGrpSpPr element (Group Shape Non-Visual Properties). */
|
|
4589
|
-
declare const createNvGrpSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4590
|
-
/** Creates an a:nvGraphicFramePr element (Graphic Frame Non-Visual Properties). */
|
|
4591
|
-
declare const createNvGraphicFramePr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4592
|
-
/** Creates an a:nvPicPr element (Picture Non-Visual Properties). */
|
|
4593
|
-
declare const createNvPicPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4594
|
-
/** Creates an a:grpSpPr element (Group Shape Properties). */
|
|
4595
|
-
declare const createGrpSpPr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4596
|
-
/** Creates an a:cpLocks element (Content Part Locking). */
|
|
4597
|
-
declare const createCpLocks: () => XmlComponent;
|
|
4598
|
-
/** Creates an a:cxnSpLocks element (Connector Locking). */
|
|
4599
|
-
declare const createCxnSpLocks: () => XmlComponent;
|
|
4600
|
-
/** Creates an a:useSpRect element (Use Shape Rectangle). */
|
|
4601
|
-
declare const createUseSpRect: () => XmlComponent;
|
|
4602
|
-
/** Creates an a:tableStyle element (Table Style). */
|
|
4603
|
-
declare const createTableStyleElement: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4604
|
-
/** Creates an a:cell3D element (Cell 3-D Properties). */
|
|
4605
|
-
declare const createCell3D: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4606
|
-
/** Creates an a:insideH element (Inside Horizontal Border). */
|
|
4607
|
-
declare const createInsideH: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4608
|
-
/** Creates an a:insideV element (Inside Vertical Border). */
|
|
4609
|
-
declare const createInsideV: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4610
|
-
/** Creates an a:top element (Top Border). */
|
|
4611
|
-
declare const createTop: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4612
|
-
/** Creates an a:bottom element (Bottom Border). */
|
|
4613
|
-
declare const createBottom: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4614
|
-
/** Creates an a:left element (Left Border). */
|
|
4615
|
-
declare const createLeft: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4616
|
-
/** Creates an a:right element (Right Border). */
|
|
4617
|
-
declare const createRight: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4618
|
-
/** Creates an a:tl2br element (Top-Left to Bottom-Right Border). */
|
|
4619
|
-
declare const createTl2br: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4620
|
-
/** Creates an a:tr2bl element (Top-Right to Bottom-Left Border). */
|
|
4621
|
-
declare const createTr2bl: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4622
|
-
/** Creates an a:lnTlToBr element (Top-Left to Bottom-Right Line). */
|
|
4623
|
-
declare const createLnTlToBr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4624
|
-
/** Creates an a:lnBlToTr element (Bottom-Left to Top-Right Line). */
|
|
4625
|
-
declare const createLnBlToTr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4626
|
-
/** Creates an a:round element (Round Line Join). */
|
|
4627
|
-
declare const createRound: () => XmlComponent;
|
|
4628
|
-
/** Creates an a:start element (Connection Start Time). */
|
|
4629
|
-
declare const createStart: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4630
|
-
/** Creates an a:end element (Audio CD End Time). */
|
|
4631
|
-
declare const createEnd: (options?: AudioCdTimeOptions) => XmlComponent;
|
|
4632
|
-
/** Creates an a:stCxn element (Start Connection). */
|
|
4633
|
-
declare const createStCxn: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4634
|
-
/** Creates an a:endCxn element (End Connection). */
|
|
4635
|
-
declare const createEndCxn: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4636
|
-
/** Creates an a:clrMap element (Color Map). */
|
|
4637
|
-
declare const createClrMap: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4638
|
-
/** Creates an a:overrideClrMapping element (Override Color Mapping). */
|
|
4639
|
-
declare const createOverrideClrMapping: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4640
|
-
/** Creates an a:extraClrScheme element (Extra Color Scheme). */
|
|
4641
|
-
declare const createExtraClrScheme: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4642
|
-
/** Creates an a:custClr element (Custom Color). */
|
|
4643
|
-
declare const createCustClr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4644
|
-
/** Creates an a:custClrLst element (Custom Color List). */
|
|
4645
|
-
declare const createCustClrLst: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4646
|
-
/** Creates an a:themeManager element (Theme Manager). */
|
|
4647
|
-
declare const createThemeManager: () => XmlComponent;
|
|
4648
|
-
/** Creates an a:themeOverride element (Theme Override). */
|
|
4649
|
-
declare const createThemeOverride: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4650
|
-
/** Creates an a:font element (Supplemental Font / Font Collection). */
|
|
4651
|
-
declare const createFontElement: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4652
|
-
/** Creates an a:spDef element (Shape Default). */
|
|
4653
|
-
declare const createSpDef: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4654
|
-
/** Creates an a:lnDef element (Line Default). */
|
|
4655
|
-
declare const createLnDef: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4656
|
-
/** Creates an a:txDef element (Text Default). */
|
|
4657
|
-
declare const createTxDef: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4658
|
-
/** Creates an a:br element (Text Line Break). */
|
|
4659
|
-
declare const createBr: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4660
|
-
/** Creates an a:tab element (Text Tab Stop). */
|
|
4661
|
-
declare const createTab: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4662
|
-
/** Creates an a:tabLst element (Text Tab Stop List). */
|
|
4663
|
-
declare const createTabLst: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4664
|
-
/** Creates an a:sym element (Symbol Font). */
|
|
4665
|
-
declare const createSym: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4666
|
-
/** Creates an a:highlight element (Text Highlight). */
|
|
4667
|
-
declare const createHighlight: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4668
|
-
/** Creates an a:buBlip element (Bullet Blip). */
|
|
4669
|
-
declare const createBuBlip: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4670
|
-
/** Creates an a:buClrTx element (Bullet Color - Follow Text). */
|
|
4671
|
-
declare const createBuClrTx: () => XmlComponent;
|
|
4672
|
-
/** Creates an a:buFontTx element (Bullet Font - Follow Text). */
|
|
4673
|
-
declare const createBuFontTx: () => XmlComponent;
|
|
4674
|
-
/** Creates an a:buSzPts element (Bullet Size - Points). */
|
|
4675
|
-
declare const createBuSzPts: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4676
|
-
/** Creates an a:buSzTx element (Bullet Size - Follow Text). */
|
|
4677
|
-
declare const createBuSzTx: () => XmlComponent;
|
|
4678
|
-
/** Creates an a:uFill element (Underline Fill). */
|
|
4679
|
-
declare const createUFill: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4680
|
-
/** Creates an a:uFillTx element (Underline Fill - Follow Text). */
|
|
4681
|
-
declare const createUFillTx: () => XmlComponent;
|
|
4682
|
-
/** Creates an a:uLn element (Underline Line Properties). */
|
|
4683
|
-
declare const createULn: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4684
|
-
/** Creates an a:uLnTx element (Underline Line - Follow Text). */
|
|
4685
|
-
declare const createULnTx: () => XmlComponent;
|
|
4686
|
-
/** Creates an a:audioCd element (Audio CD). */
|
|
4687
|
-
declare const createAudioCd: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4688
|
-
/** Creates an a:quickTimeFile element (QuickTime File). */
|
|
4689
|
-
declare const createQuickTimeFile: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4690
|
-
/** Creates an a:snd element (Sound / Embedded WAV Audio). */
|
|
4691
|
-
declare const createSnd: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4692
|
-
/** Creates an a:wavAudioFile element (WAV Audio File). */
|
|
4693
|
-
declare const createWavAudioFile: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4694
|
-
interface BuildChartOptions {
|
|
4695
|
-
readonly build?: string;
|
|
4696
|
-
readonly animateBackground?: boolean;
|
|
4697
|
-
}
|
|
4698
|
-
/** Creates an a:bldChart element (Build Chart). */
|
|
4699
|
-
declare const createBldChart: (options?: BuildChartOptions) => XmlComponent;
|
|
4700
|
-
interface BuildDiagramOptions {
|
|
4701
|
-
readonly build?: string;
|
|
4702
|
-
readonly reverse?: boolean;
|
|
4703
|
-
}
|
|
4704
|
-
/** Creates an a:bldDgm element (Build Diagram). */
|
|
4705
|
-
declare const createBldDgm: (options?: BuildDiagramOptions) => XmlComponent;
|
|
4706
|
-
/** Creates an a:bevel element (Line Join Bevel). */
|
|
4707
|
-
declare const createBevelElement: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4708
|
-
interface ChartAnimationOptions {
|
|
4709
|
-
readonly seriesIndex?: number;
|
|
4710
|
-
readonly categoryIndex?: number;
|
|
4711
|
-
readonly buildStep?: string;
|
|
4712
|
-
}
|
|
4713
|
-
/** Creates an a:chart element (Animation Chart Element). */
|
|
4714
|
-
declare const createChart: (options?: ChartAnimationOptions) => XmlComponent;
|
|
4715
|
-
interface DiagramAnimationOptions {
|
|
4716
|
-
readonly id?: string;
|
|
4717
|
-
readonly buildStep?: string;
|
|
4718
|
-
}
|
|
4719
|
-
/** Creates an a:dgm element (Animation Diagram Element). */
|
|
4720
|
-
declare const createDgm: (options?: DiagramAnimationOptions) => XmlComponent;
|
|
4721
|
-
/** Creates an a:headers element (Headers). */
|
|
4722
|
-
declare const createHeaders: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4723
|
-
/** Creates an a:header element (Header). */
|
|
4724
|
-
declare const createHeader: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4725
|
-
/** Creates an a:hlinkMouseOver element (Hyperlink Mouse Over). */
|
|
4726
|
-
declare const createHlinkMouseOver: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4727
|
-
interface AudioCdTimeOptions {
|
|
4728
|
-
readonly track?: number;
|
|
4729
|
-
readonly time?: number;
|
|
4730
|
-
}
|
|
4731
|
-
/** Creates an a:st element (Audio CD Start Time). */
|
|
4732
|
-
declare const createSt: (options?: AudioCdTimeOptions) => XmlComponent;
|
|
4733
|
-
/** Creates an a:style element (Shape Style). */
|
|
4734
|
-
declare const createStyleElement: (children?: readonly IXmlableObject[]) => XmlComponent;
|
|
4316
|
+
//#region src/drawingml/diagram/diagram-descriptors.d.ts
|
|
4317
|
+
declare const diagramRelIdsDesc: CustomDescriptor<DiagramRelIdsOptions>;
|
|
4318
|
+
declare const diagramStyleDesc: CustomDescriptor<DiagramStyleOptions>;
|
|
4319
|
+
declare const presLayoutVarsDesc: CustomDescriptor<PresLayoutVarsOptions>;
|
|
4320
|
+
declare const diagramExtLstDesc: CustomDescriptor<DiagramExtLstOptions>;
|
|
4735
4321
|
//#endregion
|
|
4736
|
-
export { createSp as $, createCdrCNvGrpSpPr as $a, PresetColor as $c, createOfPieChart as $i, createWpSpPr as $n, BlipFillOptions as $o, createCustUnit as $r, LineJoin as $s, StyleDefHdrOptions as $t, createGrpSp as A, createSplitPos as Aa, TileFlipMode as Ac, createLegacyDrawingHF as Ai, WpGroupOptions as An, createPictureLocking as Ao, createXdrSpPr as Ar, EffectContainerType as As, ColorListOptions as At, createLnDef as B, createUpDownBars as Ba, SolidFillOptions as Bc, createMax as Bi, createWpCNvGrpSpPr as Bn, TableTextStyleOptions as Bo, createAutoUpdate as Br, createPresetShadowEffect as Bs, createLinClrLst as Bt, createCxnSpLocks as C, createShowNegBubbles as Ca, GradientFillOptions as Cc, createHeaderFooter as Ci, createChPref as Cn, createCdrY as Co, createXdrNvPicPr as Cr, LightRigOptions as Cs, DiagramExtensionOptions as Ct, createExtraClrScheme as D, createSize as Da, PathShadeOptions as Dc, createLayoutTarget as Di, WpCanvasOptions as Dn, ShapeLockingOptions as Do, createXdrRow as Dr, Vector3D as Ds, createDiagramTxPr as Dt, createEndCxn as E, createSideWall as Ea, LinearShadeOptions as Ec, createInvertIfNegative as Ei, createPresLayoutVars as En, PictureLockingOptions as Eo, createXdrPic as Er, SphereCoords as Es, createDiagramSp3d as Et, createHlinkMouseOver as F, createThickness as Fa, createTileInfo as Fc, createMajorTickMark as Fi, createWpBg as Fn, TableCellStyleOptions as Fo, PageMarginsOptions as Fr, createEffectList as Fs, HueDirection as Ft, createNvPicPr as G, createX as Ga, createSystemColor as Gc, createMinorUnit as Gi, createWpExtLst as Gn, MediaTransformation as Go, createBubble3D as Gr, createInnerShadowEffect as Gs, ColorsDefHdrLstOptions as Gt, createNvCxnSpPr as H, createUserShapes as Ha, createSolidFill as Hc, createMinorGridlines as Hi, createWpCNvSpPr as Hn, createTableStyle as Ho, createBandFmt as Hr, RectAlignment as Hs, createTxEffectClrLst as Ht, createInsideH as I, createTickLblPos as Ia, SourceRectangleOptions as Ic, createMajorTimeUnit as Ii, createWpBodyPr as In, TablePartStyleOptions as Io, PageSetupOptions as Ir, ReflectionEffectOptions as Is, StyleMatrixIndex as It, createPic as J, createYMode as Ja, createSchemeColor as Jc, createMultiLvlStrRef as Ji, createWpGrpSpPr as Jn, Transform2DOptions as Jo, createChartObject as Jr, BlendMode as Js, DiagramDescriptionOptions as Jt, createNvSpPr as K, createXMode as Ka, SchemeColor as Kc, createMinus as Ki, createWpGraphicFrame as Kn, createTransformation as Ko, createBubbleScale as Kr, GlowEffectOptions as Ks, ColorsDefHdrOptions as Kt, createInsideV as L, createTickMarkSkip as La, createSourceRectangle as Lc, createMajorUnit as Li, createWpCNvCnPr as Ln, TableStyleListOptions as Lo, createApplyToEnd as Lr, createReflectionEffect as Ls, createDiagramStyle as Lt, createHeader as M, createStrLit as Ma, createGradientStop as Mc, createLogBase as Mi, WpNonVisualDrawingPropsOptions as Mn, OnOffStyleType as Mo, createXdrTo as Mr, createEffectDag as Ms, DiagramStyleLblOptions as Mt, createHeaders as N, createSurface3DChart as Na, TileAlignment as Nc, createLvl as Ni, WpShapeOptions as Nn, StyleMatrixReferenceOptions as No, createXdrTwoCellAnchor as Nr, BlurEffectOptions as Ns, DiagramStyleOptions as Nt, createFontElement as O, createSizeRepresents as Oa, PathShadeType as Oc, createLblAlgn as Oi, WpContentPartOptions as On, createGraphicFrameLocking as Oo, createXdrRowOff as Or, createScene3D as Os, DiagramRelIdsOptions as Ot, createHighlight as P, createSymbol as Pa, TileOptions as Pc, createMajorGridlines as Pi, WpTextboxOptions as Pn, TableCellBorderOptions as Po, createXdrTxBody as Pr, EffectListOptions as Ps, FontCollectionIndex as Pt, createSnd as Q, createCdrCNvGraphicFramePr as Qa, createRgbColor as Qc, createOddHeader as Qi, createWpSp as Qn, createExtentionList as Qo, createCustSplit as Qr, LineCap as Qs, StyleDefHdrLstOptions as Qt, createLeft as R, createTrendlineLbl as Ra, BlipEffectsOptions as Rc, createManualLayout as Ri, createWpCNvContentPartPr as Rn, TableStyleOptions as Ro, createApplyToFront as Rr, PresetShadowEffectOptions as Rs, createEffectClrLst as Rt, createCxnSp as S, createShowLeaderLines as Sa, extractBlipFillMedia as Sc, createHMode as Si, createChMax as Sn, createCdrXfrm as So, createXdrNvGrpSpPr as Sr, CameraOptions as Ss, DiagramExtLstOptions as St, createEnd as T, createShowVertBorder as Ta, GradientStop as Tc, createHoleSize as Ti, createOrgChart as Tn, GroupLockingOptions as To, createXdrOneCellAnchor as Tr, Scene3DOptions as Ts, createDiagramExtLst as Tt, createNvGraphicFramePr as U, createW as Ua, SystemColor as Uc, createMinorTickMark as Ui, createWpCanvas as Un, createTableStyleList as Uo, createBandFmts as Ur, createOuterShadowEffect as Us, createTxFillClrLst as Ut, createLnTlToBr as V, createUserInterface as Va, createColorElement as Vc, createMin as Vi, createWpCNvPr as Vn, ThemeableLineStyleOptions as Vo, createBackWall as Vr, OuterShadowEffectOptions as Vs, createStyleLbl as Vt, createNvGrpSpPr as W, createWMode as Wa, SystemColorOptions as Wc, createMinorTimeUnit as Wi, createWpContentPart as Wn, MediaDataTransformation as Wo, createBaseTimeUnit as Wr, InnerShadowEffectOptions as Ws, createTxLinClrLst as Wt, createRight as X, createCdrBlipFill as Xa, createScRgbColor as Xc, createNumLit as Xi, createWpNestedGrpSp as Xn, createTransform2D as Xo, createCrossBetween as Xr, createFillOverlayEffect as Xs, LayoutDefHdrLstOptions as Xt, createQuickTimeFile as Y, createCdrAbsSizeAnchor as Ya, ScRgbColorOptions as Yc, createName as Yi, createWpLinkedTxbx as Yn, createGroupTransform2D as Yo, createClrMapOvr as Yr, FillOverlayEffectOptions as Ys, DiagramNameOptions as Yt, createRound as Z, createCdrCNvCxnSpPr as Za, RgbColorOptions as Zc, createOddFooter as Zi, createWpNvContentPartPr as Zn, Stretch as Zo, createCrossesAt as Zr, CompoundLine as Zs, LayoutDefHdrOptions as Zt, createChart as _, createSerLines as _a, BlipFillConfigOptions as _c, createFmtId as _i, PresLayoutVarsOptions as _n, createCdrSpPr as _o, createXdrCxnSp as _r, BevelOptions as _s, createUFillTx as _t, createBottom as a, createPictureOptions as aa, LineEndLength as ac, createDispUnits as ai, createColorTransforms as al, createStyleDefHdrLst as an, createCdrFrom as ao, XdrMarkerOptions as ar, GeomRect as as, createSym as at, createCustClr as b, createShowHorzBorder as ba, GradientStopOptions as bc, createGapWidth as bi, createAnimLvl as bn, createCdrTxBody as bo, createXdrGrpSpPr as br, createBottomBevel as bs, createUseSpRect as bt, createBuClrTx as c, createPivotFmts as ca, LineEndWidth as cc, createEvenFooter as ci, AnimLevelValue as cn, createCdrGrpSpPr as co, createXdrBlipFill as cr, PathOptions as cs, createTableStyleElement as ct, createBuSzTx as d, createPlus as da, createCustomDash as dc, createExt as di, AnimOneValue as dn, createCdrNvGrpSpPr as do, createXdrCNvPicPr as dr, PresetGeometryOptions as ds, createTl2br as dt, createOfPieType as ea, OutlineFillProperties as ec, createDLbl as ei, PresetColorOptions as el, createColorsDefHdr as en, createCdrCNvPicPr as eo, createWpStyle as er, createBlipFill as es, createSpDef as et, createCNvCxnSpPr as f, createPrintSettings as fa, createGroupFill as fc, createExtLst as fi, ChMaxOptions as fn, createCdrNvPicPr as fo, createXdrCNvPr as fr, GeometryGuide as fs, createTop as ft, createCell3D as g, createSelection as ga, createNoFill as gc, createFloor as gi, OrgChartOptions as gn, createCdrSp as go, createXdrContentPart as gr, createShape3D as gs, createUFill as gt, createCNvSpPr as h, createSecondPieSize as ha, createPatternFill as hc, createFirstHeader as hi, HierBranchStyle as hn, createCdrRelSizeAnchor as ho, createXdrColOff as hr, Shape3DOptions as hs, createTxSp as ht, createBldDgm as i, createPictureFormat as ia, createOutline as ic, createDispBlanksAs as ii, ColorTransformOptions as il, createStyleDefHdr as in, createCdrExt as io, createWpXfrm as ir, CustomGeometryOptions as is, createStyleElement as it, createGrpSpPr as j, createSplitType as ja, createGradientFill as jc, createLegendEntry as ji, WpLinkedTextboxOptions as jn, createShapeLocking as jo, createXdrStyle as jr, EffectDagOptions as js, ColorMethod as jt, createGraphicFrame as k, createSmooth as ka, RelativeRect as kc, createLeaderLines as ki, WpGraphicFrameOptions as kn, createGroupLocking as ko, createXdrSp as kr, createSoftEdgeEffect as ks, createDiagramRelIds as kt, createBuFontTx as l, createPivotSource as la, createLineEnd as lc, createEvenHeader as li, AnimLvlOptions as ln, createCdrNvCxnSpPr as lo, createXdrCNvCxnSpPr as lr, createCustomGeometry as ls, createThemeManager as lt, createCNvGrpSpPr as m, createSecondPiePt as ma, PresetPattern as mc, createFirstFooter as mi, HierBranchOptions as mn, createCdrPic as mo, createXdrCol as mr, PresetMaterialType as ms, createTxDef as mt, createBevelElement as n, createPageMargins as na, PenAlignment as nc, createDTable as ni, HslColorOptions as nl, createLayoutDefHdr as nn, createCdrCNvSpPr as no, createWpTxbxContent as nr, createBlip as ns, createStCxn as nt, createBr as o, createPictureStackUnit as oa, LineEndOptions as oc, createDispUnitsLbl as oi, AdjLstOptions as on, createCdrGraphicFrame as oo, XdrShapeAttributes as or, PathCommand as os, createTab as ot, createCNvGraphicFramePr as p, createProtection as pa, PatternFillOptions as pc, createExternalData as pi, ChPrefOptions as pn, createCdrNvSpPr as po, createXdrCNvSpPr as pr, createAdjustmentValues as ps, createTr2bl as pt, createOverrideClrMapping as q, createY as qa, SchemeColorOptions as qc, createMultiLvlStrCache as qi, createWpGrpSp as qn, GroupTransform2DOptions as qo, createBuiltInUnit as qr, createGlowEffect as qs, DiagramCategoryOptions as qt, createBldChart as r, createPageSetup as ra, PresetDash as rc, createData as ri, createHslColor as rl, createLayoutDefHdrLst as rn, createCdrCxnSp as ro, createWpWhole as rr, ConnectionSite as rs, createStart as rt, createBuBlip as s, createPivotFmt as sa, LineEndType as sc, createDownBars as si, AdjOptions as sn, createCdrGrpSp as so, XdrTwoCellAnchorOptions as sr, PathFillMode as ss, createTabLst as st, createAudioCd as t, createOverlap as ta, OutlineOptions as tc, createDPt as ti, createPresetColor as tl, createColorsDefHdrLst as tn, createCdrCNvPr as to, createWpTxbx as tr, BlipOptions as ts, createSt as tt, createBuSzPts as u, createPlotVisOnly as ua, DashStop as uc, createExplosion as ui, AnimOneOptions as un, createCdrNvGraphicFramePr as uo, createXdrCNvGrpSpPr as ur, PresetGeometry as us, createThemeOverride as ut, createClrMap as v, createShape as va, BlipFillMediaData as vc, createFormatting as vi, createAdj as vn, createCdrStyle as vo, createXdrFrom as vr, BevelPresetType as vs, createULn as vt, createDgm as w, createShowOutline as wa, GradientShadeOptions as wc, createHiLowLines as wi, createHierBranch as wn, GraphicFrameLockingOptions as wo, createXdrNvSpPr as wr, Point3D as ws, DiagramTextPropsOptions as wt, createCustClrLst as x, createShowKeys as xa, buildFill as xc, createH as xi, createAnimOne as xn, createCdrX as xo, createXdrNvCxnSpPr as xr, BackdropOptions as xs, createWavAudioFile as xt, createCpLocks as y, createShowDLblsOverMax as ya, FillOptions as yc, createGapDepth as yi, createAdjLst as yn, createCdrTo as yo, createXdrGrpSp as yr, createBevel as ys, createULnTx as yt, createLnBlToTr as z, createUpBars as za, createBlipEffects as zc, createMarker as zi, createWpCNvFrPr as zn, TableStyleRegion as zo, createApplyToSides as zr, PresetShadowVal as zs, createFillClrLst as zt };
|
|
4322
|
+
export { createStyleLbl as $, createSchemeColor as $a, zipAndConvert as $i, ReflectionEffectOptions as $n, xsdMaterialType as $r, TableStyleOptions as $t, scRgbColorDesc as A, GradientStop as Aa, convertToEmu as Ai, Shape3DOptions as An, SmartArtRelOptions as Ar, createAdj as At, DiagramRelIdsOptions as B, createTileInfo as Ba, DataType as Bi, Scene3DOptions as Bn, replaceChartPlaceholders as Br, GroupLockingOptions as Bt, fillDesc as C, BlipFillMediaData as Ca, convertEmuToPoints as Ci, PathOptions as Cn, LineEndOptions as Cr, AnimOneValue as Ct, hslColorDesc as D, extractBlipFillMedia as Da, convertPixelsToEmu as Di, GeometryGuide as Dn, DashStop as Dr, HierBranchStyle as Dt, getColorDescriptor as E, buildFill as Ea, convertMillimetersToTwip as Ei, stringifyPresetGeometry as En, createLineEnd as Er, HierBranchOptions as Et, DiagramExtensionOptions as F, TileFlipMode as Fa, compileMapping as Fi, createBottomBevel as Fn, getMediaRefs as Fr, createChPref as Ft, DiagramStyleOptions as G, SolidFillOptions as Ga, ZIP_STORED_LEVEL as Gi, EffectContainerType as Gn, replaceSmartArtPlaceholders as Gr, createPictureLocking as Gt, ColorListOptions as H, createSourceRectangle as Ha, PackerOptions as Hi, Vector3D as Hn, replaceImagePlaceholders as Hr, ShapeLockingOptions as Ht, DiagramTextPropsOptions as I, createGradientFill as Ia, ParsedArchive as Ii, BackdropOptions as In, getReferencedMedia as Ir, createHierBranch as It, StyleMatrixIndex as J, SystemColor as Ja, createPacker as Ji, BlurEffectOptions as Jn, xsdBlendMode as Jr, StyleMatrixReferenceOptions as Jt, FontCollectionIndex as K, createColorElement as Ka, ZipOptions as Ki, EffectDagOptions as Kn, replaceVideoPlaceholders as Kr, createShapeLocking as Kt, createDiagramExtLst as L, createGradientStop as La, parseArchive as Li, CameraOptions as Ln, getVideoRefs as Lr, createOrgChart as Lt, solidFillDesc as M, PathShadeOptions as Ma, convertUniversalMeasureToEmu as Mi, BevelOptions as Mn, collectPlaceholderKeys as Mr, createAnimLvl as Mt, systemColorDesc as N, PathShadeType as Na, convertUniversalMeasureToTwip as Ni, BevelPresetType as Nn, findAndReplaceImagePlaceholders as Nr, createAnimOne as Nt, presetColorDesc as O, GradientFillOptions as Oa, convertPointsToEmu as Oi, stringifyAdjustmentValues as On, createCustomDash as Or, OrgChartOptions as Ot, DiagramExtLstOptions as P, RelativeRect as Pa, parseUniversalMeasure as Pi, createBevel as Pn, formatId as Pr, createChMax as Pt, createLinClrLst as Q, SchemeColorOptions as Qa, unzipSync$1 as Qi, createEffectList as Qn, xsdLineEndSize as Qr, TableStyleListOptions as Qt, createDiagramSp3d as R, TileAlignment as Ra, CompileFn as Ri, LightRigOptions as Rn, hasPlaceholders as Rr, createPresLayoutVars as Rt, outlineDesc as S, BlipFillConfigOptions as Sa, convertEmuToPixels as Si, PathFillMode as Sn, LineEndLength as Sr, AnimOneOptions as St, patternFillDesc as T, GradientStopOptions as Ta, convertInchesToTwip as Ti, PresetGeometryOptions as Tn, LineEndWidth as Tr, ChPrefOptions as Tt, ColorMethod as U, BlipEffectsOptions as Ua, XmlifyedFile as Ui, createScene3D as Un, replaceMediaPlaceholders as Ur, createGraphicFrameLocking as Ut, createDiagramRelIds as V, SourceRectangleOptions as Va, Packer as Vi, SphereCoords as Vn, replaceHyperlinkPlaceholders as Vr, PictureLockingOptions as Vt, DiagramStyleLblOptions as W, createBlipEffects as Wa, ZIP_DEFLATE_LEVEL as Wi, createSoftEdgeEffect as Wn, replaceNumberingPlaceholders as Wr, createGroupLocking as Wt, createEffectClrLst as X, createSystemColor as Xa, strFromU8$1 as Xi, EffectListOptions as Xn, xsdEffectContainer as Xr, TableCellStyleOptions as Xt, createDiagramStyle as Y, SystemColorOptions as Ya, createZipStream as Yi, EffectExtent as Yn, xsdCompoundLine as Yr, TableCellBorderOptions as Yt, createFillClrLst as Z, SchemeColor as Za, toUint8Array as Zi, calculateEffectExtent as Zn, xsdLineCap as Zr, TablePartStyleOptions as Zt, graphicFrameLockingDesc as _, createGroupFill as _a, hashPasswordAgile as _i, createBlip as _n, OutlineFillProperties as _r, createStyleDefHdrLst as _t, blipDesc as a, CoreProperties as aa, xsdStrikeStyle as ai, MediaDataTransformation as an, PresetColorOptions as ao, RectAlignment as ar, DiagramCategoryOptions as at, shapeLockingDesc as b, createPatternFill as ba, PixelPosition as bi, GeomRect as bn, PresetDash as br, AnimLevelValue as bt, stretchDesc as c, parseCorePropsElement as ca, xsdTextCaps as ci, GroupTransform2DOptions as cn, createHslColor as co, createInnerShadowEffect as cr, LayoutDefHdrLstOptions as ct, scene3DDesc as d, createDefault as da, UniqueNumericIdCreator as di, createTransform2D as dn, BlendMode as dr, StyleDefHdrOptions as dt, zipSyncAndConvert as ea, xsdPathFillMode as ei, TableStyleRegion as en, ScRgbColorOptions as eo, createReflectionEffect as er, createTxEffectClrLst as et, shape3DDesc as f, createOverride as fa, hashedId as fi, stringifyStretch as fn, FillOverlayEffectOptions as fr, createColorsDefHdr as ft, presetGeometryDesc as g, APP_PROPS_XML as ga, derivePasswordHash as gi, BlipOptions as gn, LineJoin as gr, createStyleDefHdr as gt, customGeometryDesc as h, TargetModeType as ha, uniqueUuid as hi, createBlipFill as hn, LineCap as hr, createLayoutDefHdrLst as ht, presLayoutVarsDesc as i, convertOutput as ia, xsdRectAlignment as ii, createTableStyleList as in, PresetColor as io, OuterShadowEffectOptions as ir, ColorsDefHdrOptions as it, schemeColorDesc as j, LinearShadeOptions as ja, convertToTwip as ji, createShape3D as jn, addSmartArtRelationships as jr, createAdjLst as jt, rgbColorDesc as k, GradientShadeOptions as ka, convertPositionToEmu as ki, PresetMaterialType as kn, IdFormat as kr, PresLayoutVarsOptions as kt, tileDesc as l, DefaultAttributes as la, xsdUnderlineStyle as li, Transform2DOptions as ln, ColorTransformOptions as lo, GlowEffectOptions as lr, LayoutDefHdrOptions as lt, transform2DDesc as m, Relationships as ma, uniqueNumericIdCreator as mi, BlipFillOptions as mn, CompoundLine as mr, createLayoutDefHdr as mt, diagramRelIdsDesc as n, OutputByType as na, xsdPenAlignment as ni, ThemeableLineStyleOptions as nn, RgbColorOptions as no, PresetShadowVal as nr, createTxLinClrLst as nt, blipFillDesc as o, buildCorePropertiesXml as oa, xsdTextAlign as oi, MediaTransformation as on, createPresetColor as oo, createOuterShadowEffect as or, DiagramDescriptionOptions as ot, groupTransform2DDesc as p, RelationshipType as pa, uniqueId as pi, createExtentionList as pn, createFillOverlayEffect as pr, createColorsDefHdrLst as pt, HueDirection as q, createSolidFill as qa, Zippable$1 as qi, createEffectDag as qn, invertMap as qr, OnOffStyleType as qt, diagramStyleDesc as r, OutputType as ra, xsdPresetShadow as ri, createTableStyle as rn, createRgbColor as ro, createPresetShadowEffect as rr, ColorsDefHdrLstOptions as rt, sourceRectangleDesc as s, buildCorePropertiesXmlString as sa, xsdTextAnchor as si, createTransformation as sn, HslColorOptions as so, InnerShadowEffectOptions as sr, DiagramNameOptions as st, diagramExtLstDesc as t, OoxmlMimeType as ta, xsdPattern as ti, TableTextStyleOptions as tn, createScRgbColor as to, PresetShadowEffectOptions as tr, createTxFillClrLst as tt, bevelDesc as u, OverrideAttributes as ua, xsdVerticalMergeRev as ui, createGroupTransform2D as un, createColorTransforms as uo, createGlowEffect as ur, StyleDefHdrLstOptions as ut, groupLockingDesc as v, PatternFillOptions as va, randomBytes as vi, ConnectionSite as vn, OutlineOptions as vr, AdjLstOptions as vt, gradientFillDesc as w, FillOptions as wa, convertInchesToEmu as wi, createCustomGeometry as wn, LineEndType as wr, ChMaxOptions as wt, effectListDesc as x, createNoFill as xa, convertEmuToInches as xi, PathCommand as xn, createOutline as xr, AnimLvlOptions as xt, pictureLockingDesc as y, PresetPattern as ya, EmuPosition as yi, CustomGeometryOptions as yn, PenAlignment as yr, AdjOptions as yt, createDiagramTxPr as z, TileOptions as za, CompressionOptions as zi, Point3D as zn, replaceAllPlaceholders as zr, GraphicFrameLockingOptions as zt };
|