@office-open/core 0.7.1 → 0.8.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 +20 -11
- package/dist/chart/index.d.mts +2 -2
- package/dist/chart/index.mjs +2 -2
- package/dist/{chart-ChqlyVeb.mjs → chart-BtEtdK2K.mjs} +175 -6
- package/dist/drawingml/index.d.mts +2 -2
- package/dist/drawingml/index.mjs +2 -2
- package/dist/{drawingml-DQlhouyh.mjs → drawingml-anlfMLLZ.mjs} +2977 -2
- package/dist/{index-C4Wm3RBo.d.mts → index-Bh6s66Up.d.mts} +163 -2
- package/dist/{index-C0lMGS9A.d.mts → index-C-DvIxek.d.mts} +1635 -2
- package/dist/index-Cj2Yf5mk.d.mts +52 -0
- package/dist/{index-Borh69Zs.d.mts → index-CoTp4wVf.d.mts} +1 -17
- package/dist/{index-f_Izh2dj.d.mts → index-D0N5Bw2M.d.mts} +44 -6
- package/dist/index.d.mts +40 -12
- package/dist/index.mjs +66 -18
- package/dist/smartart/index.d.mts +2 -2
- package/dist/smartart/index.mjs +1 -1
- package/dist/{smartart-Cx1qa6k_.mjs → smartart-BAhTD2yA.mjs} +63 -8
- package/dist/theme/index.d.mts +2 -0
- package/dist/theme/index.mjs +2 -0
- package/dist/theme-DmJXjgQs.mjs +80 -0
- package/dist/{xml-components-xJkfJ6ff.mjs → xml-components-DEU24Y1T.mjs} +1 -32
- package/package.json +11 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as XmlComponent } from "./index-
|
|
1
|
+
import { b as XmlComponent } from "./index-CoTp4wVf.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/chart/axes.d.ts
|
|
4
4
|
/**
|
|
@@ -37,10 +37,171 @@ declare class BubbleChart extends XmlComponent {
|
|
|
37
37
|
constructor(options: BubbleChartOptions$1);
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
|
+
//#region src/chart/extensions.d.ts
|
|
41
|
+
declare const TrendlineType: {
|
|
42
|
+
readonly EXP: "exp";
|
|
43
|
+
readonly LINEAR: "linear";
|
|
44
|
+
readonly LOG: "log";
|
|
45
|
+
readonly MOVING_AVG: "movingAvg";
|
|
46
|
+
readonly POLY: "poly";
|
|
47
|
+
readonly POWER: "power";
|
|
48
|
+
};
|
|
49
|
+
type TrendlineType = (typeof TrendlineType)[keyof typeof TrendlineType];
|
|
50
|
+
interface TrendlineOptions {
|
|
51
|
+
/** Trendline type (default: "linear") */
|
|
52
|
+
readonly type?: TrendlineType;
|
|
53
|
+
/** Custom name for the trendline */
|
|
54
|
+
readonly name?: string;
|
|
55
|
+
/** Order for polynomial trendlines (default: 2) */
|
|
56
|
+
readonly order?: number;
|
|
57
|
+
/** Period for moving average trendlines (default: 2) */
|
|
58
|
+
readonly period?: number;
|
|
59
|
+
/** Forward forecast periods */
|
|
60
|
+
readonly forward?: number;
|
|
61
|
+
/** Backward forecast periods */
|
|
62
|
+
readonly backward?: number;
|
|
63
|
+
/** Intercept value */
|
|
64
|
+
readonly intercept?: number;
|
|
65
|
+
/** Display R-squared value */
|
|
66
|
+
readonly dispRSqr?: boolean;
|
|
67
|
+
/** Display equation */
|
|
68
|
+
readonly dispEq?: boolean;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* c:trendline — a trendline on a chart series.
|
|
72
|
+
*
|
|
73
|
+
* XSD: CT_Trendline (dml-chart.xsd)
|
|
74
|
+
*/
|
|
75
|
+
declare class Trendline extends XmlComponent {
|
|
76
|
+
constructor(options: TrendlineOptions);
|
|
77
|
+
}
|
|
78
|
+
declare const ErrorBarDirection: {
|
|
79
|
+
readonly BOTH: "both";
|
|
80
|
+
readonly X: "x";
|
|
81
|
+
readonly Y: "y";
|
|
82
|
+
};
|
|
83
|
+
type ErrorBarDirection = (typeof ErrorBarDirection)[keyof typeof ErrorBarDirection];
|
|
84
|
+
declare const ErrorBarType: {
|
|
85
|
+
readonly BOTH: "both";
|
|
86
|
+
readonly MINUS: "minus";
|
|
87
|
+
readonly PLUS: "plus";
|
|
88
|
+
};
|
|
89
|
+
type ErrorBarType = (typeof ErrorBarType)[keyof typeof ErrorBarType];
|
|
90
|
+
declare const ErrorValueType: {
|
|
91
|
+
readonly CUST: "cust";
|
|
92
|
+
readonly FIXED: "fixedVal";
|
|
93
|
+
readonly PERCENTAGE: "percentage";
|
|
94
|
+
readonly STD_DEV: "stdDev";
|
|
95
|
+
readonly STD_ERR: "stdErr";
|
|
96
|
+
};
|
|
97
|
+
type ErrorValueType = (typeof ErrorValueType)[keyof typeof ErrorValueType];
|
|
98
|
+
interface ErrorBarOptions {
|
|
99
|
+
/** Error bar direction (default: "y") */
|
|
100
|
+
readonly direction?: ErrorBarDirection;
|
|
101
|
+
/** Error bar type — both/minus/plus (required) */
|
|
102
|
+
readonly barType?: ErrorBarType;
|
|
103
|
+
/** Error value type (default: "stdErr") */
|
|
104
|
+
readonly valueType?: ErrorValueType;
|
|
105
|
+
/** Error value (for fixed/percentage/stdDev/stdErr) */
|
|
106
|
+
readonly value?: number;
|
|
107
|
+
/** No end cap */
|
|
108
|
+
readonly noEndCap?: boolean;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* c:errBars — error bars on a chart series.
|
|
112
|
+
*
|
|
113
|
+
* XSD: CT_ErrBars (dml-chart.xsd)
|
|
114
|
+
*/
|
|
115
|
+
declare class ErrorBars extends XmlComponent {
|
|
116
|
+
constructor(options: ErrorBarOptions);
|
|
117
|
+
}
|
|
118
|
+
declare const DataLabelPosition: {
|
|
119
|
+
readonly BEST_FIT: "bestFit";
|
|
120
|
+
readonly BOTTOM: "b";
|
|
121
|
+
readonly CENTER: "ctr";
|
|
122
|
+
readonly IN_BASE: "inBase";
|
|
123
|
+
readonly IN_END: "inEnd";
|
|
124
|
+
readonly LEFT: "l";
|
|
125
|
+
readonly OUT_END: "outEnd";
|
|
126
|
+
readonly RIGHT: "r";
|
|
127
|
+
readonly TOP: "t";
|
|
128
|
+
};
|
|
129
|
+
type DataLabelPosition = (typeof DataLabelPosition)[keyof typeof DataLabelPosition];
|
|
130
|
+
interface DataLabelsOptions {
|
|
131
|
+
/** Data label position */
|
|
132
|
+
readonly position?: DataLabelPosition;
|
|
133
|
+
/** Show value */
|
|
134
|
+
readonly showVal?: boolean;
|
|
135
|
+
/** Show category name */
|
|
136
|
+
readonly showCatName?: boolean;
|
|
137
|
+
/** Show series name */
|
|
138
|
+
readonly showSerName?: boolean;
|
|
139
|
+
/** Show percentage */
|
|
140
|
+
readonly showPercent?: boolean;
|
|
141
|
+
/** Show legend key */
|
|
142
|
+
readonly showLegendKey?: boolean;
|
|
143
|
+
/** Show bubble size */
|
|
144
|
+
readonly showBubbleSize?: boolean;
|
|
145
|
+
/** Separator character */
|
|
146
|
+
readonly separator?: string;
|
|
147
|
+
/** Number format */
|
|
148
|
+
readonly numFmt?: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* c:dLbls — data labels settings for a chart series.
|
|
152
|
+
*
|
|
153
|
+
* Implements EG_DLblShared group from dml-chart.xsd.
|
|
154
|
+
*/
|
|
155
|
+
declare class DataLabels extends XmlComponent {
|
|
156
|
+
constructor(options: DataLabelsOptions);
|
|
157
|
+
}
|
|
158
|
+
declare const TimeUnit: {
|
|
159
|
+
readonly DAYS: "days";
|
|
160
|
+
readonly MONTHS: "months";
|
|
161
|
+
readonly YEARS: "years";
|
|
162
|
+
};
|
|
163
|
+
type TimeUnit = (typeof TimeUnit)[keyof typeof TimeUnit];
|
|
164
|
+
/**
|
|
165
|
+
* c:dateAx — date axis for time-series data.
|
|
166
|
+
*
|
|
167
|
+
* XSD: CT_DateAx (dml-chart.xsd)
|
|
168
|
+
*/
|
|
169
|
+
declare class DateAx extends XmlComponent {
|
|
170
|
+
constructor(axId: number, crossAx: number);
|
|
171
|
+
}
|
|
172
|
+
interface View3DOptions {
|
|
173
|
+
/** X rotation in degrees (-90 to 90, default: 30) */
|
|
174
|
+
readonly rotX?: number;
|
|
175
|
+
/** Y rotation in degrees (0 to 360, default: 0) */
|
|
176
|
+
readonly rotY?: number;
|
|
177
|
+
/** Height percentage (5 to 500) */
|
|
178
|
+
readonly heightPercent?: number;
|
|
179
|
+
/** Depth percentage (20 to 2000, default: 100) */
|
|
180
|
+
readonly depthPercent?: number;
|
|
181
|
+
/** Right angle axes */
|
|
182
|
+
readonly rightAngleAxes?: boolean;
|
|
183
|
+
/** Perspective (0 to 240) */
|
|
184
|
+
readonly perspective?: number;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* c:view3D — 3D view properties for 3D charts.
|
|
188
|
+
*
|
|
189
|
+
* XSD: CT_View3D (dml-chart.xsd)
|
|
190
|
+
*/
|
|
191
|
+
declare class View3D extends XmlComponent {
|
|
192
|
+
constructor(options?: View3DOptions);
|
|
193
|
+
}
|
|
194
|
+
//#endregion
|
|
40
195
|
//#region src/chart/create-chart-type.d.ts
|
|
41
196
|
interface ChartSeriesData {
|
|
42
197
|
readonly name: string;
|
|
43
198
|
readonly values: readonly number[];
|
|
199
|
+
/** Trendlines for this series */
|
|
200
|
+
readonly trendlines?: readonly TrendlineOptions[];
|
|
201
|
+
/** Error bars for this series */
|
|
202
|
+
readonly errorBars?: ErrorBarOptions;
|
|
203
|
+
/** Data labels for this series */
|
|
204
|
+
readonly dataLabels?: DataLabelsOptions;
|
|
44
205
|
}
|
|
45
206
|
type ChartType = "column" | "bar" | "line" | "pie" | "area" | "scatter" | "bubble" | "doughnut" | "radar" | "stock" | "surface";
|
|
46
207
|
type AxisChartType = Exclude<ChartType, "bubble">;
|
|
@@ -217,4 +378,4 @@ declare class SurfaceChart extends XmlComponent {
|
|
|
217
378
|
constructor(options: SurfaceChartOptions);
|
|
218
379
|
}
|
|
219
380
|
//#endregion
|
|
220
|
-
export {
|
|
381
|
+
export { DataLabelsOptions as A, TrendlineType as B, BubbleChartOptions as C, createChartType as D, ChartTypeOptions as E, ErrorBars as F, CatAx as G, View3DOptions as H, ErrorValueType as I, SerAx as K, TimeUnit as L, ErrorBarDirection as M, ErrorBarOptions as N, DataLabelPosition as O, ErrorBarType as P, Trendline as R, AxisChartType as S, ChartType as T, BubbleChart as U, View3D as V, BubbleSeriesData as W, 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, DateAx as j, DataLabels as k, DoughnutChart as l, ChartTitle as m, StockChart as n, PieChart as o, AreaChart as p, ValAx as q, ScatterChart as r, Line3DChart as s, SurfaceChart as t, Bar3DChart as u, ChartData as v, ChartSeriesData as w, AllChartTypeOptions as x, ChartSpace as y, TrendlineOptions as z };
|