@office-open/core 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,113 +1,2 @@
1
- import { C as XmlComponent } from "../index-mjYQ4KiG.mjs";
2
-
3
- //#region src/chart/axes.d.ts
4
- /**
5
- * c:catAx — category axis.
6
- */
7
- declare class CatAx extends XmlComponent {
8
- constructor(axId: number, crossAx: number);
9
- }
10
- /**
11
- * c:valAx — value axis.
12
- */
13
- declare class ValAx extends XmlComponent {
14
- constructor(axId: number, crossAx: number);
15
- }
16
- //#endregion
17
- //#region src/chart/chart-types/area-chart.d.ts
18
- interface AreaChartOptions {
19
- readonly categories: readonly string[];
20
- readonly series: readonly ChartSeriesData[];
21
- }
22
- declare class AreaChart extends XmlComponent {
23
- constructor(options: AreaChartOptions);
24
- }
25
- //#endregion
26
- //#region src/chart/chart-types/bar-chart.d.ts
27
- interface BarChartOptions {
28
- readonly barDirection: "col" | "bar";
29
- readonly categories: readonly string[];
30
- readonly series: readonly ChartSeriesData[];
31
- }
32
- declare class BarChart extends XmlComponent {
33
- constructor(options: BarChartOptions);
34
- }
35
- //#endregion
36
- //#region src/chart/chart-types/line-chart.d.ts
37
- interface LineChartOptions {
38
- readonly categories: readonly string[];
39
- readonly series: readonly ChartSeriesData[];
40
- }
41
- declare class LineChart extends XmlComponent {
42
- constructor(options: LineChartOptions);
43
- }
44
- //#endregion
45
- //#region src/chart/chart-types/pie-chart.d.ts
46
- interface PieChartOptions {
47
- readonly categories: readonly string[];
48
- readonly series: readonly ChartSeriesData[];
49
- }
50
- declare class PieChart extends XmlComponent {
51
- constructor(options: PieChartOptions);
52
- }
53
- //#endregion
54
- //#region src/chart/chart-types/scatter-chart.d.ts
55
- interface ScatterChartOptions {
56
- readonly categories: readonly string[];
57
- readonly series: readonly ChartSeriesData[];
58
- }
59
- declare class ScatterChart extends XmlComponent {
60
- constructor(options: ScatterChartOptions);
61
- }
62
- //#endregion
63
- //#region src/chart/create-chart-type.d.ts
64
- interface ChartSeriesData {
65
- readonly name: string;
66
- readonly values: readonly number[];
67
- }
68
- type ChartType = "column" | "bar" | "line" | "pie" | "area" | "scatter";
69
- interface ChartTypeOptions {
70
- readonly type: ChartType;
71
- readonly series: readonly ChartSeriesData[];
72
- readonly categories: readonly string[];
73
- }
74
- declare const createChartType: (options: ChartTypeOptions) => BarChart | LineChart | PieChart | AreaChart | ScatterChart;
75
- //#endregion
76
- //#region src/chart/chart-space.d.ts
77
- interface ChartSpaceOptions {
78
- readonly title?: string;
79
- readonly type: ChartType;
80
- readonly categories: readonly string[];
81
- readonly series: readonly ChartSeriesData[];
82
- readonly showLegend?: boolean;
83
- readonly style?: number;
84
- }
85
- /**
86
- * c:chartSpace — root element for chart XML parts.
87
- */
88
- declare class ChartSpace extends XmlComponent {
89
- constructor(options: ChartSpaceOptions);
90
- }
91
- //#endregion
92
- //#region src/chart/chart-collection.d.ts
93
- interface ChartData {
94
- readonly key: string;
95
- readonly chartSpace: XmlComponent;
96
- }
97
- declare class ChartCollection {
98
- private readonly map;
99
- constructor();
100
- addChart(key: string, chartData: ChartData): void;
101
- get array(): readonly ChartData[];
102
- }
103
- //#endregion
104
- //#region src/chart/series/series-data.d.ts
105
- declare const createStrRef: (values: string | readonly string[]) => XmlComponent;
106
- declare const createNumRef: (values: readonly number[]) => XmlComponent;
107
- //#endregion
108
- //#region src/chart/title.d.ts
109
- declare class ChartTitle extends XmlComponent {
110
- constructor(title: string);
111
- }
112
- //#endregion
1
+ 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-DZobntUT.mjs";
113
2
  export { AreaChart, BarChart, CatAx, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, LineChart, PieChart, ScatterChart, ValAx, createChartType, createNumRef, createStrRef };