@sunertech/docx 10.0.3 → 10.0.5
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/index.cjs +8 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.iife.js +8 -12
- package/dist/index.mjs +8 -12
- package/dist/index.umd.cjs +8 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17451,10 +17451,12 @@ class LineSeries extends XmlComponent {
|
|
|
17451
17451
|
this.root.push(new DataPoint(item));
|
|
17452
17452
|
});
|
|
17453
17453
|
this.root.push(
|
|
17454
|
-
new DataLabels(__spreadValues(__spreadValues({}, dataLabels && "delete" in dataLabels ? {} : {
|
|
17454
|
+
new DataLabels(__spreadValues(__spreadProps(__spreadValues({}, dataLabels && "delete" in dataLabels ? {} : {
|
|
17455
17455
|
numFmt: __spreadValues({
|
|
17456
17456
|
formatCode: "#,##0"
|
|
17457
17457
|
}, dataLabels == null ? void 0 : dataLabels.numFmt)
|
|
17458
|
+
}), {
|
|
17459
|
+
position: DataLabelPosition.TOP
|
|
17458
17460
|
}), dataLabels))
|
|
17459
17461
|
);
|
|
17460
17462
|
trendlines == null ? void 0 : trendlines.forEach((item) => {
|
|
@@ -17501,13 +17503,9 @@ const addLineChartSharedOptions = (root, { categories, grouping, series, varyCol
|
|
|
17501
17503
|
series == null ? void 0 : series.forEach((item, index) => {
|
|
17502
17504
|
root.push(new LineSeries(__spreadProps(__spreadValues({ categories }, item), { index, refOffset })));
|
|
17503
17505
|
});
|
|
17504
|
-
|
|
17505
|
-
new DataLabels(
|
|
17506
|
-
|
|
17507
|
-
formatCode: "#,##0"
|
|
17508
|
-
}, dataLabels == null ? void 0 : dataLabels.numFmt)
|
|
17509
|
-
}), dataLabels))
|
|
17510
|
-
);
|
|
17506
|
+
if (dataLabels) {
|
|
17507
|
+
root.push(new DataLabels(dataLabels));
|
|
17508
|
+
}
|
|
17511
17509
|
if ((lines == null ? void 0 : lines.drop) !== void 0) {
|
|
17512
17510
|
root.push(
|
|
17513
17511
|
new BuilderElement({
|
|
@@ -18773,7 +18771,7 @@ class ChartSpaceAttributes extends XmlAttributeComponent {
|
|
|
18773
18771
|
}
|
|
18774
18772
|
class ChartSpace extends XmlComponent {
|
|
18775
18773
|
constructor(_y) {
|
|
18776
|
-
var _z = _y, { date1904, roundedCorners,
|
|
18774
|
+
var _z = _y, { date1904, roundedCorners, spaceShape } = _z, options = __objRest(_z, ["date1904", "roundedCorners", "spaceShape"]);
|
|
18777
18775
|
super("c:chartSpace");
|
|
18778
18776
|
__publicField(this, "options");
|
|
18779
18777
|
this.options = options;
|
|
@@ -18786,9 +18784,7 @@ class ChartSpace extends XmlComponent {
|
|
|
18786
18784
|
);
|
|
18787
18785
|
this.root.push(new BooleanElement("c:date1904", date1904 != null ? date1904 : true, ""));
|
|
18788
18786
|
this.root.push(new BooleanElement("c:roundedCorners", roundedCorners != null ? roundedCorners : false, ""));
|
|
18789
|
-
|
|
18790
|
-
this.root.push(new ShapeProperties("c:spPr", shapeProperties));
|
|
18791
|
-
}
|
|
18787
|
+
this.root.push(new ShapeProperties("c:spPr", __spreadValues({ type: "noFill", outline: { type: "noFill" } }, spaceShape)));
|
|
18792
18788
|
this.root.push(new ExternalData({ id: "rId1" }));
|
|
18793
18789
|
this.root.push(new Chart$1(options));
|
|
18794
18790
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -401,14 +401,14 @@ declare class Charts {
|
|
|
401
401
|
|
|
402
402
|
declare class ChartSpace extends XmlComponent {
|
|
403
403
|
readonly options: ChartOptions;
|
|
404
|
-
constructor({ date1904, roundedCorners,
|
|
404
|
+
constructor({ date1904, roundedCorners, spaceShape, ...options }: ChartSpaceOptions);
|
|
405
405
|
get dataTable(): (number | string)[][];
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
declare type ChartSpaceOptions = {
|
|
409
409
|
readonly date1904?: boolean;
|
|
410
410
|
readonly roundedCorners?: boolean;
|
|
411
|
-
readonly
|
|
411
|
+
readonly spaceShape?: IShapePropertiesOptions;
|
|
412
412
|
} & ChartOptions;
|
|
413
413
|
|
|
414
414
|
declare class ChartWrapper {
|
package/dist/index.d.ts
CHANGED
|
@@ -401,14 +401,14 @@ declare class Charts {
|
|
|
401
401
|
|
|
402
402
|
declare class ChartSpace extends XmlComponent {
|
|
403
403
|
readonly options: ChartOptions;
|
|
404
|
-
constructor({ date1904, roundedCorners,
|
|
404
|
+
constructor({ date1904, roundedCorners, spaceShape, ...options }: ChartSpaceOptions);
|
|
405
405
|
get dataTable(): (number | string)[][];
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
declare type ChartSpaceOptions = {
|
|
409
409
|
readonly date1904?: boolean;
|
|
410
410
|
readonly roundedCorners?: boolean;
|
|
411
|
-
readonly
|
|
411
|
+
readonly spaceShape?: IShapePropertiesOptions;
|
|
412
412
|
} & ChartOptions;
|
|
413
413
|
|
|
414
414
|
declare class ChartWrapper {
|
package/dist/index.iife.js
CHANGED
|
@@ -17451,10 +17451,12 @@ var docx = (function(exports) {
|
|
|
17451
17451
|
this.root.push(new DataPoint(item));
|
|
17452
17452
|
});
|
|
17453
17453
|
this.root.push(
|
|
17454
|
-
new DataLabels(__spreadValues(__spreadValues({}, dataLabels && "delete" in dataLabels ? {} : {
|
|
17454
|
+
new DataLabels(__spreadValues(__spreadProps(__spreadValues({}, dataLabels && "delete" in dataLabels ? {} : {
|
|
17455
17455
|
numFmt: __spreadValues({
|
|
17456
17456
|
formatCode: "#,##0"
|
|
17457
17457
|
}, dataLabels == null ? void 0 : dataLabels.numFmt)
|
|
17458
|
+
}), {
|
|
17459
|
+
position: DataLabelPosition.TOP
|
|
17458
17460
|
}), dataLabels))
|
|
17459
17461
|
);
|
|
17460
17462
|
trendlines == null ? void 0 : trendlines.forEach((item) => {
|
|
@@ -17501,13 +17503,9 @@ var docx = (function(exports) {
|
|
|
17501
17503
|
series == null ? void 0 : series.forEach((item, index) => {
|
|
17502
17504
|
root.push(new LineSeries(__spreadProps(__spreadValues({ categories }, item), { index, refOffset })));
|
|
17503
17505
|
});
|
|
17504
|
-
|
|
17505
|
-
new DataLabels(
|
|
17506
|
-
|
|
17507
|
-
formatCode: "#,##0"
|
|
17508
|
-
}, dataLabels == null ? void 0 : dataLabels.numFmt)
|
|
17509
|
-
}), dataLabels))
|
|
17510
|
-
);
|
|
17506
|
+
if (dataLabels) {
|
|
17507
|
+
root.push(new DataLabels(dataLabels));
|
|
17508
|
+
}
|
|
17511
17509
|
if ((lines == null ? void 0 : lines.drop) !== void 0) {
|
|
17512
17510
|
root.push(
|
|
17513
17511
|
new BuilderElement({
|
|
@@ -18773,7 +18771,7 @@ var docx = (function(exports) {
|
|
|
18773
18771
|
}
|
|
18774
18772
|
class ChartSpace extends XmlComponent {
|
|
18775
18773
|
constructor(_y) {
|
|
18776
|
-
var _z = _y, { date1904, roundedCorners,
|
|
18774
|
+
var _z = _y, { date1904, roundedCorners, spaceShape } = _z, options = __objRest(_z, ["date1904", "roundedCorners", "spaceShape"]);
|
|
18777
18775
|
super("c:chartSpace");
|
|
18778
18776
|
__publicField(this, "options");
|
|
18779
18777
|
this.options = options;
|
|
@@ -18786,9 +18784,7 @@ var docx = (function(exports) {
|
|
|
18786
18784
|
);
|
|
18787
18785
|
this.root.push(new BooleanElement("c:date1904", date1904 != null ? date1904 : true, ""));
|
|
18788
18786
|
this.root.push(new BooleanElement("c:roundedCorners", roundedCorners != null ? roundedCorners : false, ""));
|
|
18789
|
-
|
|
18790
|
-
this.root.push(new ShapeProperties("c:spPr", shapeProperties));
|
|
18791
|
-
}
|
|
18787
|
+
this.root.push(new ShapeProperties("c:spPr", __spreadValues({ type: "noFill", outline: { type: "noFill" } }, spaceShape)));
|
|
18792
18788
|
this.root.push(new ExternalData({ id: "rId1" }));
|
|
18793
18789
|
this.root.push(new Chart$1(options));
|
|
18794
18790
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -17449,10 +17449,12 @@ class LineSeries extends XmlComponent {
|
|
|
17449
17449
|
this.root.push(new DataPoint(item));
|
|
17450
17450
|
});
|
|
17451
17451
|
this.root.push(
|
|
17452
|
-
new DataLabels(__spreadValues(__spreadValues({}, dataLabels && "delete" in dataLabels ? {} : {
|
|
17452
|
+
new DataLabels(__spreadValues(__spreadProps(__spreadValues({}, dataLabels && "delete" in dataLabels ? {} : {
|
|
17453
17453
|
numFmt: __spreadValues({
|
|
17454
17454
|
formatCode: "#,##0"
|
|
17455
17455
|
}, dataLabels == null ? void 0 : dataLabels.numFmt)
|
|
17456
|
+
}), {
|
|
17457
|
+
position: DataLabelPosition.TOP
|
|
17456
17458
|
}), dataLabels))
|
|
17457
17459
|
);
|
|
17458
17460
|
trendlines == null ? void 0 : trendlines.forEach((item) => {
|
|
@@ -17499,13 +17501,9 @@ const addLineChartSharedOptions = (root, { categories, grouping, series, varyCol
|
|
|
17499
17501
|
series == null ? void 0 : series.forEach((item, index) => {
|
|
17500
17502
|
root.push(new LineSeries(__spreadProps(__spreadValues({ categories }, item), { index, refOffset })));
|
|
17501
17503
|
});
|
|
17502
|
-
|
|
17503
|
-
new DataLabels(
|
|
17504
|
-
|
|
17505
|
-
formatCode: "#,##0"
|
|
17506
|
-
}, dataLabels == null ? void 0 : dataLabels.numFmt)
|
|
17507
|
-
}), dataLabels))
|
|
17508
|
-
);
|
|
17504
|
+
if (dataLabels) {
|
|
17505
|
+
root.push(new DataLabels(dataLabels));
|
|
17506
|
+
}
|
|
17509
17507
|
if ((lines == null ? void 0 : lines.drop) !== void 0) {
|
|
17510
17508
|
root.push(
|
|
17511
17509
|
new BuilderElement({
|
|
@@ -18771,7 +18769,7 @@ class ChartSpaceAttributes extends XmlAttributeComponent {
|
|
|
18771
18769
|
}
|
|
18772
18770
|
class ChartSpace extends XmlComponent {
|
|
18773
18771
|
constructor(_y) {
|
|
18774
|
-
var _z = _y, { date1904, roundedCorners,
|
|
18772
|
+
var _z = _y, { date1904, roundedCorners, spaceShape } = _z, options = __objRest(_z, ["date1904", "roundedCorners", "spaceShape"]);
|
|
18775
18773
|
super("c:chartSpace");
|
|
18776
18774
|
__publicField(this, "options");
|
|
18777
18775
|
this.options = options;
|
|
@@ -18784,9 +18782,7 @@ class ChartSpace extends XmlComponent {
|
|
|
18784
18782
|
);
|
|
18785
18783
|
this.root.push(new BooleanElement("c:date1904", date1904 != null ? date1904 : true, ""));
|
|
18786
18784
|
this.root.push(new BooleanElement("c:roundedCorners", roundedCorners != null ? roundedCorners : false, ""));
|
|
18787
|
-
|
|
18788
|
-
this.root.push(new ShapeProperties("c:spPr", shapeProperties));
|
|
18789
|
-
}
|
|
18785
|
+
this.root.push(new ShapeProperties("c:spPr", __spreadValues({ type: "noFill", outline: { type: "noFill" } }, spaceShape)));
|
|
18790
18786
|
this.root.push(new ExternalData({ id: "rId1" }));
|
|
18791
18787
|
this.root.push(new Chart$1(options));
|
|
18792
18788
|
}
|
package/dist/index.umd.cjs
CHANGED
|
@@ -17453,10 +17453,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17453
17453
|
this.root.push(new DataPoint(item));
|
|
17454
17454
|
});
|
|
17455
17455
|
this.root.push(
|
|
17456
|
-
new DataLabels(__spreadValues(__spreadValues({}, dataLabels && "delete" in dataLabels ? {} : {
|
|
17456
|
+
new DataLabels(__spreadValues(__spreadProps(__spreadValues({}, dataLabels && "delete" in dataLabels ? {} : {
|
|
17457
17457
|
numFmt: __spreadValues({
|
|
17458
17458
|
formatCode: "#,##0"
|
|
17459
17459
|
}, dataLabels == null ? void 0 : dataLabels.numFmt)
|
|
17460
|
+
}), {
|
|
17461
|
+
position: DataLabelPosition.TOP
|
|
17460
17462
|
}), dataLabels))
|
|
17461
17463
|
);
|
|
17462
17464
|
trendlines == null ? void 0 : trendlines.forEach((item) => {
|
|
@@ -17503,13 +17505,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17503
17505
|
series == null ? void 0 : series.forEach((item, index) => {
|
|
17504
17506
|
root.push(new LineSeries(__spreadProps(__spreadValues({ categories }, item), { index, refOffset })));
|
|
17505
17507
|
});
|
|
17506
|
-
|
|
17507
|
-
new DataLabels(
|
|
17508
|
-
|
|
17509
|
-
formatCode: "#,##0"
|
|
17510
|
-
}, dataLabels == null ? void 0 : dataLabels.numFmt)
|
|
17511
|
-
}), dataLabels))
|
|
17512
|
-
);
|
|
17508
|
+
if (dataLabels) {
|
|
17509
|
+
root.push(new DataLabels(dataLabels));
|
|
17510
|
+
}
|
|
17513
17511
|
if ((lines == null ? void 0 : lines.drop) !== void 0) {
|
|
17514
17512
|
root.push(
|
|
17515
17513
|
new BuilderElement({
|
|
@@ -18775,7 +18773,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18775
18773
|
}
|
|
18776
18774
|
class ChartSpace extends XmlComponent {
|
|
18777
18775
|
constructor(_y) {
|
|
18778
|
-
var _z = _y, { date1904, roundedCorners,
|
|
18776
|
+
var _z = _y, { date1904, roundedCorners, spaceShape } = _z, options = __objRest(_z, ["date1904", "roundedCorners", "spaceShape"]);
|
|
18779
18777
|
super("c:chartSpace");
|
|
18780
18778
|
__publicField(this, "options");
|
|
18781
18779
|
this.options = options;
|
|
@@ -18788,9 +18786,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18788
18786
|
);
|
|
18789
18787
|
this.root.push(new BooleanElement("c:date1904", date1904 != null ? date1904 : true, ""));
|
|
18790
18788
|
this.root.push(new BooleanElement("c:roundedCorners", roundedCorners != null ? roundedCorners : false, ""));
|
|
18791
|
-
|
|
18792
|
-
this.root.push(new ShapeProperties("c:spPr", shapeProperties));
|
|
18793
|
-
}
|
|
18789
|
+
this.root.push(new ShapeProperties("c:spPr", __spreadValues({ type: "noFill", outline: { type: "noFill" } }, spaceShape)));
|
|
18794
18790
|
this.root.push(new ExternalData({ id: "rId1" }));
|
|
18795
18791
|
this.root.push(new Chart$1(options));
|
|
18796
18792
|
}
|
package/package.json
CHANGED