@univerjs-pro/boards-chart-ui 1.0.0-alpha.8 → 1.0.0-beta.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 +1 -1
- 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 +9 -85
- 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/common/BoardChartTypeOptions.d.ts +133 -8
- package/lib/types/components/BoardChartEditPanel.d.ts +86 -4
- package/lib/types/components/BoardChartInsertPanel.d.ts +3 -4
- package/lib/types/controllers/board-chart-element-float-menu.controller.d.ts +5 -3
- package/lib/types/controllers/board-chart-panel.controller.d.ts +3 -1
- package/lib/types/index.d.ts +3 -5
- package/lib/types/locale/en-US.d.ts +94 -228
- package/lib/types/services/board-chart-clipboard-adapter.d.ts +3 -3
- package/lib/types/services/board-chart-data-edit.service.d.ts +3 -4
- package/lib/types/services/board-chart-edit-session.service.d.ts +3 -0
- package/lib/types/services/board-chart-host.d.ts +2 -14
- package/lib/types/services/board-chart-render.service.d.ts +7 -12
- package/lib/types/services/board-chart-snapshot-render.service.d.ts +9 -53
- package/lib/types/services/board-chart-ui.service.d.ts +18 -122
- 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 +14 -14
- package/lib/types/hooks.d.ts +0 -3
- package/lib/types/services/board-chart-element-selection.d.ts +0 -7
|
@@ -5,17 +5,19 @@ import { IBoardSidePanelService } from '@univerjs-pro/boards-ui';
|
|
|
5
5
|
import { Disposable, LocaleService } from '@univerjs/core';
|
|
6
6
|
import { BoardChartEditSessionService } from '../services/board-chart-edit-session.service';
|
|
7
7
|
import { BoardChartRenderService } from '../services/board-chart-render.service';
|
|
8
|
+
import { IBoardChartUIService } from '../services/board-chart-ui.service';
|
|
8
9
|
export declare class BoardChartPanelController extends Disposable implements IRenderModule {
|
|
9
10
|
private readonly _renderContext;
|
|
10
11
|
private readonly _editSessionService;
|
|
11
12
|
private readonly _sidePanelService;
|
|
12
13
|
private readonly _modelService;
|
|
13
14
|
private readonly _renderService;
|
|
15
|
+
private readonly _chartUIService;
|
|
14
16
|
private readonly _localeService;
|
|
15
17
|
private _activePanelKey;
|
|
16
18
|
private _activePanelDisposable;
|
|
17
19
|
private _activeEditOverlay;
|
|
18
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _editSessionService: BoardChartEditSessionService, _sidePanelService: IBoardSidePanelService, _modelService: BoardChartModelService, _renderService: BoardChartRenderService, _localeService: LocaleService);
|
|
20
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _editSessionService: BoardChartEditSessionService, _sidePanelService: IBoardSidePanelService, _modelService: BoardChartModelService, _renderService: BoardChartRenderService, _chartUIService: IBoardChartUIService, _localeService: LocaleService);
|
|
19
21
|
dispose(): void;
|
|
20
22
|
private _syncPanel;
|
|
21
23
|
private _closeActivePanel;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export { BoardChartOpenEditController } from './controllers/board-chart-open-edi
|
|
|
6
6
|
export { BoardChartPanelController } from './controllers/board-chart-panel.controller';
|
|
7
7
|
export { BoardChartSelectionController } from './controllers/board-chart-selection.controller';
|
|
8
8
|
export { BoardChartSnapshotRefreshController } from './controllers/board-chart-snapshot-refresh.controller';
|
|
9
|
-
export { useBoardChartConfigState } from './hooks';
|
|
10
9
|
export { BOARDS_CHART_UI_PLUGIN_NAME, enableChartTool, UniverBoardsChartUIPlugin } from './plugin';
|
|
11
10
|
export { BoardChartRenderAdapter } from './render-adapters/board-chart-render-adapter';
|
|
12
11
|
export { BoardChartClipboardAdapter } from './services/board-chart-clipboard-adapter';
|
|
@@ -14,10 +13,9 @@ export { BoardChartDataEditService } from './services/board-chart-data-edit.serv
|
|
|
14
13
|
export type { IBoardChartDataEditState, IBoardChartUpdateDataOptions } from './services/board-chart-data-edit.service';
|
|
15
14
|
export { BoardChartEditSessionService } from './services/board-chart-edit-session.service';
|
|
16
15
|
export type { BoardChartEditSessionCloseReason, BoardChartEditSessionSource, IBoardChartEditSession, IBoardChartEditSessionOpenParams, } from './services/board-chart-edit-session.service';
|
|
17
|
-
export { BoardDomChartHost
|
|
18
|
-
export { BoardChartRenderService
|
|
16
|
+
export { BoardDomChartHost } from './services/board-chart-host';
|
|
17
|
+
export { BoardChartRenderService } from './services/board-chart-render.service';
|
|
19
18
|
export type { IBoardChartRenderInput, IBoardChartRenderSpecResult, } from './services/board-chart-render.service';
|
|
20
19
|
export { BOARD_CHART_SNAPSHOT_BORDER_WIDTH, BoardChartSnapshotRenderService, IBoardChartSnapshotRendererService, resolveBoardChartSnapshotStyle, } from './services/board-chart-snapshot-render.service';
|
|
21
|
-
export type {
|
|
20
|
+
export type { IBoardChartSnapshotRequest, } from './services/board-chart-snapshot-render.service';
|
|
22
21
|
export { BoardChartUIService, IBoardChartUIService } from './services/board-chart-ui.service';
|
|
23
|
-
export type { BoardChartConfigStateKey, BoardChartConfigStateValue, IBoardChartConfigState, IBoardChartConfigStateMap, IBoardChartOption, InferBoardChartConfigStateValue, } from './services/board-chart-ui.service';
|
|
@@ -1,240 +1,37 @@
|
|
|
1
1
|
declare const locale: {
|
|
2
2
|
'boards-chart-ui': {
|
|
3
|
-
editChart: string;
|
|
4
|
-
deleteChart: string;
|
|
5
|
-
setupChart: string;
|
|
6
|
-
customizeChart: string;
|
|
7
|
-
data: string;
|
|
8
|
-
editData: string;
|
|
9
|
-
insertChartFailed: string;
|
|
10
|
-
insert: string;
|
|
11
|
-
chartType: string;
|
|
12
|
-
themes: string;
|
|
13
|
-
gradientFill: string;
|
|
14
|
-
stack: string;
|
|
15
|
-
category: string;
|
|
16
|
-
series: string;
|
|
17
|
-
addSeries: string;
|
|
18
|
-
removeSeries: string;
|
|
19
|
-
switchRowColumn: string;
|
|
20
|
-
waterfall: string;
|
|
21
|
-
useSubtotal: string;
|
|
22
|
-
chartStyle: string;
|
|
23
|
-
chartAndAxisTitles: string;
|
|
24
|
-
legend: string;
|
|
25
|
-
horizontalAxis: string;
|
|
26
|
-
verticalAxis: string;
|
|
27
|
-
rightVerticalAxis: string;
|
|
28
|
-
gridlinesAndTicks: string;
|
|
29
|
-
indicatorLine: string;
|
|
30
|
-
trendline: string;
|
|
31
|
-
paretoBarSeries: string;
|
|
32
|
-
paretoLineSeries: string;
|
|
33
|
-
pie: string;
|
|
34
|
-
wordCloud: string;
|
|
35
|
-
radar: string;
|
|
36
|
-
funnel: string;
|
|
37
|
-
heatmap: string;
|
|
38
|
-
relation: string;
|
|
39
|
-
lineAndArea: string;
|
|
40
|
-
bubbleData: string;
|
|
41
|
-
waterfallStack: string;
|
|
42
|
-
field: {
|
|
43
|
-
label: string;
|
|
44
|
-
xAxis: string;
|
|
45
|
-
yAxis: string;
|
|
46
|
-
size: string;
|
|
47
|
-
position: string;
|
|
48
|
-
labelFormat: string;
|
|
49
|
-
labelRotate: string;
|
|
50
|
-
min: string;
|
|
51
|
-
max: string;
|
|
52
|
-
numberFormat: string;
|
|
53
|
-
gridlineColor: string;
|
|
54
|
-
gridlineWidth: string;
|
|
55
|
-
tickPosition: string;
|
|
56
|
-
tickLength: string;
|
|
57
|
-
tickWidth: string;
|
|
58
|
-
tickColor: string;
|
|
59
|
-
seriesType: string;
|
|
60
|
-
fill: string;
|
|
61
|
-
fillOpacity: string;
|
|
62
|
-
border: string;
|
|
63
|
-
borderWidth: string;
|
|
64
|
-
borderDash: string;
|
|
65
|
-
borderOpacity: string;
|
|
66
|
-
pointShape: string;
|
|
67
|
-
pointSize: string;
|
|
68
|
-
pointColor: string;
|
|
69
|
-
dataPoint: string;
|
|
70
|
-
selectDataPoint: string;
|
|
71
|
-
pointFill: string;
|
|
72
|
-
pointOpacity: string;
|
|
73
|
-
dataNodeShape: string;
|
|
74
|
-
layout: string;
|
|
75
|
-
repulsion: string;
|
|
76
|
-
gravity: string;
|
|
77
|
-
edgeLength: string;
|
|
78
|
-
displayName: string;
|
|
79
|
-
type: string;
|
|
80
|
-
order: string;
|
|
81
|
-
period: string;
|
|
82
|
-
lineColor: string;
|
|
83
|
-
lineOpacity: string;
|
|
84
|
-
lineType: string;
|
|
85
|
-
lineWidth: string;
|
|
86
|
-
formulaColor: string;
|
|
87
|
-
r2Color: string;
|
|
88
|
-
textSize: string;
|
|
89
|
-
titleSize: string;
|
|
90
|
-
title: string;
|
|
91
|
-
titleText: string;
|
|
92
|
-
titlePosition: string;
|
|
93
|
-
titleAlign: string;
|
|
94
|
-
titleFormat: string;
|
|
95
|
-
legendText: string;
|
|
96
|
-
doughnutHole: string;
|
|
97
|
-
valueScale: string;
|
|
98
|
-
fixedDigits: string;
|
|
99
|
-
valueSuffix: string;
|
|
100
|
-
shape: string;
|
|
101
|
-
maskImageId: string;
|
|
102
|
-
gap: string;
|
|
103
|
-
visualMap: string;
|
|
104
|
-
areaLine: string;
|
|
105
|
-
invalidValues: string;
|
|
106
|
-
selectMode: string;
|
|
107
|
-
legendLabelFormat: string;
|
|
108
|
-
axis: string;
|
|
109
|
-
line: string;
|
|
110
|
-
labelBackground: string;
|
|
111
|
-
labelText: string;
|
|
112
|
-
};
|
|
113
|
-
control: {
|
|
114
|
-
dataLabels: string;
|
|
115
|
-
showLabels: string;
|
|
116
|
-
reverseAxis: string;
|
|
117
|
-
showAxisLine: string;
|
|
118
|
-
useDateAxis: string;
|
|
119
|
-
majorGridlines: string;
|
|
120
|
-
majorTicks: string;
|
|
121
|
-
useRightVerticalAxis: string;
|
|
122
|
-
useValueAsSymbolSize: string;
|
|
123
|
-
emphasisOnHover: string;
|
|
124
|
-
rotateLabels: string;
|
|
125
|
-
showFormula: string;
|
|
126
|
-
showR2: string;
|
|
127
|
-
padAngle: string;
|
|
128
|
-
halfPie: string;
|
|
129
|
-
rosePie: string;
|
|
130
|
-
showLabelLine: string;
|
|
131
|
-
repeatWords: string;
|
|
132
|
-
fill: string;
|
|
133
|
-
useAbsoluteValues: string;
|
|
134
|
-
};
|
|
135
|
-
content: {
|
|
136
|
-
trendlineIndex: string;
|
|
137
|
-
trendlineUnavailable: string;
|
|
138
|
-
positive: string;
|
|
139
|
-
negative: string;
|
|
140
|
-
subtotal: string;
|
|
141
|
-
};
|
|
142
|
-
option: {
|
|
143
|
-
default: string;
|
|
144
|
-
none: string;
|
|
145
|
-
stacked: string;
|
|
146
|
-
percentStacked: string;
|
|
147
|
-
top: string;
|
|
148
|
-
right: string;
|
|
149
|
-
bottom: string;
|
|
150
|
-
left: string;
|
|
151
|
-
arrangement: string;
|
|
152
|
-
solid: string;
|
|
153
|
-
dashed: string;
|
|
154
|
-
dotted: string;
|
|
155
|
-
circle: string;
|
|
156
|
-
square: string;
|
|
157
|
-
triangle: string;
|
|
158
|
-
diamond: string;
|
|
159
|
-
rectangle: string;
|
|
160
|
-
roundRectangle: string;
|
|
161
|
-
pin: string;
|
|
162
|
-
arrow: string;
|
|
163
|
-
emptyCircle: string;
|
|
164
|
-
emptySquare: string;
|
|
165
|
-
emptyTriangle: string;
|
|
166
|
-
emptyDiamond: string;
|
|
167
|
-
emptyRectangle: string;
|
|
168
|
-
emptyRoundRectangle: string;
|
|
169
|
-
emptyPin: string;
|
|
170
|
-
emptyArrow: string;
|
|
171
|
-
auto: string;
|
|
172
|
-
inside: string;
|
|
173
|
-
outside: string;
|
|
174
|
-
value: string;
|
|
175
|
-
percentage: string;
|
|
176
|
-
chartTitle: string;
|
|
177
|
-
subtitle: string;
|
|
178
|
-
horizontalAxisTitle: string;
|
|
179
|
-
verticalAxisTitle: string;
|
|
180
|
-
rightVerticalAxisTitle: string;
|
|
181
|
-
start: string;
|
|
182
|
-
center: string;
|
|
183
|
-
end: string;
|
|
184
|
-
single: string;
|
|
185
|
-
multiple: string;
|
|
186
|
-
disabled: string;
|
|
187
|
-
continuous: string;
|
|
188
|
-
piecewise: string;
|
|
189
|
-
line: string;
|
|
190
|
-
smooth: string;
|
|
191
|
-
step: string;
|
|
192
|
-
polygon: string;
|
|
193
|
-
showAsGaps: string;
|
|
194
|
-
showAsZero: string;
|
|
195
|
-
connectDataPoints: string;
|
|
196
|
-
circular: string;
|
|
197
|
-
force: string;
|
|
198
|
-
column: string;
|
|
199
|
-
area: string;
|
|
200
|
-
linear: string;
|
|
201
|
-
exponential: string;
|
|
202
|
-
logarithmic: string;
|
|
203
|
-
power: string;
|
|
204
|
-
movingAverage: string;
|
|
205
|
-
polynomial: string;
|
|
206
|
-
allSeries: string;
|
|
207
|
-
cloud: string;
|
|
208
|
-
rect: string;
|
|
209
|
-
cardioid: string;
|
|
210
|
-
heart: string;
|
|
211
|
-
triangleForward: string;
|
|
212
|
-
pentagon: string;
|
|
213
|
-
star: string;
|
|
214
|
-
};
|
|
215
3
|
dataEditor: {
|
|
216
4
|
unavailable: string;
|
|
217
|
-
tableEmpty: string;
|
|
218
5
|
updateFailed: string;
|
|
219
|
-
|
|
6
|
+
};
|
|
7
|
+
common: {
|
|
8
|
+
editChart: string;
|
|
9
|
+
deleteChart: string;
|
|
10
|
+
editData: string;
|
|
11
|
+
insertChartFailed: string;
|
|
12
|
+
data: string;
|
|
220
13
|
cancel: string;
|
|
14
|
+
insert: string;
|
|
15
|
+
setup: string;
|
|
16
|
+
customize: string;
|
|
17
|
+
switchRowColumn: string;
|
|
221
18
|
duplicate: string;
|
|
222
19
|
apply: string;
|
|
223
|
-
|
|
224
|
-
|
|
20
|
+
chartAndAxisTitles: string;
|
|
21
|
+
chartStyle: string;
|
|
22
|
+
heatmap: string;
|
|
23
|
+
horizontalAxis: string;
|
|
24
|
+
legend: string;
|
|
25
|
+
rightVerticalAxis: string;
|
|
26
|
+
series: string;
|
|
27
|
+
trendline: string;
|
|
28
|
+
verticalAxis: string;
|
|
29
|
+
tableDataEmpty: string;
|
|
225
30
|
category: string;
|
|
226
|
-
|
|
227
|
-
high: string;
|
|
228
|
-
low: string;
|
|
229
|
-
close: string;
|
|
230
|
-
};
|
|
231
|
-
histogram: {
|
|
232
|
-
value: string;
|
|
233
|
-
frequency: string;
|
|
234
|
-
};
|
|
235
|
-
treemap: {
|
|
236
|
-
hierarchy: string;
|
|
31
|
+
label: string;
|
|
237
32
|
value: string;
|
|
33
|
+
valueField: string;
|
|
34
|
+
chartType: string;
|
|
238
35
|
};
|
|
239
36
|
chartTypes: {
|
|
240
37
|
line: string;
|
|
@@ -246,6 +43,8 @@ declare const locale: {
|
|
|
246
43
|
barPercentStacked: string;
|
|
247
44
|
pie: string;
|
|
248
45
|
donut: string;
|
|
46
|
+
pieOfPie: string;
|
|
47
|
+
barOfPie: string;
|
|
249
48
|
area: string;
|
|
250
49
|
areaStacked: string;
|
|
251
50
|
areaPercentStacked: string;
|
|
@@ -264,10 +63,77 @@ declare const locale: {
|
|
|
264
63
|
candlestick: string;
|
|
265
64
|
histogram: string;
|
|
266
65
|
treemap: string;
|
|
66
|
+
sunburst: string;
|
|
67
|
+
gauge: string;
|
|
68
|
+
chord: string;
|
|
267
69
|
};
|
|
268
|
-
|
|
70
|
+
section: {
|
|
71
|
+
candlestick: string;
|
|
72
|
+
chord: string;
|
|
73
|
+
funnel: string;
|
|
74
|
+
gauge: string;
|
|
75
|
+
gridlinesAndTicks: string;
|
|
76
|
+
histogram: string;
|
|
77
|
+
indicatorLine: string;
|
|
78
|
+
lineAndArea: string;
|
|
79
|
+
paretoBar: string;
|
|
80
|
+
paretoLine: string;
|
|
81
|
+
pie: string;
|
|
82
|
+
radar: string;
|
|
83
|
+
relation: string;
|
|
84
|
+
sunburst: string;
|
|
85
|
+
treemap: string;
|
|
86
|
+
waterfall: string;
|
|
87
|
+
wordCloud: string;
|
|
88
|
+
};
|
|
89
|
+
candlestick: {
|
|
90
|
+
columnsError: string;
|
|
91
|
+
close: string;
|
|
92
|
+
high: string;
|
|
93
|
+
low: string;
|
|
94
|
+
open: string;
|
|
95
|
+
series: string;
|
|
96
|
+
};
|
|
97
|
+
chord: {
|
|
98
|
+
source: string;
|
|
99
|
+
target: string;
|
|
100
|
+
emptyDiagnostic: string;
|
|
101
|
+
mappingDiagnostic: string;
|
|
102
|
+
configDiagnostic: string;
|
|
103
|
+
count: string;
|
|
104
|
+
associatedValue: string;
|
|
105
|
+
};
|
|
106
|
+
sunburst: {
|
|
107
|
+
hierarchy: string;
|
|
269
108
|
ownValue: string;
|
|
270
109
|
children: string;
|
|
110
|
+
diagnostic: string;
|
|
111
|
+
};
|
|
112
|
+
histogram: {
|
|
113
|
+
frequency: string;
|
|
114
|
+
};
|
|
115
|
+
pie: {
|
|
116
|
+
aggregateOther: string;
|
|
117
|
+
aggregateMembers: string;
|
|
118
|
+
};
|
|
119
|
+
treemap: {
|
|
120
|
+
hierarchy: string;
|
|
121
|
+
ownValue: string;
|
|
122
|
+
children: string;
|
|
123
|
+
diagnostic: string;
|
|
124
|
+
};
|
|
125
|
+
gauge: {
|
|
126
|
+
emptyDiagnostic: string;
|
|
127
|
+
mappingDiagnostic: string;
|
|
128
|
+
configDiagnostic: string;
|
|
129
|
+
};
|
|
130
|
+
chartField: {
|
|
131
|
+
missingCategoryFields: string;
|
|
132
|
+
missingSeriesFields: string;
|
|
133
|
+
invalidFieldIndex: string;
|
|
134
|
+
invalidValueFieldType: string;
|
|
135
|
+
invalidDataStructure: string;
|
|
136
|
+
unsupportedChartType: string;
|
|
271
137
|
};
|
|
272
138
|
};
|
|
273
139
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IBoardPageElement } from '@univerjs-pro/boards';
|
|
2
|
-
import type { IBoardChartInlineDataSource, IBoardChartSnapshot } from '@univerjs-pro/boards-chart';
|
|
3
2
|
import type { IBoardClipboardPreparedResourcePaste, IBoardClipboardResourceAdapter } from '@univerjs-pro/boards-ui';
|
|
3
|
+
import type { IStaticChartInlineDataSource, IStaticChartSnapshot } from '@univerjs-pro/engine-chart';
|
|
4
4
|
import { BoardChartResourceService } from '@univerjs-pro/boards-chart';
|
|
5
5
|
export declare const BOARD_CHART_CLIPBOARD_RESOURCE_KEY = "board-chart";
|
|
6
6
|
interface IBoardChartClipboardPayload {
|
|
7
|
-
charts: Record<string,
|
|
8
|
-
dataSources: Record<string,
|
|
7
|
+
charts: Record<string, IStaticChartSnapshot>;
|
|
8
|
+
dataSources: Record<string, IStaticChartInlineDataSource>;
|
|
9
9
|
chartIdByElementId: Record<string, string>;
|
|
10
10
|
}
|
|
11
11
|
export declare class BoardChartClipboardAdapter implements IBoardClipboardResourceAdapter {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
1
|
+
import type { ChartTypeBits, InlineChartCellValue, IStaticChartInlineDataSource } from '@univerjs-pro/engine-chart';
|
|
3
2
|
import { BoardChartModelService, BoardChartResourceService } from '@univerjs-pro/boards-chart';
|
|
4
3
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
5
4
|
export interface IBoardChartDataEditState {
|
|
6
5
|
chartId: string;
|
|
7
6
|
chartType: ChartTypeBits;
|
|
8
|
-
dataSource:
|
|
7
|
+
dataSource: IStaticChartInlineDataSource;
|
|
9
8
|
sharingCount: number;
|
|
10
9
|
unitId: string;
|
|
11
10
|
}
|
|
@@ -14,7 +13,7 @@ export interface IBoardChartUpdateDataOptions {
|
|
|
14
13
|
name?: string;
|
|
15
14
|
unitId: string;
|
|
16
15
|
updateShared?: boolean;
|
|
17
|
-
values:
|
|
16
|
+
values: InlineChartCellValue[][];
|
|
18
17
|
}
|
|
19
18
|
export declare class BoardChartDataEditService extends Disposable {
|
|
20
19
|
private readonly _resourceService;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IChartEditPanelRoute } from '@univerjs-pro/chart-ui';
|
|
1
2
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
2
3
|
import { IBoardElementStateService } from '@univerjs-pro/boards-ui';
|
|
3
4
|
import { Disposable } from '@univerjs/core';
|
|
@@ -7,6 +8,7 @@ export interface IBoardChartEditSession {
|
|
|
7
8
|
source: BoardChartEditSessionSource;
|
|
8
9
|
subUnitId: string;
|
|
9
10
|
unitId: string;
|
|
11
|
+
route?: IChartEditPanelRoute;
|
|
10
12
|
}
|
|
11
13
|
export type BoardChartEditSessionSource = 'doubleClick' | 'programmatic' | 'quickToolbar';
|
|
12
14
|
export type BoardChartEditSessionCloseReason = 'dispose' | 'elementRemoved' | 'manual' | 'pageChange' | 'selectionChange' | 'transformStart';
|
|
@@ -16,6 +18,7 @@ export interface IBoardChartEditSessionOpenParams {
|
|
|
16
18
|
source: BoardChartEditSessionSource;
|
|
17
19
|
subUnitId: string;
|
|
18
20
|
unitId: string;
|
|
21
|
+
route?: IChartEditPanelRoute;
|
|
19
22
|
}
|
|
20
23
|
export declare class BoardChartEditSessionService extends Disposable {
|
|
21
24
|
private readonly _elementStateService;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { ChartHostRenderMode
|
|
1
|
+
import type { IChartHostRect, IChartHostStyle, IDomChartHost } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { ChartHostRenderMode } from '@univerjs-pro/engine-chart';
|
|
3
3
|
import { Disposable } from '@univerjs/core';
|
|
4
|
-
export declare class BoardImageChartHost extends ImageChartHost {
|
|
5
|
-
private readonly _rect;
|
|
6
|
-
private _dataUrl;
|
|
7
|
-
constructor(chartId: string, _rect: IChartHostRect);
|
|
8
|
-
getRect(): IChartHostRect;
|
|
9
|
-
setStyle(_style: IChartHostStyle): void;
|
|
10
|
-
nextVersion(): number;
|
|
11
|
-
commitSnapshot(image: ChartImageSource, _version: number): boolean;
|
|
12
|
-
requestPaint(): void;
|
|
13
|
-
invalidateSnapshot(): void;
|
|
14
|
-
getDataUrl(): string | undefined;
|
|
15
|
-
}
|
|
16
4
|
export declare class BoardDomChartHost extends Disposable implements IDomChartHost {
|
|
17
5
|
readonly chartId: string;
|
|
18
6
|
private readonly _host;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ChartElementEventHandler, ChartElementEventType, ChartHostRenderMode, ChartStyle, IChartConfig, IChartHostRect, IChartInstance, IChartRenderInstance, IChartRenderModel } from '@univerjs-pro/engine-chart';
|
|
1
|
+
import type { ChartElementEventHandler, ChartElementEventType, ChartHostRenderMode, ChartRuntimeStyle, ChartStyle, IChartConfig, IChartHostRect, IChartInstance, IChartRenderInstance, IStaticChartModelRuntime } from '@univerjs-pro/engine-chart';
|
|
3
2
|
import type { IDisposable } from '@univerjs/core';
|
|
4
3
|
import { ChartThemeService, IChartRenderModelManagerService } from '@univerjs-pro/engine-chart';
|
|
5
4
|
import { Disposable, LocaleService } from '@univerjs/core';
|
|
6
5
|
export interface IBoardChartRenderSpecResult {
|
|
7
6
|
spec: Record<string, unknown>;
|
|
8
7
|
chartConfig: IChartConfig;
|
|
9
|
-
chartStyle:
|
|
8
|
+
chartStyle: ChartRuntimeStyle;
|
|
10
9
|
hostStyle: {
|
|
11
10
|
fill?: string;
|
|
12
11
|
stroke?: string;
|
|
@@ -19,29 +18,25 @@ export interface IBoardChartRenderSpecResult {
|
|
|
19
18
|
}
|
|
20
19
|
export interface IBoardChartRenderInput {
|
|
21
20
|
chartConfig: IChartConfig;
|
|
22
|
-
chartStyle:
|
|
21
|
+
chartStyle: ChartRuntimeStyle;
|
|
23
22
|
}
|
|
24
|
-
export declare const IBoardChartRenderModelService: import("@wendellhu/redi").IdentifierDecorator<IChartRenderModel<Record<string, any>>>;
|
|
25
23
|
export declare class BoardChartRenderService extends Disposable {
|
|
26
24
|
private readonly _localeService;
|
|
27
25
|
private readonly _chartThemeService;
|
|
26
|
+
private readonly _renderModelManager;
|
|
28
27
|
private readonly _chartInstanceMap;
|
|
29
28
|
private readonly _chartElementEditMode;
|
|
30
29
|
private readonly _chartEventHandlers;
|
|
31
30
|
private readonly _chartEventSubscriptions;
|
|
32
|
-
|
|
33
|
-
constructor(_localeService: LocaleService, _chartThemeService: ChartThemeService, renderModelManager: IChartRenderModelManagerService, renderModel?: IChartRenderModel);
|
|
34
|
-
registerRenderModel(name: string, renderModel: IChartRenderModel): void;
|
|
35
|
-
setRenderModel(name: string): void;
|
|
36
|
-
getRenderModel(name?: string): IChartRenderModel | undefined;
|
|
31
|
+
constructor(_localeService: LocaleService, _chartThemeService: ChartThemeService, _renderModelManager: IChartRenderModelManagerService);
|
|
37
32
|
createChartInstance(): IChartInstance;
|
|
38
33
|
createChartInstance(mode: ChartHostRenderMode): IChartRenderInstance;
|
|
39
34
|
registerChartInstance(unitId: string, chartId: string, chartInstance: IChartRenderInstance): IDisposable;
|
|
40
35
|
setElementEditMode(unitId: string, chartId: string, enabled: boolean): void;
|
|
41
36
|
isElementEditModeActive(unitId: string, chartId: string): boolean;
|
|
42
37
|
on(unitId: string, chartId: string, type: ChartElementEventType, handler: ChartElementEventHandler): IDisposable;
|
|
43
|
-
createRenderInput(runtime:
|
|
44
|
-
createRenderSpec(runtime:
|
|
38
|
+
createRenderInput(runtime: IStaticChartModelRuntime): IBoardChartRenderInput;
|
|
39
|
+
createRenderSpec(runtime: IStaticChartModelRuntime, rect: IChartHostRect, chartInstance?: IChartInstance): IBoardChartRenderSpecResult;
|
|
45
40
|
getHostStyle(chartStyle: ChartStyle): IBoardChartRenderSpecResult['hostStyle'];
|
|
46
41
|
applyHostStyle(host: HTMLElement, hostStyle: IBoardChartRenderSpecResult['hostStyle']): void;
|
|
47
42
|
private _createChartRenderInstanceContext;
|
|
@@ -1,59 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { IChartSnapshotRenderer, IChartSnapshotRequest } from '@univerjs-pro/chart-ui';
|
|
2
|
+
import type { ChartRuntimeStyle, IStaticChartModelRuntime } from '@univerjs-pro/engine-chart';
|
|
3
3
|
import { BoardChartModelService } from '@univerjs-pro/boards-chart';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ChartSnapshotQueue } from '@univerjs-pro/chart-ui';
|
|
5
|
+
import { LocaleService } from '@univerjs/core';
|
|
6
6
|
import { BoardChartRenderService } from './board-chart-render.service';
|
|
7
|
-
export interface IBoardChartSnapshotRequest {
|
|
8
|
-
unitId: string;
|
|
9
|
-
chartId: string;
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
dpr?: number;
|
|
7
|
+
export interface IBoardChartSnapshotRequest extends IChartSnapshotRequest {
|
|
13
8
|
mode?: 'main' | 'thumbnail';
|
|
14
9
|
}
|
|
15
|
-
export
|
|
16
|
-
key: string;
|
|
17
|
-
status: 'pending' | 'ready' | 'error';
|
|
18
|
-
dataUrl?: string;
|
|
19
|
-
error?: unknown;
|
|
20
|
-
}
|
|
21
|
-
export interface IBoardChartInvalidation {
|
|
22
|
-
unitId: string;
|
|
23
|
-
chartId: string;
|
|
24
|
-
}
|
|
25
|
-
export interface IBoardChartInvalidationOptions {
|
|
26
|
-
waitForConfig?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export interface IBoardChartSnapshotRenderer {
|
|
29
|
-
render(request: IBoardChartSnapshotRequest, runtime: IBoardChartRuntimeModel): Promise<string>;
|
|
30
|
-
}
|
|
31
|
-
export declare const IBoardChartSnapshotRendererService: import("@wendellhu/redi").IdentifierDecorator<IBoardChartSnapshotRenderer>;
|
|
10
|
+
export declare const IBoardChartSnapshotRendererService: import("@wendellhu/redi").IdentifierDecorator<IChartSnapshotRenderer<IBoardChartSnapshotRequest, IStaticChartModelRuntime>>;
|
|
32
11
|
export declare const BOARD_CHART_SNAPSHOT_BORDER_WIDTH = 0;
|
|
33
|
-
export declare function resolveBoardChartSnapshotStyle(chartStyle:
|
|
34
|
-
export declare class BoardChartSnapshotRenderService extends
|
|
35
|
-
|
|
36
|
-
private readonly _modelService;
|
|
37
|
-
readonly snapshotUpdated$: Subject<IBoardChartSnapshotEntry>;
|
|
38
|
-
readonly chartInvalidated$: Subject<IBoardChartInvalidation>;
|
|
39
|
-
private readonly _cache;
|
|
40
|
-
private readonly _queue;
|
|
41
|
-
private readonly _configWaitKeys;
|
|
42
|
-
private readonly _renderer;
|
|
43
|
-
private _rendering;
|
|
44
|
-
private _activeDrain;
|
|
45
|
-
constructor(_localeService: LocaleService, _modelService: BoardChartModelService, renderService: BoardChartRenderService, renderer?: IBoardChartSnapshotRenderer);
|
|
46
|
-
requestSnapshot(request: IBoardChartSnapshotRequest): IBoardChartSnapshotEntry;
|
|
47
|
-
getSnapshot(request: IBoardChartSnapshotRequest): IBoardChartSnapshotEntry | undefined;
|
|
48
|
-
invalidateChart(unitId: string, chartId: string, options?: IBoardChartInvalidationOptions): void;
|
|
49
|
-
getCacheKey(request: IBoardChartSnapshotRequest): string;
|
|
50
|
-
flushForTests(): Promise<void>;
|
|
51
|
-
dispose(): void;
|
|
52
|
-
private _drainQueue;
|
|
53
|
-
private _invalidateSnapshotsForDirectionChange;
|
|
54
|
-
private _runQueue;
|
|
55
|
-
private _renderOne;
|
|
56
|
-
private _waitForRuntimeConfig;
|
|
57
|
-
private _getChartKey;
|
|
58
|
-
private _getRuntimeModel;
|
|
12
|
+
export declare function resolveBoardChartSnapshotStyle(chartStyle: ChartRuntimeStyle): ChartRuntimeStyle;
|
|
13
|
+
export declare class BoardChartSnapshotRenderService extends ChartSnapshotQueue<IBoardChartSnapshotRequest> {
|
|
14
|
+
constructor(localeService: LocaleService, modelService: BoardChartModelService, renderService: BoardChartRenderService, renderer?: IChartSnapshotRenderer<IBoardChartSnapshotRequest>);
|
|
59
15
|
}
|