@office-open/core 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart/index.d.mts +1 -1
- package/dist/chart/index.mjs +1 -1
- package/dist/drawingml/index.d.mts +116 -116
- package/dist/drawingml/index.mjs +124 -140
- package/dist/{index-DVqYs1vv.d.mts → index-DigYTiB_.d.mts} +1 -1
- package/dist/index.d.mts +118 -3
- package/dist/index.mjs +4 -4
- package/dist/smartart/index.d.mts +1 -1
- package/dist/smartart/index.mjs +1 -1
- package/dist/{smartart-CwzSHTBd.mjs → smartart-DBQ_rRfK.mjs} +1 -1
- package/dist/xsd-mappings-BiTj9yJn.mjs +279 -0
- package/package.json +2 -2
- package/dist/id-generators-CM3u923a.mjs +0 -72
package/dist/drawingml/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as BuilderElement, b as XmlComponent } from "../xml-components-CADgke8j.mjs";
|
|
2
|
-
import { d as convertPixelsToEmu,
|
|
2
|
+
import { a as xsdLineCap, c as xsdPathFillMode, d as xsdPresetShadow, f as xsdRectAlignment, i as xsdEffectContainer, k as convertPixelsToEmu, l as xsdPattern, n as xsdBlendMode, o as xsdLineEndSize, r as xsdCompoundLine, s as xsdMaterialType, u as xsdPenAlignment, y as hashedId } from "../xsd-mappings-BiTj9yJn.mjs";
|
|
3
3
|
//#region src/drawingml/color/color-transform.ts
|
|
4
4
|
/**
|
|
5
5
|
* Color transform elements for DrawingML colors.
|
|
@@ -1067,45 +1067,29 @@ var Stretch = class extends XmlComponent {
|
|
|
1067
1067
|
* @module
|
|
1068
1068
|
*/
|
|
1069
1069
|
/**
|
|
1070
|
-
* Tile flip mode for tiling images.
|
|
1071
|
-
*
|
|
1072
|
-
* Specifies whether the image is flipped along the x-axis, y-axis,
|
|
1073
|
-
* both axes, or not at all when tiling.
|
|
1074
|
-
*/
|
|
1075
|
-
const TileFlipMode$1 = {
|
|
1076
|
-
/** No flipping */
|
|
1077
|
-
NONE: "none",
|
|
1078
|
-
/** Flip along x-axis */
|
|
1079
|
-
X: "x",
|
|
1080
|
-
/** Flip along y-axis */
|
|
1081
|
-
Y: "y",
|
|
1082
|
-
/** Flip along both axes */
|
|
1083
|
-
XY: "xy"
|
|
1084
|
-
};
|
|
1085
|
-
/**
|
|
1086
1070
|
* Tile alignment within the shape.
|
|
1087
1071
|
*
|
|
1088
1072
|
* Specifies the anchor position of the first tile relative to the shape.
|
|
1089
1073
|
*/
|
|
1090
1074
|
const TileAlignment = {
|
|
1091
1075
|
/** Top-left corner */
|
|
1092
|
-
TOP_LEFT: "
|
|
1076
|
+
TOP_LEFT: "topLeft",
|
|
1093
1077
|
/** Top center */
|
|
1094
|
-
TOP: "
|
|
1078
|
+
TOP: "top",
|
|
1095
1079
|
/** Top-right corner */
|
|
1096
|
-
TOP_RIGHT: "
|
|
1080
|
+
TOP_RIGHT: "topRight",
|
|
1097
1081
|
/** Middle-left */
|
|
1098
|
-
LEFT: "
|
|
1082
|
+
LEFT: "left",
|
|
1099
1083
|
/** Center */
|
|
1100
|
-
CENTER: "
|
|
1084
|
+
CENTER: "center",
|
|
1101
1085
|
/** Middle-right */
|
|
1102
|
-
RIGHT: "
|
|
1086
|
+
RIGHT: "right",
|
|
1103
1087
|
/** Bottom-left corner */
|
|
1104
|
-
BOTTOM_LEFT: "
|
|
1088
|
+
BOTTOM_LEFT: "bottomLeft",
|
|
1105
1089
|
/** Bottom center */
|
|
1106
|
-
BOTTOM: "
|
|
1090
|
+
BOTTOM: "bottom",
|
|
1107
1091
|
/** Bottom-right corner */
|
|
1108
|
-
BOTTOM_RIGHT: "
|
|
1092
|
+
BOTTOM_RIGHT: "bottomRight"
|
|
1109
1093
|
};
|
|
1110
1094
|
/**
|
|
1111
1095
|
* Creates a tile fill mode element for blip fills.
|
|
@@ -1157,11 +1141,11 @@ const createTileInfo = (options) => {
|
|
|
1157
1141
|
};
|
|
1158
1142
|
if (options.flip !== void 0) attributes.flip = {
|
|
1159
1143
|
key: "flip",
|
|
1160
|
-
value:
|
|
1144
|
+
value: options.flip
|
|
1161
1145
|
};
|
|
1162
1146
|
if (options.align !== void 0) attributes.algn = {
|
|
1163
1147
|
key: "algn",
|
|
1164
|
-
value:
|
|
1148
|
+
value: xsdRectAlignment.to(options.align)
|
|
1165
1149
|
};
|
|
1166
1150
|
return new BuilderElement({
|
|
1167
1151
|
attributes: Object.keys(attributes).length > 0 ? attributes : void 0,
|
|
@@ -1279,7 +1263,7 @@ const createShadeElement = (shade) => {
|
|
|
1279
1263
|
return new BuilderElement({
|
|
1280
1264
|
attributes: { path: {
|
|
1281
1265
|
key: "path",
|
|
1282
|
-
value: pathShade.path
|
|
1266
|
+
value: pathShade.path
|
|
1283
1267
|
} },
|
|
1284
1268
|
children,
|
|
1285
1269
|
name: "a:path"
|
|
@@ -1323,7 +1307,7 @@ const createGradientFill = (options) => {
|
|
|
1323
1307
|
attributes: {
|
|
1324
1308
|
flip: {
|
|
1325
1309
|
key: "flip",
|
|
1326
|
-
value: options.flip
|
|
1310
|
+
value: options.flip
|
|
1327
1311
|
},
|
|
1328
1312
|
rotWithShape: {
|
|
1329
1313
|
key: "rotWithShape",
|
|
@@ -1362,97 +1346,97 @@ const createGradientFill = (options) => {
|
|
|
1362
1346
|
*/
|
|
1363
1347
|
const PresetPattern = {
|
|
1364
1348
|
/** 5% pattern */
|
|
1365
|
-
PCT5: "
|
|
1349
|
+
PCT5: "percent5",
|
|
1366
1350
|
/** 10% pattern */
|
|
1367
|
-
PCT10: "
|
|
1351
|
+
PCT10: "percent10",
|
|
1368
1352
|
/** 20% pattern */
|
|
1369
|
-
PCT20: "
|
|
1353
|
+
PCT20: "percent20",
|
|
1370
1354
|
/** 25% pattern */
|
|
1371
|
-
PCT25: "
|
|
1355
|
+
PCT25: "percent25",
|
|
1372
1356
|
/** 30% pattern */
|
|
1373
|
-
PCT30: "
|
|
1357
|
+
PCT30: "percent30",
|
|
1374
1358
|
/** 40% pattern */
|
|
1375
|
-
PCT40: "
|
|
1359
|
+
PCT40: "percent40",
|
|
1376
1360
|
/** 50% pattern */
|
|
1377
|
-
PCT50: "
|
|
1361
|
+
PCT50: "percent50",
|
|
1378
1362
|
/** 60% pattern */
|
|
1379
|
-
PCT60: "
|
|
1363
|
+
PCT60: "percent60",
|
|
1380
1364
|
/** 70% pattern */
|
|
1381
|
-
PCT70: "
|
|
1365
|
+
PCT70: "percent70",
|
|
1382
1366
|
/** 75% pattern */
|
|
1383
|
-
PCT75: "
|
|
1367
|
+
PCT75: "percent75",
|
|
1384
1368
|
/** 80% pattern */
|
|
1385
|
-
PCT80: "
|
|
1369
|
+
PCT80: "percent80",
|
|
1386
1370
|
/** 90% pattern */
|
|
1387
|
-
PCT90: "
|
|
1371
|
+
PCT90: "percent90",
|
|
1388
1372
|
/** Horizontal lines */
|
|
1389
|
-
HORZ: "
|
|
1373
|
+
HORZ: "horizontal",
|
|
1390
1374
|
/** Vertical lines */
|
|
1391
|
-
VERT: "
|
|
1375
|
+
VERT: "vertical",
|
|
1392
1376
|
/** Light horizontal lines */
|
|
1393
|
-
LT_HORZ: "
|
|
1377
|
+
LT_HORZ: "lightHorizontal",
|
|
1394
1378
|
/** Light vertical lines */
|
|
1395
|
-
LT_VERT: "
|
|
1379
|
+
LT_VERT: "lightVertical",
|
|
1396
1380
|
/** Dark horizontal lines */
|
|
1397
|
-
DK_HORZ: "
|
|
1381
|
+
DK_HORZ: "darkHorizontal",
|
|
1398
1382
|
/** Dark vertical lines */
|
|
1399
|
-
DK_VERT: "
|
|
1383
|
+
DK_VERT: "darkVertical",
|
|
1400
1384
|
/** Narrow horizontal lines */
|
|
1401
|
-
NAR_HORZ: "
|
|
1385
|
+
NAR_HORZ: "narrowHorizontal",
|
|
1402
1386
|
/** Narrow vertical lines */
|
|
1403
|
-
NAR_VERT: "
|
|
1387
|
+
NAR_VERT: "narrowVertical",
|
|
1404
1388
|
/** Dashed horizontal lines */
|
|
1405
|
-
DASH_HORZ: "
|
|
1389
|
+
DASH_HORZ: "dashedHorizontal",
|
|
1406
1390
|
/** Dashed vertical lines */
|
|
1407
|
-
DASH_VERT: "
|
|
1391
|
+
DASH_VERT: "dashedVertical",
|
|
1408
1392
|
/** Cross pattern (+) */
|
|
1409
1393
|
CROSS: "cross",
|
|
1410
1394
|
/** Downward diagonal lines (\) */
|
|
1411
|
-
DN_DIAG: "
|
|
1395
|
+
DN_DIAG: "downDiagonal",
|
|
1412
1396
|
/** Upward diagonal lines (/) */
|
|
1413
|
-
UP_DIAG: "
|
|
1397
|
+
UP_DIAG: "upDiagonal",
|
|
1414
1398
|
/** Light downward diagonal lines */
|
|
1415
|
-
LT_DN_DIAG: "
|
|
1399
|
+
LT_DN_DIAG: "lightDownDiagonal",
|
|
1416
1400
|
/** Light upward diagonal lines */
|
|
1417
|
-
LT_UP_DIAG: "
|
|
1401
|
+
LT_UP_DIAG: "lightUpDiagonal",
|
|
1418
1402
|
/** Dark downward diagonal lines */
|
|
1419
|
-
DK_DN_DIAG: "
|
|
1403
|
+
DK_DN_DIAG: "darkDownDiagonal",
|
|
1420
1404
|
/** Dark upward diagonal lines */
|
|
1421
|
-
DK_UP_DIAG: "
|
|
1405
|
+
DK_UP_DIAG: "darkUpDiagonal",
|
|
1422
1406
|
/** Wide downward diagonal lines */
|
|
1423
|
-
WD_DN_DIAG: "
|
|
1407
|
+
WD_DN_DIAG: "wideDownDiagonal",
|
|
1424
1408
|
/** Wide upward diagonal lines */
|
|
1425
|
-
WD_UP_DIAG: "
|
|
1409
|
+
WD_UP_DIAG: "wideUpDiagonal",
|
|
1426
1410
|
/** Dashed downward diagonal lines */
|
|
1427
|
-
DASH_DN_DIAG: "
|
|
1411
|
+
DASH_DN_DIAG: "dashedDownDiagonal",
|
|
1428
1412
|
/** Dashed upward diagonal lines */
|
|
1429
|
-
DASH_UP_DIAG: "
|
|
1413
|
+
DASH_UP_DIAG: "dashedUpDiagonal",
|
|
1430
1414
|
/** Diagonal cross pattern (X) */
|
|
1431
|
-
DIAG_CROSS: "
|
|
1415
|
+
DIAG_CROSS: "diagonalCross",
|
|
1432
1416
|
/** Small checkerboard */
|
|
1433
|
-
SM_CHECK: "
|
|
1417
|
+
SM_CHECK: "smallChecker",
|
|
1434
1418
|
/** Large checkerboard */
|
|
1435
|
-
LG_CHECK: "
|
|
1419
|
+
LG_CHECK: "largeChecker",
|
|
1436
1420
|
/** Small grid */
|
|
1437
|
-
SM_GRID: "
|
|
1421
|
+
SM_GRID: "smallGrid",
|
|
1438
1422
|
/** Large grid */
|
|
1439
|
-
LG_GRID: "
|
|
1423
|
+
LG_GRID: "largeGrid",
|
|
1440
1424
|
/** Dot grid */
|
|
1441
1425
|
DOT_GRID: "dotGrid",
|
|
1442
1426
|
/** Small confetti */
|
|
1443
|
-
SM_CONFETTI: "
|
|
1427
|
+
SM_CONFETTI: "smallConfetti",
|
|
1444
1428
|
/** Large confetti */
|
|
1445
|
-
LG_CONFETTI: "
|
|
1429
|
+
LG_CONFETTI: "largeConfetti",
|
|
1446
1430
|
/** Horizontal brick pattern */
|
|
1447
|
-
HORZ_BRICK: "
|
|
1431
|
+
HORZ_BRICK: "horizontalBrick",
|
|
1448
1432
|
/** Diagonal brick pattern */
|
|
1449
|
-
DIAG_BRICK: "
|
|
1433
|
+
DIAG_BRICK: "diagonalBrick",
|
|
1450
1434
|
/** Solid diamond */
|
|
1451
|
-
SOLID_DMND: "
|
|
1435
|
+
SOLID_DMND: "solidDiamond",
|
|
1452
1436
|
/** Open diamond */
|
|
1453
|
-
OPEN_DMND: "
|
|
1437
|
+
OPEN_DMND: "openDiamond",
|
|
1454
1438
|
/** Dotted diamond */
|
|
1455
|
-
DOT_DMND: "
|
|
1439
|
+
DOT_DMND: "dottedDiamond",
|
|
1456
1440
|
/** Plaid pattern */
|
|
1457
1441
|
PLAID: "plaid",
|
|
1458
1442
|
/** Sphere pattern */
|
|
@@ -1517,7 +1501,7 @@ const createPatternFill = (options) => {
|
|
|
1517
1501
|
return new BuilderElement({
|
|
1518
1502
|
attributes: { prst: {
|
|
1519
1503
|
key: "prst",
|
|
1520
|
-
value: options.pattern
|
|
1504
|
+
value: xsdPattern.to(options.pattern)
|
|
1521
1505
|
} },
|
|
1522
1506
|
children,
|
|
1523
1507
|
name: "a:pattFill"
|
|
@@ -1566,7 +1550,7 @@ const buildFill = (options) => {
|
|
|
1566
1550
|
angle: options.angle * 6e4,
|
|
1567
1551
|
scaled: options.scaled ?? true
|
|
1568
1552
|
} },
|
|
1569
|
-
...options.path && { shade: { path: options.path
|
|
1553
|
+
...options.path && { shade: { path: options.path } }
|
|
1570
1554
|
});
|
|
1571
1555
|
case "blip": {
|
|
1572
1556
|
const fileName = `${hashedId(toUint8Array(options.data))}.${options.imageType}`;
|
|
@@ -1792,11 +1776,11 @@ const LineEndType = {
|
|
|
1792
1776
|
*/
|
|
1793
1777
|
const LineEndWidth = {
|
|
1794
1778
|
/** Small width */
|
|
1795
|
-
SMALL: "
|
|
1779
|
+
SMALL: "small",
|
|
1796
1780
|
/** Medium width */
|
|
1797
|
-
MEDIUM: "
|
|
1781
|
+
MEDIUM: "medium",
|
|
1798
1782
|
/** Large width */
|
|
1799
|
-
LARGE: "
|
|
1783
|
+
LARGE: "large"
|
|
1800
1784
|
};
|
|
1801
1785
|
/**
|
|
1802
1786
|
* Line end length options.
|
|
@@ -1816,11 +1800,11 @@ const LineEndWidth = {
|
|
|
1816
1800
|
*/
|
|
1817
1801
|
const LineEndLength = {
|
|
1818
1802
|
/** Small length */
|
|
1819
|
-
SMALL: "
|
|
1803
|
+
SMALL: "small",
|
|
1820
1804
|
/** Medium length */
|
|
1821
|
-
MEDIUM: "
|
|
1805
|
+
MEDIUM: "medium",
|
|
1822
1806
|
/** Large length */
|
|
1823
|
-
LARGE: "
|
|
1807
|
+
LARGE: "large"
|
|
1824
1808
|
};
|
|
1825
1809
|
/**
|
|
1826
1810
|
* Creates a line end element (a:headEnd or a:tailEnd).
|
|
@@ -1837,15 +1821,15 @@ const createLineEnd = (name, options) => new BuilderElement({
|
|
|
1837
1821
|
attributes: {
|
|
1838
1822
|
type: {
|
|
1839
1823
|
key: "type",
|
|
1840
|
-
value:
|
|
1824
|
+
value: options.type
|
|
1841
1825
|
},
|
|
1842
1826
|
w: {
|
|
1843
1827
|
key: "w",
|
|
1844
|
-
value: options.width ?
|
|
1828
|
+
value: options.width ? xsdLineEndSize.to(options.width) : void 0
|
|
1845
1829
|
},
|
|
1846
1830
|
len: {
|
|
1847
1831
|
key: "len",
|
|
1848
|
-
value: options.length ?
|
|
1832
|
+
value: options.length ? xsdLineEndSize.to(options.length) : void 0
|
|
1849
1833
|
}
|
|
1850
1834
|
},
|
|
1851
1835
|
name
|
|
@@ -1869,9 +1853,9 @@ const createLineEnd = (name, options) => new BuilderElement({
|
|
|
1869
1853
|
*/
|
|
1870
1854
|
const LineCap = {
|
|
1871
1855
|
/** Round cap style */
|
|
1872
|
-
ROUND: "
|
|
1856
|
+
ROUND: "round",
|
|
1873
1857
|
/** Square cap style */
|
|
1874
|
-
SQUARE: "
|
|
1858
|
+
SQUARE: "square",
|
|
1875
1859
|
/** Flat cap style */
|
|
1876
1860
|
FLAT: "flat"
|
|
1877
1861
|
};
|
|
@@ -1882,15 +1866,15 @@ const LineCap = {
|
|
|
1882
1866
|
*/
|
|
1883
1867
|
const CompoundLine = {
|
|
1884
1868
|
/** Single line */
|
|
1885
|
-
SINGLE: "
|
|
1869
|
+
SINGLE: "single",
|
|
1886
1870
|
/** Double line */
|
|
1887
|
-
DOUBLE: "
|
|
1871
|
+
DOUBLE: "double",
|
|
1888
1872
|
/** Thick-thin double line */
|
|
1889
1873
|
THICK_THIN: "thickThin",
|
|
1890
1874
|
/** Thin-thick double line */
|
|
1891
1875
|
THIN_THICK: "thinThick",
|
|
1892
1876
|
/** Triple line */
|
|
1893
|
-
TRI: "
|
|
1877
|
+
TRI: "triple"
|
|
1894
1878
|
};
|
|
1895
1879
|
/**
|
|
1896
1880
|
* Pen alignment options for outline positioning.
|
|
@@ -1899,9 +1883,9 @@ const CompoundLine = {
|
|
|
1899
1883
|
*/
|
|
1900
1884
|
const PenAlignment = {
|
|
1901
1885
|
/** Center alignment */
|
|
1902
|
-
CENTER: "
|
|
1886
|
+
CENTER: "center",
|
|
1903
1887
|
/** Inset alignment */
|
|
1904
|
-
INSET: "
|
|
1888
|
+
INSET: "inside"
|
|
1905
1889
|
};
|
|
1906
1890
|
/**
|
|
1907
1891
|
* Preset dash styles for outlines.
|
|
@@ -1998,33 +1982,33 @@ const createOutline = (options) => {
|
|
|
1998
1982
|
else if (options.dash !== void 0) children.push(new BuilderElement({
|
|
1999
1983
|
attributes: { val: {
|
|
2000
1984
|
key: "val",
|
|
2001
|
-
value:
|
|
1985
|
+
value: options.dash
|
|
2002
1986
|
} },
|
|
2003
1987
|
name: "a:prstDash"
|
|
2004
1988
|
}));
|
|
2005
|
-
if (options.join !== void 0) if (options.join === "
|
|
1989
|
+
if (options.join !== void 0) if (options.join === "miter" && options.miterLimit !== void 0) children.push(new BuilderElement({
|
|
2006
1990
|
attributes: { lim: {
|
|
2007
1991
|
key: "lim",
|
|
2008
1992
|
value: options.miterLimit
|
|
2009
1993
|
} },
|
|
2010
1994
|
name: "a:miter"
|
|
2011
1995
|
}));
|
|
2012
|
-
else children.push(new BuilderElement({ name: `a:${
|
|
1996
|
+
else children.push(new BuilderElement({ name: `a:${options.join}` }));
|
|
2013
1997
|
if (options.headEnd) children.push(createLineEnd("a:headEnd", options.headEnd));
|
|
2014
1998
|
if (options.tailEnd) children.push(createLineEnd("a:tailEnd", options.tailEnd));
|
|
2015
1999
|
return new BuilderElement({
|
|
2016
2000
|
attributes: {
|
|
2017
2001
|
align: {
|
|
2018
2002
|
key: "algn",
|
|
2019
|
-
value: options.align ?
|
|
2003
|
+
value: options.align ? xsdPenAlignment.to(options.align) : void 0
|
|
2020
2004
|
},
|
|
2021
2005
|
cap: {
|
|
2022
2006
|
key: "cap",
|
|
2023
|
-
value: options.cap ?
|
|
2007
|
+
value: options.cap ? xsdLineCap.to(options.cap) : void 0
|
|
2024
2008
|
},
|
|
2025
2009
|
compoundLine: {
|
|
2026
2010
|
key: "cmpd",
|
|
2027
|
-
value: options.compoundLine ?
|
|
2011
|
+
value: options.compoundLine ? xsdCompoundLine.to(options.compoundLine) : void 0
|
|
2028
2012
|
},
|
|
2029
2013
|
width: {
|
|
2030
2014
|
key: "w",
|
|
@@ -2064,7 +2048,7 @@ const BlendMode = {
|
|
|
2064
2048
|
/** Over blend mode */
|
|
2065
2049
|
OVER: "over",
|
|
2066
2050
|
/** Multiply blend mode */
|
|
2067
|
-
MULTIPLY: "
|
|
2051
|
+
MULTIPLY: "multiply",
|
|
2068
2052
|
/** Screen blend mode */
|
|
2069
2053
|
SCREEN: "screen",
|
|
2070
2054
|
/** Darken blend mode */
|
|
@@ -2111,7 +2095,7 @@ const createFillOverlayEffect = (options) => {
|
|
|
2111
2095
|
return new BuilderElement({
|
|
2112
2096
|
attributes: { blend: {
|
|
2113
2097
|
key: "blend",
|
|
2114
|
-
value: options.blend
|
|
2098
|
+
value: xsdBlendMode.to(options.blend)
|
|
2115
2099
|
} },
|
|
2116
2100
|
children: [fillElement],
|
|
2117
2101
|
name: "a:fillOverlay"
|
|
@@ -2214,15 +2198,15 @@ const createInnerShadowEffect = (options) => {
|
|
|
2214
2198
|
* Rectangle alignment for shadow positioning.
|
|
2215
2199
|
*/
|
|
2216
2200
|
const RectAlignment = {
|
|
2217
|
-
TOP_LEFT: "
|
|
2218
|
-
TOP: "
|
|
2219
|
-
TOP_RIGHT: "
|
|
2220
|
-
LEFT: "
|
|
2221
|
-
CENTER: "
|
|
2222
|
-
RIGHT: "
|
|
2223
|
-
BOTTOM_LEFT: "
|
|
2224
|
-
BOTTOM: "
|
|
2225
|
-
BOTTOM_RIGHT: "
|
|
2201
|
+
TOP_LEFT: "topLeft",
|
|
2202
|
+
TOP: "top",
|
|
2203
|
+
TOP_RIGHT: "topRight",
|
|
2204
|
+
LEFT: "left",
|
|
2205
|
+
CENTER: "center",
|
|
2206
|
+
RIGHT: "right",
|
|
2207
|
+
BOTTOM_LEFT: "bottomLeft",
|
|
2208
|
+
BOTTOM: "bottom",
|
|
2209
|
+
BOTTOM_RIGHT: "bottomRight"
|
|
2226
2210
|
};
|
|
2227
2211
|
/**
|
|
2228
2212
|
* Creates an outer shadow effect element.
|
|
@@ -2277,7 +2261,7 @@ const createOuterShadowEffect = (options) => {
|
|
|
2277
2261
|
};
|
|
2278
2262
|
if (options.alignment !== void 0) attributes.algn = {
|
|
2279
2263
|
key: "algn",
|
|
2280
|
-
value:
|
|
2264
|
+
value: xsdRectAlignment.to(options.alignment)
|
|
2281
2265
|
};
|
|
2282
2266
|
if (options.rotWithShape === false) attributes.rotWithShape = {
|
|
2283
2267
|
key: "rotWithShape",
|
|
@@ -2304,26 +2288,26 @@ const createOuterShadowEffect = (options) => {
|
|
|
2304
2288
|
* Reference: ISO/IEC 29500-4, dml-main.xsd, ST_PresetShadowVal
|
|
2305
2289
|
*/
|
|
2306
2290
|
const PresetShadowVal = {
|
|
2307
|
-
SHDW1: "
|
|
2308
|
-
SHDW2: "
|
|
2309
|
-
SHDW3: "
|
|
2310
|
-
SHDW4: "
|
|
2311
|
-
SHDW5: "
|
|
2312
|
-
SHDW6: "
|
|
2313
|
-
SHDW7: "
|
|
2314
|
-
SHDW8: "
|
|
2315
|
-
SHDW9: "
|
|
2316
|
-
SHDW10: "
|
|
2317
|
-
SHDW11: "
|
|
2318
|
-
SHDW12: "
|
|
2319
|
-
SHDW13: "
|
|
2320
|
-
SHDW14: "
|
|
2321
|
-
SHDW15: "
|
|
2322
|
-
SHDW16: "
|
|
2323
|
-
SHDW17: "
|
|
2324
|
-
SHDW18: "
|
|
2325
|
-
SHDW19: "
|
|
2326
|
-
SHDW20: "
|
|
2291
|
+
SHDW1: "shadow1",
|
|
2292
|
+
SHDW2: "shadow2",
|
|
2293
|
+
SHDW3: "shadow3",
|
|
2294
|
+
SHDW4: "shadow4",
|
|
2295
|
+
SHDW5: "shadow5",
|
|
2296
|
+
SHDW6: "shadow6",
|
|
2297
|
+
SHDW7: "shadow7",
|
|
2298
|
+
SHDW8: "shadow8",
|
|
2299
|
+
SHDW9: "shadow9",
|
|
2300
|
+
SHDW10: "shadow10",
|
|
2301
|
+
SHDW11: "shadow11",
|
|
2302
|
+
SHDW12: "shadow12",
|
|
2303
|
+
SHDW13: "shadow13",
|
|
2304
|
+
SHDW14: "shadow14",
|
|
2305
|
+
SHDW15: "shadow15",
|
|
2306
|
+
SHDW16: "shadow16",
|
|
2307
|
+
SHDW17: "shadow17",
|
|
2308
|
+
SHDW18: "shadow18",
|
|
2309
|
+
SHDW19: "shadow19",
|
|
2310
|
+
SHDW20: "shadow20"
|
|
2327
2311
|
};
|
|
2328
2312
|
/**
|
|
2329
2313
|
* Creates a preset shadow effect element.
|
|
@@ -2343,7 +2327,7 @@ const PresetShadowVal = {
|
|
|
2343
2327
|
const createPresetShadowEffect = (options) => {
|
|
2344
2328
|
const attributes = { prst: {
|
|
2345
2329
|
key: "prst",
|
|
2346
|
-
value:
|
|
2330
|
+
value: xsdPresetShadow.to(options.preset)
|
|
2347
2331
|
} };
|
|
2348
2332
|
if (options.distance !== void 0) attributes.dist = {
|
|
2349
2333
|
key: "dist",
|
|
@@ -2444,7 +2428,7 @@ const createReflectionEffect = (options) => {
|
|
|
2444
2428
|
};
|
|
2445
2429
|
if (options.alignment !== void 0) attributes.algn = {
|
|
2446
2430
|
key: "algn",
|
|
2447
|
-
value: options.alignment
|
|
2431
|
+
value: xsdRectAlignment.to(options.alignment)
|
|
2448
2432
|
};
|
|
2449
2433
|
if (options.rotWithShape === false) attributes.rotWithShape = {
|
|
2450
2434
|
key: "rotWithShape",
|
|
@@ -2628,7 +2612,7 @@ const createBlendEffect = (options) => new BuilderElement({
|
|
|
2628
2612
|
name: "a:blend",
|
|
2629
2613
|
attributes: { blend: {
|
|
2630
2614
|
key: "blend",
|
|
2631
|
-
value: options.blend
|
|
2615
|
+
value: xsdBlendMode.to(options.blend)
|
|
2632
2616
|
} },
|
|
2633
2617
|
children: [createEffectContainer(options.container)]
|
|
2634
2618
|
});
|
|
@@ -2768,7 +2752,7 @@ const createBlurEffect = (options) => {
|
|
|
2768
2752
|
*/
|
|
2769
2753
|
const createEffectContainer = (options, elementName = "a:cont") => {
|
|
2770
2754
|
const attrs = buildOptionalAttributes({
|
|
2771
|
-
type: options.type,
|
|
2755
|
+
type: options.type ? xsdEffectContainer.to(options.type) : void 0,
|
|
2772
2756
|
name: options.name
|
|
2773
2757
|
});
|
|
2774
2758
|
const children = [];
|
|
@@ -3033,7 +3017,7 @@ const createBevel = (options) => {
|
|
|
3033
3017
|
};
|
|
3034
3018
|
if (options.prst !== void 0) attributes.prst = {
|
|
3035
3019
|
key: "prst",
|
|
3036
|
-
value:
|
|
3020
|
+
value: options.prst
|
|
3037
3021
|
};
|
|
3038
3022
|
return new BuilderElement({
|
|
3039
3023
|
attributes,
|
|
@@ -3056,7 +3040,7 @@ const createBottomBevel = (options) => {
|
|
|
3056
3040
|
};
|
|
3057
3041
|
if (options.prst !== void 0) attributes.prst = {
|
|
3058
3042
|
key: "prst",
|
|
3059
|
-
value:
|
|
3043
|
+
value: options.prst
|
|
3060
3044
|
};
|
|
3061
3045
|
return new BuilderElement({
|
|
3062
3046
|
attributes,
|
|
@@ -3088,11 +3072,11 @@ const PresetMaterialType = {
|
|
|
3088
3072
|
WARM_MATTE: "warmMatte",
|
|
3089
3073
|
TRANSLUCENT_POWDER: "translucentPowder",
|
|
3090
3074
|
POWDER: "powder",
|
|
3091
|
-
DK_EDGE: "
|
|
3075
|
+
DK_EDGE: "darkEdge",
|
|
3092
3076
|
SOFT_EDGE: "softEdge",
|
|
3093
3077
|
CLEAR: "clear",
|
|
3094
3078
|
FLAT: "flat",
|
|
3095
|
-
SOFT_METAL: "
|
|
3079
|
+
SOFT_METAL: "softMetal"
|
|
3096
3080
|
};
|
|
3097
3081
|
/**
|
|
3098
3082
|
* Creates a 3D shape properties element (a:sp3d).
|
|
@@ -3141,7 +3125,7 @@ const createShape3D = (options) => {
|
|
|
3141
3125
|
} },
|
|
3142
3126
|
...options.prstMaterial !== void 0 && { prstMaterial: {
|
|
3143
3127
|
key: "prstMaterial",
|
|
3144
|
-
value:
|
|
3128
|
+
value: xsdMaterialType.to(options.prstMaterial)
|
|
3145
3129
|
} }
|
|
3146
3130
|
} : void 0,
|
|
3147
3131
|
children,
|
|
@@ -3379,7 +3363,7 @@ const createPath = (options) => {
|
|
|
3379
3363
|
};
|
|
3380
3364
|
if (options.fill !== void 0) attrs.fill = {
|
|
3381
3365
|
key: "fill",
|
|
3382
|
-
value: options.fill
|
|
3366
|
+
value: xsdPathFillMode.to(options.fill)
|
|
3383
3367
|
};
|
|
3384
3368
|
if (options.stroke !== void 0) attrs.stroke = {
|
|
3385
3369
|
key: "stroke",
|
|
@@ -71,7 +71,7 @@ declare class SmartArtCollection {
|
|
|
71
71
|
private readonly map;
|
|
72
72
|
constructor();
|
|
73
73
|
addSmartArt(key: string, data: SmartArtData): void;
|
|
74
|
-
get
|
|
74
|
+
get array(): readonly SmartArtData[];
|
|
75
75
|
}
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region src/smartart/tree-to-model.d.ts
|