ooxml-core 1.44.0 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PptxHandler-FZ43IJFP.mjs +5 -0
- package/dist/{PptxHandler-3VAVJDFB.mjs → PptxHandler-HWEOIHEA.mjs} +2 -2
- package/dist/PptxHandler-XAUKKK36.cjs +14 -0
- package/dist/{PresentationBuilder-KHL6GONR.cjs → PresentationBuilder-2BCCMZW7.cjs} +6 -6
- package/dist/{PresentationBuilder-7LJMTRJ6.mjs → PresentationBuilder-66RV4F45.mjs} +2 -2
- package/dist/{PresentationBuilder-PY2GB4IG.mjs → PresentationBuilder-AFD72LIG.mjs} +3 -3
- package/dist/automation/index.cjs +22 -8
- package/dist/automation/index.mjs +22 -8
- package/dist/chart/edit/fill.d.ts +6 -2
- package/dist/chart/edit/fill.d.ts.map +1 -1
- package/dist/chart/edit/group-options.d.ts +4 -0
- package/dist/chart/edit/group-options.d.ts.map +1 -1
- package/dist/chart/edit/new-chart-minimal.d.ts +13 -0
- package/dist/chart/edit/new-chart-minimal.d.ts.map +1 -0
- package/dist/chart/edit/new-chart.d.ts +34 -1
- package/dist/chart/edit/new-chart.d.ts.map +1 -1
- package/dist/chart/edit/secondary-axis.d.ts +8 -1
- package/dist/chart/edit/secondary-axis.d.ts.map +1 -1
- package/dist/chart/edit/type.d.ts +2 -0
- package/dist/chart/edit/type.d.ts.map +1 -1
- package/dist/chart/index.cjs +426 -266
- package/dist/chart/index.mjs +424 -267
- package/dist/{chunk-3J6VIKLP.cjs → chunk-5TOVSCVT.cjs} +3 -3
- package/dist/{chunk-4LEVL6ZW.mjs → chunk-E2TTMUKU.mjs} +681 -142
- package/dist/{chunk-7T3SJQA6.cjs → chunk-E5TGYYKO.cjs} +1 -0
- package/dist/{chunk-VKFKEVHK.mjs → chunk-EI6555OK.mjs} +1 -1
- package/dist/{chunk-R7NS42KQ.mjs → chunk-FKU2Z6ZB.mjs} +1 -1
- package/dist/{chunk-243ZYX2B.mjs → chunk-G6LEU3Y5.mjs} +1 -1
- package/dist/{chunk-JHYU7HGG.mjs → chunk-H43QQVJU.mjs} +1 -1
- package/dist/{chunk-HLYOHD2Z.mjs → chunk-HH3AYM63.mjs} +664 -146
- package/dist/{chunk-RNZQ2OU4.cjs → chunk-IBRV3AK3.cjs} +1930 -1412
- package/dist/{chunk-WEAWSXUX.mjs → chunk-L6MJGE3Q.mjs} +4 -4
- package/dist/{chunk-IPV3J3I5.mjs → chunk-LXVE2VKR.mjs} +4 -1
- package/dist/{chunk-QZPOPUI5.cjs → chunk-QUAFASFC.cjs} +4 -0
- package/dist/{chunk-XTUX5RMG.cjs → chunk-T4BVZTII.cjs} +9 -9
- package/dist/{chunk-KCDLTVUI.mjs → chunk-X2DC7XRL.mjs} +17 -16
- package/dist/{chunk-OORQCSVA.mjs → chunk-ZLUHU2SU.mjs} +1 -0
- package/dist/docx/index.cjs +300 -144
- package/dist/docx/index.mjs +300 -144
- package/dist/index.cjs +496 -336
- package/dist/index.mjs +496 -336
- package/dist/pptx/automation/index.cjs +879 -310
- package/dist/pptx/automation/index.d.ts +6 -6
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{elements-PBugbKtv.d.ts → elements-B4Z6N-Gz.d.ts} +4 -477
- package/dist/pptx/chunks/elements-B4Z6N-Gz.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-CCJiD-Bm.d.ts → index-BPGaFlm5.d.ts} +6 -6
- package/dist/pptx/chunks/{index-CCJiD-Bm.d.ts.map → index-BPGaFlm5.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-Bj-hur0D.d.ts → index-D4-WJQ1r.d.ts} +4 -4
- package/dist/pptx/chunks/{index-Bj-hur0D.d.ts.map → index-D4-WJQ1r.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-CGNb1TV9.d.ts → index-DtFoPmk7.d.ts} +108 -10
- package/dist/pptx/chunks/index-DtFoPmk7.d.ts.map +1 -0
- package/dist/pptx/chunks/{table-C7ITXL3Y.d.ts → table-BfgZfw5R.d.ts} +488 -4
- package/dist/pptx/chunks/table-BfgZfw5R.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-BNJr7aGa.d.ts → text-operations-CVHXOSit.d.ts} +19 -4
- package/dist/pptx/chunks/{text-operations-BNJr7aGa.d.ts.map → text-operations-CVHXOSit.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +832 -263
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +1 -0
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/collaboration-live-patch-target.cjs +4 -4
- package/dist/pptx/editor/render/collaboration-live-patch-target.mjs +2 -2
- package/dist/pptx/editor/render/collaboration-reconcile.cjs +8 -8
- package/dist/pptx/editor/render/collaboration-reconcile.mjs +2 -2
- package/dist/pptx/editor/render/collaboration-sync.cjs +14 -14
- package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
- package/dist/pptx/editor/render/collaboration-sync.mjs +1 -1
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/editor/render/table-layout.d.ts +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +909 -315
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/xlsx/index.cjs +22 -8
- package/dist/xlsx/index.mjs +22 -8
- package/dist/xlsx/ui/index.cjs +22 -8
- package/dist/xlsx/ui/index.mjs +22 -8
- package/package.json +1 -1
- package/dist/PptxHandler-V23RDNEX.cjs +0 -14
- package/dist/PptxHandler-WB3KL2WH.mjs +0 -5
- package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +0 -1
- package/dist/pptx/chunks/index-CGNb1TV9.d.ts.map +0 -1
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PptxHandler } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PptxHandler } from './chunk-E2TTMUKU.mjs';
|
|
2
|
+
import './chunk-X2DC7XRL.mjs';
|
|
3
3
|
import './chunk-EYCM7RVL.mjs';
|
|
4
4
|
import './chunk-2N7RZQLC.mjs';
|
|
5
5
|
import './chunk-VDUNZTJC.mjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkIBRV3AK3_cjs = require('./chunk-IBRV3AK3.cjs');
|
|
4
|
+
require('./chunk-5TOVSCVT.cjs');
|
|
5
|
+
require('./chunk-QUAFASFC.cjs');
|
|
6
|
+
require('./chunk-XZPZHXV4.cjs');
|
|
7
|
+
require('./chunk-5W2QL4SB.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "PptxHandler", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkIBRV3AK3_cjs.PptxHandler; }
|
|
14
|
+
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkIBRV3AK3_cjs = require('./chunk-IBRV3AK3.cjs');
|
|
4
|
+
require('./chunk-5TOVSCVT.cjs');
|
|
5
|
+
require('./chunk-QUAFASFC.cjs');
|
|
6
6
|
require('./chunk-XZPZHXV4.cjs');
|
|
7
7
|
require('./chunk-5W2QL4SB.cjs');
|
|
8
8
|
|
|
@@ -10,13 +10,13 @@ require('./chunk-5W2QL4SB.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PresentationBuilder", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkIBRV3AK3_cjs.PresentationBuilder; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "STANDARD_LAYOUTS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkIBRV3AK3_cjs.STANDARD_LAYOUTS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "buildBlankPresentationArchive", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkIBRV3AK3_cjs.buildBlankPresentationArchive; }
|
|
22
22
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-E2TTMUKU.mjs';
|
|
2
|
+
import './chunk-X2DC7XRL.mjs';
|
|
3
3
|
import './chunk-EYCM7RVL.mjs';
|
|
4
4
|
import './chunk-2N7RZQLC.mjs';
|
|
5
5
|
import './chunk-VDUNZTJC.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-HH3AYM63.mjs';
|
|
2
|
+
import './chunk-EI6555OK.mjs';
|
|
3
|
+
import './chunk-LXVE2VKR.mjs';
|
|
4
4
|
import './chunk-GXHKNSZX.mjs';
|
|
5
5
|
import './chunk-CA7KCNL3.mjs';
|
|
@@ -34364,7 +34364,16 @@ function repaintSeriesForFamily(series, toLine) {
|
|
|
34364
34364
|
shape2.fill = structuredClone(shape2.line.fill);
|
|
34365
34365
|
}
|
|
34366
34366
|
function clearPointPaint(series, key2) {
|
|
34367
|
-
|
|
34367
|
+
const emptied = (part) => Object.keys(part).every((name4) => name4 === "sourceXml");
|
|
34368
|
+
for (const point3 of series.dataPoints) {
|
|
34369
|
+
if (!point3.spPr) continue;
|
|
34370
|
+
delete point3.spPr[key2];
|
|
34371
|
+
if (point3.spPr.line && emptied(point3.spPr.line)) delete point3.spPr.line;
|
|
34372
|
+
if (emptied(point3.spPr)) delete point3.spPr;
|
|
34373
|
+
}
|
|
34374
|
+
series.dataPoints = series.dataPoints.filter(
|
|
34375
|
+
(point3) => Object.keys(point3).some((name4) => name4 !== "index")
|
|
34376
|
+
);
|
|
34368
34377
|
}
|
|
34369
34378
|
function setChartSeriesFill(space, index5, fill2) {
|
|
34370
34379
|
return editChartSpace(space, (draft) => {
|
|
@@ -35397,7 +35406,7 @@ var SWITCHABLE = {
|
|
|
35397
35406
|
stock: false,
|
|
35398
35407
|
surface: true
|
|
35399
35408
|
};
|
|
35400
|
-
function
|
|
35409
|
+
function chartGroupElement(kind, is3D) {
|
|
35401
35410
|
const match2 = Object.entries(CHART_GROUP_ELEMENTS).find(
|
|
35402
35411
|
([, value3]) => value3.kind === kind && value3.is3D === is3D
|
|
35403
35412
|
);
|
|
@@ -35413,7 +35422,7 @@ function groupingFor(element5, grouping) {
|
|
|
35413
35422
|
var horizontalBars = (group3) => group3.kind === "bar" && group3.barDirection === "bar";
|
|
35414
35423
|
function newGroup(base3, target3, series) {
|
|
35415
35424
|
const is3D = target3.is3D ?? (base3.is3D && SWITCHABLE[target3.kind] === true);
|
|
35416
|
-
const element5 =
|
|
35425
|
+
const element5 = chartGroupElement(target3.kind, is3D);
|
|
35417
35426
|
const group3 = { kind: target3.kind, element: element5, is3D, series, axisIds: [] };
|
|
35418
35427
|
const allowed = GROUP_FIELDS[element5] ?? [];
|
|
35419
35428
|
for (const key2 of allowed)
|
|
@@ -35703,6 +35712,11 @@ var RANGES = {
|
|
|
35703
35712
|
firstSliceAngle: [0, 360],
|
|
35704
35713
|
holeSize: [1, 90]
|
|
35705
35714
|
};
|
|
35715
|
+
function assertChartGroupOption(key2, value3) {
|
|
35716
|
+
const [min, max] = RANGES[key2];
|
|
35717
|
+
if (!Number.isInteger(value3) || value3 < min || value3 > max)
|
|
35718
|
+
throw new RangeError(`Chart ${key2} must be a whole number from ${min} to ${max}`);
|
|
35719
|
+
}
|
|
35706
35720
|
function setChartGroupOptions(space, seriesIndex, edit2) {
|
|
35707
35721
|
return editChartSpace(space, (draft) => {
|
|
35708
35722
|
const { group: group3 } = chartSeriesEntryAt(draft, seriesIndex);
|
|
@@ -35715,9 +35729,7 @@ function setChartGroupOptions(space, seriesIndex, edit2) {
|
|
|
35715
35729
|
delete group3[key2];
|
|
35716
35730
|
continue;
|
|
35717
35731
|
}
|
|
35718
|
-
|
|
35719
|
-
if (!Number.isInteger(value3) || value3 < min || value3 > max)
|
|
35720
|
-
throw new RangeError(`Chart ${key2} must be a whole number from ${min} to ${max}`);
|
|
35732
|
+
assertChartGroupOption(key2, value3);
|
|
35721
35733
|
group3[key2] = value3;
|
|
35722
35734
|
}
|
|
35723
35735
|
});
|
|
@@ -36041,7 +36053,7 @@ function isolateSeries(space, index5) {
|
|
|
36041
36053
|
space.plotArea.groups.splice(groupIndex, 1, ...segments);
|
|
36042
36054
|
return chartSeriesEntryAt(space, index5).group;
|
|
36043
36055
|
}
|
|
36044
|
-
function setChartSeriesSecondaryAxis(space, seriesIndex, secondary) {
|
|
36056
|
+
function setChartSeriesSecondaryAxis(space, seriesIndex, secondary, options2 = {}) {
|
|
36045
36057
|
if (!chartSeriesSecondaryAxisSupported(space, seriesIndex))
|
|
36046
36058
|
throw new RangeError(
|
|
36047
36059
|
"Secondary-axis editing needs a later series in a supported vertical 2D chart"
|
|
@@ -36068,7 +36080,9 @@ function setChartSeriesSecondaryAxis(space, seriesIndex, secondary) {
|
|
|
36068
36080
|
used.add(id5);
|
|
36069
36081
|
return id5;
|
|
36070
36082
|
};
|
|
36071
|
-
const ids = [allocate(), allocate()];
|
|
36083
|
+
const ids = options2.axisIds ? [...options2.axisIds] : [allocate(), allocate()];
|
|
36084
|
+
if (options2.axisIds && (ids[0] === ids[1] || ids.some((id5) => used.has(id5) || !Number.isSafeInteger(id5) || id5 < 0 || id5 > 4294967295)))
|
|
36085
|
+
throw new RangeError("Secondary axis ids must be two unused whole numbers");
|
|
36072
36086
|
const horizontal2 = primary.barDirection === "bar";
|
|
36073
36087
|
const axes = defaultChartAxes(horizontal2, false, ids);
|
|
36074
36088
|
axes[0] = { ...structuredClone(axisPair(draft, primary)[0]), id: ids[0], crossAxisId: ids[1] };
|
|
@@ -34339,7 +34339,16 @@ function repaintSeriesForFamily(series, toLine) {
|
|
|
34339
34339
|
shape2.fill = structuredClone(shape2.line.fill);
|
|
34340
34340
|
}
|
|
34341
34341
|
function clearPointPaint(series, key2) {
|
|
34342
|
-
|
|
34342
|
+
const emptied = (part) => Object.keys(part).every((name4) => name4 === "sourceXml");
|
|
34343
|
+
for (const point3 of series.dataPoints) {
|
|
34344
|
+
if (!point3.spPr) continue;
|
|
34345
|
+
delete point3.spPr[key2];
|
|
34346
|
+
if (point3.spPr.line && emptied(point3.spPr.line)) delete point3.spPr.line;
|
|
34347
|
+
if (emptied(point3.spPr)) delete point3.spPr;
|
|
34348
|
+
}
|
|
34349
|
+
series.dataPoints = series.dataPoints.filter(
|
|
34350
|
+
(point3) => Object.keys(point3).some((name4) => name4 !== "index")
|
|
34351
|
+
);
|
|
34343
34352
|
}
|
|
34344
34353
|
function setChartSeriesFill(space, index5, fill2) {
|
|
34345
34354
|
return editChartSpace(space, (draft) => {
|
|
@@ -35372,7 +35381,7 @@ var SWITCHABLE = {
|
|
|
35372
35381
|
stock: false,
|
|
35373
35382
|
surface: true
|
|
35374
35383
|
};
|
|
35375
|
-
function
|
|
35384
|
+
function chartGroupElement(kind, is3D) {
|
|
35376
35385
|
const match2 = Object.entries(CHART_GROUP_ELEMENTS).find(
|
|
35377
35386
|
([, value3]) => value3.kind === kind && value3.is3D === is3D
|
|
35378
35387
|
);
|
|
@@ -35388,7 +35397,7 @@ function groupingFor(element5, grouping) {
|
|
|
35388
35397
|
var horizontalBars = (group3) => group3.kind === "bar" && group3.barDirection === "bar";
|
|
35389
35398
|
function newGroup(base3, target3, series) {
|
|
35390
35399
|
const is3D = target3.is3D ?? (base3.is3D && SWITCHABLE[target3.kind] === true);
|
|
35391
|
-
const element5 =
|
|
35400
|
+
const element5 = chartGroupElement(target3.kind, is3D);
|
|
35392
35401
|
const group3 = { kind: target3.kind, element: element5, is3D, series, axisIds: [] };
|
|
35393
35402
|
const allowed = GROUP_FIELDS[element5] ?? [];
|
|
35394
35403
|
for (const key2 of allowed)
|
|
@@ -35678,6 +35687,11 @@ var RANGES = {
|
|
|
35678
35687
|
firstSliceAngle: [0, 360],
|
|
35679
35688
|
holeSize: [1, 90]
|
|
35680
35689
|
};
|
|
35690
|
+
function assertChartGroupOption(key2, value3) {
|
|
35691
|
+
const [min, max] = RANGES[key2];
|
|
35692
|
+
if (!Number.isInteger(value3) || value3 < min || value3 > max)
|
|
35693
|
+
throw new RangeError(`Chart ${key2} must be a whole number from ${min} to ${max}`);
|
|
35694
|
+
}
|
|
35681
35695
|
function setChartGroupOptions(space, seriesIndex, edit2) {
|
|
35682
35696
|
return editChartSpace(space, (draft) => {
|
|
35683
35697
|
const { group: group3 } = chartSeriesEntryAt(draft, seriesIndex);
|
|
@@ -35690,9 +35704,7 @@ function setChartGroupOptions(space, seriesIndex, edit2) {
|
|
|
35690
35704
|
delete group3[key2];
|
|
35691
35705
|
continue;
|
|
35692
35706
|
}
|
|
35693
|
-
|
|
35694
|
-
if (!Number.isInteger(value3) || value3 < min || value3 > max)
|
|
35695
|
-
throw new RangeError(`Chart ${key2} must be a whole number from ${min} to ${max}`);
|
|
35707
|
+
assertChartGroupOption(key2, value3);
|
|
35696
35708
|
group3[key2] = value3;
|
|
35697
35709
|
}
|
|
35698
35710
|
});
|
|
@@ -36016,7 +36028,7 @@ function isolateSeries(space, index5) {
|
|
|
36016
36028
|
space.plotArea.groups.splice(groupIndex, 1, ...segments);
|
|
36017
36029
|
return chartSeriesEntryAt(space, index5).group;
|
|
36018
36030
|
}
|
|
36019
|
-
function setChartSeriesSecondaryAxis(space, seriesIndex, secondary) {
|
|
36031
|
+
function setChartSeriesSecondaryAxis(space, seriesIndex, secondary, options2 = {}) {
|
|
36020
36032
|
if (!chartSeriesSecondaryAxisSupported(space, seriesIndex))
|
|
36021
36033
|
throw new RangeError(
|
|
36022
36034
|
"Secondary-axis editing needs a later series in a supported vertical 2D chart"
|
|
@@ -36043,7 +36055,9 @@ function setChartSeriesSecondaryAxis(space, seriesIndex, secondary) {
|
|
|
36043
36055
|
used.add(id5);
|
|
36044
36056
|
return id5;
|
|
36045
36057
|
};
|
|
36046
|
-
const ids = [allocate(), allocate()];
|
|
36058
|
+
const ids = options2.axisIds ? [...options2.axisIds] : [allocate(), allocate()];
|
|
36059
|
+
if (options2.axisIds && (ids[0] === ids[1] || ids.some((id5) => used.has(id5) || !Number.isSafeInteger(id5) || id5 < 0 || id5 > 4294967295)))
|
|
36060
|
+
throw new RangeError("Secondary axis ids must be two unused whole numbers");
|
|
36047
36061
|
const horizontal2 = primary.barDirection === "bar";
|
|
36048
36062
|
const axes = defaultChartAxes(horizontal2, false, ids);
|
|
36049
36063
|
axes[0] = { ...structuredClone(axisPair(draft, primary)[0]), id: ids[0], crossAxisId: ids[1] };
|
|
@@ -29,9 +29,13 @@ export declare function setChartSeriesLine(space: ChartSpace, index: number, lin
|
|
|
29
29
|
/**
|
|
30
30
|
* Sets the colour of a series as the Format pane's colour picker does: the fill, or the line of a
|
|
31
31
|
* series drawn as a line, keeping the previous colour's transparency. `null` removes the paint so
|
|
32
|
-
* the series takes its automatic colour again.
|
|
32
|
+
* the series takes its automatic colour again. Points lose their own paint of that kind, as in the
|
|
33
|
+
* Format pane, unless `keepPointColors` is set: a caller that states every point override itself
|
|
34
|
+
* (the save planner) keeps them.
|
|
33
35
|
*/
|
|
34
|
-
export declare function setChartSeriesColor(space: ChartSpace, index: number, color: DrawingColor | null
|
|
36
|
+
export declare function setChartSeriesColor(space: ChartSpace, index: number, color: DrawingColor | null, options?: {
|
|
37
|
+
keepPointColors?: boolean;
|
|
38
|
+
}): ChartSpace;
|
|
35
39
|
/** Sets a solid series fill's transparency (0..100); other fills are left alone. */
|
|
36
40
|
export declare function setChartSeriesTransparency(space: ChartSpace, index: number, percent: number): ChartSpace;
|
|
37
41
|
/** Sets (or removes, with `undefined`) one data point's fill, through its `c:dPt` override. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../chart/edit/fill.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAE9E,OAAO,EAAyB,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAK/E,sDAAsD;AACtD,eAAO,MAAM,mBAAmB,YAC/B,WAAW,EACX,UAAU,EACV,OAAO,EACP,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,CACD,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAoBpE,uFAAuF;AACvF,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,gBAAgB,GACpB,oBAAoB,GAAG,SAAS,CAalC;AAED,mFAAmF;AACnF,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,WAAW,GAAG,SAAS,GAC3B,UAAU,CAIZ;AAED,8CAA8C;AAC9C,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,WAAW,GAAG,SAAS,GAC3B,UAAU,CAIZ;AAED,+EAA+E;AAC/E,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,CASjG;AAED,kGAAkG;AAClG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,YAAY,CAAC,GAAG,OAAO,CAGhG;AAQD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAYtF;
|
|
1
|
+
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../chart/edit/fill.ts"],"names":[],"mappings":"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"}
|
|
@@ -9,6 +9,10 @@ export interface ChartGroupOptionsEdit {
|
|
|
9
9
|
/** Doughnut hole size, percent of the diameter. */
|
|
10
10
|
holeSize?: number | null;
|
|
11
11
|
}
|
|
12
|
+
/** Whether `key` is one of the ranged group options. */
|
|
13
|
+
export declare const isChartGroupOption: (key: string) => key is keyof ChartGroupOptionsEdit;
|
|
14
|
+
/** Throws unless `value` is a whole number in the schema range of group option `key`. */
|
|
15
|
+
export declare function assertChartGroupOption(key: keyof ChartGroupOptionsEdit, value: number): void;
|
|
12
16
|
/** Edits the options of the group holding series `seriesIndex`. */
|
|
13
17
|
export declare function setChartGroupOptions(space: ChartSpace, seriesIndex: number, edit: ChartGroupOptionsEdit): ChartSpace;
|
|
14
18
|
//# sourceMappingURL=group-options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-options.d.ts","sourceRoot":"","sources":["../../../chart/edit/group-options.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,MAAM,WAAW,qBAAqB;IACrC,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,yDAAyD;IACzD,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AASD,mEAAmE;AACnE,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,UAAU,EACjB,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,qBAAqB,GACzB,UAAU,
|
|
1
|
+
{"version":3,"file":"group-options.d.ts","sourceRoot":"","sources":["../../../chart/edit/group-options.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,MAAM,WAAW,qBAAqB;IACrC,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,yDAAyD;IACzD,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AASD,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,QAAS,MAAM,KAAG,GAAG,IAAI,MAAM,qBACnC,CAAC;AAE5B,yFAAyF;AACzF,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,qBAAqB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAI5F;AAED,mEAAmE;AACnE,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,UAAU,EACjB,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,qBAAqB,GACzB,UAAU,CAgBZ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ChartAxis, ChartPlotGroup } from '../model.js';
|
|
2
|
+
import type { ChartSpaceSeries, ChartTitle } from '../model-series.js';
|
|
3
|
+
import { type ChartTypeTarget } from './type.js';
|
|
4
|
+
/** The chart group of a `minimal` new chart showing `series` as `target`. */
|
|
5
|
+
export declare function minimalChartGroup(target: ChartTypeTarget, series: ChartSpaceSeries[]): ChartPlotGroup;
|
|
6
|
+
/**
|
|
7
|
+
* The axes of a `minimal` new chart `group`, with `ids` for the category (or X value), value (or
|
|
8
|
+
* Y value) and series axes: none for the pie family, a series axis for a 3-D line or a surface.
|
|
9
|
+
*/
|
|
10
|
+
export declare function minimalChartAxes(group: ChartPlotGroup, ids: readonly [number, number, number]): ChartAxis[];
|
|
11
|
+
/** A one-run title with no paragraph or run properties (`a:bodyPr`, `a:lstStyle`, `a:p/a:r`). */
|
|
12
|
+
export declare function minimalChartTitle(text: string): ChartTitle;
|
|
13
|
+
//# sourceMappingURL=new-chart-minimal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-chart-minimal.d.ts","sourceRoot":"","sources":["../../../chart/edit/new-chart-minimal.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAiB,cAAc,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIpE,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAYjE,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,gBAAgB,EAAE,GACxB,cAAc,CAgBhB;AAeD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GACpC,SAAS,EAAE,CAWb;AAED,iGAAiG;AACjG,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAK1D"}
|
|
@@ -1,13 +1,46 @@
|
|
|
1
1
|
import type { ChartDataSheet } from '../data-sheet.js';
|
|
2
|
-
import type { ChartSpace } from '../model.js';
|
|
2
|
+
import type { ChartPlotGroup, ChartSpace } from '../model.js';
|
|
3
|
+
import { type ChartLegendPosition } from './legend-labels.js';
|
|
3
4
|
import { type ChartTypeTarget } from './type.js';
|
|
4
5
|
/** The sample data Word and PowerPoint put behind a new chart. */
|
|
5
6
|
export declare const DEFAULT_CHART_DATA_SHEET: ChartDataSheet;
|
|
7
|
+
/** Group settings a new chart can start with (the type, direction and grouping are the target's). */
|
|
8
|
+
export type NewChartGroupSettings = Partial<Omit<ChartPlotGroup, 'kind' | 'element' | 'is3D' | 'series' | 'axisIds' | 'barDirection' | 'grouping'>>;
|
|
6
9
|
export interface NewChartOptions {
|
|
7
10
|
/** The chart title; absent for no title (`c:autoTitleDeleted`). */
|
|
8
11
|
title?: string;
|
|
9
12
|
/** The worksheet the formulas name; Office's `Sheet1` by default. */
|
|
10
13
|
sheetName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Where the series read their data. `workbook` (the default): the cells of the embedded
|
|
16
|
+
* workbook's standard layout, with cached values. `literal`: the values are written into the
|
|
17
|
+
* part (`c:v` series names, `c:strLit` or `c:numLit` data), for a chart with no workbook.
|
|
18
|
+
*/
|
|
19
|
+
data?: 'workbook' | 'literal';
|
|
20
|
+
/** Where the legend sits, `null` for no legend; Office's `b` by default. */
|
|
21
|
+
legendPosition?: ChartLegendPosition | null;
|
|
22
|
+
/**
|
|
23
|
+
* `office` (the default): what Word and PowerPoint write for a new chart (square corners,
|
|
24
|
+
* Excel's axes with value gridlines and tick marks, a 219% gap and -27% overlap, a title under
|
|
25
|
+
* Excel's paragraph properties). `minimal`: only what the schema requires for the type, plus
|
|
26
|
+
* `c:varyColors` and `c:delete`, and a title of one bare run.
|
|
27
|
+
*/
|
|
28
|
+
profile?: 'office' | 'minimal';
|
|
29
|
+
/**
|
|
30
|
+
* Settings of the new group, which its element must allow (`type-schema.ts`); the gap width,
|
|
31
|
+
* overlap, first slice angle and hole size must be whole numbers in their schema ranges.
|
|
32
|
+
*/
|
|
33
|
+
group?: NewChartGroupSettings;
|
|
34
|
+
/**
|
|
35
|
+
* The ids of the category (or X value), value (or Y value) and series axes, in that order;
|
|
36
|
+
* Excel's `500000001` and `500000002` by default (and `500000003` for a series axis).
|
|
37
|
+
*/
|
|
38
|
+
axisIds?: readonly number[];
|
|
39
|
+
/**
|
|
40
|
+
* Whether the category axis is a date axis (`c:dateAx`), for categories that are dates; a type
|
|
41
|
+
* whose first axis is not a category axis (scatter, bubble, the pie family) ignores it.
|
|
42
|
+
*/
|
|
43
|
+
dateAxis?: boolean;
|
|
11
44
|
}
|
|
12
45
|
/** A new chart part showing `sheet` as `target` (a column chart when `target` is absent). */
|
|
13
46
|
export declare function newChartSpace(sheet?: ChartDataSheet, target?: ChartTypeTarget, options?: NewChartOptions): ChartSpace;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-chart.d.ts","sourceRoot":"","sources":["../../../chart/edit/new-chart.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"new-chart.d.ts","sourceRoot":"","sources":["../../../chart/edit/new-chart.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAK3D,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAI3E,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAI5D,kEAAkE;AAClE,eAAO,MAAM,wBAAwB,EAAE,cAOtC,CAAC;AAEF,qGAAqG;AACrG,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAC1C,IAAI,CACH,cAAc,EACd,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,UAAU,CAChF,CACD,CAAC;AAEF,MAAM,WAAW,eAAe;IAC/B,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B,4EAA4E;IAC5E,cAAc,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC5C;;;;;OAKG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B;;;OAGG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAkJD,6FAA6F;AAC7F,wBAAgB,aAAa,CAC5B,KAAK,GAAE,cAAyC,EAChD,MAAM,CAAC,EAAE,eAAe,EACxB,OAAO,GAAE,eAAoB,GAC3B,UAAU,CAiBZ"}
|
|
@@ -2,6 +2,13 @@ import type { ChartSpace } from '../model.js';
|
|
|
2
2
|
/** The first series anchors the renderer's primary scale; later series can be split in place. */
|
|
3
3
|
export declare function chartSeriesSecondaryAxisSupported(space: ChartSpace, seriesIndex: number): boolean;
|
|
4
4
|
export declare function chartSeriesOnSecondaryAxis(space: ChartSpace, seriesIndex: number): boolean;
|
|
5
|
+
export interface ChartSecondaryAxisOptions {
|
|
6
|
+
/**
|
|
7
|
+
* The ids of a new secondary category and value axis, which must be unused; free ids from
|
|
8
|
+
* `500000003` by default. Ignored when the series joins axes that exist.
|
|
9
|
+
*/
|
|
10
|
+
axisIds?: readonly [number, number];
|
|
11
|
+
}
|
|
5
12
|
/** Moves one series, preserving document-order targets and every source data reference. */
|
|
6
|
-
export declare function setChartSeriesSecondaryAxis(space: ChartSpace, seriesIndex: number, secondary: boolean): ChartSpace;
|
|
13
|
+
export declare function setChartSeriesSecondaryAxis(space: ChartSpace, seriesIndex: number, secondary: boolean, options?: ChartSecondaryAxisOptions): ChartSpace;
|
|
7
14
|
//# sourceMappingURL=secondary-axis.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary-axis.d.ts","sourceRoot":"","sources":["../../../chart/edit/secondary-axis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA6B,UAAU,EAAE,MAAM,UAAU,CAAC;AAqBtE,iGAAiG;AACjG,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAcjG;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAG1F;AAiBD,2FAA2F;AAC3F,wBAAgB,2BAA2B,CAC1C,KAAK,EAAE,UAAU,EACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"secondary-axis.d.ts","sourceRoot":"","sources":["../../../chart/edit/secondary-axis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA6B,UAAU,EAAE,MAAM,UAAU,CAAC;AAqBtE,iGAAiG;AACjG,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAcjG;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAG1F;AAiBD,MAAM,WAAW,yBAAyB;IACzC;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAED,2FAA2F;AAC3F,wBAAgB,2BAA2B,CAC1C,KAAK,EAAE,UAAU,EACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,OAAO,EAClB,OAAO,GAAE,yBAA8B,GACrC,UAAU,CAgDZ"}
|
|
@@ -9,6 +9,8 @@ export interface ChartTypeTarget {
|
|
|
9
9
|
barDirection?: 'bar' | 'col';
|
|
10
10
|
grouping?: ChartGrouping;
|
|
11
11
|
}
|
|
12
|
+
/** The group element of a `kind` chart (`barChart`, `bar3DChart`...); throws when there is none. */
|
|
13
|
+
export declare function chartGroupElement(kind: ChartGroupKind, is3D: boolean): string;
|
|
12
14
|
/** Changes the type of the whole chart; series keep their data, names and formatting. */
|
|
13
15
|
export declare function setChartType(space: ChartSpace, target: ChartTypeTarget): ChartSpace;
|
|
14
16
|
/** Sets the grouping of every bar, line and area group (PowerPoint's `setChartGrouping`). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../chart/edit/type.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAa,cAAc,EAAkB,UAAU,EAAE,MAAM,UAAU,CAAC;AAatF,6CAA6C;AAC7C,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,gBAAgB,GAAG,UAAU,CAAC;AAEpF,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,cAAc,CAAC;IACrB,wFAAwF;IACxF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uEAAuE;IACvE,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC7B,QAAQ,CAAC,EAAE,aAAa,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../chart/edit/type.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAa,cAAc,EAAkB,UAAU,EAAE,MAAM,UAAU,CAAC;AAatF,6CAA6C;AAC7C,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,gBAAgB,GAAG,UAAU,CAAC;AAEpF,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,cAAc,CAAC;IACrB,wFAAwF;IACxF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uEAAuE;IACvE,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC7B,QAAQ,CAAC,EAAE,aAAa,CAAC;CACzB;AAiBD,oGAAoG;AACpG,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAM7E;AAiGD,yFAAyF;AACzF,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,GAAG,UAAU,CAoCnF;AAED,6FAA6F;AAC7F,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,UAAU,CAWvF"}
|