@univerjs-pro/sheets-chart-ui 1.0.0-alpha.8 → 1.0.0-beta.1
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/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +16 -404
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/commands/focused-chart.command.d.ts +1 -1
- package/lib/types/commands/commands/sheet-chart-menu.command.d.ts +4 -1
- package/lib/types/commands/operations/open-chart-panel-operation.d.ts +1 -1
- package/lib/types/config/config.d.ts +1 -1
- package/lib/types/controllers/chart-element-float-menu.controller.d.ts +4 -3
- package/lib/types/controllers/chart-render.controller.d.ts +3 -1
- package/lib/types/controllers/ui.controller.d.ts +6 -8
- package/lib/types/index.d.ts +0 -2
- package/lib/types/locale/en-US.d.ts +51 -351
- package/lib/types/menu/chart-context-menu.d.ts +0 -1
- package/lib/types/services/chart-element-selection.d.ts +4 -6
- package/lib/types/services/chart-image-export-provider.d.ts +15 -0
- package/lib/types/services/chart-render.service.d.ts +10 -10
- package/lib/types/services/sheet-chart-host.d.ts +3 -0
- package/lib/types/services/sheets-chart-ui.service.d.ts +25 -151
- package/lib/types/util.d.ts +7 -4
- package/lib/types/views/chart-edit-panel/ChartEditPanel.d.ts +1 -1
- package/lib/types/views/chart-edit-panel/chart-editor-default-values.d.ts +79 -0
- package/lib/types/views/chart-edit-panel/data-tab-panel/DataTabPanel.d.ts +4 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/StyleTabPanel.d.ts +4 -5
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -20
- package/lib/types/hooks.d.ts +0 -3
- package/lib/types/services/chart-panel-route.d.ts +0 -20
- package/lib/types/views/chart-edit-panel/Options.d.ts +0 -163
- package/lib/types/views/chart-edit-panel/RadarChartOptionsEdit.d.ts +0 -3
- package/lib/types/views/chart-edit-panel/button-switch/ButtonSwitch.d.ts +0 -8
- package/lib/types/views/chart-edit-panel/button-switch/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/data-tab-panel/BubbleDataEdit.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/data-tab-panel/CandlestickDataEdit.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/data-tab-panel/HistogramDataEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/data-tab-panel/TreemapDataEdit.d.ts +0 -12
- package/lib/types/views/chart-edit-panel/data-tab-panel/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/AxisOptionsEdit.d.ts +0 -9
- package/lib/types/views/chart-edit-panel/style-tab-panel/CandlestickStyleEdit.d.ts +0 -3
- package/lib/types/views/chart-edit-panel/style-tab-panel/ChartNumfmtDialog.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/style-tab-panel/DataLabelOptions.d.ts +0 -25
- package/lib/types/views/chart-edit-panel/style-tab-panel/HistogramStyleEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/IndicatorLine.d.ts +0 -16
- package/lib/types/views/chart-edit-panel/style-tab-panel/ParetoLine.d.ts +0 -5
- package/lib/types/views/chart-edit-panel/style-tab-panel/PieChartStyleEdit.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/style-tab-panel/RelationEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/TreemapStyleEdit.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/style-tab-panel/TrendLineEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/WaterfallSeriesEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/WordCloudShapeSelector.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/grid-line-and-tick-options/GridLineAndTickOptions.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/style-tab-panel/grid-line-and-tick-options/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/CombinationChartTypeSelect.d.ts +0 -4
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/DataPointsEdit.d.ts +0 -11
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/RadarPoints.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/SeriesStyleEdit.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/Widgets.d.ts +0 -33
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/const.d.ts +0 -2
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/use-series-chart-type.d.ts +0 -3
|
@@ -3,356 +3,54 @@ declare const locale: {
|
|
|
3
3
|
permission: {
|
|
4
4
|
editErr: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exportImage: string;
|
|
11
|
-
copy: string;
|
|
12
|
-
hideChartPanel: string;
|
|
13
|
-
setupChart: string;
|
|
14
|
-
customChart: string;
|
|
15
|
-
default: string;
|
|
16
|
-
reset: string;
|
|
17
|
-
chartType: string;
|
|
18
|
-
themes: string;
|
|
19
|
-
dataRange: string;
|
|
20
|
-
stack: string;
|
|
21
|
-
category: string;
|
|
22
|
-
aggregate: string;
|
|
23
|
-
allSeries: string;
|
|
24
|
-
series: string;
|
|
25
|
-
addSeries: string;
|
|
26
|
-
moreSettings: string;
|
|
27
|
-
min: string;
|
|
28
|
-
max: string;
|
|
29
|
-
invalidType: {
|
|
30
|
-
gaps: string;
|
|
31
|
-
zero: string;
|
|
32
|
-
connectDataPointsWithStraightLines: string;
|
|
33
|
-
};
|
|
34
|
-
blank: string;
|
|
35
|
-
seriesBlock: {
|
|
36
|
-
format: string;
|
|
37
|
-
dataPointStyle: string;
|
|
38
|
-
};
|
|
39
|
-
backgroundColor: string;
|
|
40
|
-
chartBorderColor: string;
|
|
41
|
-
titles: {
|
|
42
|
-
title: string;
|
|
43
|
-
mainTitle: string;
|
|
44
|
-
subTitle: string;
|
|
45
|
-
xAxisTitle: string;
|
|
46
|
-
yAxisTitle: string;
|
|
47
|
-
rightYAxisTitle: string;
|
|
48
|
-
titleFormat: string;
|
|
49
|
-
titleText: string;
|
|
50
|
-
titlePosition: string;
|
|
51
|
-
titleAlign: string;
|
|
52
|
-
};
|
|
53
|
-
axisPositionType: {
|
|
54
|
-
start: string;
|
|
55
|
-
center: string;
|
|
56
|
-
end: string;
|
|
57
|
-
};
|
|
58
|
-
gradientFill: string;
|
|
59
|
-
settingsLabels: {
|
|
60
|
-
switchToRowOrColumn: string;
|
|
6
|
+
common: {
|
|
7
|
+
setup: string;
|
|
8
|
+
customize: string;
|
|
9
|
+
editChart: string;
|
|
61
10
|
useAsCategoryLabels: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
right: string;
|
|
72
|
-
hide: string;
|
|
73
|
-
};
|
|
74
|
-
align: {
|
|
75
|
-
left: string;
|
|
76
|
-
center: string;
|
|
77
|
-
right: string;
|
|
78
|
-
};
|
|
79
|
-
alignY: {
|
|
80
|
-
top: string;
|
|
81
|
-
middle: string;
|
|
82
|
-
bottom: string;
|
|
83
|
-
};
|
|
84
|
-
chartStyle: string;
|
|
85
|
-
chartAndAxisTitles: string;
|
|
86
|
-
legend: string;
|
|
87
|
-
legendSelectMode: string;
|
|
88
|
-
legendSelectModeType: {
|
|
89
|
-
single: string;
|
|
90
|
-
multiple: string;
|
|
91
|
-
close: string;
|
|
92
|
-
};
|
|
93
|
-
legendVisualMapType: {
|
|
94
|
-
continuous: string;
|
|
95
|
-
piecewise: string;
|
|
96
|
-
};
|
|
97
|
-
axes: {
|
|
98
|
-
axis: string;
|
|
99
|
-
axisOptions: string;
|
|
11
|
+
switchRowColumn: string;
|
|
12
|
+
dataRange: string;
|
|
13
|
+
insertChart: string;
|
|
14
|
+
openChartPanel: string;
|
|
15
|
+
deleteChart: string;
|
|
16
|
+
hideChartPanel: string;
|
|
17
|
+
chartAndAxisTitles: string;
|
|
18
|
+
chartStyle: string;
|
|
19
|
+
heatmap: string;
|
|
100
20
|
horizontalAxis: string;
|
|
101
|
-
|
|
21
|
+
legend: string;
|
|
102
22
|
rightVerticalAxis: string;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
};
|
|
107
|
-
position: string;
|
|
108
|
-
dataLabels: string;
|
|
109
|
-
gridlinesAndTicks: string;
|
|
110
|
-
indicatorLine: string;
|
|
111
|
-
indicatorLineType: string;
|
|
112
|
-
indicatorLineColor: string;
|
|
113
|
-
indicatorLabel: string;
|
|
114
|
-
indicatorValue: string;
|
|
115
|
-
shape: {
|
|
116
|
-
polygon: string;
|
|
117
|
-
circle: string;
|
|
118
|
-
square: string;
|
|
119
|
-
triangle: string;
|
|
120
|
-
diamond: string;
|
|
121
|
-
rect: string;
|
|
122
|
-
roundRect: string;
|
|
123
|
-
pin: string;
|
|
124
|
-
arrow: string;
|
|
125
|
-
none: string;
|
|
126
|
-
emptyCircle: string;
|
|
127
|
-
emptySquare: string;
|
|
128
|
-
emptyTriangle: string;
|
|
129
|
-
emptyDiamond: string;
|
|
130
|
-
emptyRect: string;
|
|
131
|
-
emptyRoundRect: string;
|
|
132
|
-
emptyPin: string;
|
|
133
|
-
emptyArrow: string;
|
|
134
|
-
};
|
|
135
|
-
border: string;
|
|
136
|
-
value: string;
|
|
137
|
-
fill: string;
|
|
138
|
-
line: string;
|
|
139
|
-
withOpacity: string;
|
|
140
|
-
withColor: string;
|
|
141
|
-
withThickness: string;
|
|
142
|
-
withType: string;
|
|
143
|
-
withSize: string;
|
|
144
|
-
withShape: string;
|
|
145
|
-
withFormat: string;
|
|
146
|
-
dataPoint: string;
|
|
147
|
-
dataNodeShape: string;
|
|
148
|
-
addDataPoint: string;
|
|
149
|
-
point: string;
|
|
150
|
-
percentage: string;
|
|
151
|
-
lineType: {
|
|
152
|
-
line: string;
|
|
153
|
-
smooth: string;
|
|
154
|
-
step: string;
|
|
155
|
-
};
|
|
156
|
-
stackType: {
|
|
157
|
-
stack: string;
|
|
158
|
-
percent: string;
|
|
159
|
-
};
|
|
160
|
-
lineDashType: string;
|
|
161
|
-
dashType: {
|
|
162
|
-
solid: string;
|
|
163
|
-
dash: string;
|
|
164
|
-
dot: string;
|
|
165
|
-
};
|
|
166
|
-
color: string;
|
|
167
|
-
gridlines: {
|
|
168
|
-
majorGridlines: string;
|
|
169
|
-
text: string;
|
|
170
|
-
};
|
|
171
|
-
ticks: {
|
|
172
|
-
majorTick: string;
|
|
173
|
-
tickPosition: string;
|
|
174
|
-
tickLength: string;
|
|
175
|
-
};
|
|
176
|
-
none: string;
|
|
177
|
-
theIndexItem: string;
|
|
178
|
-
seriesDefaultName: string;
|
|
179
|
-
categoryDefaultName: string;
|
|
180
|
-
styleEditPanel: {
|
|
181
|
-
showLabels: string;
|
|
182
|
-
showDataLabels: string;
|
|
183
|
-
padAngle: string;
|
|
184
|
-
halfPie: string;
|
|
185
|
-
rosePie: string;
|
|
186
|
-
pieValScale: string;
|
|
187
|
-
pieValSuffix: string;
|
|
188
|
-
pieDigitalFixed: string;
|
|
189
|
-
showLabelLine: string;
|
|
190
|
-
reverseAxisOrder: string;
|
|
191
|
-
showAxisLine: string;
|
|
192
|
-
labelPosition: string;
|
|
193
|
-
labelText: string;
|
|
194
|
-
repeatWordCould: string;
|
|
195
|
-
gap: string;
|
|
196
|
-
useAbsValue: string;
|
|
197
|
-
labelRotate: string;
|
|
198
|
-
wordCloudShape: string;
|
|
199
|
-
useDateAxis: string;
|
|
200
|
-
dateAxisTips: string;
|
|
201
|
-
};
|
|
202
|
-
doughnutHole: string;
|
|
203
|
-
radar: {
|
|
204
|
-
fill: string;
|
|
205
|
-
};
|
|
206
|
-
msg: {
|
|
207
|
-
invalidSource: string;
|
|
208
|
-
emptyTips: string;
|
|
209
|
-
sankeyCircularTips: string;
|
|
210
|
-
};
|
|
211
|
-
cloud: {
|
|
212
|
-
title: string;
|
|
213
|
-
word: string;
|
|
214
|
-
frequency: string;
|
|
215
|
-
};
|
|
216
|
-
trendline: {
|
|
217
|
-
name: string;
|
|
218
|
-
displayName: string;
|
|
219
|
-
addTrendLine: string;
|
|
220
|
-
trendlineType: string;
|
|
221
|
-
trendlineName: string;
|
|
222
|
-
trendlineColor: string;
|
|
223
|
-
trendlineThickness: string;
|
|
224
|
-
trendlineDashType: string;
|
|
225
|
-
exp: string;
|
|
226
|
-
linear: string;
|
|
227
|
-
log: string;
|
|
228
|
-
pow: string;
|
|
229
|
-
movingAvg: string;
|
|
230
|
-
poly: string;
|
|
231
|
-
order: string;
|
|
232
|
-
period: string;
|
|
233
|
-
showFormula: string;
|
|
234
|
-
showR2: string;
|
|
235
|
-
formula: string;
|
|
236
|
-
r2: string;
|
|
237
|
-
};
|
|
238
|
-
bubble: {
|
|
239
|
-
xAxis: string;
|
|
240
|
-
yAxis: string;
|
|
241
|
-
size: string;
|
|
242
|
-
label: string;
|
|
243
|
-
emptyTips: string;
|
|
244
|
-
};
|
|
245
|
-
candlestick: {
|
|
23
|
+
series: string;
|
|
24
|
+
trendline: string;
|
|
25
|
+
verticalAxis: string;
|
|
246
26
|
category: string;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
low: string;
|
|
250
|
-
close: string;
|
|
251
|
-
mappingError: string;
|
|
252
|
-
rising: string;
|
|
253
|
-
falling: string;
|
|
254
|
-
doji: string;
|
|
255
|
-
bodyColor: string;
|
|
256
|
-
fillOpacity: string;
|
|
257
|
-
wickColor: string;
|
|
258
|
-
wickWidth: string;
|
|
259
|
-
wickOpacity: string;
|
|
260
|
-
hollow: string;
|
|
261
|
-
restoreDefault: string;
|
|
262
|
-
candleWidth: string;
|
|
263
|
-
auto: string;
|
|
264
|
-
state: string;
|
|
265
|
-
};
|
|
266
|
-
histogram: {
|
|
267
|
-
value: string;
|
|
268
|
-
binningMode: string;
|
|
269
|
-
auto: string;
|
|
270
|
-
count: string;
|
|
271
|
-
width: string;
|
|
272
|
-
binCount: string;
|
|
273
|
-
binWidth: string;
|
|
274
|
-
underflow: string;
|
|
275
|
-
overflow: string;
|
|
276
|
-
binGap: string;
|
|
277
|
-
};
|
|
278
|
-
treemap: {
|
|
279
|
-
hierarchy: string;
|
|
280
|
-
value: string;
|
|
281
|
-
addHierarchy: string;
|
|
282
|
-
parentLabelLayout: string;
|
|
283
|
-
banner: string;
|
|
284
|
-
overlapping: string;
|
|
285
|
-
none: string;
|
|
286
|
-
leafLabel: string;
|
|
287
|
-
categoryName: string;
|
|
288
|
-
labelContent: string;
|
|
289
|
-
labelFormat: string;
|
|
290
|
-
moveUp: string;
|
|
291
|
-
moveDown: string;
|
|
292
|
-
removeHierarchy: string;
|
|
293
|
-
diagnostic: string;
|
|
294
|
-
};
|
|
295
|
-
relation: {
|
|
296
|
-
title: string;
|
|
297
|
-
auto: string;
|
|
298
|
-
circular: string;
|
|
299
|
-
force: string;
|
|
300
|
-
useValueAsSymbolSize: string;
|
|
301
|
-
layoutType: string;
|
|
302
|
-
forceOptions: string;
|
|
303
|
-
repulsion: string;
|
|
304
|
-
gravity: string;
|
|
305
|
-
edgeLength: string;
|
|
306
|
-
rotateLabel: string;
|
|
307
|
-
emphasis: string;
|
|
308
|
-
emptyTips: string;
|
|
27
|
+
copy: string;
|
|
28
|
+
exportImage: string;
|
|
309
29
|
};
|
|
310
30
|
waterfall: {
|
|
311
|
-
|
|
312
|
-
arrangement: string;
|
|
313
|
-
stacked: string;
|
|
31
|
+
subtotal: string;
|
|
314
32
|
positive: string;
|
|
315
33
|
negative: string;
|
|
316
|
-
subtotal: string;
|
|
317
|
-
showSubtotal: string;
|
|
318
|
-
positiveStyle: string;
|
|
319
|
-
negativeStyle: string;
|
|
320
|
-
subtotalStyle: string;
|
|
321
|
-
positiveLegendText: string;
|
|
322
|
-
negativeLegendText: string;
|
|
323
|
-
subtotalLegendText: string;
|
|
324
|
-
};
|
|
325
|
-
pareto: {
|
|
326
|
-
lineName: string;
|
|
327
|
-
lineSeries: string;
|
|
328
|
-
barSeries: string;
|
|
329
|
-
};
|
|
330
|
-
visualMapScope: string;
|
|
331
|
-
boxplot: {
|
|
332
|
-
min: string;
|
|
333
|
-
q1: string;
|
|
334
|
-
median: string;
|
|
335
|
-
q3: string;
|
|
336
|
-
max: string;
|
|
337
34
|
};
|
|
338
35
|
chartTypes: {
|
|
339
36
|
line: string;
|
|
340
|
-
area: string;
|
|
341
|
-
areaStacked: string;
|
|
342
|
-
areaPercentStacked: string;
|
|
343
37
|
column: string;
|
|
344
38
|
bar: string;
|
|
345
39
|
barStacked: string;
|
|
346
40
|
barPercentStacked: string;
|
|
347
41
|
pie: string;
|
|
348
42
|
donut: string;
|
|
349
|
-
|
|
43
|
+
pieOfPie: string;
|
|
44
|
+
barOfPie: string;
|
|
45
|
+
area: string;
|
|
46
|
+
areaStacked: string;
|
|
47
|
+
areaPercentStacked: string;
|
|
350
48
|
radar: string;
|
|
351
|
-
|
|
352
|
-
stock: string;
|
|
49
|
+
scatter: string;
|
|
353
50
|
combination: string;
|
|
354
51
|
wordCloud: string;
|
|
355
52
|
funnel: string;
|
|
53
|
+
bubble: string;
|
|
356
54
|
relation: string;
|
|
357
55
|
waterfall: string;
|
|
358
56
|
pareto: string;
|
|
@@ -362,29 +60,31 @@ declare const locale: {
|
|
|
362
60
|
candlestick: string;
|
|
363
61
|
histogram: string;
|
|
364
62
|
treemap: string;
|
|
63
|
+
sunburst: string;
|
|
64
|
+
gauge: string;
|
|
65
|
+
chord: string;
|
|
66
|
+
};
|
|
67
|
+
section: {
|
|
68
|
+
candlestick: string;
|
|
69
|
+
chord: string;
|
|
70
|
+
funnel: string;
|
|
71
|
+
gauge: string;
|
|
72
|
+
gridlinesAndTicks: string;
|
|
73
|
+
histogram: string;
|
|
74
|
+
indicatorLine: string;
|
|
75
|
+
lineAndArea: string;
|
|
76
|
+
paretoBar: string;
|
|
77
|
+
paretoLine: string;
|
|
78
|
+
pie: string;
|
|
79
|
+
radar: string;
|
|
80
|
+
relation: string;
|
|
81
|
+
sunburst: string;
|
|
82
|
+
treemap: string;
|
|
83
|
+
waterfall: string;
|
|
84
|
+
wordCloud: string;
|
|
365
85
|
};
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
general: string;
|
|
369
|
-
accounting: string;
|
|
370
|
-
currency: string;
|
|
371
|
-
date: string;
|
|
372
|
-
thousandthPercentile: string;
|
|
373
|
-
fieldSetting: string;
|
|
374
|
-
formatTypes: string;
|
|
375
|
-
confirm: string;
|
|
376
|
-
cancel: string;
|
|
377
|
-
generalDesc: string;
|
|
378
|
-
accountingDesc: string;
|
|
379
|
-
currencyDesc: string;
|
|
380
|
-
dateDesc: string;
|
|
381
|
-
thousandthPercentileDesc: string;
|
|
382
|
-
decimalPlaces: string;
|
|
383
|
-
currencyTypes: string;
|
|
384
|
-
negativeNumberTypes: string;
|
|
385
|
-
dateTypes: string;
|
|
386
|
-
};
|
|
387
|
-
setFormat: string;
|
|
86
|
+
chord: {
|
|
87
|
+
target: string;
|
|
388
88
|
};
|
|
389
89
|
};
|
|
390
90
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IAccessor } from '@univerjs/core';
|
|
2
2
|
import type { IMenuButtonItem } from '@univerjs/ui';
|
|
3
|
-
export declare const SHEETS_CHART_CONTEXT_MENU_POSITION = "SHEETS_CHART_CONTEXT_MENU";
|
|
4
3
|
export declare function ChartEditContextMenuFactory(accessor: IAccessor): IMenuButtonItem;
|
|
5
4
|
export declare function ChartCopyContextMenuFactory(accessor: IAccessor): IMenuButtonItem;
|
|
6
5
|
export declare function ChartExportImageContextMenuFactory(accessor: IAccessor): IMenuButtonItem;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IChartElementSelection } from '@univerjs-pro/chart-ui';
|
|
2
2
|
import type { ChartModel, IChartElementHit } from '@univerjs-pro/engine-chart';
|
|
3
|
-
import
|
|
3
|
+
import { resolveChartEditPanelRoute } from '@univerjs-pro/chart-ui';
|
|
4
4
|
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
5
|
-
export interface ISheetsChartElementSelection {
|
|
6
|
-
|
|
7
|
-
route: IChartEditPanelRoute;
|
|
8
|
-
showFloatMenu: boolean;
|
|
5
|
+
export interface ISheetsChartElementSelection extends IChartElementSelection {
|
|
6
|
+
route: NonNullable<ReturnType<typeof resolveChartEditPanelRoute>>;
|
|
9
7
|
}
|
|
10
8
|
export declare function supportsSheetsChartElementFloatMenu(chartType: ChartTypeBits): boolean;
|
|
11
9
|
export declare function resolveSheetsChartElementSelection(chartModel: ChartModel, hit: IChartElementHit): ISheetsChartElementSelection | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IChartImageExportProvider, IChartImageExportTarget } from '@univerjs-pro/chart-ui';
|
|
2
|
+
import { ChartImageExportService } from '@univerjs-pro/chart-ui';
|
|
3
|
+
import { Disposable } from '@univerjs/core';
|
|
4
|
+
import { ChartRenderService } from './chart-render.service';
|
|
5
|
+
interface ISheetChartImageExportTarget extends IChartImageExportTarget {
|
|
6
|
+
readonly unitId: string;
|
|
7
|
+
readonly subUnitId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class SheetChartImageExportProvider extends Disposable implements IChartImageExportProvider {
|
|
10
|
+
private readonly _renderService;
|
|
11
|
+
constructor(imageExportService: ChartImageExportService, _renderService: ChartRenderService);
|
|
12
|
+
supports(chart: IChartImageExportTarget): chart is ISheetChartImageExportTarget;
|
|
13
|
+
exportImage(chart: IChartImageExportTarget): Promise<string | undefined>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartDirection, ChartElementEventHandler, ChartElementEventType, ChartImageSource, ChartStyle, IChartConfig
|
|
1
|
+
import type { ChartDirection, ChartElementEventHandler, ChartElementEventType, ChartImageSource, ChartRuntimeStyle, ChartStyle, IChartConfig } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { IDisposable } from '@univerjs/core';
|
|
3
3
|
import type { Scene } from '@univerjs/engine-render';
|
|
4
4
|
import { ChartThemeService, IChartRenderModelManagerService } from '@univerjs-pro/engine-chart';
|
|
@@ -9,13 +9,14 @@ import { IRenderManagerService } from '@univerjs/engine-render';
|
|
|
9
9
|
import { SheetCanvasFloatDomManagerService } from '@univerjs/sheets-drawing-ui';
|
|
10
10
|
import { ChartSnapshotStoreService } from './chart-snapshot-store.service';
|
|
11
11
|
import { IChartHostProviderService } from './sheets-chart-host-provider.service';
|
|
12
|
+
import { ISheetsChartUIService } from './sheets-chart-ui.service';
|
|
12
13
|
interface IRuntimeChartModel {
|
|
13
14
|
id?: string;
|
|
14
15
|
chartType?: IChartConfig['type'];
|
|
15
16
|
style: ChartStyle;
|
|
16
|
-
getRuntimeContext(direction?: ChartDirection):
|
|
17
|
+
getRuntimeContext(direction?: ChartDirection): ChartRuntimeStyle['runtime'];
|
|
17
18
|
}
|
|
18
|
-
export declare function createRuntimeChartStyle(chartModel: IRuntimeChartModel, direction: ChartDirection):
|
|
19
|
+
export declare function createRuntimeChartStyle(chartModel: IRuntimeChartModel, direction: ChartDirection, addWatermark?: boolean): ChartRuntimeStyle;
|
|
19
20
|
export declare class ChartRenderService extends Disposable {
|
|
20
21
|
private _chartHostProvider;
|
|
21
22
|
private readonly _sheetCanvasFloatDomManagerService;
|
|
@@ -24,26 +25,25 @@ export declare class ChartRenderService extends Disposable {
|
|
|
24
25
|
private _univerInstanceService;
|
|
25
26
|
private _renderManagerService;
|
|
26
27
|
private readonly _localeService;
|
|
28
|
+
private readonly _chartUIService;
|
|
27
29
|
protected readonly _injector: Injector;
|
|
28
30
|
private readonly _chartThemeService;
|
|
29
31
|
private readonly _themeService;
|
|
30
32
|
private readonly _configService;
|
|
31
33
|
private readonly _chartSnapshotStoreService;
|
|
34
|
+
private readonly _renderModelManager;
|
|
32
35
|
private _chartInstanceMap;
|
|
33
36
|
private _chartEventHandlers;
|
|
34
37
|
private _chartEventSubscriptions;
|
|
35
38
|
private _chartElementEditMode;
|
|
36
|
-
private readonly _renderModelManager;
|
|
37
39
|
private _renderDebounceMap;
|
|
38
40
|
private _debounceHandleMap;
|
|
39
41
|
private readonly _chartRenderMode;
|
|
42
|
+
private readonly _addWatermark;
|
|
40
43
|
private readonly _lastRenderInputMap;
|
|
41
44
|
private _activeChartId;
|
|
42
45
|
private _lastActiveSheet;
|
|
43
|
-
constructor(_chartHostProvider: IChartHostProviderService, _sheetCanvasFloatDomManagerService: SheetCanvasFloatDomManagerService, _chartModelService: ChartModelService, _drawingManagerService: IDrawingManagerService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _localeService: LocaleService, _injector: Injector, _chartThemeService: ChartThemeService, _themeService: ThemeService, _configService: IConfigService, _chartSnapshotStoreService: ChartSnapshotStoreService,
|
|
44
|
-
private _getWatermark;
|
|
45
|
-
registerRenderModel(name: string, renderModel: IChartRenderModel): void;
|
|
46
|
-
setRenderModel(name: string): void;
|
|
46
|
+
constructor(_chartHostProvider: IChartHostProviderService, _sheetCanvasFloatDomManagerService: SheetCanvasFloatDomManagerService, _chartModelService: ChartModelService, _drawingManagerService: IDrawingManagerService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _localeService: LocaleService, _chartUIService: ISheetsChartUIService, _injector: Injector, _chartThemeService: ChartThemeService, _themeService: ThemeService, _configService: IConfigService, _chartSnapshotStoreService: ChartSnapshotStoreService, _renderModelManager: IChartRenderModelManagerService);
|
|
47
47
|
getChartSnapshotImage(id: string): ChartImageSource | undefined;
|
|
48
48
|
private _resolveChartRenderMode;
|
|
49
49
|
private _getChartSnapshotKey;
|
|
@@ -75,10 +75,10 @@ export declare class ChartRenderService extends Disposable {
|
|
|
75
75
|
private _bindChartEventHandler;
|
|
76
76
|
private _disposeChartEventSubscription;
|
|
77
77
|
private _disposeChartEventSubscriptions;
|
|
78
|
-
|
|
78
|
+
createRuntimeChartStyle(chartModel: IRuntimeChartModel, direction: ChartDirection): ChartRuntimeStyle;
|
|
79
79
|
checkChartCanRender(id: string): boolean;
|
|
80
80
|
private _getChartRenderSkipReason;
|
|
81
|
-
render(id: string, config: IChartConfig, style:
|
|
81
|
+
render(id: string, config: IChartConfig, style: ChartRuntimeStyle): Promise<void>;
|
|
82
82
|
/** Render static chart snapshots into the print scene so drawing z-order is preserved. */
|
|
83
83
|
renderChartsForPrinting(unitId: string, subUnitId: string, scene: Scene): Promise<void>;
|
|
84
84
|
private _createPrintingChartObject;
|
|
@@ -31,6 +31,7 @@ export declare class SheetChartHost extends Disposable implements IDomChartHost
|
|
|
31
31
|
private _waiter;
|
|
32
32
|
private _hostStyle;
|
|
33
33
|
private _savedWrapperStyle;
|
|
34
|
+
private _drawingGeometry;
|
|
34
35
|
constructor(chartId: string, _getFloatDomInfo: () => ReturnType<SheetCanvasFloatDomManagerService['getFloatDomInfo']>, _getPlacement: () => ISheetChartHostPlacement | null, _setHostStyle: (style: IChartHostStyle) => void, _isProviderDisposed: () => boolean, _markReady: () => void, _markNotReady: () => void);
|
|
35
36
|
isManaged(): boolean;
|
|
36
37
|
markUnmanaged(): void;
|
|
@@ -46,6 +47,8 @@ export declare class SheetChartHost extends Disposable implements IDomChartHost
|
|
|
46
47
|
private _createHost;
|
|
47
48
|
private _cancelHostWait;
|
|
48
49
|
private _applyHostStyle;
|
|
50
|
+
private _syncLayoutOnDrawingTransform;
|
|
51
|
+
private _getDrawingGeometry;
|
|
49
52
|
private _resolveLayout;
|
|
50
53
|
private _frameStyle;
|
|
51
54
|
private _activateHostWrapper;
|