@office-open/core 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -60
- package/dist/chart/index.d.mts +2 -2
- package/dist/chart/index.mjs +2 -2
- package/dist/chart-DNpai28f.mjs +365 -0
- package/dist/descriptor/index.d.mts +2 -0
- package/dist/descriptor/index.mjs +2 -0
- package/dist/descriptor-DKmR7pw-.mjs +282 -0
- package/dist/drawingml/index.d.mts +2 -2
- package/dist/drawingml/index.mjs +2 -2
- package/dist/index-BI-1SKm5.d.mts +153 -0
- package/dist/{index-Cj2Yf5mk.d.mts → index-DByjp6ug.d.mts} +10 -7
- package/dist/index-DNH2sizc.d.mts +137 -0
- package/dist/{index-C-DvIxek.d.mts → index-RWXzxibP.d.mts} +1420 -1866
- package/dist/{index-D0N5Bw2M.d.mts → index-eu1aFQCm.d.mts} +39 -28
- package/dist/index.d.mts +7 -538
- package/dist/index.mjs +7 -2077
- package/dist/smartart/index.d.mts +2 -2
- package/dist/smartart/index.mjs +2 -2
- package/dist/{smartart-BAhTD2yA.mjs → smartart-DCY-Vdv7.mjs} +120 -204
- package/dist/src-CU2AFKyt.mjs +7413 -0
- package/dist/theme/index.d.mts +2 -2
- package/dist/theme/index.mjs +2 -2
- package/dist/{theme-DmJXjgQs.mjs → theme-CiNzdl-9.mjs} +117 -22
- package/dist/{values.d.mts → util/values.d.mts} +1 -1
- package/dist/{values.mjs → util/values.mjs} +1 -1
- package/dist/{values-zMCu5EoQ.mjs → values-CVIZcTRw.mjs} +2 -2
- package/dist/{values-COjPGYkS.d.mts → values-Dqj8cbcy.d.mts} +1 -1
- package/package.json +12 -7
- package/dist/chart-BtEtdK2K.mjs +0 -1266
- package/dist/drawingml-anlfMLLZ.mjs +0 -7132
- package/dist/index-Bh6s66Up.d.mts +0 -381
- package/dist/index-CoTp4wVf.d.mts +0 -202
- package/dist/xml-components-DEU24Y1T.mjs +0 -322
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { m as CustomDescriptor } from "./index-BI-1SKm5.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/chart/chart-collection.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Chart data and collection for document generation.
|
|
6
|
+
*
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
interface ChartData {
|
|
10
|
+
key: string;
|
|
11
|
+
chartSpaceXml: string;
|
|
12
|
+
}
|
|
13
|
+
declare class ChartCollection {
|
|
14
|
+
private map;
|
|
15
|
+
constructor();
|
|
16
|
+
addChart(key: string, chartData: ChartData): void;
|
|
17
|
+
get array(): ChartData[];
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/chart/types.d.ts
|
|
21
|
+
/**
|
|
22
|
+
* Chart type definitions — interfaces and constants.
|
|
23
|
+
*
|
|
24
|
+
* Class implementations have been removed; all chart XML generation
|
|
25
|
+
* goes through chart-descriptors.ts (stringify/parse path).
|
|
26
|
+
*
|
|
27
|
+
* @module
|
|
28
|
+
*/
|
|
29
|
+
interface BubbleSeriesData {
|
|
30
|
+
readonly name: string;
|
|
31
|
+
readonly xValues: readonly number[];
|
|
32
|
+
readonly yValues: readonly number[];
|
|
33
|
+
readonly bubbleSize: readonly number[];
|
|
34
|
+
}
|
|
35
|
+
declare const TrendlineType: {
|
|
36
|
+
readonly EXP: "exp";
|
|
37
|
+
readonly LINEAR: "linear";
|
|
38
|
+
readonly LOG: "log";
|
|
39
|
+
readonly MOVING_AVG: "movingAvg";
|
|
40
|
+
readonly POLY: "poly";
|
|
41
|
+
readonly POWER: "power";
|
|
42
|
+
};
|
|
43
|
+
type TrendlineType = (typeof TrendlineType)[keyof typeof TrendlineType];
|
|
44
|
+
interface TrendlineOptions {
|
|
45
|
+
readonly type?: TrendlineType;
|
|
46
|
+
readonly name?: string;
|
|
47
|
+
readonly order?: number;
|
|
48
|
+
readonly period?: number;
|
|
49
|
+
readonly forward?: number;
|
|
50
|
+
readonly backward?: number;
|
|
51
|
+
readonly intercept?: number;
|
|
52
|
+
readonly dispRSqr?: boolean;
|
|
53
|
+
readonly dispEq?: boolean;
|
|
54
|
+
}
|
|
55
|
+
declare const ErrorBarDirection: {
|
|
56
|
+
readonly BOTH: "both";
|
|
57
|
+
readonly X: "x";
|
|
58
|
+
readonly Y: "y";
|
|
59
|
+
};
|
|
60
|
+
type ErrorBarDirection = (typeof ErrorBarDirection)[keyof typeof ErrorBarDirection];
|
|
61
|
+
declare const ErrorBarType: {
|
|
62
|
+
readonly BOTH: "both";
|
|
63
|
+
readonly MINUS: "minus";
|
|
64
|
+
readonly PLUS: "plus";
|
|
65
|
+
};
|
|
66
|
+
type ErrorBarType = (typeof ErrorBarType)[keyof typeof ErrorBarType];
|
|
67
|
+
declare const ErrorValueType: {
|
|
68
|
+
readonly CUST: "cust";
|
|
69
|
+
readonly FIXED: "fixedVal";
|
|
70
|
+
readonly PERCENTAGE: "percentage";
|
|
71
|
+
readonly STD_DEV: "stdDev";
|
|
72
|
+
readonly STD_ERR: "stdErr";
|
|
73
|
+
};
|
|
74
|
+
type ErrorValueType = (typeof ErrorValueType)[keyof typeof ErrorValueType];
|
|
75
|
+
interface ErrorBarOptions {
|
|
76
|
+
readonly direction?: ErrorBarDirection;
|
|
77
|
+
readonly barType?: ErrorBarType;
|
|
78
|
+
readonly valueType?: ErrorValueType;
|
|
79
|
+
readonly value?: number;
|
|
80
|
+
}
|
|
81
|
+
declare const DataLabelPosition: {
|
|
82
|
+
readonly BEST_FIT: "bestFit";
|
|
83
|
+
readonly B: "b";
|
|
84
|
+
readonly CTRL: "ctr";
|
|
85
|
+
readonly IN_BASE: "inBase";
|
|
86
|
+
readonly IN_END: "inEnd";
|
|
87
|
+
readonly L: "l";
|
|
88
|
+
readonly OUT_END: "outEnd";
|
|
89
|
+
readonly R: "r";
|
|
90
|
+
readonly T: "t";
|
|
91
|
+
};
|
|
92
|
+
type DataLabelPosition = (typeof DataLabelPosition)[keyof typeof DataLabelPosition];
|
|
93
|
+
interface DataLabelsOptions {
|
|
94
|
+
readonly position?: DataLabelPosition;
|
|
95
|
+
readonly showVal?: boolean;
|
|
96
|
+
readonly showCatName?: boolean;
|
|
97
|
+
readonly showSerName?: boolean;
|
|
98
|
+
readonly showPercent?: boolean;
|
|
99
|
+
readonly showBubbleSize?: boolean;
|
|
100
|
+
readonly showLeaderLines?: boolean;
|
|
101
|
+
}
|
|
102
|
+
interface ChartSeriesData {
|
|
103
|
+
readonly name: string;
|
|
104
|
+
readonly values: readonly number[];
|
|
105
|
+
readonly trendlines?: readonly TrendlineOptions[];
|
|
106
|
+
readonly errorBars?: ErrorBarOptions;
|
|
107
|
+
readonly dataLabels?: DataLabelsOptions;
|
|
108
|
+
}
|
|
109
|
+
type ChartType = "column" | "bar" | "line" | "pie" | "area" | "scatter" | "bubble" | "doughnut" | "radar" | "stock" | "surface";
|
|
110
|
+
type AxisChartType = Exclude<ChartType, "bubble">;
|
|
111
|
+
interface ChartSpaceOptions {
|
|
112
|
+
readonly title?: string;
|
|
113
|
+
readonly type: ChartType;
|
|
114
|
+
readonly categories?: readonly string[];
|
|
115
|
+
readonly series: readonly ChartSeriesData[] | readonly BubbleSeriesData[];
|
|
116
|
+
readonly showLegend?: boolean;
|
|
117
|
+
readonly style?: number;
|
|
118
|
+
readonly threeD?: boolean;
|
|
119
|
+
}
|
|
120
|
+
declare const TimeUnit: {
|
|
121
|
+
readonly DAYS: "days";
|
|
122
|
+
readonly MONTHS: "months";
|
|
123
|
+
readonly YEARS: "years";
|
|
124
|
+
};
|
|
125
|
+
type TimeUnit = (typeof TimeUnit)[keyof typeof TimeUnit];
|
|
126
|
+
interface View3DOptions {
|
|
127
|
+
readonly rotX?: number;
|
|
128
|
+
readonly rotY?: number;
|
|
129
|
+
readonly depthPercent?: number;
|
|
130
|
+
readonly rAngAx?: boolean;
|
|
131
|
+
readonly perspective?: number;
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/chart/chart-descriptors.d.ts
|
|
135
|
+
declare const chartSpaceDesc: CustomDescriptor<ChartSpaceOptions>;
|
|
136
|
+
//#endregion
|
|
137
|
+
export { ChartCollection as _, ChartSpaceOptions as a, DataLabelsOptions as c, ErrorBarType as d, ErrorValueType as f, View3DOptions as g, TrendlineType as h, ChartSeriesData as i, ErrorBarDirection as l, TrendlineOptions as m, AxisChartType as n, ChartType as o, TimeUnit as p, BubbleSeriesData as r, DataLabelPosition as s, chartSpaceDesc as t, ErrorBarOptions as u, ChartData as v };
|