@univerjs-pro/engine-chart 1.0.0-beta.0 → 1.0.0-beta.2

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.
Files changed (187) hide show
  1. package/README.md +9 -0
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ar-SA.js +1 -1
  5. package/lib/cjs/locale/ca-ES.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/vi-VN.js +1 -1
  20. package/lib/cjs/locale/zh-CN.js +1 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/es/facade.js +1 -1
  24. package/lib/es/index.js +1 -1
  25. package/lib/es/locale/ar-SA.js +1 -1
  26. package/lib/es/locale/ca-ES.js +1 -1
  27. package/lib/es/locale/de-DE.js +1 -1
  28. package/lib/es/locale/en-US.js +1 -1
  29. package/lib/es/locale/es-ES.js +1 -1
  30. package/lib/es/locale/fa-IR.js +1 -1
  31. package/lib/es/locale/fr-FR.js +1 -1
  32. package/lib/es/locale/id-ID.js +1 -1
  33. package/lib/es/locale/it-IT.js +1 -1
  34. package/lib/es/locale/ja-JP.js +1 -1
  35. package/lib/es/locale/ko-KR.js +1 -1
  36. package/lib/es/locale/pl-PL.js +1 -1
  37. package/lib/es/locale/pt-BR.js +1 -1
  38. package/lib/es/locale/ru-RU.js +1 -1
  39. package/lib/es/locale/sk-SK.js +1 -1
  40. package/lib/es/locale/vi-VN.js +1 -1
  41. package/lib/es/locale/zh-CN.js +1 -1
  42. package/lib/es/locale/zh-HK.js +1 -1
  43. package/lib/es/locale/zh-TW.js +1 -1
  44. package/lib/facade.js +1 -1
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/chart-builder/chart-builder-adapter.d.ts +1 -3
  66. package/lib/types/chart-builder/chart-builder.d.ts +2 -5
  67. package/lib/types/chart-builder/chart-live-adapter.d.ts +15 -0
  68. package/lib/types/chart-builder/chart-types.d.ts +21 -0
  69. package/lib/types/chart-builder/configuration/cartesian-series.d.ts +1 -0
  70. package/lib/types/chart-builder/configuration/chart-config-group.d.ts +38 -0
  71. package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +1 -38
  72. package/lib/types/chart-builder/configuration/gauge.d.ts +1 -1
  73. package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +24 -11
  74. package/lib/types/chart-builder/conversion/chart-create-config.d.ts +6 -0
  75. package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +20 -0
  76. package/lib/types/chart-builder/conversion/chart-type-converter.d.ts +1 -3
  77. package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +0 -127
  78. package/lib/types/chart-builder/detached-chart-builder-adapter.d.ts +1 -10
  79. package/lib/types/chart-builder/internal/apply-pending-to-description.d.ts +2 -0
  80. package/lib/types/chart-builder/internal/chart-host-config-adapter.d.ts +3 -0
  81. package/lib/types/chart-builder/internal/chart-pending-patch.d.ts +11 -0
  82. package/lib/types/chart-builder/internal/patch-interpreter.d.ts +17 -0
  83. package/lib/types/facade/builders/f-area-chart-builder.d.ts +52 -7
  84. package/lib/types/facade/builders/f-boxplot-chart-builder.d.ts +88 -3
  85. package/lib/types/facade/builders/f-bubble-chart-builder.d.ts +59 -6
  86. package/lib/types/facade/builders/f-candlestick-chart-builder.d.ts +90 -31
  87. package/lib/types/facade/builders/f-chord-chart-builder.d.ts +180 -8
  88. package/lib/types/facade/builders/f-combination-chart-builder.d.ts +55 -10
  89. package/lib/types/facade/builders/f-funnel-chart-builder.d.ts +55 -9
  90. package/lib/types/facade/builders/f-gauge-chart-builder.d.ts +378 -10
  91. package/lib/types/facade/builders/f-heatmap-chart-builder.d.ts +83 -26
  92. package/lib/types/facade/builders/f-histogram-chart-builder.d.ts +142 -16
  93. package/lib/types/facade/builders/f-line-chart-builder.d.ts +51 -6
  94. package/lib/types/facade/builders/f-pareto-chart-builder.d.ts +83 -20
  95. package/lib/types/facade/builders/f-pie-chart-builder.d.ts +131 -47
  96. package/lib/types/facade/builders/f-radar-chart-builder.d.ts +64 -11
  97. package/lib/types/facade/builders/f-relation-chart-builder.d.ts +72 -38
  98. package/lib/types/facade/builders/f-scatter-chart-builder.d.ts +58 -6
  99. package/lib/types/facade/builders/f-sunburst-chart-builder.d.ts +122 -8
  100. package/lib/types/facade/builders/f-treemap-chart-builder.d.ts +115 -13
  101. package/lib/types/facade/builders/f-waterfall-chart-builder.d.ts +87 -53
  102. package/lib/types/facade/builders/f-word-cloud-chart-builder.d.ts +64 -15
  103. package/lib/types/facade/chart-builder-registry.d.ts +4 -4
  104. package/lib/types/facade/chart-builder-type-map.d.ts +35 -32
  105. package/lib/types/facade/chart-host-builder-types.d.ts +2 -21
  106. package/lib/types/facade/create-chart-builder.d.ts +46 -0
  107. package/lib/types/facade/f-axis-chart-builder.d.ts +21 -38
  108. package/lib/types/facade/f-cartesian-chart-builder.d.ts +32 -20
  109. package/lib/types/facade/f-chart-builder-base.d.ts +240 -73
  110. package/lib/types/facade/f-chart.d.ts +686 -0
  111. package/lib/types/facade/f-enum.d.ts +684 -31
  112. package/lib/types/facade/f-univer.d.ts +51 -0
  113. package/lib/types/facade/index.d.ts +7 -9
  114. package/lib/types/facade/internal/category-fields.d.ts +3 -0
  115. package/lib/types/facade/internal/chart-builder-facade-context.d.ts +11 -10
  116. package/lib/types/index.d.ts +28 -17
  117. package/lib/types/models/chart-context/chart-field-selection.d.ts +1 -1
  118. package/lib/types/models/chart-context/resolve-chart-context.d.ts +3 -0
  119. package/lib/types/models/chart-data/chart-field-consumption-validator.d.ts +1 -1
  120. package/lib/types/models/chart-data/internal/category-series-aggregation.d.ts +1 -2
  121. package/lib/types/models/chart-data/internal/data-set-category-spans.d.ts +7 -0
  122. package/lib/types/models/chart-data/internal/multi-level-category-axis.d.ts +10 -0
  123. package/lib/types/models/chart-host/config/chart-config-interpreter.d.ts +13 -0
  124. package/lib/types/models/chart-host/resource/chart-data-source-resolver.d.ts +58 -0
  125. package/lib/types/models/chart-host/resource/chart-resource-repository.d.ts +111 -0
  126. package/lib/types/models/chart-host/resource/chart-resource-serializer.d.ts +2 -1
  127. package/lib/types/models/chart-host/resource/inline-chart-table.d.ts +4 -3
  128. package/lib/types/models/chart-host/resource/persisted-chart-style.d.ts +3 -0
  129. package/lib/types/models/chart-host/resource/resource-ref-chart-data-source.adapter.d.ts +22 -0
  130. package/lib/types/models/chart-host/resource/resource-ref-chart-data-source.provider.d.ts +12 -0
  131. package/lib/types/models/chart-host/static/chart-model-store.d.ts +56 -0
  132. package/lib/types/models/chart-host/static/{static-chart-runtime.d.ts → chart-runtime.d.ts} +6 -5
  133. package/lib/types/models/chart-model/chart-model.d.ts +2 -383
  134. package/lib/types/models/chart-render/axes/chart-runtime-axes.d.ts +2 -2
  135. package/lib/types/models/chart-render/chart-render-input-resolver.d.ts +2 -2
  136. package/lib/types/models/chart-render/converter/category-axis-domain.d.ts +6 -0
  137. package/lib/types/models/chart-render/converter/converters/gauge-chart-converter.d.ts +5 -3
  138. package/lib/types/models/chart-render/converter/echart-text-overflow.d.ts +7 -0
  139. package/lib/types/models/chart-render/converter/render-spec-operators/grid-operator.d.ts +3 -3
  140. package/lib/types/models/chart-render/converter/render-spec-operators/legend-size.d.ts +1 -2
  141. package/lib/types/models/chart-render/converter/render-spec-operators/multi-level-category-axis-grid.operator.d.ts +2 -0
  142. package/lib/types/models/chart-render/converter/render-spec-operators/multi-level-category-axis-layout.d.ts +23 -0
  143. package/lib/types/models/chart-render/converter/render-spec-operators/multi-level-category-axis-overlay.operator.d.ts +12 -0
  144. package/lib/types/models/chart-render/converter/render-spec-operators/series-style-operator/series-style-operator.d.ts +2 -2
  145. package/lib/types/models/chart-render/converter/render-spec-operators/tool-tip-operator.d.ts +3 -13
  146. package/lib/types/models/chart-render/converter/render-spec-operators/tools.d.ts +4 -4
  147. package/lib/types/models/chart-render/converter/render-spec-operators/visual-map-operator.d.ts +4 -0
  148. package/lib/types/models/chart-render/echart-render-model.d.ts +7 -3
  149. package/lib/types/models/chart-render/edit-overlay/chart-element-edit-overlay.d.ts +1 -1
  150. package/lib/types/models/chart-render/edit-overlay/resolve-chart-element-hit-layout.d.ts +1 -1
  151. package/lib/types/models/chart-render/style/chart-runtime-style.d.ts +0 -1
  152. package/lib/types/models/common/constants/default-chart-style.d.ts +53 -53
  153. package/lib/types/models/common/constants/default.d.ts +3 -2
  154. package/lib/types/plugin.d.ts +1 -1
  155. package/lib/types/types.d.ts +46 -6
  156. package/lib/types/util.d.ts +0 -1
  157. package/lib/types/utils/compact.d.ts +6 -0
  158. package/lib/types/utils/device-pixel-ratio.d.ts +1 -0
  159. package/lib/umd/facade.js +1 -1
  160. package/lib/umd/index.js +1 -1
  161. package/lib/umd/locale/ar-SA.js +1 -1
  162. package/lib/umd/locale/ca-ES.js +1 -1
  163. package/lib/umd/locale/de-DE.js +1 -1
  164. package/lib/umd/locale/en-US.js +1 -1
  165. package/lib/umd/locale/es-ES.js +1 -1
  166. package/lib/umd/locale/fa-IR.js +1 -1
  167. package/lib/umd/locale/fr-FR.js +1 -1
  168. package/lib/umd/locale/id-ID.js +1 -1
  169. package/lib/umd/locale/it-IT.js +1 -1
  170. package/lib/umd/locale/ja-JP.js +1 -1
  171. package/lib/umd/locale/ko-KR.js +1 -1
  172. package/lib/umd/locale/pl-PL.js +1 -1
  173. package/lib/umd/locale/pt-BR.js +1 -1
  174. package/lib/umd/locale/ru-RU.js +1 -1
  175. package/lib/umd/locale/sk-SK.js +1 -1
  176. package/lib/umd/locale/vi-VN.js +1 -1
  177. package/lib/umd/locale/zh-CN.js +1 -1
  178. package/lib/umd/locale/zh-HK.js +1 -1
  179. package/lib/umd/locale/zh-TW.js +1 -1
  180. package/package.json +7 -6
  181. package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +0 -3
  182. package/lib/types/chart-builder/internal/merge-description.d.ts +0 -2
  183. package/lib/types/facade/f-chart-base.d.ts +0 -82
  184. package/lib/types/facade/f-charts-base.d.ts +0 -74
  185. package/lib/types/facade/internal/host-builder-composer.d.ts +0 -16
  186. package/lib/types/models/chart-host/resource/static-chart-resource-repository.d.ts +0 -75
  187. package/lib/types/models/chart-host/static/static-chart-model-store.d.ts +0 -43
@@ -4,11 +4,11 @@ import type { ChartTypeBits } from '../../../enum';
4
4
  import type { ChartStyle, IChartContext, IUniverDataSet } from '../../../types';
5
5
  import { StaticChartSource } from '../../../source/static-chart-source';
6
6
  import { ChartModel } from '../../chart-model/chart-model';
7
- export interface IStaticChartRuntime {
7
+ export interface IChartRuntime {
8
8
  model: ChartModel;
9
9
  source: StaticChartSource;
10
10
  }
11
- export interface IStaticChartRuntimeConfig {
11
+ export interface IChartRuntimeConfig {
12
12
  chartType: ChartTypeBits;
13
13
  dataSet: IUniverDataSet;
14
14
  isRowDirection: boolean;
@@ -16,11 +16,12 @@ export interface IStaticChartRuntimeConfig {
16
16
  context?: Partial<IChartContext>;
17
17
  dataAggregation?: IChartDataAggregation;
18
18
  }
19
- export interface ICreateStaticChartRuntimeOptions extends IStaticChartRuntimeConfig {
19
+ export interface ICreateChartRuntimeOptions extends Omit<IChartRuntimeConfig, 'dataSet'> {
20
20
  id: string;
21
21
  injector: Injector;
22
+ dataSet?: IUniverDataSet;
22
23
  }
23
24
  /** Creates the canonical runtime pair used by hosts backed by an inline table. */
24
- export declare function createStaticChartRuntime(options: ICreateStaticChartRuntimeOptions): IStaticChartRuntime;
25
+ export declare function createChartRuntime(options: ICreateChartRuntimeOptions): IChartRuntime;
25
26
  /** Applies a persisted inline-table snapshot without duplicating chart semantics in each host. */
26
- export declare function refreshStaticChartRuntime(runtime: IStaticChartRuntime, config: IStaticChartRuntimeConfig): void;
27
+ export declare function refreshChartRuntime(runtime: IChartRuntime, config: IChartRuntimeConfig): void;
@@ -1,7 +1,7 @@
1
1
  import type { Injector } from '@univerjs/core';
2
2
  import type { Observable, Subscription } from 'rxjs';
3
3
  import type { IChartDataAggregation } from '../../chart-data-aggregation';
4
- import type { ChartStyle, IChartConfig, IChartContext, IChartDataSource, IChartRuntimeContext, IChartSnapshot, IChartSnapshotContext } from '../../types';
4
+ import type { ChartDirection, ChartStyle, IChartConfig, IChartContext, IChartDataSource, IChartRuntimeContext, IChartSnapshot, IChartSnapshotContext } from '../../types';
5
5
  import { Disposable } from '@univerjs/core';
6
6
  import { BehaviorSubject } from 'rxjs';
7
7
  import { ChartTypeBits } from '../../enum';
@@ -37,133 +37,6 @@ export declare class ChartModel<TDataSource extends IChartDataSource = IChartDat
37
37
  readonly config$: Observable<IChartConfig | null>;
38
38
  /** chart style config */
39
39
  protected _style$: BehaviorSubject<{
40
- runtime?: {
41
- themeColors?: string[] | undefined;
42
- axes?: import("../..").IRuntimeAxis[] | undefined;
43
- themeInfo?: {
44
- version?: string | number | undefined;
45
- themeName?: string | undefined;
46
- theme?: {
47
- seriesCnt?: string | undefined;
48
- backgroundColor?: string | undefined;
49
- titleColor?: string | undefined;
50
- subtitleColor?: string | undefined;
51
- textColorShow?: boolean | undefined;
52
- textColor?: string | undefined;
53
- markTextColor?: string | undefined;
54
- color?: string[] | undefined;
55
- borderColor?: string | undefined;
56
- borderWidth?: string | number | undefined;
57
- visualMapColor?: string[] | undefined;
58
- legendTextColor?: string | undefined;
59
- kColor?: string | undefined;
60
- kColor0?: string | undefined;
61
- kBorderColor?: string | undefined;
62
- kBorderColor0?: string | undefined;
63
- kBorderWidth?: string | number | undefined;
64
- lineWidth?: string | number | undefined;
65
- symbolSize?: string | number | undefined;
66
- symbol?: string | undefined;
67
- symbolBorderWidth?: string | number | undefined;
68
- lineSmooth?: boolean | undefined;
69
- graphLineWidth?: string | number | undefined;
70
- graphLineColor?: string | undefined;
71
- mapLabelColor?: string | undefined;
72
- mapLabelColorE?: string | undefined;
73
- mapBorderColor?: string | undefined;
74
- mapBorderColorE?: string | undefined;
75
- mapBorderWidth?: string | number | undefined;
76
- mapBorderWidthE?: string | number | undefined;
77
- mapAreaColor?: string | undefined;
78
- mapAreaColorE?: string | undefined;
79
- axes?: import("../common/theme/build-in-theme/types").IEchartThemeAxisConfig[] | undefined;
80
- axisSeperateSetting?: boolean | undefined;
81
- toolboxColor?: string | undefined;
82
- toolboxEmphasisColor?: string | undefined;
83
- tooltipAxisColor?: string | undefined;
84
- tooltipAxisWidth?: string | number | undefined;
85
- timelineLineColor?: string | undefined;
86
- timelineLineWidth?: string | number | undefined;
87
- timelineItemColor?: string | undefined;
88
- timelineItemColorE?: string | undefined;
89
- timelineCheckColor?: string | undefined;
90
- timelineCheckBorderColor?: string | undefined;
91
- timelineItemBorderWidth?: string | number | undefined;
92
- timelineControlColor?: string | undefined;
93
- timelineControlBorderColor?: string | undefined;
94
- timelineControlBorderWidth?: string | number | undefined;
95
- timelineLabelColor?: string | undefined;
96
- datazoomBackgroundColor?: string | undefined;
97
- datazoomDataColor?: string | undefined;
98
- datazoomFillColor?: string | undefined;
99
- datazoomHandleColor?: string | undefined;
100
- datazoomHandleWidth?: string | undefined;
101
- datazoomLabelColor?: string | undefined;
102
- } | undefined;
103
- } | undefined;
104
- wordCloudRenderConfig?: {
105
- initialShape?: import("../..").WordCloudShape | undefined;
106
- collisionShape?: import("../../wordcloud-chart/core/collision/engine").WordCloudCollisionShape | undefined;
107
- fontSizeRange?: import("../..").WordCloudFontSizeRange | undefined;
108
- padding?: number | undefined;
109
- zoomToFit?: {
110
- shrink?: boolean | undefined;
111
- enlarge?: boolean | undefined;
112
- fontSizeLimitMin?: number | undefined;
113
- fontSizeLimitMax?: number | undefined;
114
- minShrinkRatio?: number | undefined;
115
- } | undefined;
116
- } | undefined;
117
- addWatermark?: boolean | undefined;
118
- layoutInset?: number | undefined;
119
- getRenderColor?: {} | undefined;
120
- isDarkMode?: boolean | undefined;
121
- hasSecondaryAxis?: boolean | undefined;
122
- localeTexts?: {
123
- seriesDefaultName?: string | undefined;
124
- categoryDefaultName?: string | undefined;
125
- blank?: string | undefined;
126
- boxplotMin?: string | undefined;
127
- boxplotQ1?: string | undefined;
128
- boxplotMedian?: string | undefined;
129
- boxplotQ3?: string | undefined;
130
- boxplotMax?: string | undefined;
131
- bubbleEmptyTips?: string | undefined;
132
- cloudWord?: string | undefined;
133
- cloudFrequency?: string | undefined;
134
- msgEmptyTips?: string | undefined;
135
- msgSankeyCircularTips?: string | undefined;
136
- paretoLineName?: string | undefined;
137
- pieAggregateOther?: string | undefined;
138
- pieAggregateMembers?: string | undefined;
139
- relationEmptyTips?: string | undefined;
140
- waterfallPositive?: string | undefined;
141
- waterfallNegative?: string | undefined;
142
- waterfallSubtotal?: string | undefined;
143
- candlestickSeries?: string | undefined;
144
- candlestickCategory?: string | undefined;
145
- candlestickOpen?: string | undefined;
146
- candlestickHigh?: string | undefined;
147
- candlestickLow?: string | undefined;
148
- candlestickClose?: string | undefined;
149
- histogramFrequency?: string | undefined;
150
- treemapEmptyTips?: string | undefined;
151
- treemapOwnValue?: string | undefined;
152
- treemapChildren?: string | undefined;
153
- sunburstEmptyTips?: string | undefined;
154
- sunburstOwnValue?: string | undefined;
155
- sunburstChildren?: string | undefined;
156
- gaugeEmptyTips?: string | undefined;
157
- gaugeInvalidMapping?: string | undefined;
158
- gaugeInvalidConfig?: string | undefined;
159
- chordEmptyTips?: string | undefined;
160
- chordInvalidMapping?: string | undefined;
161
- chordInvalidConfig?: string | undefined;
162
- chordCount?: string | undefined;
163
- chordAssociatedValue?: string | undefined;
164
- } | undefined;
165
- } | undefined;
166
- direction?: import("../..").ChartDirection | undefined;
167
40
  width?: number | undefined;
168
41
  height?: number | undefined;
169
42
  theme?: string | undefined;
@@ -1564,133 +1437,6 @@ export declare class ChartModel<TDataSource extends IChartDataSource = IChartDat
1564
1437
  } | undefined;
1565
1438
  }>;
1566
1439
  readonly style$: Observable<{
1567
- runtime?: {
1568
- themeColors?: string[] | undefined;
1569
- axes?: import("../..").IRuntimeAxis[] | undefined;
1570
- themeInfo?: {
1571
- version?: string | number | undefined;
1572
- themeName?: string | undefined;
1573
- theme?: {
1574
- seriesCnt?: string | undefined;
1575
- backgroundColor?: string | undefined;
1576
- titleColor?: string | undefined;
1577
- subtitleColor?: string | undefined;
1578
- textColorShow?: boolean | undefined;
1579
- textColor?: string | undefined;
1580
- markTextColor?: string | undefined;
1581
- color?: string[] | undefined;
1582
- borderColor?: string | undefined;
1583
- borderWidth?: string | number | undefined;
1584
- visualMapColor?: string[] | undefined;
1585
- legendTextColor?: string | undefined;
1586
- kColor?: string | undefined;
1587
- kColor0?: string | undefined;
1588
- kBorderColor?: string | undefined;
1589
- kBorderColor0?: string | undefined;
1590
- kBorderWidth?: string | number | undefined;
1591
- lineWidth?: string | number | undefined;
1592
- symbolSize?: string | number | undefined;
1593
- symbol?: string | undefined;
1594
- symbolBorderWidth?: string | number | undefined;
1595
- lineSmooth?: boolean | undefined;
1596
- graphLineWidth?: string | number | undefined;
1597
- graphLineColor?: string | undefined;
1598
- mapLabelColor?: string | undefined;
1599
- mapLabelColorE?: string | undefined;
1600
- mapBorderColor?: string | undefined;
1601
- mapBorderColorE?: string | undefined;
1602
- mapBorderWidth?: string | number | undefined;
1603
- mapBorderWidthE?: string | number | undefined;
1604
- mapAreaColor?: string | undefined;
1605
- mapAreaColorE?: string | undefined;
1606
- axes?: import("../common/theme/build-in-theme/types").IEchartThemeAxisConfig[] | undefined;
1607
- axisSeperateSetting?: boolean | undefined;
1608
- toolboxColor?: string | undefined;
1609
- toolboxEmphasisColor?: string | undefined;
1610
- tooltipAxisColor?: string | undefined;
1611
- tooltipAxisWidth?: string | number | undefined;
1612
- timelineLineColor?: string | undefined;
1613
- timelineLineWidth?: string | number | undefined;
1614
- timelineItemColor?: string | undefined;
1615
- timelineItemColorE?: string | undefined;
1616
- timelineCheckColor?: string | undefined;
1617
- timelineCheckBorderColor?: string | undefined;
1618
- timelineItemBorderWidth?: string | number | undefined;
1619
- timelineControlColor?: string | undefined;
1620
- timelineControlBorderColor?: string | undefined;
1621
- timelineControlBorderWidth?: string | number | undefined;
1622
- timelineLabelColor?: string | undefined;
1623
- datazoomBackgroundColor?: string | undefined;
1624
- datazoomDataColor?: string | undefined;
1625
- datazoomFillColor?: string | undefined;
1626
- datazoomHandleColor?: string | undefined;
1627
- datazoomHandleWidth?: string | undefined;
1628
- datazoomLabelColor?: string | undefined;
1629
- } | undefined;
1630
- } | undefined;
1631
- wordCloudRenderConfig?: {
1632
- initialShape?: import("../..").WordCloudShape | undefined;
1633
- collisionShape?: import("../../wordcloud-chart/core/collision/engine").WordCloudCollisionShape | undefined;
1634
- fontSizeRange?: import("../..").WordCloudFontSizeRange | undefined;
1635
- padding?: number | undefined;
1636
- zoomToFit?: {
1637
- shrink?: boolean | undefined;
1638
- enlarge?: boolean | undefined;
1639
- fontSizeLimitMin?: number | undefined;
1640
- fontSizeLimitMax?: number | undefined;
1641
- minShrinkRatio?: number | undefined;
1642
- } | undefined;
1643
- } | undefined;
1644
- addWatermark?: boolean | undefined;
1645
- layoutInset?: number | undefined;
1646
- getRenderColor?: {} | undefined;
1647
- isDarkMode?: boolean | undefined;
1648
- hasSecondaryAxis?: boolean | undefined;
1649
- localeTexts?: {
1650
- seriesDefaultName?: string | undefined;
1651
- categoryDefaultName?: string | undefined;
1652
- blank?: string | undefined;
1653
- boxplotMin?: string | undefined;
1654
- boxplotQ1?: string | undefined;
1655
- boxplotMedian?: string | undefined;
1656
- boxplotQ3?: string | undefined;
1657
- boxplotMax?: string | undefined;
1658
- bubbleEmptyTips?: string | undefined;
1659
- cloudWord?: string | undefined;
1660
- cloudFrequency?: string | undefined;
1661
- msgEmptyTips?: string | undefined;
1662
- msgSankeyCircularTips?: string | undefined;
1663
- paretoLineName?: string | undefined;
1664
- pieAggregateOther?: string | undefined;
1665
- pieAggregateMembers?: string | undefined;
1666
- relationEmptyTips?: string | undefined;
1667
- waterfallPositive?: string | undefined;
1668
- waterfallNegative?: string | undefined;
1669
- waterfallSubtotal?: string | undefined;
1670
- candlestickSeries?: string | undefined;
1671
- candlestickCategory?: string | undefined;
1672
- candlestickOpen?: string | undefined;
1673
- candlestickHigh?: string | undefined;
1674
- candlestickLow?: string | undefined;
1675
- candlestickClose?: string | undefined;
1676
- histogramFrequency?: string | undefined;
1677
- treemapEmptyTips?: string | undefined;
1678
- treemapOwnValue?: string | undefined;
1679
- treemapChildren?: string | undefined;
1680
- sunburstEmptyTips?: string | undefined;
1681
- sunburstOwnValue?: string | undefined;
1682
- sunburstChildren?: string | undefined;
1683
- gaugeEmptyTips?: string | undefined;
1684
- gaugeInvalidMapping?: string | undefined;
1685
- gaugeInvalidConfig?: string | undefined;
1686
- chordEmptyTips?: string | undefined;
1687
- chordInvalidMapping?: string | undefined;
1688
- chordInvalidConfig?: string | undefined;
1689
- chordCount?: string | undefined;
1690
- chordAssociatedValue?: string | undefined;
1691
- } | undefined;
1692
- } | undefined;
1693
- direction?: import("../..").ChartDirection | undefined;
1694
1440
  width?: number | undefined;
1695
1441
  height?: number | undefined;
1696
1442
  theme?: string | undefined;
@@ -3091,133 +2837,6 @@ export declare class ChartModel<TDataSource extends IChartDataSource = IChartDat
3091
2837
  } | undefined;
3092
2838
  }>;
3093
2839
  get style(): {
3094
- runtime?: {
3095
- themeColors?: string[] | undefined;
3096
- axes?: import("../..").IRuntimeAxis[] | undefined;
3097
- themeInfo?: {
3098
- version?: string | number | undefined;
3099
- themeName?: string | undefined;
3100
- theme?: {
3101
- seriesCnt?: string | undefined;
3102
- backgroundColor?: string | undefined;
3103
- titleColor?: string | undefined;
3104
- subtitleColor?: string | undefined;
3105
- textColorShow?: boolean | undefined;
3106
- textColor?: string | undefined;
3107
- markTextColor?: string | undefined;
3108
- color?: string[] | undefined;
3109
- borderColor?: string | undefined;
3110
- borderWidth?: string | number | undefined;
3111
- visualMapColor?: string[] | undefined;
3112
- legendTextColor?: string | undefined;
3113
- kColor?: string | undefined;
3114
- kColor0?: string | undefined;
3115
- kBorderColor?: string | undefined;
3116
- kBorderColor0?: string | undefined;
3117
- kBorderWidth?: string | number | undefined;
3118
- lineWidth?: string | number | undefined;
3119
- symbolSize?: string | number | undefined;
3120
- symbol?: string | undefined;
3121
- symbolBorderWidth?: string | number | undefined;
3122
- lineSmooth?: boolean | undefined;
3123
- graphLineWidth?: string | number | undefined;
3124
- graphLineColor?: string | undefined;
3125
- mapLabelColor?: string | undefined;
3126
- mapLabelColorE?: string | undefined;
3127
- mapBorderColor?: string | undefined;
3128
- mapBorderColorE?: string | undefined;
3129
- mapBorderWidth?: string | number | undefined;
3130
- mapBorderWidthE?: string | number | undefined;
3131
- mapAreaColor?: string | undefined;
3132
- mapAreaColorE?: string | undefined;
3133
- axes?: import("../common/theme/build-in-theme/types").IEchartThemeAxisConfig[] | undefined;
3134
- axisSeperateSetting?: boolean | undefined;
3135
- toolboxColor?: string | undefined;
3136
- toolboxEmphasisColor?: string | undefined;
3137
- tooltipAxisColor?: string | undefined;
3138
- tooltipAxisWidth?: string | number | undefined;
3139
- timelineLineColor?: string | undefined;
3140
- timelineLineWidth?: string | number | undefined;
3141
- timelineItemColor?: string | undefined;
3142
- timelineItemColorE?: string | undefined;
3143
- timelineCheckColor?: string | undefined;
3144
- timelineCheckBorderColor?: string | undefined;
3145
- timelineItemBorderWidth?: string | number | undefined;
3146
- timelineControlColor?: string | undefined;
3147
- timelineControlBorderColor?: string | undefined;
3148
- timelineControlBorderWidth?: string | number | undefined;
3149
- timelineLabelColor?: string | undefined;
3150
- datazoomBackgroundColor?: string | undefined;
3151
- datazoomDataColor?: string | undefined;
3152
- datazoomFillColor?: string | undefined;
3153
- datazoomHandleColor?: string | undefined;
3154
- datazoomHandleWidth?: string | undefined;
3155
- datazoomLabelColor?: string | undefined;
3156
- } | undefined;
3157
- } | undefined;
3158
- wordCloudRenderConfig?: {
3159
- initialShape?: import("../..").WordCloudShape | undefined;
3160
- collisionShape?: import("../../wordcloud-chart/core/collision/engine").WordCloudCollisionShape | undefined;
3161
- fontSizeRange?: import("../..").WordCloudFontSizeRange | undefined;
3162
- padding?: number | undefined;
3163
- zoomToFit?: {
3164
- shrink?: boolean | undefined;
3165
- enlarge?: boolean | undefined;
3166
- fontSizeLimitMin?: number | undefined;
3167
- fontSizeLimitMax?: number | undefined;
3168
- minShrinkRatio?: number | undefined;
3169
- } | undefined;
3170
- } | undefined;
3171
- addWatermark?: boolean | undefined;
3172
- layoutInset?: number | undefined;
3173
- getRenderColor?: {} | undefined;
3174
- isDarkMode?: boolean | undefined;
3175
- hasSecondaryAxis?: boolean | undefined;
3176
- localeTexts?: {
3177
- seriesDefaultName?: string | undefined;
3178
- categoryDefaultName?: string | undefined;
3179
- blank?: string | undefined;
3180
- boxplotMin?: string | undefined;
3181
- boxplotQ1?: string | undefined;
3182
- boxplotMedian?: string | undefined;
3183
- boxplotQ3?: string | undefined;
3184
- boxplotMax?: string | undefined;
3185
- bubbleEmptyTips?: string | undefined;
3186
- cloudWord?: string | undefined;
3187
- cloudFrequency?: string | undefined;
3188
- msgEmptyTips?: string | undefined;
3189
- msgSankeyCircularTips?: string | undefined;
3190
- paretoLineName?: string | undefined;
3191
- pieAggregateOther?: string | undefined;
3192
- pieAggregateMembers?: string | undefined;
3193
- relationEmptyTips?: string | undefined;
3194
- waterfallPositive?: string | undefined;
3195
- waterfallNegative?: string | undefined;
3196
- waterfallSubtotal?: string | undefined;
3197
- candlestickSeries?: string | undefined;
3198
- candlestickCategory?: string | undefined;
3199
- candlestickOpen?: string | undefined;
3200
- candlestickHigh?: string | undefined;
3201
- candlestickLow?: string | undefined;
3202
- candlestickClose?: string | undefined;
3203
- histogramFrequency?: string | undefined;
3204
- treemapEmptyTips?: string | undefined;
3205
- treemapOwnValue?: string | undefined;
3206
- treemapChildren?: string | undefined;
3207
- sunburstEmptyTips?: string | undefined;
3208
- sunburstOwnValue?: string | undefined;
3209
- sunburstChildren?: string | undefined;
3210
- gaugeEmptyTips?: string | undefined;
3211
- gaugeInvalidMapping?: string | undefined;
3212
- gaugeInvalidConfig?: string | undefined;
3213
- chordEmptyTips?: string | undefined;
3214
- chordInvalidMapping?: string | undefined;
3215
- chordInvalidConfig?: string | undefined;
3216
- chordCount?: string | undefined;
3217
- chordAssociatedValue?: string | undefined;
3218
- } | undefined;
3219
- } | undefined;
3220
- direction?: import("../..").ChartDirection | undefined;
3221
2840
  width?: number | undefined;
3222
2841
  height?: number | undefined;
3223
2842
  theme?: string | undefined;
@@ -4626,7 +4245,7 @@ export declare class ChartModel<TDataSource extends IChartDataSource = IChartDat
4626
4245
  chartThemeService: ChartThemeService;
4627
4246
  };
4628
4247
  replaceDataSource(dataSource: TDataSource): void;
4629
- getRuntimeContext(direction?: ChartStyle['direction']): IChartRuntimeContext;
4248
+ getRuntimeContext(direction?: ChartDirection): IChartRuntimeContext;
4630
4249
  /** Deep-merges the supplied style patch into the current style. Unspecified fields are preserved. */
4631
4250
  assignStyle(newStyle: ChartStyle): void;
4632
4251
  /** Replaces the complete style group with a cloned value. */
@@ -1,10 +1,10 @@
1
- import type { ChartStyle, IChartContext, IRuntimeAxis } from '../../../types';
1
+ import type { ChartDirection, ChartStyle, IChartContext, IRuntimeAxis } from '../../../types';
2
2
  import { ChartTypeBits } from '../../../enum';
3
3
  export interface IGetChartRuntimeAxesParams {
4
4
  chartType: ChartTypeBits;
5
5
  context?: Pick<IChartContext, 'categoryIndexes' | 'seriesIndexes'>;
6
6
  style?: ChartStyle;
7
- direction?: ChartStyle['direction'];
7
+ direction?: ChartDirection;
8
8
  }
9
9
  /**
10
10
  * Builds the transient axis model consumed by chart converters.
@@ -1,4 +1,4 @@
1
- import type { ChartStyle, IChartRenderModelImageExportInput } from '../../types';
1
+ import type { ChartDirection, IChartRenderModelImageExportInput } from '../../types';
2
2
  import type { ChartModel } from '../chart-model/chart-model';
3
3
  export interface IChartRenderInputRuntime {
4
4
  chartId: string;
@@ -6,7 +6,7 @@ export interface IChartRenderInputRuntime {
6
6
  }
7
7
  export interface IResolveChartRenderModelImageExportInputParams {
8
8
  runtime: IChartRenderInputRuntime;
9
- direction: ChartStyle['direction'];
9
+ direction?: ChartDirection;
10
10
  width: number;
11
11
  height: number;
12
12
  }
@@ -0,0 +1,6 @@
1
+ import type { IChartDataCategory } from '../../../types';
2
+ export interface ICategoryAxisDomain {
3
+ data: Array<string | number>;
4
+ axisLabelFormatter?: (value: unknown) => string;
5
+ }
6
+ export declare function resolveCategoryAxisDomain(category?: IChartDataCategory): ICategoryAxisDomain | undefined;
@@ -9,10 +9,12 @@ export declare const GaugeValidationIssue: {
9
9
  readonly Sizes: "Gauge visual sizes must be finite and non-negative.";
10
10
  readonly PointerShape: "Gauge pointer shape must be needle, slim, or arrow.";
11
11
  };
12
- export declare function validateGaugeSpec(spec: IChartGaugeSpec | undefined): string | undefined;
13
- export declare function computeGaugeLayout(count: number, width: number, height: number): Array<{
12
+ interface IGaugeItemLayout {
14
13
  center: [string, string];
15
14
  radius: string;
16
- }>;
15
+ }
16
+ export declare function validateGaugeSpec(spec: IChartGaugeSpec | undefined): string | undefined;
17
+ export declare function computeGaugeLayout(count: number, width: number, height: number): IGaugeItemLayout[];
17
18
  export declare function applyGaugeLayout(spec: EChartSpec, width: number, height: number): void;
18
19
  export declare const gaugeChartConverter: IChartRenderSpecConverter<EChartSpec>;
20
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const ECHART_TEXT_TRUNCATION: {
2
+ readonly overflow: "truncate";
3
+ readonly ellipsis: "...";
4
+ };
5
+ export declare const ECHART_TEXT_WRAP: {
6
+ readonly overflow: "break";
7
+ };
@@ -1,4 +1,4 @@
1
- import type { ChartStyle, EChartRenderSpecOperator, IChartConfig, IChartPlotArea } from '../../../../types';
1
+ import type { ChartRuntimeStyle, ChartStyle, EChartRenderSpecOperator, IChartConfig, IChartPlotArea } from '../../../../types';
2
2
  export interface IResolvedCartesianGrid {
3
3
  left: number;
4
4
  right: number;
@@ -6,7 +6,7 @@ export interface IResolvedCartesianGrid {
6
6
  bottom: number;
7
7
  containLabel: boolean;
8
8
  }
9
- export declare function resolveAutomaticCartesianGrid(style: ChartStyle, config: IChartConfig): IResolvedCartesianGrid;
10
- /** Returns the currently rendered automatic geometry as a stable manual-editing seed. */
9
+ export declare function resolveAutomaticCartesianGrid(style: ChartRuntimeStyle, config: IChartConfig): IResolvedCartesianGrid;
10
+ /** Returns authored automatic geometry as a stable manual-editing seed. */
11
11
  export declare function resolveChartPlotAreaForEditing(style: ChartStyle, config: IChartConfig): IChartPlotArea;
12
12
  export declare const gridStyleOperator: EChartRenderSpecOperator;
@@ -1,3 +1,2 @@
1
- import type { ChartStyle } from '../../../../types';
2
1
  export declare const MinLegendTextWidth = 48;
3
- export declare function getLegendTextWidthLimit(width?: number, style?: ChartStyle): number;
2
+ export declare function getLegendTextWidthLimit(width?: number, layoutPadding?: number): number;
@@ -0,0 +1,2 @@
1
+ import type { EChartRenderSpecOperator } from '../../../../types';
2
+ export declare const multiLevelCategoryAxisGridOperator: EChartRenderSpecOperator;
@@ -0,0 +1,23 @@
1
+ import type { ChartStyle, EChartSpec, IChartConfig } from '../../../../types';
2
+ export type MultiLevelCategoryAxisSide = 'bottom' | 'left' | 'right';
3
+ export interface IMultiLevelCategoryAxis {
4
+ type?: string;
5
+ position?: string;
6
+ axisLabel?: {
7
+ color?: unknown;
8
+ show?: boolean;
9
+ };
10
+ splitLine?: {
11
+ lineStyle?: {
12
+ color?: unknown;
13
+ };
14
+ };
15
+ }
16
+ export interface IMultiLevelCategoryAxisLayout {
17
+ axis: IMultiLevelCategoryAxis;
18
+ levelInnerDepths: number[];
19
+ levelSizes: number[];
20
+ side: MultiLevelCategoryAxisSide;
21
+ totalDepth: number;
22
+ }
23
+ export declare function resolveMultiLevelCategoryAxisLayout(spec: EChartSpec, style: ChartStyle, config: IChartConfig): IMultiLevelCategoryAxisLayout | undefined;
@@ -0,0 +1,12 @@
1
+ import type { EChartRenderSpecOperator, IChartDataCategoryHierarchy } from '../../../../types';
2
+ interface ICategoryAxisBand {
3
+ label: string;
4
+ level: number;
5
+ startIndex: number;
6
+ endIndex: number;
7
+ drawStartBoundary: boolean;
8
+ drawEndBoundary: boolean;
9
+ }
10
+ export declare function buildCategoryAxisBands(hierarchy: IChartDataCategoryHierarchy): ICategoryAxisBand[];
11
+ export declare const multiLevelCategoryAxisOverlayOperator: EChartRenderSpecOperator;
12
+ export {};
@@ -1,10 +1,10 @@
1
- import type { ChartStyle, DeepPartial, EChartRenderSpecOperator, EChartSeriesItem, ISeriesStyle } from '../../../../../types';
1
+ import type { ChartRuntimeStyle, DeepPartial, EChartRenderSpecOperator, EChartSeriesItem, ISeriesStyle } from '../../../../../types';
2
2
  import { ChartTypeBits } from '../../../../../enum';
3
3
  export interface ISeriesStyleHandlerContext {
4
4
  seriesItem: EChartSeriesItem;
5
5
  seriesIndex: number;
6
6
  seriesStyle: DeepPartial<ISeriesStyle> | undefined;
7
- chartStyle: ChartStyle;
7
+ chartStyle: ChartRuntimeStyle;
8
8
  chartType: ChartTypeBits;
9
9
  }
10
10
  export type SeriesItemHandler = (context: ISeriesStyleHandlerContext, isVerticalSeriesValue: boolean) => void;
@@ -1,4 +1,5 @@
1
1
  import type { ChartDirection, ChartRuntimeStyle, ChartStyle, EChartRenderSpecOperator, EChartSpec, IChartConfig } from '../../../../types';
2
+ import type { IChartLocaleTexts } from '../../../common/chart-locale-texts';
2
3
  import { InvalidValueType } from '../../../../enum';
3
4
  interface ITooltipFormatterDataContext {
4
5
  category: IChartConfig['category'];
@@ -6,25 +7,14 @@ interface ITooltipFormatterDataContext {
6
7
  format?: infer F;
7
8
  } ? F : undefined : undefined;
8
9
  invalidValueType: InvalidValueType;
9
- blankText: string;
10
- minText: string;
11
- q1Text: string;
12
- medianText: string;
13
- q3Text: string;
14
- maxText: string;
15
- wordText: string;
16
- frequencyText: string;
17
- candlestickCategoryText: string;
18
- candlestickOpenText: string;
19
- candlestickHighText: string;
20
- candlestickLowText: string;
21
- candlestickCloseText: string;
10
+ localeText: IChartLocaleTexts;
22
11
  isDateAxis: boolean | undefined;
23
12
  allSeriesStyle: ChartStyle['allSeriesStyle'];
24
13
  seriesStyleMap: ChartStyle['seriesStyleMap'];
25
14
  runtimeThemeColors: string[];
26
15
  relationNodeMap: Map<string, string>;
27
16
  negativeMap: Map<string, boolean>;
17
+ sourceLabelMap: Map<string | number, string[]>;
28
18
  getRenderColor: (color: string) => string;
29
19
  }
30
20
  interface ITooltipFormatters {
@@ -1,12 +1,12 @@
1
- import type { ChartStyle, EChartSeriesItem, EChartSpec, ILabelStyle } from '../../../../types';
1
+ import type { ChartRuntimeStyle, EChartSeriesItem, EChartSpec, ILabelStyle } from '../../../../types';
2
2
  import type { ISpecGrid } from './operator-types';
3
3
  type PartialLabelStyle = Partial<Pick<ILabelStyle, 'visible' | 'color' | 'fontSize' | 'family' | 'italic' | 'bold' | 'underline' | 'strikethrough' | 'showMaxLabel' | 'showMinLabel'>>;
4
4
  export declare function applyLabelStyle(spec: Record<string, any>, path: string, labelStyle: PartialLabelStyle): void;
5
5
  export declare function applyLineStyle(spec: Record<string, any>, path: string, labelStyle: PartialLabelStyle): void;
6
6
  export declare function toArray<T = unknown>(value: T | T[]): T[];
7
7
  export declare function seriesForEach(series: EChartSpec['series'], func: (item: EChartSeriesItem, index: number) => void): void;
8
- export declare const getCategoryLabelVertical: (gridInfo: ISpecGrid, style: ChartStyle) => number;
9
- export declare const getCategoryLabelHorizontal: (gridInfo: ISpecGrid, style: ChartStyle, seriesCount: number, axisLabelMaxWidth?: number) => number;
8
+ export declare const getCategoryLabelVertical: (gridInfo: ISpecGrid, style: ChartRuntimeStyle) => number;
9
+ export declare const getCategoryLabelHorizontal: (gridInfo: ISpecGrid, style: ChartRuntimeStyle, seriesCount: number, axisLabelMaxWidth?: number) => number;
10
10
  export declare const getIntegerValue: (value: number, digit?: number) => number;
11
11
  export declare const getGradientColor: (color: string, gradientFill: boolean) => string | {
12
12
  gradient: string;
@@ -20,5 +20,5 @@ export declare const getGradientColor: (color: string, gradientFill: boolean) =>
20
20
  }[];
21
21
  };
22
22
  type RenderColorFunc = (color: string) => string;
23
- export declare const getRenderColorFunc: (style: ChartStyle) => RenderColorFunc;
23
+ export declare const getRenderColorFunc: (style: ChartRuntimeStyle) => RenderColorFunc;
24
24
  export {};