@univerjs-pro/engine-chart 1.3.1 → 1.4.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/lib/cjs/facade.js +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/facade.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/facade.js +1 -1
- 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/chart-3d/adapters/axes.d.ts +3 -3
- package/lib/types/chart-3d/adapters/projection-data-label.d.ts +26 -26
- package/lib/types/chart-builder/chart-color.d.ts +1 -1
- package/lib/types/chart-builder/chart-types.d.ts +12 -12
- package/lib/types/chart-builder/configuration/cartesian-series.d.ts +1 -1
- package/lib/types/chart-builder/configuration/waterfall.d.ts +1 -1
- package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +3 -2554
- package/lib/types/enum.d.ts +26 -26
- package/lib/types/models/chart-data/pie-composite/pie-composite-projection.d.ts +5 -5
- package/lib/types/models/chart-host/resource/chart-resource-repository.d.ts +6 -6
- package/lib/types/models/chart-model/chart-model.d.ts +3 -7629
- package/lib/types/models/chart-render/chart-render-model-manager.service.d.ts +1 -1
- package/lib/types/models/chart-render/converter/converters/chord-chart-converter.d.ts +5 -5
- package/lib/types/models/chart-render/converter/converters/gauge-chart-converter.d.ts +8 -8
- package/lib/types/models/chart-render/converter/echart-text-overflow.d.ts +3 -3
- package/lib/types/models/chart-render/converter/render-spec-operators/tools.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/visual-map-operator.d.ts +2 -2
- package/lib/types/models/chart-render/format/chart-value-format.d.ts +4 -4
- package/lib/types/models/common/constants/default-chart-style.d.ts +75 -75
- package/lib/types/types.d.ts +3 -3
- package/lib/types/util.d.ts +1 -1
- package/lib/types/wordcloud/core/collision/box-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud/core/collision/glyph-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud/echarts-options.d.ts +3 -3
- package/lib/types/wordcloud/render-config.d.ts +4 -4
- package/lib/types/wordcloud/types.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- 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 +9 -9
|
@@ -10,7 +10,7 @@ export interface IChartRenderModelManagerService extends IDisposable {
|
|
|
10
10
|
createChartInstance(mode: ChartRenderMode, context?: IChartRenderInstanceCreateContext): IChartRenderInstance;
|
|
11
11
|
exportImage(input: IChartRenderModelImageExportInput, options?: IChartRenderModelImageExportOptions): Promise<IChartRenderModelImageExportResult>;
|
|
12
12
|
}
|
|
13
|
-
export declare const IChartRenderModelManagerService: import("@
|
|
13
|
+
export declare const IChartRenderModelManagerService: import("@univerjs/core").IdentifierDecorator<IChartRenderModelManagerService>;
|
|
14
14
|
export declare class ChartRenderModelManagerService extends Disposable implements IChartRenderModelManagerService {
|
|
15
15
|
private readonly _renderModelMap;
|
|
16
16
|
private _currentRenderModel;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { EChartSpec, IChartChordSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const ChordValidationIssue: {
|
|
3
|
-
readonly Angles:
|
|
4
|
-
readonly Radii:
|
|
5
|
-
readonly Opacity:
|
|
6
|
-
readonly Sizes:
|
|
7
|
-
readonly RibbonColor:
|
|
3
|
+
readonly Angles: 'Chord angles must be finite and non-negative where applicable.';
|
|
4
|
+
readonly Radii: 'Chord radii require 0 <= inner < outer <= 1.';
|
|
5
|
+
readonly Opacity: 'Chord opacity must be from 0 through 1.';
|
|
6
|
+
readonly Sizes: 'Chord visual sizes must be finite and non-negative.';
|
|
7
|
+
readonly RibbonColor: 'Chord ribbon color must be source, target, or gradient.';
|
|
8
8
|
};
|
|
9
9
|
export declare function validateChordSpec(spec: IChartChordSpec | undefined): string | undefined;
|
|
10
10
|
export declare const chordChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { EChartSpec, IChartGaugeSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const GaugeValidationIssue: {
|
|
3
|
-
readonly Mode:
|
|
4
|
-
readonly Scale:
|
|
5
|
-
readonly SplitNumber:
|
|
6
|
-
readonly Angles:
|
|
7
|
-
readonly Ranges:
|
|
8
|
-
readonly Ratios:
|
|
9
|
-
readonly Sizes:
|
|
10
|
-
readonly PointerShape:
|
|
3
|
+
readonly Mode: 'Gauge mode must be modern or classic.';
|
|
4
|
+
readonly Scale: 'Gauge scale requires finite min < max.';
|
|
5
|
+
readonly SplitNumber: 'Gauge split count must be a positive integer.';
|
|
6
|
+
readonly Angles: 'Gauge angles must be finite degrees.';
|
|
7
|
+
readonly Ranges: 'Gauge ranges must be finite, ordered, and non-overlapping.';
|
|
8
|
+
readonly Ratios: 'Gauge ratios must be from 0 through 1.';
|
|
9
|
+
readonly Sizes: 'Gauge visual sizes must be finite and non-negative.';
|
|
10
|
+
readonly PointerShape: 'Gauge pointer shape must be needle, slim, or arrow.';
|
|
11
11
|
};
|
|
12
12
|
interface IGaugeItemLayout {
|
|
13
13
|
center: [string, string];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const ECHART_TEXT_TRUNCATION: {
|
|
2
|
-
readonly overflow:
|
|
3
|
-
readonly ellipsis:
|
|
2
|
+
readonly overflow: 'truncate';
|
|
3
|
+
readonly ellipsis: '...';
|
|
4
4
|
};
|
|
5
5
|
export declare const ECHART_TEXT_WRAP: {
|
|
6
|
-
readonly overflow:
|
|
6
|
+
readonly overflow: 'break';
|
|
7
7
|
};
|
|
@@ -24,6 +24,6 @@ export declare const getGradientColor: (color: string, gradientFill: boolean) =>
|
|
|
24
24
|
};
|
|
25
25
|
type RenderColorFunc = (color: string) => string;
|
|
26
26
|
export declare const getRenderColorFunc: (style: {
|
|
27
|
-
readonly runtime: Pick<ChartRuntimeStyle[
|
|
27
|
+
readonly runtime: Pick<ChartRuntimeStyle['runtime'], 'getRenderColor'>;
|
|
28
28
|
}) => RenderColorFunc;
|
|
29
29
|
export {};
|
package/lib/types/models/chart-render/converter/render-spec-operators/visual-map-operator.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const VisualMapOrientation: {
|
|
3
|
-
readonly Horizontal:
|
|
4
|
-
readonly Vertical:
|
|
3
|
+
readonly Horizontal: 'horizontal';
|
|
4
|
+
readonly Vertical: 'vertical';
|
|
5
5
|
};
|
|
6
6
|
export declare const visualMapOperator: EChartRenderSpecOperator;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** Canonical authored formats shared by chart editors and Facade consumers. */
|
|
2
2
|
export declare const CHART_VALUE_FORMAT_PRESETS: {
|
|
3
3
|
readonly source: null;
|
|
4
|
-
readonly number:
|
|
5
|
-
readonly percentage:
|
|
6
|
-
readonly currency:
|
|
7
|
-
readonly scientific:
|
|
4
|
+
readonly number: '#,##0.00';
|
|
5
|
+
readonly percentage: '0.00%';
|
|
6
|
+
readonly currency: '$#,##0.00';
|
|
7
|
+
readonly scientific: '0.00E+00';
|
|
8
8
|
};
|
|
9
9
|
/** Stable representative value used only for editor previews. */
|
|
10
10
|
export declare const CHART_VALUE_FORMAT_PREVIEW_VALUE = 1234.5;
|
|
@@ -158,104 +158,84 @@ export declare const CLASSIC_GAUGE_STYLE: {
|
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
160
|
export declare const STATUS_DIAL_GAUGE_STYLE: {
|
|
161
|
-
readonly
|
|
161
|
+
readonly mode: "modern";
|
|
162
|
+
readonly angles: {
|
|
163
|
+
readonly startAngle: 225;
|
|
164
|
+
readonly endAngle: -45;
|
|
165
|
+
};
|
|
166
|
+
readonly ranges: [];
|
|
167
|
+
readonly axisTick: {
|
|
168
|
+
readonly visible: false;
|
|
162
169
|
readonly splitNumber: 2;
|
|
170
|
+
readonly length: 5;
|
|
171
|
+
readonly width: 1;
|
|
172
|
+
readonly color: "gray.700";
|
|
173
|
+
};
|
|
174
|
+
readonly scale: {
|
|
163
175
|
readonly min: 0;
|
|
164
176
|
readonly max: 100;
|
|
177
|
+
readonly splitNumber: 2;
|
|
165
178
|
};
|
|
166
179
|
readonly axisLine: {
|
|
167
|
-
readonly width: 10;
|
|
168
180
|
readonly visible: true;
|
|
169
181
|
readonly color: "gray.300";
|
|
182
|
+
readonly width: 10;
|
|
170
183
|
};
|
|
171
184
|
readonly splitLine: {
|
|
172
|
-
readonly visible: true;
|
|
173
|
-
readonly length: 8;
|
|
174
185
|
readonly width: 2;
|
|
175
186
|
readonly color: "gray.700";
|
|
187
|
+
readonly visible: true;
|
|
188
|
+
readonly length: 8;
|
|
176
189
|
};
|
|
177
190
|
readonly axisLabel: {
|
|
178
|
-
readonly visible: true;
|
|
179
191
|
readonly distance: 12;
|
|
180
192
|
readonly color: "gray.700";
|
|
181
193
|
readonly fontSize: 12;
|
|
182
194
|
readonly bold: false;
|
|
183
195
|
readonly italic: false;
|
|
184
196
|
readonly family: "Arial";
|
|
197
|
+
readonly visible: true;
|
|
185
198
|
};
|
|
186
199
|
readonly pointer: {
|
|
187
|
-
readonly visible: true;
|
|
188
200
|
readonly length: 0.62;
|
|
189
201
|
readonly width: 5;
|
|
190
202
|
readonly color: "blue.500";
|
|
191
203
|
readonly shape: "needle";
|
|
204
|
+
readonly visible: true;
|
|
192
205
|
};
|
|
193
206
|
readonly anchor: {
|
|
194
|
-
readonly visible: true;
|
|
195
207
|
readonly size: 8;
|
|
196
208
|
readonly color: "#FFFFFF";
|
|
197
209
|
readonly borderColor: "blue.500";
|
|
198
210
|
readonly borderWidth: 2;
|
|
211
|
+
readonly visible: true;
|
|
199
212
|
};
|
|
200
213
|
readonly progress: {
|
|
201
|
-
readonly visible: true;
|
|
202
214
|
readonly width: 18;
|
|
203
215
|
readonly color: "blue.500";
|
|
204
216
|
readonly rounded: true;
|
|
217
|
+
readonly visible: true;
|
|
205
218
|
};
|
|
206
219
|
readonly title: {
|
|
207
|
-
readonly offsetY: 0.95;
|
|
208
220
|
readonly visible: true;
|
|
209
221
|
readonly color: "gray.700";
|
|
210
222
|
readonly fontSize: 12;
|
|
211
223
|
readonly bold: false;
|
|
212
224
|
readonly italic: false;
|
|
213
225
|
readonly family: "Arial";
|
|
226
|
+
readonly offsetY: 0.95;
|
|
214
227
|
};
|
|
215
228
|
readonly detail: {
|
|
216
|
-
readonly offsetY: 0.65;
|
|
217
229
|
readonly visible: true;
|
|
218
230
|
readonly color: "gray.700";
|
|
219
231
|
readonly fontSize: 14;
|
|
220
232
|
readonly bold: true;
|
|
221
233
|
readonly italic: false;
|
|
222
234
|
readonly family: "Arial";
|
|
223
|
-
|
|
224
|
-
readonly mode: "modern";
|
|
225
|
-
readonly angles: {
|
|
226
|
-
readonly startAngle: 225;
|
|
227
|
-
readonly endAngle: -45;
|
|
228
|
-
};
|
|
229
|
-
readonly ranges: [];
|
|
230
|
-
readonly axisTick: {
|
|
231
|
-
readonly visible: false;
|
|
232
|
-
readonly splitNumber: 2;
|
|
233
|
-
readonly length: 5;
|
|
234
|
-
readonly width: 1;
|
|
235
|
-
readonly color: "gray.700";
|
|
235
|
+
readonly offsetY: 0.65;
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
238
|
export declare const PROGRESS_GAUGE_STYLE: {
|
|
239
|
-
readonly axisTick: {
|
|
240
|
-
readonly visible: false;
|
|
241
|
-
};
|
|
242
|
-
readonly splitLine: {
|
|
243
|
-
readonly visible: false;
|
|
244
|
-
};
|
|
245
|
-
readonly axisLabel: {
|
|
246
|
-
readonly visible: false;
|
|
247
|
-
};
|
|
248
|
-
readonly pointer: {
|
|
249
|
-
readonly visible: false;
|
|
250
|
-
};
|
|
251
|
-
readonly anchor: {
|
|
252
|
-
readonly visible: false;
|
|
253
|
-
};
|
|
254
|
-
readonly progress: {
|
|
255
|
-
readonly visible: true;
|
|
256
|
-
readonly width: 14;
|
|
257
|
-
readonly rounded: true;
|
|
258
|
-
};
|
|
259
239
|
readonly mode: "modern";
|
|
260
240
|
readonly scale: {
|
|
261
241
|
readonly min: 0;
|
|
@@ -290,8 +270,6 @@ export declare const PROGRESS_GAUGE_STYLE: {
|
|
|
290
270
|
readonly italic: false;
|
|
291
271
|
readonly family: "Arial";
|
|
292
272
|
};
|
|
293
|
-
};
|
|
294
|
-
export declare const MINIMAL_GAUGE_STYLE: {
|
|
295
273
|
readonly axisTick: {
|
|
296
274
|
readonly visible: false;
|
|
297
275
|
};
|
|
@@ -302,17 +280,18 @@ export declare const MINIMAL_GAUGE_STYLE: {
|
|
|
302
280
|
readonly visible: false;
|
|
303
281
|
};
|
|
304
282
|
readonly pointer: {
|
|
305
|
-
readonly visible:
|
|
283
|
+
readonly visible: false;
|
|
306
284
|
};
|
|
307
285
|
readonly anchor: {
|
|
308
286
|
readonly visible: false;
|
|
309
287
|
};
|
|
310
288
|
readonly progress: {
|
|
311
|
-
readonly visible: false;
|
|
312
|
-
};
|
|
313
|
-
readonly title: {
|
|
314
289
|
readonly visible: true;
|
|
290
|
+
readonly width: 14;
|
|
291
|
+
readonly rounded: true;
|
|
315
292
|
};
|
|
293
|
+
};
|
|
294
|
+
export declare const MINIMAL_GAUGE_STYLE: {
|
|
316
295
|
readonly mode: "modern";
|
|
317
296
|
readonly scale: {
|
|
318
297
|
readonly min: 0;
|
|
@@ -338,6 +317,27 @@ export declare const MINIMAL_GAUGE_STYLE: {
|
|
|
338
317
|
readonly italic: false;
|
|
339
318
|
readonly family: "Arial";
|
|
340
319
|
};
|
|
320
|
+
readonly axisTick: {
|
|
321
|
+
readonly visible: false;
|
|
322
|
+
};
|
|
323
|
+
readonly splitLine: {
|
|
324
|
+
readonly visible: false;
|
|
325
|
+
};
|
|
326
|
+
readonly axisLabel: {
|
|
327
|
+
readonly visible: false;
|
|
328
|
+
};
|
|
329
|
+
readonly pointer: {
|
|
330
|
+
readonly visible: true;
|
|
331
|
+
};
|
|
332
|
+
readonly anchor: {
|
|
333
|
+
readonly visible: false;
|
|
334
|
+
};
|
|
335
|
+
readonly progress: {
|
|
336
|
+
readonly visible: false;
|
|
337
|
+
};
|
|
338
|
+
readonly title: {
|
|
339
|
+
readonly visible: true;
|
|
340
|
+
};
|
|
341
341
|
};
|
|
342
342
|
export declare const GAUGE_STYLE_TEMPLATES: {
|
|
343
343
|
readonly modern: {
|
|
@@ -497,26 +497,6 @@ export declare const GAUGE_STYLE_TEMPLATES: {
|
|
|
497
497
|
};
|
|
498
498
|
};
|
|
499
499
|
readonly progress: {
|
|
500
|
-
readonly axisTick: {
|
|
501
|
-
readonly visible: false;
|
|
502
|
-
};
|
|
503
|
-
readonly splitLine: {
|
|
504
|
-
readonly visible: false;
|
|
505
|
-
};
|
|
506
|
-
readonly axisLabel: {
|
|
507
|
-
readonly visible: false;
|
|
508
|
-
};
|
|
509
|
-
readonly pointer: {
|
|
510
|
-
readonly visible: false;
|
|
511
|
-
};
|
|
512
|
-
readonly anchor: {
|
|
513
|
-
readonly visible: false;
|
|
514
|
-
};
|
|
515
|
-
readonly progress: {
|
|
516
|
-
readonly visible: true;
|
|
517
|
-
readonly width: 14;
|
|
518
|
-
readonly rounded: true;
|
|
519
|
-
};
|
|
520
500
|
readonly mode: "modern";
|
|
521
501
|
readonly scale: {
|
|
522
502
|
readonly min: 0;
|
|
@@ -551,8 +531,6 @@ export declare const GAUGE_STYLE_TEMPLATES: {
|
|
|
551
531
|
readonly italic: false;
|
|
552
532
|
readonly family: "Arial";
|
|
553
533
|
};
|
|
554
|
-
};
|
|
555
|
-
readonly minimal: {
|
|
556
534
|
readonly axisTick: {
|
|
557
535
|
readonly visible: false;
|
|
558
536
|
};
|
|
@@ -563,17 +541,18 @@ export declare const GAUGE_STYLE_TEMPLATES: {
|
|
|
563
541
|
readonly visible: false;
|
|
564
542
|
};
|
|
565
543
|
readonly pointer: {
|
|
566
|
-
readonly visible:
|
|
544
|
+
readonly visible: false;
|
|
567
545
|
};
|
|
568
546
|
readonly anchor: {
|
|
569
547
|
readonly visible: false;
|
|
570
548
|
};
|
|
571
549
|
readonly progress: {
|
|
572
|
-
readonly visible: false;
|
|
573
|
-
};
|
|
574
|
-
readonly title: {
|
|
575
550
|
readonly visible: true;
|
|
551
|
+
readonly width: 14;
|
|
552
|
+
readonly rounded: true;
|
|
576
553
|
};
|
|
554
|
+
};
|
|
555
|
+
readonly minimal: {
|
|
577
556
|
readonly mode: "modern";
|
|
578
557
|
readonly scale: {
|
|
579
558
|
readonly min: 0;
|
|
@@ -599,6 +578,27 @@ export declare const GAUGE_STYLE_TEMPLATES: {
|
|
|
599
578
|
readonly italic: false;
|
|
600
579
|
readonly family: "Arial";
|
|
601
580
|
};
|
|
581
|
+
readonly axisTick: {
|
|
582
|
+
readonly visible: false;
|
|
583
|
+
};
|
|
584
|
+
readonly splitLine: {
|
|
585
|
+
readonly visible: false;
|
|
586
|
+
};
|
|
587
|
+
readonly axisLabel: {
|
|
588
|
+
readonly visible: false;
|
|
589
|
+
};
|
|
590
|
+
readonly pointer: {
|
|
591
|
+
readonly visible: true;
|
|
592
|
+
};
|
|
593
|
+
readonly anchor: {
|
|
594
|
+
readonly visible: false;
|
|
595
|
+
};
|
|
596
|
+
readonly progress: {
|
|
597
|
+
readonly visible: false;
|
|
598
|
+
};
|
|
599
|
+
readonly title: {
|
|
600
|
+
readonly visible: true;
|
|
601
|
+
};
|
|
602
602
|
};
|
|
603
603
|
};
|
|
604
604
|
/** Resolves the semantic Gauge visual language without persisting its defaults. */
|
package/lib/types/types.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface IUniverDataSet {
|
|
|
65
65
|
categorySpans?: IUniverDataSetCategorySpan[];
|
|
66
66
|
}
|
|
67
67
|
/** Ordered field names that define the persisted Candlestick OHLC mapping contract. */
|
|
68
|
-
export declare const CHART_CANDLESTICK_MAPPING_FIELDS: readonly [
|
|
68
|
+
export declare const CHART_CANDLESTICK_MAPPING_FIELDS: readonly ['openIndex', 'highIndex', 'lowIndex', 'closeIndex'];
|
|
69
69
|
/**
|
|
70
70
|
* Three selected fields mean HLC; supplying an Open field makes four-role OHLC.
|
|
71
71
|
* Missing point values do not change this structure and must never synthesize Open.
|
|
@@ -1113,8 +1113,8 @@ export interface IChartRenderModelImageExportInput extends IChartRenderInput {
|
|
|
1113
1113
|
height: number;
|
|
1114
1114
|
}
|
|
1115
1115
|
export declare const ChartImageExportFormat: {
|
|
1116
|
-
readonly PNG:
|
|
1117
|
-
readonly SVG:
|
|
1116
|
+
readonly PNG: 'png';
|
|
1117
|
+
readonly SVG: 'svg';
|
|
1118
1118
|
};
|
|
1119
1119
|
export type ChartImageExportFormat = (typeof ChartImageExportFormat)[keyof typeof ChartImageExportFormat];
|
|
1120
1120
|
export interface IChartRenderModelImageExportOptions {
|
package/lib/types/util.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const chartBitsUtils: {
|
|
|
3
3
|
has(bit: number, attribute: number): boolean;
|
|
4
4
|
baseOn(bit: number, base: number): boolean;
|
|
5
5
|
remove(bit: number, attribute: number): number;
|
|
6
|
-
chartBitToString(bit: ChartTypeBits): "" | "
|
|
6
|
+
chartBitToString(bit: ChartTypeBits): "" | "bar" | "boxplot" | "candlestick" | "chord" | "combination" | "funnel" | "gauge" | "graph" | "heatmap" | "line" | "pie" | "radar" | "sankey" | "scatter" | "sunburst" | "treemap" | "wordCloud" | undefined;
|
|
7
7
|
};
|
|
8
8
|
export declare function mergeChartConfig<T extends object>(current: T | undefined, update: Partial<T>): T;
|
|
9
9
|
export declare const setProperty: (data: Record<string, any>, propertyPath: string, value: any) => void;
|
|
@@ -4,7 +4,7 @@ import type { ICollisionCandidate, ICollisionEngine, ICollisionEngineStats, ICol
|
|
|
4
4
|
export declare class BoxShapeEngine implements ICollisionEngine<IBoxFootprint> {
|
|
5
5
|
private readonly _grid;
|
|
6
6
|
private readonly _shapeGrid;
|
|
7
|
-
readonly collisionShape:
|
|
7
|
+
readonly collisionShape: 'box';
|
|
8
8
|
private readonly _footprintCache;
|
|
9
9
|
private readonly _placed;
|
|
10
10
|
private readonly _spatialIndex;
|
|
@@ -20,7 +20,7 @@ export declare class GlyphShapeEngine implements ICollisionEngine<IPixelFootprin
|
|
|
20
20
|
private readonly _measurer;
|
|
21
21
|
private readonly _cacheLimit;
|
|
22
22
|
private readonly _clipToShape;
|
|
23
|
-
readonly collisionShape:
|
|
23
|
+
readonly collisionShape: 'glyph';
|
|
24
24
|
readonly cacheCollisionFailures = false;
|
|
25
25
|
private readonly _spriteCache;
|
|
26
26
|
private readonly _board;
|
|
@@ -2,10 +2,10 @@ export declare const WORD_CLOUD_SERIES_TYPE = "wordCloud";
|
|
|
2
2
|
export declare const WORD_CLOUD_DEFAULT_OPTION: {
|
|
3
3
|
readonly z: 2;
|
|
4
4
|
readonly maskSource: import("./types").IWordCloudEChartsMaskSource;
|
|
5
|
-
readonly colorBy:
|
|
5
|
+
readonly colorBy: 'data';
|
|
6
6
|
readonly keepAspect: false;
|
|
7
|
-
readonly left:
|
|
8
|
-
readonly top:
|
|
7
|
+
readonly left: 'center';
|
|
8
|
+
readonly top: 'center';
|
|
9
9
|
readonly width: "96%";
|
|
10
10
|
readonly height: "96%";
|
|
11
11
|
readonly right: null;
|
|
@@ -5,8 +5,8 @@ export declare const WORD_CLOUD_ECHARTS_RENDER_CONFIG: {
|
|
|
5
5
|
readonly randomSeed: 1;
|
|
6
6
|
readonly gridSize: 4;
|
|
7
7
|
readonly padding: 1;
|
|
8
|
-
readonly width:
|
|
9
|
-
readonly height:
|
|
8
|
+
readonly width: '96%';
|
|
9
|
+
readonly height: '96%';
|
|
10
10
|
};
|
|
11
11
|
readonly search: {
|
|
12
12
|
readonly ringCount: 7;
|
|
@@ -20,8 +20,8 @@ export declare const WORD_CLOUD_ECHARTS_RENDER_CONFIG: {
|
|
|
20
20
|
readonly sampleSize: null;
|
|
21
21
|
readonly insideRatio: null;
|
|
22
22
|
readonly paddingRatio: 0.02;
|
|
23
|
-
readonly fit:
|
|
24
|
-
readonly mode:
|
|
23
|
+
readonly fit: 'contain';
|
|
24
|
+
readonly mode: 'auto';
|
|
25
25
|
readonly alphaThreshold: 8;
|
|
26
26
|
readonly luminanceThreshold: 245;
|
|
27
27
|
readonly invert: false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type WordCloudColorMode = 'fixed' | 'identity' | 'palette';
|
|
2
2
|
export type WordCloudLayoutMode = 'default' | 'fast' | 'grid' | 'ensureMapping' | 'ensureMappingEnlarge';
|
|
3
3
|
export type WordCloudScaleType = 'linear' | 'sqrt' | 'log';
|
|
4
|
-
export declare const SUPPORTED_WORD_CLOUD_SHAPES: readonly [
|
|
4
|
+
export declare const SUPPORTED_WORD_CLOUD_SHAPES: readonly ['cloud', 'rect', 'circle', 'cardioid', 'heart', 'diamond', 'triangle-forward', 'triangle', 'pentagon', 'star'];
|
|
5
5
|
export type WordCloudShape = typeof SUPPORTED_WORD_CLOUD_SHAPES[number];
|
|
6
6
|
export declare const DEFAULT_WORD_CLOUD_SHAPE: WordCloudShape;
|
|
7
7
|
export type WordCloudFontSizeRange = [number, number] | 'auto';
|