Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@office-open/core

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@office-open/core - npm Package Compare versions

Comparing version
0.6.10
to
0.7.0
+1097
dist/chart-ChqlyVeb.mjs
import { a as BuilderElement, g as wrapEl, l as chartAttr, o as EmptyElement, y as XmlComponent } from "./xml-components-xJkfJ6ff.mjs";
//#region src/chart/axes.ts
/**
* c:scaling — axis scaling configuration (minOccurs=1 in EG_AxShared).
*/
var Scaling = class extends XmlComponent {
constructor() {
super("c:scaling");
this.root.push(wrapEl("c:orientation", chartAttr({ val: "minMax" })));
}
};
/**
* c:catAx — category axis.
*
* XSD sequence: EG_AxShared (axId, scaling, delete, axPos, ..., crossAx, crosses)
* then: auto, lblAlgn, lblOffset, tickLblSkip, tickMarkSkip, noMultiLvlLbl
*/
var CatAx = class extends XmlComponent {
constructor(axId, crossAx) {
super("c:catAx");
this.root.push(wrapEl("c:axId", chartAttr({ val: axId })));
this.root.push(new Scaling());
this.root.push(wrapEl("c:delete", chartAttr({ val: 0 })));
this.root.push(wrapEl("c:axPos", chartAttr({ val: "b" })));
this.root.push(wrapEl("c:crossAx", chartAttr({ val: crossAx })));
this.root.push(wrapEl("c:crosses", chartAttr({ val: "autoZero" })));
this.root.push(wrapEl("c:auto", chartAttr({ val: 1 })));
this.root.push(wrapEl("c:lblOffset", chartAttr({ val: 100 })));
this.root.push(wrapEl("c:noMultiLvlLbl", chartAttr({ val: 0 })));
}
};
/**
* c:valAx — value axis.
*
* XSD sequence: EG_AxShared (axId, scaling, delete, axPos, ..., spPr, ..., crossAx, crosses)
* then: crossBetween, majorUnit, minorUnit, dispUnits
*/
var ValAx = class extends XmlComponent {
constructor(axId, crossAx) {
super("c:valAx");
this.root.push(wrapEl("c:axId", chartAttr({ val: axId })));
this.root.push(new Scaling());
this.root.push(wrapEl("c:delete", chartAttr({ val: 0 })));
this.root.push(wrapEl("c:axPos", chartAttr({ val: "l" })));
this.root.push(wrapEl("c:numFmt", chartAttr({
formatCode: "General",
sourceLinked: 1
})));
this.root.push(new BuilderElement({ name: "c:spPr" }));
this.root.push(wrapEl("c:crossAx", chartAttr({ val: crossAx })));
this.root.push(wrapEl("c:crosses", chartAttr({ val: "autoZero" })));
}
};
var SerAx = class extends XmlComponent {
constructor(axId, crossAx) {
super("c:serAx");
this.root.push(wrapEl("c:axId", chartAttr({ val: axId })));
this.root.push(new Scaling());
this.root.push(wrapEl("c:delete", chartAttr({ val: 0 })));
this.root.push(wrapEl("c:axPos", chartAttr({ val: "b" })));
this.root.push(wrapEl("c:numFmt", chartAttr({
formatCode: "General",
sourceLinked: 1
})));
this.root.push(new BuilderElement({ name: "c:spPr" }));
this.root.push(wrapEl("c:crossAx", chartAttr({ val: crossAx })));
this.root.push(wrapEl("c:crosses", chartAttr({ val: "autoZero" })));
this.root.push(wrapEl("c:tickLblSkip", chartAttr({ val: 1 })));
}
};
//#endregion
//#region src/chart/series/series-data.ts
const createStrRef$1 = (values) => {
return new StrRef(typeof values === "string" ? [values] : values);
};
const createNumRef$1 = (values) => new NumRef(values);
var StrRef = class extends XmlComponent {
constructor(values) {
super("c:strRef");
this.root.push(new EmptyElement("c:f"));
this.root.push(new StrCache$1(values));
}
};
var StrCache$1 = class extends XmlComponent {
constructor(values) {
super("c:strCache");
this.root.push(wrapEl("c:ptCount", chartAttr({ val: values.length })));
for (let i = 0; i < values.length; i++) this.root.push(new StrPt$1(i, values[i]));
}
};
var StrPt$1 = class extends XmlComponent {
constructor(index, value) {
super("c:pt");
this.root.push(chartAttr({ idx: index }));
this.root.push(new StringValue$1("c:v", value));
}
};
var NumRef = class extends XmlComponent {
constructor(values) {
super("c:numRef");
this.root.push(new EmptyElement("c:f"));
this.root.push(new NumCache$1(values));
}
};
var NumCache$1 = class extends XmlComponent {
constructor(values) {
super("c:numCache");
this.root.push(new FormatCode$1("General"));
this.root.push(wrapEl("c:ptCount", chartAttr({ val: values.length })));
for (let i = 0; i < values.length; i++) this.root.push(new NumPt$1(i, values[i]));
}
};
var NumPt$1 = class extends XmlComponent {
constructor(index, value) {
super("c:pt");
this.root.push(chartAttr({ idx: index }));
this.root.push(new StringValue$1("c:v", String(value)));
}
};
var FormatCode$1 = class extends XmlComponent {
constructor(code) {
super("c:formatCode");
this.root.push(code);
}
};
var StringValue$1 = class extends XmlComponent {
constructor(name, val) {
super(name);
this.root.push(val);
}
};
//#endregion
//#region src/chart/chart-types/area-chart.ts
var AreaChart = class extends XmlComponent {
constructor(options) {
super("c:areaChart");
this.root.push(wrapEl("c:grouping", chartAttr({ val: "standard" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new AreaSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var AreaSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$13(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$10(categories));
this.root.push(new SeriesVal$11(series.values));
}
};
var SeriesTx$13 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat$10 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal$11 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/area3d-chart.ts
var Area3DChart = class extends XmlComponent {
constructor(options) {
super("c:area3DChart");
this.root.push(wrapEl("c:grouping", chartAttr({ val: "standard" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new Area3DSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 30 })));
}
};
var Area3DSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$12(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$9(categories));
this.root.push(new SeriesVal$10(series.values));
}
};
var SeriesTx$12 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat$9 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal$10 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/bar-chart.ts
var BarChart = class extends XmlComponent {
constructor(options) {
super("c:barChart");
this.root.push(wrapEl("c:barDir", chartAttr({ val: options.barDirection })));
this.root.push(wrapEl("c:grouping", chartAttr({ val: "clustered" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new BarSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var BarSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$11(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$8(categories));
this.root.push(new SeriesVal$9(series.values));
}
};
var SeriesTx$11 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat$8 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal$9 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/bar3d-chart.ts
var Bar3DChart = class extends XmlComponent {
constructor(options) {
super("c:bar3DChart");
this.root.push(wrapEl("c:barDir", chartAttr({ val: options.barDirection })));
this.root.push(wrapEl("c:grouping", chartAttr({ val: "clustered" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new Bar3DSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 30 })));
}
};
var Bar3DSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$10(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$7(categories));
this.root.push(new SeriesVal$8(series.values));
}
};
var SeriesTx$10 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat$7 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal$8 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/bubble-chart.ts
var BubbleChart = class extends XmlComponent {
constructor(options) {
super("c:bubbleChart");
this.root.push(wrapEl("c:varyColors", chartAttr({ val: true })));
for (let i = 0; i < options.series.length; i++) this.root.push(new BubbleSeries(i, options.series[i]));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var BubbleSeries = class extends XmlComponent {
constructor(index, series) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$9(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesXValues(series.xValues));
this.root.push(new SeriesYValues(series.yValues));
this.root.push(new SeriesBubbleSize(series.bubbleSize));
}
};
var SeriesTx$9 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef(name));
}
};
const createStrRef = (value) => new class extends XmlComponent {
constructor() {
super("c:strRef");
this.root.push(new EmptyElement("c:f"));
this.root.push(new StrCache(value));
}
}();
var StrCache = class extends XmlComponent {
constructor(value) {
super("c:strCache");
this.root.push(wrapEl("c:ptCount", chartAttr({ val: 1 })));
this.root.push(new StrPt(0, value));
}
};
var StrPt = class extends XmlComponent {
constructor(index, value) {
super("c:pt");
this.root.push(chartAttr({ idx: index }));
this.root.push(new StringValue("c:v", value));
}
};
var StringValue = class extends XmlComponent {
constructor(name, val) {
super(name);
this.root.push(val);
}
};
var SeriesXValues = class extends XmlComponent {
constructor(values) {
super("c:xVal");
this.root.push(createNumRef(values));
}
};
var SeriesYValues = class extends XmlComponent {
constructor(values) {
super("c:yVal");
this.root.push(createNumRef(values));
}
};
var SeriesBubbleSize = class extends XmlComponent {
constructor(values) {
super("c:bubbleSize");
this.root.push(createNumRef(values));
}
};
const createNumRef = (values) => new class extends XmlComponent {
constructor() {
super("c:numRef");
this.root.push(new EmptyElement("c:f"));
this.root.push(new NumCache(values));
}
}();
var NumCache = class extends XmlComponent {
constructor(values) {
super("c:numCache");
this.root.push(new FormatCode("General"));
this.root.push(wrapEl("c:ptCount", chartAttr({ val: values.length })));
for (let i = 0; i < values.length; i++) this.root.push(new NumPt(i, values[i]));
}
};
var NumPt = class extends XmlComponent {
constructor(index, value) {
super("c:pt");
this.root.push(chartAttr({ idx: index }));
this.root.push(new StringValue("c:v", String(value)));
}
};
var FormatCode = class extends XmlComponent {
constructor(code) {
super("c:formatCode");
this.root.push(code);
}
};
//#endregion
//#region src/chart/chart-types/doughnut-chart.ts
var DoughnutChart = class extends XmlComponent {
constructor(options) {
super("c:doughnutChart");
this.root.push(wrapEl("c:varyColors", chartAttr({ val: true })));
if (options.holeSize !== void 0) this.root.push(wrapEl("c:firstSliceAng", chartAttr({ val: 0 })));
for (let i = 0; i < options.series.length; i++) this.root.push(new DoughnutSeries(i, options.series[i], options.categories));
}
};
var DoughnutSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$8(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$6(categories));
this.root.push(new SeriesVal$7(series.values));
}
};
var SeriesTx$8 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat$6 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal$7 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/line-chart.ts
var LineChart = class extends XmlComponent {
constructor(options) {
super("c:lineChart");
this.root.push(wrapEl("c:grouping", chartAttr({ val: "standard" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new LineSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var LineSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$7(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$5(categories));
this.root.push(new SeriesVal$6(series.values));
}
};
var SeriesTx$7 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat$5 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal$6 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/line3d-chart.ts
var Line3DChart = class extends XmlComponent {
constructor(options) {
super("c:line3DChart");
this.root.push(wrapEl("c:grouping", chartAttr({ val: "standard" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new Line3DSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 30 })));
}
};
var Line3DSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$6(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$4(categories));
this.root.push(new SeriesVal$5(series.values));
}
};
var SeriesTx$6 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat$4 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal$5 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/pie-chart.ts
var PieChart = class extends XmlComponent {
constructor(options) {
super("c:pieChart");
this.root.push(wrapEl("c:varyColors", chartAttr({ val: true })));
for (let i = 0; i < options.series.length; i++) this.root.push(new PieSeries(i, options.series[i], options.categories));
}
};
var PieSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$5(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$3(categories));
this.root.push(new SeriesVal$4(series.values));
}
};
var SeriesTx$5 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat$3 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal$4 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/pie3d-chart.ts
var Pie3DChart = class extends XmlComponent {
constructor(options) {
super("c:pie3DChart");
this.root.push(wrapEl("c:varyColors", chartAttr({ val: true })));
for (let i = 0; i < options.series.length; i++) this.root.push(new Pie3DSeries(i, options.series[i], options.categories));
}
};
var Pie3DSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$4(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$2(categories));
this.root.push(new SeriesVal$3(series.values));
}
};
var SeriesTx$4 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat$2 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal$3 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/radar-chart.ts
var RadarChart = class extends XmlComponent {
constructor(options) {
super("c:radarChart");
this.root.push(wrapEl("c:radarStyle", chartAttr({ val: options.radarStyle ?? "standard" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new RadarSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var RadarSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$3(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$1(categories));
this.root.push(new SeriesVal$2(series.values));
}
};
var SeriesTx$3 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat$1 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal$2 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/scatter-chart.ts
var ScatterChart = class extends XmlComponent {
constructor(options) {
super("c:scatterChart");
this.root.push(wrapEl("c:scatterStyle", chartAttr({ val: "line" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new ScatterSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var ScatterSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$2(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesXVal(categories));
this.root.push(new SeriesYVal(series.values));
}
};
var SeriesTx$2 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesXVal = class extends XmlComponent {
constructor(categories) {
super("c:xVal");
this.root.push(createStrRef$1(categories));
}
};
var SeriesYVal = class extends XmlComponent {
constructor(values) {
super("c:yVal");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/chart-types/stock-chart.ts
var StockChart = class extends XmlComponent {
constructor(options) {
super("c:stockChart");
for (let i = 0; i < options.series.length; i++) this.root.push(new StockSeries(i, options.series[i]));
this.root.push(new DropLines());
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var StockSeries = class extends XmlComponent {
constructor(index, series) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$1(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesVal$1(series.values));
}
};
var SeriesTx$1 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesVal$1 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
var DropLines = class extends XmlComponent {
constructor() {
super("c:dropLines");
this.root.push(new EmptyElement("c:spPr"));
}
};
//#endregion
//#region src/chart/chart-types/surface-chart.ts
var SurfaceChart = class extends XmlComponent {
constructor(options) {
super("c:surfaceChart");
if (options.wireframe) this.root.push(wrapEl("c:wireframe", chartAttr({ val: true })));
for (let i = 0; i < options.series.length; i++) this.root.push(new SurfaceSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 30 })));
}
};
var SurfaceSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat(categories));
this.root.push(new SeriesVal(series.values));
}
};
var SeriesTx = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef$1(name));
}
};
var SeriesCat = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef$1(categories));
}
};
var SeriesVal = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef$1(values));
}
};
//#endregion
//#region src/chart/create-chart-type.ts
const is3D = (opts) => opts.threeD === true;
const createChartType = (options) => {
if (options.type === "bubble") return new BubbleChart({ series: options.series });
const opts = options;
switch (opts.type) {
case "column":
case "bar": return is3D(opts) ? new Bar3DChart({
barDirection: opts.type === "column" ? "col" : "bar",
categories: opts.categories,
series: opts.series
}) : new BarChart({
barDirection: opts.type === "column" ? "col" : "bar",
categories: opts.categories,
series: opts.series
});
case "line": return is3D(opts) ? new Line3DChart({
categories: opts.categories,
series: opts.series
}) : new LineChart({
categories: opts.categories,
series: opts.series
});
case "pie": return is3D(opts) ? new Pie3DChart({
categories: opts.categories,
series: opts.series
}) : new PieChart({
categories: opts.categories,
series: opts.series
});
case "area": return is3D(opts) ? new Area3DChart({
categories: opts.categories,
series: opts.series
}) : new AreaChart({
categories: opts.categories,
series: opts.series
});
case "scatter": return new ScatterChart({
categories: opts.categories,
series: opts.series
});
case "doughnut": return new DoughnutChart({
categories: opts.categories,
series: opts.series
});
case "radar": return new RadarChart({
categories: opts.categories,
series: opts.series
});
case "stock": return new StockChart({
categories: opts.categories,
series: opts.series
});
case "surface": return new SurfaceChart({
categories: opts.categories,
series: opts.series
});
default: throw new Error(`Unsupported chart type: ${options.type}`);
}
};
//#endregion
//#region src/chart/title.ts
var ChartTitle = class extends XmlComponent {
constructor(title) {
super("c:title");
this.root.push(new TitleTx(title));
this.root.push(new TitleOverlay());
}
};
var TitleTx = class extends XmlComponent {
constructor(title) {
super("c:tx");
const rich = new class extends XmlComponent {
constructor() {
super("c:rich");
}
}();
rich["root"].push(new class extends XmlComponent {
constructor() {
super("a:bodyPr");
}
}());
rich["root"].push(new class extends XmlComponent {
constructor() {
super("a:lstStyle");
}
}());
const p = new class extends XmlComponent {
constructor() {
super("a:p");
}
}();
const r = new class extends XmlComponent {
constructor() {
super("a:r");
}
}();
r["root"].push(new class extends XmlComponent {
constructor() {
super("a:t");
this.root.push(title);
}
}());
p["root"].push(r);
rich["root"].push(p);
this.root.push(rich);
}
};
var TitleOverlay = class extends XmlComponent {
constructor() {
super("c:overlay");
this.root.push(chartAttr({ val: 0 }));
}
};
//#endregion
//#region src/chart/chart-space.ts
/**
* ChartSpace — root element for chart XML parts (c:chartSpace).
*
* Full XSD-compliant implementation with all optional elements.
*
* @module
*/
/**
* c:chartSpace — root element for chart XML parts.
*/
var ChartSpace = class extends XmlComponent {
constructor(options) {
super("c:chartSpace");
this.root.push(chartAttr({
"xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main",
"xmlns:c": "http://schemas.openxmlformats.org/drawingml/2006/chart",
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
}));
this.root.push(wrapEl("c:date1904", chartAttr({ val: 0 })));
this.root.push(wrapEl("c:lang", chartAttr({ val: "en-US" })));
this.root.push(wrapEl("c:roundedCorners", chartAttr({ val: 0 })));
if (options.style !== void 0) this.root.push(new ChartStyle(options.style));
const chart = new ChartContainer();
if (options.title) chart["root"].push(new ChartTitle(options.title));
chart["root"].push(wrapEl("c:autoTitleDeleted", chartAttr({ val: 0 })));
const plotArea = new PlotArea();
plotArea["root"].push(new BuilderElement({ name: "c:layout" }));
plotArea["root"].push(createChartType({
categories: options.categories ?? [],
series: options.series,
type: options.type,
threeD: options.threeD
}));
if (!(options.type === "pie" || options.type === "doughnut")) if (options.type === "scatter" || options.type === "bubble") {
plotArea["root"].push(new ValAx(10, 20));
plotArea["root"].push(new ValAx(20, 10));
} else if (options.type === "stock") {
plotArea["root"].push(new CatAx(10, 20));
plotArea["root"].push(new ValAx(20, 10));
} else if (options.type === "surface") {
plotArea["root"].push(new CatAx(10, 20));
plotArea["root"].push(new ValAx(20, 10));
plotArea["root"].push(new SerAx(30, 10));
} else {
plotArea["root"].push(new CatAx(10, 20));
plotArea["root"].push(new ValAx(20, 10));
if (options.threeD) plotArea["root"].push(new CatAx(30, 10));
}
chart["root"].push(plotArea);
if (options.showLegend !== false) chart["root"].push(createLegend());
this.root.push(chart);
this.root.push(createChartSpPr());
this.root.push(createChartTxPr());
}
};
var ChartContainer = class extends XmlComponent {
constructor() {
super("c:chart");
}
};
var PlotArea = class extends XmlComponent {
constructor() {
super("c:plotArea");
}
};
function createLegend() {
const legend = new class extends XmlComponent {
constructor() {
super("c:legend");
}
}();
legend["root"].push(wrapEl("c:legendPos", chartAttr({ val: "b" })));
legend["root"].push(new BuilderElement({ name: "c:layout" }));
legend["root"].push(wrapEl("c:overlay", chartAttr({ val: 0 })));
legend["root"].push(createNoFillSpPr());
legend["root"].push(createTxPr());
return legend;
}
function createNoFillSpPr() {
const spPr = new class extends XmlComponent {
constructor() {
super("c:spPr");
}
}();
spPr["root"].push(new class extends XmlComponent {
constructor() {
super("a:noFill");
}
}());
spPr["root"].push(new class extends XmlComponent {
constructor() {
super("a:ln");
this.root.push(new class extends XmlComponent {
constructor() {
super("a:noFill");
}
}());
}
}());
spPr["root"].push(new BuilderElement({ name: "a:effectLst" }));
return spPr;
}
function createChartSpPr() {
const spPr = new class extends XmlComponent {
constructor() {
super("c:spPr");
}
}();
spPr["root"].push(new class extends XmlComponent {
constructor() {
super("a:noFill");
}
}());
spPr["root"].push(new class extends XmlComponent {
constructor() {
super("a:ln");
this.root.push(new class extends XmlComponent {
constructor() {
super("a:noFill");
}
}());
}
}());
spPr["root"].push(new BuilderElement({ name: "a:effectLst" }));
return spPr;
}
function createChartTxPr() {
const txPr = new class extends XmlComponent {
constructor() {
super("c:txPr");
}
}();
txPr["root"].push(new BuilderElement({ name: "a:bodyPr" }));
txPr["root"].push(new BuilderElement({ name: "a:lstStyle" }));
txPr["root"].push(createTextParagraph());
return txPr;
}
function createTxPr() {
const txPr = new class extends XmlComponent {
constructor() {
super("c:txPr");
}
}();
txPr["root"].push(createBodyPr());
txPr["root"].push(new BuilderElement({ name: "a:lstStyle" }));
txPr["root"].push(createTextParagraph());
return txPr;
}
function createBodyPr() {
return new BuilderElement({
name: "a:bodyPr",
attributes: {
rot: {
key: "rot",
value: "0"
},
spcFirstLastPara: {
key: "spcFirstLastPara",
value: "1"
},
vertOverflow: {
key: "vertOverflow",
value: "ellipsis"
},
vert: {
key: "vert",
value: "horz"
},
wrap: {
key: "wrap",
value: "square"
},
anchor: {
key: "anchor",
value: "ctr"
},
anchorCtr: {
key: "anchorCtr",
value: "1"
}
}
});
}
function createTextParagraph() {
const p = new class extends XmlComponent {
constructor() {
super("a:p");
}
}();
const pPr = new class extends XmlComponent {
constructor() {
super("a:pPr");
}
}();
pPr["root"].push(new BuilderElement({ name: "a:defRPr" }));
p["root"].push(pPr);
p["root"].push(new BuilderElement({
name: "a:endParaRPr",
attributes: { lang: {
key: "lang",
value: "en-US"
} }
}));
return p;
}
var ChartStyle = class extends XmlComponent {
constructor(val) {
super("c:style");
this.root.push(chartAttr({ val: String(val) }));
}
};
//#endregion
//#region src/chart/chart-collection.ts
var ChartCollection = class {
map;
constructor() {
this.map = /* @__PURE__ */ new Map();
}
addChart(key, chartData) {
this.map.set(key, chartData);
}
get array() {
return [...this.map.values()];
}
};
//#endregion
export { ValAx as C, SerAx as S, Area3DChart as _, SurfaceChart as a, createStrRef$1 as b, RadarChart as c, Line3DChart as d, LineChart as f, BarChart as g, Bar3DChart as h, createChartType as i, Pie3DChart as l, BubbleChart as m, ChartSpace as n, StockChart as o, DoughnutChart as p, ChartTitle as r, ScatterChart as s, ChartCollection as t, PieChart as u, AreaChart as v, CatAx as x, createNumRef$1 as y };
import { b as XmlComponent } from "./index-Borh69Zs.mjs";
//#region src/chart/axes.d.ts
/**
* c:catAx — category axis.
*
* XSD sequence: EG_AxShared (axId, scaling, delete, axPos, ..., crossAx, crosses)
* then: auto, lblAlgn, lblOffset, tickLblSkip, tickMarkSkip, noMultiLvlLbl
*/
declare class CatAx extends XmlComponent {
constructor(axId: number, crossAx: number);
}
/**
* c:valAx — value axis.
*
* XSD sequence: EG_AxShared (axId, scaling, delete, axPos, ..., spPr, ..., crossAx, crosses)
* then: crossBetween, majorUnit, minorUnit, dispUnits
*/
declare class ValAx extends XmlComponent {
constructor(axId: number, crossAx: number);
}
declare class SerAx extends XmlComponent {
constructor(axId: number, crossAx: number);
}
//#endregion
//#region src/chart/chart-types/bubble-chart.d.ts
interface BubbleSeriesData {
readonly name: string;
readonly xValues: readonly number[];
readonly yValues: readonly number[];
readonly bubbleSize: readonly number[];
}
interface BubbleChartOptions$1 {
readonly series: readonly BubbleSeriesData[];
}
declare class BubbleChart extends XmlComponent {
constructor(options: BubbleChartOptions$1);
}
//#endregion
//#region src/chart/create-chart-type.d.ts
interface ChartSeriesData {
readonly name: string;
readonly values: readonly number[];
}
type ChartType = "column" | "bar" | "line" | "pie" | "area" | "scatter" | "bubble" | "doughnut" | "radar" | "stock" | "surface";
type AxisChartType = Exclude<ChartType, "bubble">;
interface ChartTypeOptions {
readonly type: AxisChartType;
readonly series: readonly ChartSeriesData[];
readonly categories: readonly string[];
readonly threeD?: boolean;
}
type BubbleChartOptions = {
readonly type: "bubble";
readonly series: readonly BubbleSeriesData[];
};
type AllChartTypeOptions = ChartTypeOptions | BubbleChartOptions;
declare const createChartType: (options: AllChartTypeOptions) => XmlComponent;
//#endregion
//#region src/chart/chart-space.d.ts
interface ChartSpaceOptions {
readonly title?: string;
readonly type: ChartType;
readonly categories?: readonly string[];
readonly series: readonly ChartSeriesData[] | readonly BubbleSeriesData[];
readonly showLegend?: boolean;
readonly style?: number;
readonly threeD?: boolean;
}
/**
* c:chartSpace — root element for chart XML parts.
*/
declare class ChartSpace extends XmlComponent {
constructor(options: ChartSpaceOptions);
}
//#endregion
//#region src/chart/chart-collection.d.ts
interface ChartData {
readonly key: string;
readonly chartSpace: XmlComponent;
}
declare class ChartCollection {
private readonly map;
constructor();
addChart(key: string, chartData: ChartData): void;
get array(): readonly ChartData[];
}
//#endregion
//#region src/chart/series/series-data.d.ts
declare const createStrRef: (values: string | readonly string[]) => XmlComponent;
declare const createNumRef: (values: readonly number[]) => XmlComponent;
//#endregion
//#region src/chart/title.d.ts
declare class ChartTitle extends XmlComponent {
constructor(title: string);
}
//#endregion
//#region src/chart/chart-types/area-chart.d.ts
interface AreaChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class AreaChart extends XmlComponent {
constructor(options: AreaChartOptions);
}
//#endregion
//#region src/chart/chart-types/area3d-chart.d.ts
interface Area3DChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class Area3DChart extends XmlComponent {
constructor(options: Area3DChartOptions);
}
//#endregion
//#region src/chart/chart-types/bar-chart.d.ts
interface BarChartOptions {
readonly barDirection: "col" | "bar";
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class BarChart extends XmlComponent {
constructor(options: BarChartOptions);
}
//#endregion
//#region src/chart/chart-types/bar3d-chart.d.ts
interface Bar3DChartOptions {
readonly barDirection: "col" | "bar";
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class Bar3DChart extends XmlComponent {
constructor(options: Bar3DChartOptions);
}
//#endregion
//#region src/chart/chart-types/doughnut-chart.d.ts
interface DoughnutChartOptions {
readonly holeSize?: number;
readonly series: readonly ChartSeriesData[];
readonly categories: readonly string[];
}
declare class DoughnutChart extends XmlComponent {
constructor(options: DoughnutChartOptions);
}
//#endregion
//#region src/chart/chart-types/line-chart.d.ts
interface LineChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class LineChart extends XmlComponent {
constructor(options: LineChartOptions);
}
//#endregion
//#region src/chart/chart-types/line3d-chart.d.ts
interface Line3DChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class Line3DChart extends XmlComponent {
constructor(options: Line3DChartOptions);
}
//#endregion
//#region src/chart/chart-types/pie-chart.d.ts
interface PieChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class PieChart extends XmlComponent {
constructor(options: PieChartOptions);
}
//#endregion
//#region src/chart/chart-types/pie3d-chart.d.ts
interface Pie3DChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class Pie3DChart extends XmlComponent {
constructor(options: Pie3DChartOptions);
}
//#endregion
//#region src/chart/chart-types/radar-chart.d.ts
interface RadarChartOptions {
readonly radarStyle?: "filled" | "marker" | "line";
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class RadarChart extends XmlComponent {
constructor(options: RadarChartOptions);
}
//#endregion
//#region src/chart/chart-types/scatter-chart.d.ts
interface ScatterChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class ScatterChart extends XmlComponent {
constructor(options: ScatterChartOptions);
}
//#endregion
//#region src/chart/chart-types/stock-chart.d.ts
interface StockChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class StockChart extends XmlComponent {
constructor(options: StockChartOptions);
}
//#endregion
//#region src/chart/chart-types/surface-chart.d.ts
interface SurfaceChartOptions {
readonly wireframe?: boolean;
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class SurfaceChart extends XmlComponent {
constructor(options: SurfaceChartOptions);
}
//#endregion
export { CatAx as A, BubbleChartOptions as C, createChartType as D, ChartTypeOptions as E, ValAx as M, BubbleChart as O, AxisChartType as S, ChartType as T, ChartCollection as _, Pie3DChart as a, ChartSpaceOptions as b, LineChart as c, BarChart as d, Area3DChart as f, createStrRef as g, createNumRef as h, RadarChart as i, SerAx as j, BubbleSeriesData as k, DoughnutChart as l, ChartTitle as m, StockChart as n, PieChart as o, AreaChart as p, ScatterChart as r, Line3DChart as s, SurfaceChart as t, Bar3DChart as u, ChartData as v, ChartSeriesData as w, AllChartTypeOptions as x, ChartSpace as y };
+2
-2

@@ -1,2 +0,2 @@

import { _ as CatAx, a as ChartData, c as ChartSeriesData, d as createChartType, f as ScatterChart, g as AreaChart, h as BarChart, i as ChartCollection, l as ChartType, m as LineChart, n as createNumRef, o as ChartSpace, p as PieChart, r as createStrRef, s as ChartSpaceOptions, t as ChartTitle, u as ChartTypeOptions, v as ValAx } from "../index-CtcOpyfu.mjs";
export { AreaChart, BarChart, CatAx, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, LineChart, PieChart, ScatterChart, ValAx, createChartType, createNumRef, createStrRef };
import { A as CatAx, C as BubbleChartOptions, D as createChartType, E as ChartTypeOptions, M as ValAx, O as BubbleChart, S as AxisChartType, T as ChartType, _ as ChartCollection, a as Pie3DChart, b as ChartSpaceOptions, c as LineChart, d as BarChart, f as Area3DChart, g as createStrRef, h as createNumRef, i as RadarChart, j as SerAx, k as BubbleSeriesData, l as DoughnutChart, m as ChartTitle, n as StockChart, o as PieChart, p as AreaChart, r as ScatterChart, s as Line3DChart, t as SurfaceChart, u as Bar3DChart, v as ChartData, w as ChartSeriesData, x as AllChartTypeOptions, y as ChartSpace } from "../index-C4Wm3RBo.mjs";
export { AllChartTypeOptions, Area3DChart, AreaChart, AxisChartType, Bar3DChart, BarChart, BubbleChart, BubbleChartOptions, type BubbleSeriesData, CatAx, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, DoughnutChart, Line3DChart, LineChart, Pie3DChart, PieChart, RadarChart, ScatterChart, SerAx, StockChart, SurfaceChart, ValAx, createChartType, createNumRef, createStrRef };

@@ -1,2 +0,2 @@

import { a as ScatterChart, c as BarChart, d as createStrRef, f as CatAx, i as createChartType, l as AreaChart, n as ChartSpace, o as PieChart, p as ValAx, r as ChartTitle, s as LineChart, t as ChartCollection, u as createNumRef } from "../chart-dfAcyzCL.mjs";
export { AreaChart, BarChart, CatAx, ChartCollection, ChartSpace, ChartTitle, LineChart, PieChart, ScatterChart, ValAx, createChartType, createNumRef, createStrRef };
import { C as ValAx, S as SerAx, _ as Area3DChart, a as SurfaceChart, b as createStrRef, c as RadarChart, d as Line3DChart, f as LineChart, g as BarChart, h as Bar3DChart, i as createChartType, l as Pie3DChart, m as BubbleChart, n as ChartSpace, o as StockChart, p as DoughnutChart, r as ChartTitle, s as ScatterChart, t as ChartCollection, u as PieChart, v as AreaChart, x as CatAx, y as createNumRef } from "../chart-ChqlyVeb.mjs";
export { Area3DChart, AreaChart, Bar3DChart, BarChart, BubbleChart, CatAx, ChartCollection, ChartSpace, ChartTitle, DoughnutChart, Line3DChart, LineChart, Pie3DChart, PieChart, RadarChart, ScatterChart, SerAx, StockChart, SurfaceChart, ValAx, createChartType, createNumRef, createStrRef };
import { C as IXmlAttribute, S as Context, _ as AttributePayload, a as BuilderElement, b as XmlComponent, c as buildAttrObject, d as numberValObj, f as onOffObj, g as wrapEl, h as stringValObj, i as convertToXmlComponent, l as chartAttr, m as stringEnumValObj, n as ImportedRootElementAttributes, o as EmptyElement, p as stringContainerObj, r as ImportedXmlComponent, s as attrObj, t as InitializableXmlComponent, u as hpsMeasureObj, v as EMPTY_OBJECT, w as IXmlableObject, x as BaseXmlComponent, y as IgnoreIfEmptyXmlComponent } from "./index-Borh69Zs.mjs";
import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "./values-COjPGYkS.mjs";
import { _ as CatAx, a as ChartData, c as ChartSeriesData, d as createChartType, f as ScatterChart, g as AreaChart, h as BarChart, i as ChartCollection, l as ChartType, m as LineChart, n as createNumRef, o as ChartSpace, p as PieChart, r as createStrRef, s as ChartSpaceOptions, t as ChartTitle, u as ChartTypeOptions, v as ValAx } from "./index-CtcOpyfu.mjs";
import { A as CatAx, C as BubbleChartOptions, D as createChartType, E as ChartTypeOptions, M as ValAx, O as BubbleChart, S as AxisChartType, T as ChartType, _ as ChartCollection, a as Pie3DChart, b as ChartSpaceOptions, c as LineChart, d as BarChart, f as Area3DChart, g as createStrRef, h as createNumRef, i as RadarChart, j as SerAx, k as BubbleSeriesData, l as DoughnutChart, m as ChartTitle, n as StockChart, o as PieChart, p as AreaChart, r as ScatterChart, s as Line3DChart, t as SurfaceChart, u as Bar3DChart, v as ChartData, w as ChartSeriesData, x as AllChartTypeOptions, y as ChartSpace } from "./index-C4Wm3RBo.mjs";
import { $ as RectAlignment, $t as createSolidFill, A as createBevel, At as FillOptions, B as createSoftEdgeEffect, Bt as RelativeRect, C as GeometryGuide, Ct as createGroupFill, D as createShape3D, Dt as createNoFill, E as Shape3DOptions, Et as createPatternFill, F as Point3D, Ft as GradientShadeOptions, G as EffectListOptions, Gt as TileOptions, H as EffectDagOptions, Ht as createGradientFill, I as Scene3DOptions, It as GradientStop, J as createReflectionEffect, Jt as createSourceRectangle, K as createEffectList, Kt as createTileInfo, L as SphereCoords, Lt as LinearShadeOptions, M as BackdropOptions, Mt as buildFill, N as CameraOptions, Nt as extractBlipFillMedia, O as BevelOptions, Ot as BlipFillConfigOptions, P as LightRigOptions, Pt as GradientFillOptions, Q as OuterShadowEffectOptions, Qt as createColorElement, R as Vector3D, Rt as PathShadeOptions, S as PresetGeometryOptions, St as createCustomDash, T as PresetMaterialType, Tt as PresetPattern, U as createEffectDag, Ut as createGradientStop, V as EffectContainerType, Vt as TileFlipMode, W as BlurEffectOptions, Wt as TileAlignment, X as PresetShadowVal, Xt as createBlipEffects, Y as PresetShadowEffectOptions, Yt as BlipEffectsOptions, Z as createPresetShadowEffect, Zt as SolidFillOptions, _ as PathCommand, _t as LineEndOptions, a as Transform2DOptions, an as createSchemeColor, at as BlendMode, b as createCustomGeometry, bt as createLineEnd, c as Stretch, cn as RgbColorOptions, ct as CompoundLine, d as createBlipFill, dn as PresetColorOptions, dt as OutlineFillProperties, en as SystemColor, et as createOuterShadowEffect, f as BlipOptions, fn as createPresetColor, ft as OutlineOptions, g as GeomRect, gn as createColorTransforms, gt as LineEndLength, h as CustomGeometryOptions, hn as ColorTransformOptions, ht as createOutline, i as GroupTransform2DOptions, in as SchemeColorOptions, it as createGlowEffect, j as createBottomBevel, jt as GradientStopOptions, k as BevelPresetType, kt as BlipFillMediaData, l as createExtentionList, ln as createRgbColor, lt as LineCap, m as ConnectionSite, mn as createHslColor, mt as PresetDash, n as MediaTransformation, nn as createSystemColor, nt as createInnerShadowEffect, o as createGroupTransform2D, on as ScRgbColorOptions, ot as FillOverlayEffectOptions, p as createBlip, pn as HslColorOptions, pt as PenAlignment, q as ReflectionEffectOptions, qt as SourceRectangleOptions, r as createTransformation, rn as SchemeColor, rt as GlowEffectOptions, s as createTransform2D, sn as createScRgbColor, st as createFillOverlayEffect, t as MediaDataTransformation, tn as SystemColorOptions, tt as InnerShadowEffectOptions, u as BlipFillOptions, un as PresetColor, ut as LineJoin, v as PathFillMode, vt as LineEndType, w as createAdjustmentValues, wt as PatternFillOptions, x as PresetGeometry, xt as DashStop, y as PathOptions, yt as LineEndWidth, z as createScene3D, zt as PathShadeType } from "./index-BWboZ6Uq.mjs";

@@ -207,3 +207,3 @@ import { a as Point, c as Connection, d as getLayoutXml, f as getStyleXml, h as STYLE_CATEGORIES, i as SmartArtData, l as DEFAULT_DRAWING_XML, m as LAYOUT_CATEGORIES, n as createDataModel, o as TransPoint, p as COLOR_CATEGORIES, r as SmartArtCollection, s as DataModel, t as TreeNode, u as getColorXml } from "./index-f_Izh2dj.mjs";

//#region src/opc/relationships.d.ts
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/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/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/sharedStrings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";
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/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/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/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";
declare const TargetModeType: {

@@ -510,2 +510,2 @@ readonly EXTERNAL: "External";

//#endregion
export { AppProperties, AreaChart, AttributePayload, type BackdropOptions, BarChart, BaseXmlComponent, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BuilderElement, COLOR_CATEGORIES, type CameraOptions, CatAx, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, type ColorTransformOptions, CompileFn, CompoundLine, CompressionOptions, Connection, type ConnectionSite, Context, CoreProperties, type CustomGeometryOptions, DEFAULT_DRAWING_XML, DOCX_NS, type DashStop, DataModel, type DefaultAttributes, EMPTY_OBJECT, type EffectContainerType, type EffectDagOptions, type EffectListOptions, EmptyElement, type FillOptions, type FillOverlayEffectOptions, Formatter, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GroupTransform2DOptions, type HslColorOptions, IXmlAttribute, IXmlableObject, IdFormat, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, type InnerShadowEffectOptions, LAYOUT_CATEGORIES, type LightRigOptions, LineCap, LineChart, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, OoxmlMimeType, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, OutputByType, OutputType, type OverrideAttributes, PPTX_NS, Packer, PackerOptions, ParsedArchive, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, Percentage, PieChart, Point, type Point3D, PositivePercentage, PositiveUniversalMeasure, PresetColor, type PresetColorOptions, PresetDash, PresetGeometry, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RawPassthrough, RectAlignment, type ReflectionEffectOptions, type RelationshipType, Relationships, RelativeMeasure, type RelativeRect, type RenderedParagraphNode, type ReplacerConfig, type RgbColorOptions, STYLE_CATEGORIES, type ScRgbColorOptions, ScatterChart, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, SmartArtCollection, SmartArtData, SmartArtRelOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, Stretch, SystemColor, type SystemColorOptions, TargetModeType, ThemeColor, ThemeFont, TileAlignment, TileFlipMode, type TileOptions, TokenNotFoundError, TransPoint, type Transform2DOptions, TreeNode, UniqueNumericIdCreator, UniversalMeasure, ValAx, type Vector3D, XmlComponent, type XmlNamespaceConfig, XmlifyedFile, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, type ZipOptions, type Zippable, addSmartArtRelationships, appendContentType, appendRelationship, attrObj, buildAttrObject, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, chartAttr, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertToXmlComponent, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChartType, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createDataModel, createDefault, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createNumRef, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStrRef, createSystemColor, createTextElementContents, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createZipStream, dateTimeValue, decimalNumber, eighthPointMeasureValue, elementToCompact, extractBlipFillMedia, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getNextRelationshipIndex, getReferencedMedia, getStyleXml, hasPlaceholders, hashedId, hexBinary, hexColorValue, hpsMeasureObj, hpsMeasureValue, invertMap, longHexNumber, measurementOrPercentValue, numberValObj, onOffObj, parseArchive, parseCorePropsElement, patchSpaceAttribute, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, replaceChartPlaceholders, replaceImagePlaceholders, replaceSmartArtPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, strFromU8, stringContainerObj, stringEnumValObj, stringValObj, toJson, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, wrapEl, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
export { AllChartTypeOptions, AppProperties, Area3DChart, AreaChart, AttributePayload, AxisChartType, type BackdropOptions, Bar3DChart, BarChart, BaseXmlComponent, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BubbleChart, BubbleChartOptions, type BubbleSeriesData, BuilderElement, COLOR_CATEGORIES, type CameraOptions, CatAx, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, type ColorTransformOptions, CompileFn, CompoundLine, CompressionOptions, Connection, type ConnectionSite, Context, CoreProperties, type CustomGeometryOptions, DEFAULT_DRAWING_XML, DOCX_NS, type DashStop, DataModel, type DefaultAttributes, DoughnutChart, EMPTY_OBJECT, type EffectContainerType, type EffectDagOptions, type EffectListOptions, EmptyElement, type FillOptions, type FillOverlayEffectOptions, Formatter, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GroupTransform2DOptions, type HslColorOptions, IXmlAttribute, IXmlableObject, IdFormat, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, type InnerShadowEffectOptions, LAYOUT_CATEGORIES, type LightRigOptions, Line3DChart, LineCap, LineChart, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, OoxmlMimeType, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, OutputByType, OutputType, type OverrideAttributes, PPTX_NS, Packer, PackerOptions, ParsedArchive, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, Percentage, Pie3DChart, PieChart, Point, type Point3D, PositivePercentage, PositiveUniversalMeasure, PresetColor, type PresetColorOptions, PresetDash, PresetGeometry, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RadarChart, RawPassthrough, RectAlignment, type ReflectionEffectOptions, type RelationshipType, Relationships, RelativeMeasure, type RelativeRect, type RenderedParagraphNode, type ReplacerConfig, type RgbColorOptions, STYLE_CATEGORIES, type ScRgbColorOptions, ScatterChart, type Scene3DOptions, SchemeColor, type SchemeColorOptions, SerAx, type Shape3DOptions, SmartArtCollection, SmartArtData, SmartArtRelOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, StockChart, Stretch, SurfaceChart, SystemColor, type SystemColorOptions, TargetModeType, ThemeColor, ThemeFont, TileAlignment, TileFlipMode, type TileOptions, TokenNotFoundError, TransPoint, type Transform2DOptions, TreeNode, UniqueNumericIdCreator, UniversalMeasure, ValAx, type Vector3D, XmlComponent, type XmlNamespaceConfig, XmlifyedFile, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, type ZipOptions, type Zippable, addSmartArtRelationships, appendContentType, appendRelationship, attrObj, buildAttrObject, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, chartAttr, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertToXmlComponent, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChartType, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createDataModel, createDefault, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createNumRef, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStrRef, createSystemColor, createTextElementContents, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createZipStream, dateTimeValue, decimalNumber, eighthPointMeasureValue, elementToCompact, extractBlipFillMedia, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getNextRelationshipIndex, getReferencedMedia, getStyleXml, hasPlaceholders, hashedId, hexBinary, hexColorValue, hpsMeasureObj, hpsMeasureValue, invertMap, longHexNumber, measurementOrPercentValue, numberValObj, onOffObj, parseArchive, parseCorePropsElement, patchSpaceAttribute, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, replaceChartPlaceholders, replaceImagePlaceholders, replaceSmartArtPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, strFromU8, stringContainerObj, stringEnumValObj, stringValObj, toJson, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, wrapEl, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };

@@ -5,3 +5,3 @@ import { _ as EMPTY_OBJECT, a as BuilderElement, b as BaseXmlComponent, c as buildAttrObject, d as numberValObj, f as onOffObj, g as wrapEl, h as stringValObj, i as convertToXmlComponent, l as chartAttr, m as stringEnumValObj, n as ImportedRootElementAttributes, o as EmptyElement, p as stringContainerObj, r as ImportedXmlComponent, s as attrObj, t as InitializableXmlComponent, u as hpsMeasureObj, v as IgnoreIfEmptyXmlComponent, y as XmlComponent } from "./xml-components-xJkfJ6ff.mjs";

import { a as DataModel, c as getColorXml, d as COLOR_CATEGORIES, f as LAYOUT_CATEGORIES, i as TransPoint, l as getLayoutXml, n as SmartArtCollection, o as Connection, p as STYLE_CATEGORIES, r as Point, s as DEFAULT_DRAWING_XML, t as createDataModel, u as getStyleXml } from "./smartart-Cx1qa6k_.mjs";
import { a as ScatterChart, c as BarChart, d as createStrRef, f as CatAx, i as createChartType, l as AreaChart, n as ChartSpace, o as PieChart, p as ValAx, r as ChartTitle, s as LineChart, t as ChartCollection, u as createNumRef } from "./chart-dfAcyzCL.mjs";
import { C as ValAx, S as SerAx, _ as Area3DChart, a as SurfaceChart, b as createStrRef, c as RadarChart, d as Line3DChart, f as LineChart, g as BarChart, h as Bar3DChart, i as createChartType, l as Pie3DChart, m as BubbleChart, n as ChartSpace, o as StockChart, p as DoughnutChart, r as ChartTitle, s as ScatterChart, t as ChartCollection, u as PieChart, v as AreaChart, x as CatAx, y as createNumRef } from "./chart-ChqlyVeb.mjs";
import { a as createTraverser, c as TokenNotFoundError, d as getFirstLevelElements, f as patchSpaceAttribute, h as PPTX_NS, i as createReplacer, l as createSplitInject, m as DOCX_NS, n as getNextRelationshipIndex, o as createRunRenderer, p as toJson, r as appendContentType, s as createTokenReplacer, t as appendRelationship, u as createTextElementContents } from "./patch-ilNZTQmG.mjs";

@@ -778,2 +778,2 @@ import { escapeXml, js2xml, textOf, xml2js } from "@office-open/xml";

//#endregion
export { AppProperties, AreaChart, BarChart, BaseXmlComponent, BevelPresetType, BlendMode, BuilderElement, COLOR_CATEGORIES, CatAx, ChartCollection, ChartSpace, ChartTitle, CompoundLine, Connection, DEFAULT_DRAWING_XML, DOCX_NS, DataModel, EMPTY_OBJECT, EmptyElement, Formatter, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, LAYOUT_CATEGORIES, LineCap, LineChart, LineEndLength, LineEndType, LineEndWidth, LineJoin, OoxmlMimeType, PPTX_NS, ParsedArchive, PathShadeType, PenAlignment, PieChart, Point, PresetColor, PresetDash, PresetGeometry, PresetMaterialType, PresetPattern, PresetShadowVal, RawPassthrough, RectAlignment, Relationships, STYLE_CATEGORIES, ScatterChart, SchemeColor, SmartArtCollection, Stretch, SystemColor, TargetModeType, ThemeColor, ThemeFont, TileAlignment, TileFlipMode, TokenNotFoundError, TransPoint, ValAx, XmlComponent, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, addSmartArtRelationships, appendContentType, appendRelationship, attrObj, buildAttrObject, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, chartAttr, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertToXmlComponent, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChartType, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createDataModel, createDefault, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createNumRef, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStrRef, createSystemColor, createTextElementContents, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createZipStream, dateTimeValue, decimalNumber, eighthPointMeasureValue, elementToCompact, extractBlipFillMedia, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getNextRelationshipIndex, getReferencedMedia, getStyleXml, hasPlaceholders, hashedId, hexBinary, hexColorValue, hpsMeasureObj, hpsMeasureValue, invertMap, longHexNumber, measurementOrPercentValue, numberValObj, onOffObj, parseArchive, parseCorePropsElement, patchSpaceAttribute, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, replaceChartPlaceholders, replaceImagePlaceholders, replaceSmartArtPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, strFromU8, stringContainerObj, stringEnumValObj, stringValObj, toJson, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, wrapEl, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
export { AppProperties, Area3DChart, AreaChart, Bar3DChart, BarChart, BaseXmlComponent, BevelPresetType, BlendMode, BubbleChart, BuilderElement, COLOR_CATEGORIES, CatAx, ChartCollection, ChartSpace, ChartTitle, CompoundLine, Connection, DEFAULT_DRAWING_XML, DOCX_NS, DataModel, DoughnutChart, EMPTY_OBJECT, EmptyElement, Formatter, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, LAYOUT_CATEGORIES, Line3DChart, LineCap, LineChart, LineEndLength, LineEndType, LineEndWidth, LineJoin, OoxmlMimeType, PPTX_NS, ParsedArchive, PathShadeType, PenAlignment, Pie3DChart, PieChart, Point, PresetColor, PresetDash, PresetGeometry, PresetMaterialType, PresetPattern, PresetShadowVal, RadarChart, RawPassthrough, RectAlignment, Relationships, STYLE_CATEGORIES, ScatterChart, SchemeColor, SerAx, SmartArtCollection, StockChart, Stretch, SurfaceChart, SystemColor, TargetModeType, ThemeColor, ThemeFont, TileAlignment, TileFlipMode, TokenNotFoundError, TransPoint, ValAx, XmlComponent, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, addSmartArtRelationships, appendContentType, appendRelationship, attrObj, buildAttrObject, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, chartAttr, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertToXmlComponent, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChartType, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createDataModel, createDefault, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createNumRef, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStrRef, createSystemColor, createTextElementContents, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createZipStream, dateTimeValue, decimalNumber, eighthPointMeasureValue, elementToCompact, extractBlipFillMedia, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getNextRelationshipIndex, getReferencedMedia, getStyleXml, hasPlaceholders, hashedId, hexBinary, hexColorValue, hpsMeasureObj, hpsMeasureValue, invertMap, longHexNumber, measurementOrPercentValue, numberValObj, onOffObj, parseArchive, parseCorePropsElement, patchSpaceAttribute, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, replaceChartPlaceholders, replaceImagePlaceholders, replaceSmartArtPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, strFromU8, stringContainerObj, stringEnumValObj, stringValObj, toJson, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, wrapEl, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
{
"name": "@office-open/core",
"version": "0.6.10",
"version": "0.7.0",
"description": "Shared OOXML infrastructure: XmlComponent, value validators, unit converters",

@@ -58,3 +58,3 @@ "keywords": [

"nanoid": "5.1.11",
"@office-open/xml": "0.6.10"
"@office-open/xml": "0.7.0"
},

@@ -61,0 +61,0 @@ "scripts": {

import { a as BuilderElement, g as wrapEl, l as chartAttr, o as EmptyElement, y as XmlComponent } from "./xml-components-xJkfJ6ff.mjs";
//#region src/chart/axes.ts
/**
* c:scaling — axis scaling configuration (minOccurs=1 in EG_AxShared).
*/
var Scaling = class extends XmlComponent {
constructor() {
super("c:scaling");
this.root.push(wrapEl("c:orientation", chartAttr({ val: "minMax" })));
}
};
/**
* c:catAx — category axis.
*
* XSD sequence: EG_AxShared (axId, scaling, delete, axPos, ..., crossAx, crosses)
* then: auto, lblAlgn, lblOffset, tickLblSkip, tickMarkSkip, noMultiLvlLbl
*/
var CatAx = class extends XmlComponent {
constructor(axId, crossAx) {
super("c:catAx");
this.root.push(wrapEl("c:axId", chartAttr({ val: axId })));
this.root.push(new Scaling());
this.root.push(wrapEl("c:delete", chartAttr({ val: 0 })));
this.root.push(wrapEl("c:axPos", chartAttr({ val: "b" })));
this.root.push(wrapEl("c:crossAx", chartAttr({ val: crossAx })));
this.root.push(wrapEl("c:crosses", chartAttr({ val: "autoZero" })));
this.root.push(wrapEl("c:auto", chartAttr({ val: 1 })));
this.root.push(wrapEl("c:lblOffset", chartAttr({ val: 100 })));
this.root.push(wrapEl("c:noMultiLvlLbl", chartAttr({ val: 0 })));
}
};
/**
* c:valAx — value axis.
*
* XSD sequence: EG_AxShared (axId, scaling, delete, axPos, ..., spPr, ..., crossAx, crosses)
* then: crossBetween, majorUnit, minorUnit, dispUnits
*/
var ValAx = class extends XmlComponent {
constructor(axId, crossAx) {
super("c:valAx");
this.root.push(wrapEl("c:axId", chartAttr({ val: axId })));
this.root.push(new Scaling());
this.root.push(wrapEl("c:delete", chartAttr({ val: 0 })));
this.root.push(wrapEl("c:axPos", chartAttr({ val: "l" })));
this.root.push(wrapEl("c:numFmt", chartAttr({
formatCode: "General",
sourceLinked: 1
})));
this.root.push(new BuilderElement({ name: "c:spPr" }));
this.root.push(wrapEl("c:crossAx", chartAttr({ val: crossAx })));
this.root.push(wrapEl("c:crosses", chartAttr({ val: "autoZero" })));
}
};
//#endregion
//#region src/chart/series/series-data.ts
const createStrRef = (values) => {
return new StrRef(typeof values === "string" ? [values] : values);
};
const createNumRef = (values) => new NumRef(values);
var StrRef = class extends XmlComponent {
constructor(values) {
super("c:strRef");
this.root.push(new EmptyElement("c:f"));
this.root.push(new StrCache(values));
}
};
var StrCache = class extends XmlComponent {
constructor(values) {
super("c:strCache");
this.root.push(wrapEl("c:ptCount", chartAttr({ val: values.length })));
for (let i = 0; i < values.length; i++) this.root.push(new StrPt(i, values[i]));
}
};
var StrPt = class extends XmlComponent {
constructor(index, value) {
super("c:pt");
this.root.push(chartAttr({ idx: index }));
this.root.push(new StringValue("c:v", value));
}
};
var NumRef = class extends XmlComponent {
constructor(values) {
super("c:numRef");
this.root.push(new EmptyElement("c:f"));
this.root.push(new NumCache(values));
}
};
var NumCache = class extends XmlComponent {
constructor(values) {
super("c:numCache");
this.root.push(new FormatCode("General"));
this.root.push(wrapEl("c:ptCount", chartAttr({ val: values.length })));
for (let i = 0; i < values.length; i++) this.root.push(new NumPt(i, values[i]));
}
};
var NumPt = class extends XmlComponent {
constructor(index, value) {
super("c:pt");
this.root.push(chartAttr({ idx: index }));
this.root.push(new StringValue("c:v", String(value)));
}
};
var FormatCode = class extends XmlComponent {
constructor(code) {
super("c:formatCode");
this.root.push(code);
}
};
var StringValue = class extends XmlComponent {
constructor(name, val) {
super(name);
this.root.push(val);
}
};
//#endregion
//#region src/chart/chart-types/area-chart.ts
var AreaChart = class extends XmlComponent {
constructor(options) {
super("c:areaChart");
this.root.push(wrapEl("c:grouping", chartAttr({ val: "standard" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new AreaSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var AreaSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$4(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$4(categories));
this.root.push(new SeriesVal$4(series.values));
}
};
var SeriesTx$4 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef(name));
}
};
var SeriesCat$4 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef(categories));
}
};
var SeriesVal$4 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef(values));
}
};
//#endregion
//#region src/chart/chart-types/bar-chart.ts
var BarChart = class extends XmlComponent {
constructor(options) {
super("c:barChart");
this.root.push(wrapEl("c:barDir", chartAttr({ val: options.barDirection })));
this.root.push(wrapEl("c:grouping", chartAttr({ val: "clustered" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new BarSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var BarSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$3(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$3(categories));
this.root.push(new SeriesVal$3(series.values));
}
};
var SeriesTx$3 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef(name));
}
};
var SeriesCat$3 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef(categories));
}
};
var SeriesVal$3 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef(values));
}
};
//#endregion
//#region src/chart/chart-types/line-chart.ts
var LineChart = class extends XmlComponent {
constructor(options) {
super("c:lineChart");
this.root.push(wrapEl("c:grouping", chartAttr({ val: "standard" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new LineSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var LineSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$2(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$2(categories));
this.root.push(new SeriesVal$2(series.values));
}
};
var SeriesTx$2 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef(name));
}
};
var SeriesCat$2 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef(categories));
}
};
var SeriesVal$2 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef(values));
}
};
//#endregion
//#region src/chart/chart-types/pie-chart.ts
var PieChart = class extends XmlComponent {
constructor(options) {
super("c:pieChart");
this.root.push(wrapEl("c:varyColors", chartAttr({ val: true })));
for (let i = 0; i < options.series.length; i++) this.root.push(new PieSeries(i, options.series[i], options.categories));
}
};
var PieSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx$1(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat$1(categories));
this.root.push(new SeriesVal$1(series.values));
}
};
var SeriesTx$1 = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef(name));
}
};
var SeriesCat$1 = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef(categories));
}
};
var SeriesVal$1 = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef(values));
}
};
//#endregion
//#region src/chart/chart-types/scatter-chart.ts
var ScatterChart = class extends XmlComponent {
constructor(options) {
super("c:scatterChart");
this.root.push(wrapEl("c:scatterStyle", chartAttr({ val: "line" })));
for (let i = 0; i < options.series.length; i++) this.root.push(new ScatterSeries(i, options.series[i], options.categories));
this.root.push(wrapEl("c:axId", chartAttr({ val: 10 })));
this.root.push(wrapEl("c:axId", chartAttr({ val: 20 })));
}
};
var ScatterSeries = class extends XmlComponent {
constructor(index, series, categories) {
super("c:ser");
this.root.push(wrapEl("c:idx", chartAttr({ val: index })));
this.root.push(wrapEl("c:order", chartAttr({ val: index })));
this.root.push(new SeriesTx(series.name));
this.root.push(new EmptyElement("c:spPr"));
this.root.push(new SeriesCat(categories));
this.root.push(new SeriesVal(series.values));
this.root.push(new EmptyElement("c:size"));
}
};
var SeriesTx = class extends XmlComponent {
constructor(name) {
super("c:tx");
this.root.push(createStrRef(name));
}
};
var SeriesCat = class extends XmlComponent {
constructor(categories) {
super("c:cat");
this.root.push(createStrRef(categories));
}
};
var SeriesVal = class extends XmlComponent {
constructor(values) {
super("c:val");
this.root.push(createNumRef(values));
}
};
//#endregion
//#region src/chart/create-chart-type.ts
const createChartType = (options) => {
switch (options.type) {
case "column":
case "bar": return new BarChart({
barDirection: options.type === "column" ? "col" : "bar",
categories: options.categories,
series: options.series
});
case "line": return new LineChart({
categories: options.categories,
series: options.series
});
case "pie": return new PieChart({
categories: options.categories,
series: options.series
});
case "area": return new AreaChart({
categories: options.categories,
series: options.series
});
case "scatter": return new ScatterChart({
categories: options.categories,
series: options.series
});
default: throw new Error(`Unsupported chart type: ${options.type}`);
}
};
//#endregion
//#region src/chart/title.ts
var ChartTitle = class extends XmlComponent {
constructor(title) {
super("c:title");
this.root.push(new TitleTx(title));
this.root.push(new TitleOverlay());
}
};
var TitleTx = class extends XmlComponent {
constructor(title) {
super("c:tx");
const rich = new class extends XmlComponent {
constructor() {
super("c:rich");
}
}();
rich["root"].push(new class extends XmlComponent {
constructor() {
super("a:bodyPr");
}
}());
rich["root"].push(new class extends XmlComponent {
constructor() {
super("a:lstStyle");
}
}());
const p = new class extends XmlComponent {
constructor() {
super("a:p");
}
}();
const r = new class extends XmlComponent {
constructor() {
super("a:r");
}
}();
r["root"].push(new class extends XmlComponent {
constructor() {
super("a:t");
this.root.push(title);
}
}());
p["root"].push(r);
rich["root"].push(p);
this.root.push(rich);
}
};
var TitleOverlay = class extends XmlComponent {
constructor() {
super("c:overlay");
this.root.push(chartAttr({ val: 0 }));
}
};
//#endregion
//#region src/chart/chart-space.ts
/**
* ChartSpace — root element for chart XML parts (c:chartSpace).
*
* Full XSD-compliant implementation with all optional elements.
*
* @module
*/
/**
* c:chartSpace — root element for chart XML parts.
*/
var ChartSpace = class extends XmlComponent {
constructor(options) {
super("c:chartSpace");
this.root.push(chartAttr({
"xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main",
"xmlns:c": "http://schemas.openxmlformats.org/drawingml/2006/chart",
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
}));
this.root.push(wrapEl("c:date1904", chartAttr({ val: 0 })));
this.root.push(wrapEl("c:lang", chartAttr({ val: "en-US" })));
this.root.push(wrapEl("c:roundedCorners", chartAttr({ val: 0 })));
if (options.style !== void 0) this.root.push(new ChartStyle(options.style));
const chart = new ChartContainer();
if (options.title) chart["root"].push(new ChartTitle(options.title));
chart["root"].push(wrapEl("c:autoTitleDeleted", chartAttr({ val: 0 })));
const plotArea = new PlotArea();
plotArea["root"].push(new BuilderElement({ name: "c:layout" }));
plotArea["root"].push(createChartType({
categories: options.categories,
series: options.series,
type: options.type
}));
if (options.type !== "pie") if (options.type === "scatter") {
plotArea["root"].push(new ValAx(10, 20));
plotArea["root"].push(new ValAx(20, 10));
} else {
plotArea["root"].push(new CatAx(10, 20));
plotArea["root"].push(new ValAx(20, 10));
}
chart["root"].push(plotArea);
if (options.showLegend !== false) chart["root"].push(createLegend());
this.root.push(chart);
this.root.push(createChartSpPr());
this.root.push(createChartTxPr());
}
};
var ChartContainer = class extends XmlComponent {
constructor() {
super("c:chart");
}
};
var PlotArea = class extends XmlComponent {
constructor() {
super("c:plotArea");
}
};
function createLegend() {
const legend = new class extends XmlComponent {
constructor() {
super("c:legend");
}
}();
legend["root"].push(wrapEl("c:legendPos", chartAttr({ val: "b" })));
legend["root"].push(new BuilderElement({ name: "c:layout" }));
legend["root"].push(wrapEl("c:overlay", chartAttr({ val: 0 })));
legend["root"].push(createNoFillSpPr());
legend["root"].push(createTxPr());
return legend;
}
function createNoFillSpPr() {
const spPr = new class extends XmlComponent {
constructor() {
super("c:spPr");
}
}();
spPr["root"].push(new class extends XmlComponent {
constructor() {
super("a:noFill");
}
}());
spPr["root"].push(new class extends XmlComponent {
constructor() {
super("a:ln");
this.root.push(new class extends XmlComponent {
constructor() {
super("a:noFill");
}
}());
}
}());
spPr["root"].push(new BuilderElement({ name: "a:effectLst" }));
return spPr;
}
function createChartSpPr() {
const spPr = new class extends XmlComponent {
constructor() {
super("c:spPr");
}
}();
spPr["root"].push(new class extends XmlComponent {
constructor() {
super("a:noFill");
}
}());
spPr["root"].push(new class extends XmlComponent {
constructor() {
super("a:ln");
this.root.push(new class extends XmlComponent {
constructor() {
super("a:noFill");
}
}());
}
}());
spPr["root"].push(new BuilderElement({ name: "a:effectLst" }));
return spPr;
}
function createChartTxPr() {
const txPr = new class extends XmlComponent {
constructor() {
super("c:txPr");
}
}();
txPr["root"].push(new BuilderElement({ name: "a:bodyPr" }));
txPr["root"].push(new BuilderElement({ name: "a:lstStyle" }));
txPr["root"].push(createTextParagraph());
return txPr;
}
function createTxPr() {
const txPr = new class extends XmlComponent {
constructor() {
super("c:txPr");
}
}();
txPr["root"].push(createBodyPr());
txPr["root"].push(new BuilderElement({ name: "a:lstStyle" }));
txPr["root"].push(createTextParagraph());
return txPr;
}
function createBodyPr() {
return new BuilderElement({
name: "a:bodyPr",
attributes: {
rot: {
key: "rot",
value: "0"
},
spcFirstLastPara: {
key: "spcFirstLastPara",
value: "1"
},
vertOverflow: {
key: "vertOverflow",
value: "ellipsis"
},
vert: {
key: "vert",
value: "horz"
},
wrap: {
key: "wrap",
value: "square"
},
anchor: {
key: "anchor",
value: "ctr"
},
anchorCtr: {
key: "anchorCtr",
value: "1"
}
}
});
}
function createTextParagraph() {
const p = new class extends XmlComponent {
constructor() {
super("a:p");
}
}();
const pPr = new class extends XmlComponent {
constructor() {
super("a:pPr");
}
}();
pPr["root"].push(new BuilderElement({ name: "a:defRPr" }));
p["root"].push(pPr);
p["root"].push(new BuilderElement({
name: "a:endParaRPr",
attributes: { lang: {
key: "lang",
value: "en-US"
} }
}));
return p;
}
var ChartStyle = class extends XmlComponent {
constructor(val) {
super("c:style");
this.root.push(chartAttr({ val: String(val) }));
}
};
//#endregion
//#region src/chart/chart-collection.ts
var ChartCollection = class {
map;
constructor() {
this.map = /* @__PURE__ */ new Map();
}
addChart(key, chartData) {
this.map.set(key, chartData);
}
get array() {
return [...this.map.values()];
}
};
//#endregion
export { ScatterChart as a, BarChart as c, createStrRef as d, CatAx as f, createChartType as i, AreaChart as l, ChartSpace as n, PieChart as o, ValAx as p, ChartTitle as r, LineChart as s, ChartCollection as t, createNumRef as u };
import { b as XmlComponent } from "./index-Borh69Zs.mjs";
//#region src/chart/axes.d.ts
/**
* c:catAx — category axis.
*
* XSD sequence: EG_AxShared (axId, scaling, delete, axPos, ..., crossAx, crosses)
* then: auto, lblAlgn, lblOffset, tickLblSkip, tickMarkSkip, noMultiLvlLbl
*/
declare class CatAx extends XmlComponent {
constructor(axId: number, crossAx: number);
}
/**
* c:valAx — value axis.
*
* XSD sequence: EG_AxShared (axId, scaling, delete, axPos, ..., spPr, ..., crossAx, crosses)
* then: crossBetween, majorUnit, minorUnit, dispUnits
*/
declare class ValAx extends XmlComponent {
constructor(axId: number, crossAx: number);
}
//#endregion
//#region src/chart/chart-types/area-chart.d.ts
interface AreaChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class AreaChart extends XmlComponent {
constructor(options: AreaChartOptions);
}
//#endregion
//#region src/chart/chart-types/bar-chart.d.ts
interface BarChartOptions {
readonly barDirection: "col" | "bar";
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class BarChart extends XmlComponent {
constructor(options: BarChartOptions);
}
//#endregion
//#region src/chart/chart-types/line-chart.d.ts
interface LineChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class LineChart extends XmlComponent {
constructor(options: LineChartOptions);
}
//#endregion
//#region src/chart/chart-types/pie-chart.d.ts
interface PieChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class PieChart extends XmlComponent {
constructor(options: PieChartOptions);
}
//#endregion
//#region src/chart/chart-types/scatter-chart.d.ts
interface ScatterChartOptions {
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
}
declare class ScatterChart extends XmlComponent {
constructor(options: ScatterChartOptions);
}
//#endregion
//#region src/chart/create-chart-type.d.ts
interface ChartSeriesData {
readonly name: string;
readonly values: readonly number[];
}
type ChartType = "column" | "bar" | "line" | "pie" | "area" | "scatter";
interface ChartTypeOptions {
readonly type: ChartType;
readonly series: readonly ChartSeriesData[];
readonly categories: readonly string[];
}
declare const createChartType: (options: ChartTypeOptions) => BarChart | LineChart | PieChart | AreaChart | ScatterChart;
//#endregion
//#region src/chart/chart-space.d.ts
interface ChartSpaceOptions {
readonly title?: string;
readonly type: ChartType;
readonly categories: readonly string[];
readonly series: readonly ChartSeriesData[];
readonly showLegend?: boolean;
readonly style?: number;
}
/**
* c:chartSpace — root element for chart XML parts.
*/
declare class ChartSpace extends XmlComponent {
constructor(options: ChartSpaceOptions);
}
//#endregion
//#region src/chart/chart-collection.d.ts
interface ChartData {
readonly key: string;
readonly chartSpace: XmlComponent;
}
declare class ChartCollection {
private readonly map;
constructor();
addChart(key: string, chartData: ChartData): void;
get array(): readonly ChartData[];
}
//#endregion
//#region src/chart/series/series-data.d.ts
declare const createStrRef: (values: string | readonly string[]) => XmlComponent;
declare const createNumRef: (values: readonly number[]) => XmlComponent;
//#endregion
//#region src/chart/title.d.ts
declare class ChartTitle extends XmlComponent {
constructor(title: string);
}
//#endregion
export { CatAx as _, ChartData as a, ChartSeriesData as c, createChartType as d, ScatterChart as f, AreaChart as g, BarChart as h, ChartCollection as i, ChartType as l, LineChart as m, createNumRef as n, ChartSpace as o, PieChart as p, createStrRef as r, ChartSpaceOptions as s, ChartTitle as t, ChartTypeOptions as u, ValAx as v };