@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
@@ -1,44 +1,689 @@
1
- import { AreaLineStyle, ChartAggregationTarget, ChartAllSeriesStyleTarget, ChartAppearanceTarget, ChartAxisDimension, ChartAxisName, ChartAxisPointerTarget, ChartAxisTarget, ChartAxisTickPosition, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartSeriesAxis, ChartSeriesClearTarget, ChartSeriesTypeString, ChartSunburstLabelPosition, ChartTrendlineType, ChartTypeString, ChartVisualMapType, ChartWaterfallPointRole, ChartWaterfallStyleTarget, ChartWordCloudShapeSource, InvalidValueType, LabelAlignEnum, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from '@univerjs-pro/engine-chart';
1
+ import { AreaLineStyle, ChartAggregationTarget, ChartAllSeriesStyleTarget, ChartAppearanceTarget, ChartAxisName, ChartAxisPointerTarget, ChartAxisTarget, ChartAxisTickPosition, ChartChordFocusMode, ChartChordLabelPosition, ChartChordRibbonColorMode, ChartGaugeMode, ChartGaugePointerShape, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartSeriesAxis, ChartSeriesClearTarget, ChartSeriesTypeString, ChartSunburstLabelPosition, ChartTrendlineType, ChartTypeString, ChartVisualMapType, ChartWaterfallPointRole, ChartWaterfallStyleTarget, InvalidValueType, LabelAlignEnum, LegendPositionEnum, LinePointShape, PieLabelPosition, PieSecondaryPlotType, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, TreemapParentLabelLayout, WaterfallStackTypeEnum, WordCloudShapeEnum } from '@univerjs-pro/engine-chart';
2
2
  import { FEnum } from '@univerjs/core/facade';
3
+ /** Built-in Chart theme names exposed through `univerAPI.Enum.ChartThemeName`. */
4
+ declare enum ChartThemeName {
5
+ /** Balanced Univer palette with blue, cyan, pink, orange, purple, and light blue. */
6
+ Default = "default",
7
+ /** Bright blue-and-cyan palette accented with coral and yellow. */
8
+ Univer1 = "univer1",
9
+ /** High-contrast palette combining blue, coral, cyan, yellow, green, and orange. */
10
+ Univer2 = "univer2",
11
+ /** Softer pastel palette led by light blue and cyan with warm coral and orange accents. */
12
+ Univer3 = "univer3",
13
+ /** Blue-and-coral palette softened with lavender, pink, light blue, and peach. */
14
+ Univer4 = "univer4",
15
+ /** Light, low-saturation pastel palette with blue, cyan, lavender, pink, and peach. */
16
+ Univer5 = "univer5",
17
+ /** Vivid mixed palette with strong blue, coral, yellow, cyan, and orange contrast. */
18
+ Univer6 = "univer6",
19
+ /** Monochromatic blue palette progressing from deep navy blue to pale periwinkle. */
20
+ UniverGradient1 = "univer gradient1",
21
+ /** Monochromatic purple palette progressing from deep violet to pale lavender. */
22
+ UniverGradient2 = "univer gradient2",
23
+ /** Monochromatic red palette progressing from dark crimson to soft coral pink. */
24
+ UniverGradient3 = "univer gradient3",
25
+ /** Monochromatic azure palette progressing from deep blue to pale sky blue. */
26
+ UniverGradient4 = "univer gradient4",
27
+ /** Monochromatic magenta palette progressing from deep berry to pale pink. */
28
+ UniverGradient5 = "univer gradient5",
29
+ /** Monochromatic teal palette progressing from deep teal to pale cyan. */
30
+ UniverGradient6 = "univer gradient6"
31
+ }
3
32
  /** @ignore */
4
33
  export interface IFChartEnumMixin {
34
+ /**
35
+ * Targets used when clearing selected Chart aggregation settings.
36
+ * @example
37
+ * ```ts
38
+ * const fWorkbook = univerAPI.getActiveWorkbook();
39
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
40
+ * const chartInfo = fWorksheet
41
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
42
+ * .setSource('A1:D8')
43
+ * .setAggregation({ topN: { count: 5 } })
44
+ * .clearAggregation(univerAPI.Enum.ChartAggregationTarget.TopN)
45
+ * .build();
46
+ * await fWorksheet.insertChart(chartInfo);
47
+ * ```
48
+ */
5
49
  ChartAggregationTarget: typeof ChartAggregationTarget;
6
- ChartAxisDimension: typeof ChartAxisDimension;
50
+ /**
51
+ * Trendline algorithms accepted by Cartesian series builders.
52
+ * @example
53
+ * ```ts
54
+ * const fWorkbook = univerAPI.getActiveWorkbook();
55
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
56
+ * const chartInfo = fWorksheet
57
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
58
+ * .setSource('A1:D8')
59
+ * .setTrendline(0, { type: univerAPI.Enum.ChartTrendlineType.linear })
60
+ * .build();
61
+ * await fWorksheet.insertChart(chartInfo);
62
+ * ```
63
+ */
7
64
  ChartTrendlineType: typeof ChartTrendlineType;
65
+ /**
66
+ * Targets used when clearing selected Chart appearance settings.
67
+ * @example
68
+ * ```ts
69
+ * const fWorkbook = univerAPI.getActiveWorkbook();
70
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
71
+ * const chartInfo = fWorksheet
72
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
73
+ * .setSource('A1:D8')
74
+ * .setAppearance({ background: { color: '#ffffff' } })
75
+ * .clearAppearance(univerAPI.Enum.ChartAppearanceTarget.Background)
76
+ * .build();
77
+ * await fWorksheet.insertChart(chartInfo);
78
+ * ```
79
+ */
8
80
  ChartAppearanceTarget: typeof ChartAppearanceTarget;
81
+ /**
82
+ * Semantic names for the category, primary value, and secondary value axes.
83
+ * @example
84
+ * ```ts
85
+ * const fWorkbook = univerAPI.getActiveWorkbook();
86
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
87
+ * const chartInfo = fWorksheet
88
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
89
+ * .setSource('A1:D8')
90
+ * .build();
91
+ * const fChart = await fWorksheet.insertChart(chartInfo);
92
+ *
93
+ * const updatedInfo = fChart.toBuilder().build();
94
+ * await fChart.update({
95
+ * ...updatedInfo,
96
+ * config: {
97
+ * ...updatedInfo.config,
98
+ * axes: {
99
+ * ...updatedInfo.config.axes,
100
+ * [univerAPI.Enum.ChartAxisName.Y]: {
101
+ * title: 'Revenue',
102
+ * },
103
+ * },
104
+ * },
105
+ * });
106
+ * ```
107
+ */
9
108
  ChartAxisName: typeof ChartAxisName;
109
+ /**
110
+ * Targets used when clearing selected axis-pointer settings.
111
+ * @example
112
+ * ```ts
113
+ * const fWorkbook = univerAPI.getActiveWorkbook();
114
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
115
+ * const chartInfo = fWorksheet
116
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
117
+ * .setSource('A1:D8')
118
+ * .setAxisPointer({ indicatorLineColor: '#2563eb' })
119
+ * .clearAxisPointer(univerAPI.Enum.ChartAxisPointerTarget.IndicatorLineColor)
120
+ * .build();
121
+ * await fWorksheet.insertChart(chartInfo);
122
+ * ```
123
+ */
10
124
  ChartAxisPointerTarget: typeof ChartAxisPointerTarget;
125
+ /**
126
+ * Targets used when clearing selected axis settings.
127
+ * @example
128
+ * ```ts
129
+ * const fWorkbook = univerAPI.getActiveWorkbook();
130
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
131
+ * const chartInfo = fWorksheet
132
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
133
+ * .setSource('A1:D8')
134
+ * .setYAxis({ gridLine: { visible: true } })
135
+ * .clearYAxis(univerAPI.Enum.ChartAxisTarget.GridLine)
136
+ * .build();
137
+ * await fWorksheet.insertChart(chartInfo);
138
+ * ```
139
+ */
11
140
  ChartAxisTarget: typeof ChartAxisTarget;
141
+ /**
142
+ * Positions for rendering axis ticks inside or outside the axis.
143
+ * @example
144
+ * ```ts
145
+ * const fWorkbook = univerAPI.getActiveWorkbook();
146
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
147
+ * const chartInfo = fWorksheet
148
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
149
+ * .setSource('A1:D8')
150
+ * .setXAxis({ tick: { position: univerAPI.Enum.ChartAxisTickPosition.Outside } })
151
+ * .build();
152
+ * await fWorksheet.insertChart(chartInfo);
153
+ * ```
154
+ */
12
155
  ChartAxisTickPosition: typeof ChartAxisTickPosition;
156
+ /**
157
+ * Label positions supported by semantic Chart mark lines.
158
+ * @example
159
+ * ```ts
160
+ * const fWorkbook = univerAPI.getActiveWorkbook();
161
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
162
+ * const chartInfo = fWorksheet
163
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
164
+ * .setSource('A1:D8')
165
+ * .setMarkLines([{
166
+ * axis: univerAPI.Enum.ChartSemanticAxis.PrimaryValue,
167
+ * value: 80,
168
+ * label: { position: univerAPI.Enum.ChartMarkLineLabelPosition.End },
169
+ * }])
170
+ * .build();
171
+ * await fWorksheet.insertChart(chartInfo);
172
+ * ```
173
+ */
13
174
  ChartMarkLineLabelPosition: typeof ChartMarkLineLabelPosition;
175
+ /**
176
+ * Semantic axes referenced by mark lines and other cross-axis settings.
177
+ * @example
178
+ * ```ts
179
+ * const fWorkbook = univerAPI.getActiveWorkbook();
180
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
181
+ * const chartInfo = fWorksheet
182
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
183
+ * .setSource('A1:D8')
184
+ * .setMarkLines([{
185
+ * axis: univerAPI.Enum.ChartSemanticAxis.PrimaryValue,
186
+ * value: 80,
187
+ * }])
188
+ * .build();
189
+ * await fWorksheet.insertChart(chartInfo);
190
+ * ```
191
+ */
14
192
  ChartSemanticAxis: typeof ChartSemanticAxis;
193
+ /**
194
+ * Focus behavior used when emphasizing a Chord node or ribbon.
195
+ * @example
196
+ * ```ts
197
+ * const fWorkbook = univerAPI.getActiveWorkbook();
198
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
199
+ * const chartInfo = fWorksheet
200
+ * .newChart(univerAPI.Enum.ChartTypeString.Chord)
201
+ * .setSource('A1:C8')
202
+ * .setChordMapping({ sourceIndex: 0, targetIndex: 1, valueIndex: 2 })
203
+ * .setChordEmphasis({ focus: univerAPI.Enum.ChartChordFocusMode.Adjacency })
204
+ * .build();
205
+ * await fWorksheet.insertChart(chartInfo);
206
+ * ```
207
+ */
208
+ ChartChordFocusMode: typeof ChartChordFocusMode;
209
+ /**
210
+ * Positions supported by Chord node labels.
211
+ * @example
212
+ * ```ts
213
+ * const fWorkbook = univerAPI.getActiveWorkbook();
214
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
215
+ * const chartInfo = fWorksheet
216
+ * .newChart(univerAPI.Enum.ChartTypeString.Chord)
217
+ * .setSource('A1:C8')
218
+ * .setChordMapping({ sourceIndex: 0, targetIndex: 1, valueIndex: 2 })
219
+ * .setChordLabel({ position: univerAPI.Enum.ChartChordLabelPosition.Outside })
220
+ * .build();
221
+ * await fWorksheet.insertChart(chartInfo);
222
+ * ```
223
+ */
224
+ ChartChordLabelPosition: typeof ChartChordLabelPosition;
225
+ /**
226
+ * Color sources supported by Chord ribbons.
227
+ * @example
228
+ * ```ts
229
+ * const fWorkbook = univerAPI.getActiveWorkbook();
230
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
231
+ * const chartInfo = fWorksheet
232
+ * .newChart(univerAPI.Enum.ChartTypeString.Chord)
233
+ * .setSource('A1:C8')
234
+ * .setChordMapping({ sourceIndex: 0, targetIndex: 1, valueIndex: 2 })
235
+ * .setChordRibbon({ color: univerAPI.Enum.ChartChordRibbonColorMode.Gradient })
236
+ * .build();
237
+ * await fWorksheet.insertChart(chartInfo);
238
+ * ```
239
+ */
240
+ ChartChordRibbonColorMode: typeof ChartChordRibbonColorMode;
241
+ /**
242
+ * Visual-language presets supported by Gauge Charts.
243
+ * @example
244
+ * ```ts
245
+ * const fWorkbook = univerAPI.getActiveWorkbook();
246
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
247
+ * const chartInfo = fWorksheet
248
+ * .newChart(univerAPI.Enum.ChartTypeString.Gauge)
249
+ * .setSource('A1:B8')
250
+ * .setCategoryField(0)
251
+ * .setGaugeValueField(1)
252
+ * .setGaugeMode(univerAPI.Enum.ChartGaugeMode.Modern)
253
+ * .build();
254
+ * await fWorksheet.insertChart(chartInfo);
255
+ * ```
256
+ */
257
+ ChartGaugeMode: typeof ChartGaugeMode;
258
+ /**
259
+ * Pointer shapes supported by Gauge Charts.
260
+ * @example
261
+ * ```ts
262
+ * const fWorkbook = univerAPI.getActiveWorkbook();
263
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
264
+ * const chartInfo = fWorksheet
265
+ * .newChart(univerAPI.Enum.ChartTypeString.Gauge)
266
+ * .setSource('A1:B8')
267
+ * .setCategoryField(0)
268
+ * .setGaugeValueField(1)
269
+ * .setGaugePointer({ shape: univerAPI.Enum.ChartGaugePointerShape.Needle })
270
+ * .build();
271
+ * await fWorksheet.insertChart(chartInfo);
272
+ * ```
273
+ */
274
+ ChartGaugePointerShape: typeof ChartGaugePointerShape;
275
+ /**
276
+ * Primary and secondary value-axis assignments for combination series.
277
+ * @example
278
+ * ```ts
279
+ * const fWorkbook = univerAPI.getActiveWorkbook();
280
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
281
+ * const chartInfo = fWorksheet
282
+ * .newChart(univerAPI.Enum.ChartTypeString.Combination)
283
+ * .setSource('A1:D8')
284
+ * .setSeriesAxis(0, univerAPI.Enum.ChartSeriesAxis.Right)
285
+ * .build();
286
+ * await fWorksheet.insertChart(chartInfo);
287
+ * ```
288
+ */
15
289
  ChartSeriesAxis: typeof ChartSeriesAxis;
290
+ /**
291
+ * Targets used when clearing selected per-series style settings.
292
+ * @example
293
+ * ```ts
294
+ * const fWorkbook = univerAPI.getActiveWorkbook();
295
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
296
+ * const chartInfo = fWorksheet
297
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
298
+ * .setSource('A1:D8')
299
+ * .setSeries(0, { color: '#2563eb' })
300
+ * .clearSeries(0, univerAPI.Enum.ChartSeriesClearTarget.Color)
301
+ * .build();
302
+ * await fWorksheet.insertChart(chartInfo);
303
+ * ```
304
+ */
16
305
  ChartSeriesClearTarget: typeof ChartSeriesClearTarget;
306
+ /**
307
+ * Targets used when clearing selected all-series style settings.
308
+ * @example
309
+ * ```ts
310
+ * const fWorkbook = univerAPI.getActiveWorkbook();
311
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
312
+ * const chartInfo = fWorksheet
313
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
314
+ * .setSource('A1:D8')
315
+ * .setAllSeriesStyle({ color: '#2563eb' })
316
+ * .clearAllSeriesStyle(univerAPI.Enum.ChartAllSeriesStyleTarget.Color)
317
+ * .build();
318
+ * await fWorksheet.insertChart(chartInfo);
319
+ * ```
320
+ */
17
321
  ChartAllSeriesStyleTarget: typeof ChartAllSeriesStyleTarget;
322
+ /**
323
+ * Series types available inside a Combination Chart.
324
+ * @example
325
+ * ```ts
326
+ * const fWorkbook = univerAPI.getActiveWorkbook();
327
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
328
+ * const chartInfo = fWorksheet
329
+ * .newChart(univerAPI.Enum.ChartTypeString.Combination)
330
+ * .setSource('A1:D8')
331
+ * .setSeriesType(0, univerAPI.Enum.ChartSeriesTypeString.Line)
332
+ * .build();
333
+ * await fWorksheet.insertChart(chartInfo);
334
+ * ```
335
+ */
18
336
  ChartSeriesTypeString: typeof ChartSeriesTypeString;
337
+ /**
338
+ * Label positions supported by Sunburst Charts.
339
+ * @example
340
+ * ```ts
341
+ * const fWorkbook = univerAPI.getActiveWorkbook();
342
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
343
+ * const chartInfo = fWorksheet
344
+ * .newChart(univerAPI.Enum.ChartTypeString.Sunburst)
345
+ * .setSource('A1:D8')
346
+ * .setHierarchyFields([0, 1, 2])
347
+ * .setValueField(3)
348
+ * .setSunburstLabel({ position: univerAPI.Enum.ChartSunburstLabelPosition.Outside })
349
+ * .build();
350
+ * await fWorksheet.insertChart(chartInfo);
351
+ * ```
352
+ */
19
353
  ChartSunburstLabelPosition: typeof ChartSunburstLabelPosition;
354
+ /**
355
+ * Canonical Chart types accepted by `newChart()` and `toBuilder(type)`.
356
+ * @example
357
+ * ```ts
358
+ * const fWorkbook = univerAPI.getActiveWorkbook();
359
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
360
+ * const chartInfo = fWorksheet
361
+ * .newChart(univerAPI.Enum.ChartTypeString.Gauge)
362
+ * .setSource('A1:B8')
363
+ * .setCategoryField(0)
364
+ * .setGaugeValueField(1)
365
+ * .build();
366
+ * await fWorksheet.insertChart(chartInfo);
367
+ * ```
368
+ */
20
369
  ChartTypeString: typeof ChartTypeString;
370
+ /**
371
+ * Stable names of the built-in Chart themes.
372
+ *
373
+ * Custom themes registered through `univerAPI.registerTheme()` continue to use their
374
+ * registered string names directly.
375
+ *
376
+ * @example
377
+ * ```ts
378
+ * const fWorkbook = univerAPI.getActiveWorkbook();
379
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
380
+ * const chartInfo = fWorksheet
381
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
382
+ * .setSource('A1:B8')
383
+ * .setTheme(univerAPI.Enum.ChartThemeName.UniverGradient1)
384
+ * .build();
385
+ * await fWorksheet.insertChart(chartInfo);
386
+ * ```
387
+ */
388
+ ChartThemeName: typeof ChartThemeName;
389
+ /**
390
+ * Continuous and piecewise visual-map modes for Heatmap Charts.
391
+ * @example
392
+ * ```ts
393
+ * const fWorkbook = univerAPI.getActiveWorkbook();
394
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
395
+ * const chartInfo = fWorksheet
396
+ * .newChart(univerAPI.Enum.ChartTypeString.Heatmap)
397
+ * .setSource('A1:D8')
398
+ * .setVisualMapType(univerAPI.Enum.ChartVisualMapType.Continuous)
399
+ * .build();
400
+ * await fWorksheet.insertChart(chartInfo);
401
+ * ```
402
+ */
21
403
  ChartVisualMapType: typeof ChartVisualMapType;
404
+ /**
405
+ * Targets used when clearing selected Waterfall point styles.
406
+ * @example
407
+ * ```ts
408
+ * const fWorkbook = univerAPI.getActiveWorkbook();
409
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
410
+ * const chartInfo = fWorksheet
411
+ * .newChart(univerAPI.Enum.ChartTypeString.Waterfall)
412
+ * .setSource('A1:B8')
413
+ * .build();
414
+ * const fChart = await fWorksheet.insertChart(chartInfo);
415
+ *
416
+ * const updatedInfo = fChart.toBuilder().build();
417
+ * await fChart.update({
418
+ * ...updatedInfo,
419
+ * config: {
420
+ * ...updatedInfo.config,
421
+ * series: [{
422
+ * selector: { index: 0 },
423
+ * waterfallStyles: {
424
+ * [univerAPI.Enum.ChartWaterfallStyleTarget.Positive]: {
425
+ * color: '#16a34a',
426
+ * },
427
+ * },
428
+ * }],
429
+ * },
430
+ * });
431
+ * ```
432
+ */
22
433
  ChartWaterfallStyleTarget: typeof ChartWaterfallStyleTarget;
434
+ /**
435
+ * Semantic point roles used to mark Waterfall totals and subtotals.
436
+ * @example
437
+ * ```ts
438
+ * const fWorkbook = univerAPI.getActiveWorkbook();
439
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
440
+ * const chartInfo = fWorksheet
441
+ * .newChart(univerAPI.Enum.ChartTypeString.Waterfall)
442
+ * .setSource('A1:B8')
443
+ * .setPointRoles([{
444
+ * series: 0,
445
+ * dataPointIndex: 3,
446
+ * role: univerAPI.Enum.ChartWaterfallPointRole.Total,
447
+ * }])
448
+ * .build();
449
+ * await fWorksheet.insertChart(chartInfo);
450
+ * ```
451
+ */
23
452
  ChartWaterfallPointRole: typeof ChartWaterfallPointRole;
24
- ChartWordCloudShapeSource: typeof ChartWordCloudShapeSource;
25
- AreaLineStyle: typeof AreaLineStyle;
26
- InvalidValueType: typeof InvalidValueType;
27
- LabelAlignEnum: typeof LabelAlignEnum;
28
- LegendPositionEnum: typeof LegendPositionEnum;
29
- LinePointShape: typeof LinePointShape;
30
- PieLabelPosition: typeof PieLabelPosition;
31
- RadarShape: typeof RadarShape;
32
- RelationChartLayoutEnum: typeof RelationChartLayoutEnum;
33
- SelectModeEnum: typeof SelectModeEnum;
34
- SeriesLabelPosition: typeof SeriesLabelPosition;
35
- TitlePositionEnum: typeof TitlePositionEnum;
36
- WaterfallStackTypeEnum: typeof WaterfallStackTypeEnum;
37
- WordCloudShapeEnum: typeof WordCloudShapeEnum;
453
+ /**
454
+ * Straight and smooth line styles for Area Charts.
455
+ * @example
456
+ * ```ts
457
+ * const fWorkbook = univerAPI.getActiveWorkbook();
458
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
459
+ * const chartInfo = fWorksheet
460
+ * .newChart(univerAPI.Enum.ChartTypeString.Area)
461
+ * .setSource('A1:D8')
462
+ * .setAreaLineStyle(univerAPI.Enum.ChartAreaLineStyle.Smooth)
463
+ * .build();
464
+ * await fWorksheet.insertChart(chartInfo);
465
+ * ```
466
+ */
467
+ ChartAreaLineStyle: typeof AreaLineStyle;
468
+ /**
469
+ * Strategies for handling invalid or missing Chart values.
470
+ * @example
471
+ * ```ts
472
+ * const fWorkbook = univerAPI.getActiveWorkbook();
473
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
474
+ * const chartInfo = fWorksheet
475
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
476
+ * .setSource('A1:D8')
477
+ * .setInvalidValueStrategy(univerAPI.Enum.ChartInvalidValueType.Zero)
478
+ * .build();
479
+ * await fWorksheet.insertChart(chartInfo);
480
+ * ```
481
+ */
482
+ ChartInvalidValueType: typeof InvalidValueType;
483
+ /**
484
+ * Horizontal label-alignment values used by Chart label specifications.
485
+ * @example
486
+ * ```ts
487
+ * const fWorkbook = univerAPI.getActiveWorkbook();
488
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
489
+ * const chartInfo = fWorksheet
490
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
491
+ * .setSource('A1:D8')
492
+ * .setTitle({ text: 'Sales', alignment: univerAPI.Enum.ChartLabelAlignEnum.Center })
493
+ * .build();
494
+ * await fWorksheet.insertChart(chartInfo);
495
+ * ```
496
+ */
497
+ ChartLabelAlignEnum: typeof LabelAlignEnum;
498
+ /**
499
+ * Placement values for Chart legends.
500
+ * @example
501
+ * ```ts
502
+ * const fWorkbook = univerAPI.getActiveWorkbook();
503
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
504
+ * const chartInfo = fWorksheet
505
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
506
+ * .setSource('A1:D8')
507
+ * .setLegend({ position: univerAPI.Enum.ChartLegendPositionEnum.Bottom })
508
+ * .build();
509
+ * await fWorksheet.insertChart(chartInfo);
510
+ * ```
511
+ */
512
+ ChartLegendPositionEnum: typeof LegendPositionEnum;
513
+ /**
514
+ * Point-symbol shapes used by Line and Relation Charts.
515
+ * @example
516
+ * ```ts
517
+ * const fWorkbook = univerAPI.getActiveWorkbook();
518
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
519
+ * const chartInfo = fWorksheet
520
+ * .newChart(univerAPI.Enum.ChartTypeString.Relation)
521
+ * .setSource('A1:C8')
522
+ * .setNodeShape(univerAPI.Enum.ChartLinePointShape.Circle)
523
+ * .build();
524
+ * await fWorksheet.insertChart(chartInfo);
525
+ * ```
526
+ */
527
+ ChartLinePointShape: typeof LinePointShape;
528
+ /**
529
+ * Label positions supported by Pie and Donut Charts.
530
+ * @example
531
+ * ```ts
532
+ * const fWorkbook = univerAPI.getActiveWorkbook();
533
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
534
+ * const chartInfo = fWorksheet
535
+ * .newChart(univerAPI.Enum.ChartTypeString.Pie)
536
+ * .setSource('A1:B8')
537
+ * .setPieLabel({ position: univerAPI.Enum.ChartPieLabelPosition.Outside })
538
+ * .build();
539
+ * await fWorksheet.insertChart(chartInfo);
540
+ * ```
541
+ */
542
+ ChartPieLabelPosition: typeof PieLabelPosition;
543
+ /**
544
+ * Secondary plot types supported by composite Pie Charts.
545
+ * @example
546
+ * ```ts
547
+ * const fWorkbook = univerAPI.getActiveWorkbook();
548
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
549
+ * const chartInfo = fWorksheet
550
+ * .newChart(univerAPI.Enum.ChartTypeString.Pie)
551
+ * .setSource('A1:B8')
552
+ * .setPieComposite({
553
+ * enabled: true,
554
+ * secondaryPlot: { type: univerAPI.Enum.ChartPieSecondaryPlotType.Pie },
555
+ * })
556
+ * .build();
557
+ * await fWorksheet.insertChart(chartInfo);
558
+ * ```
559
+ */
560
+ ChartPieSecondaryPlotType: typeof PieSecondaryPlotType;
561
+ /**
562
+ * Polygon and circle layouts for Radar Charts.
563
+ * @example
564
+ * ```ts
565
+ * const fWorkbook = univerAPI.getActiveWorkbook();
566
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
567
+ * const chartInfo = fWorksheet
568
+ * .newChart(univerAPI.Enum.ChartTypeString.Radar)
569
+ * .setSource('A1:D8')
570
+ * .setShape(univerAPI.Enum.ChartRadarShape.Circle)
571
+ * .build();
572
+ * await fWorksheet.insertChart(chartInfo);
573
+ * ```
574
+ */
575
+ ChartRadarShape: typeof RadarShape;
576
+ /**
577
+ * Force, circular, and other layouts supported by Relation Charts.
578
+ * @example
579
+ * ```ts
580
+ * const fWorkbook = univerAPI.getActiveWorkbook();
581
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
582
+ * const chartInfo = fWorksheet
583
+ * .newChart(univerAPI.Enum.ChartTypeString.Relation)
584
+ * .setSource('A1:C8')
585
+ * .setLayout(univerAPI.Enum.ChartRelationChartLayoutEnum.Force)
586
+ * .build();
587
+ * await fWorksheet.insertChart(chartInfo);
588
+ * ```
589
+ */
590
+ ChartRelationChartLayoutEnum: typeof RelationChartLayoutEnum;
591
+ /**
592
+ * Legend selection behaviors.
593
+ * @example
594
+ * ```ts
595
+ * const fWorkbook = univerAPI.getActiveWorkbook();
596
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
597
+ * const chartInfo = fWorksheet
598
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
599
+ * .setSource('A1:D8')
600
+ * .setLegend({ selectMode: univerAPI.Enum.ChartSelectModeEnum.Multiple })
601
+ * .build();
602
+ * await fWorksheet.insertChart(chartInfo);
603
+ * ```
604
+ */
605
+ ChartSelectModeEnum: typeof SelectModeEnum;
606
+ /**
607
+ * Label positions shared by supported Chart series.
608
+ * @example
609
+ * ```ts
610
+ * const fWorkbook = univerAPI.getActiveWorkbook();
611
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
612
+ * const chartInfo = fWorksheet
613
+ * .newChart(univerAPI.Enum.ChartTypeString.Line)
614
+ * .setSource('A1:D8')
615
+ * .setSeries(0, { label: { position: univerAPI.Enum.ChartSeriesLabelPosition.Inside } })
616
+ * .build();
617
+ * await fWorksheet.insertChart(chartInfo);
618
+ * ```
619
+ */
620
+ ChartSeriesLabelPosition: typeof SeriesLabelPosition;
621
+ /**
622
+ * Placement values for Chart titles.
623
+ * @example
624
+ * ```ts
625
+ * const fWorkbook = univerAPI.getActiveWorkbook();
626
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
627
+ * const chartInfo = fWorksheet
628
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
629
+ * .setSource('A1:D8')
630
+ * .setTitle({ text: 'Sales', position: univerAPI.Enum.ChartTitlePositionEnum.Top })
631
+ * .build();
632
+ * await fWorksheet.insertChart(chartInfo);
633
+ * ```
634
+ */
635
+ ChartTitlePositionEnum: typeof TitlePositionEnum;
636
+ /**
637
+ * Layout modes supported by Treemap parent labels.
638
+ * @example
639
+ * ```ts
640
+ * const fWorkbook = univerAPI.getActiveWorkbook();
641
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
642
+ * const chartInfo = fWorksheet
643
+ * .newChart(univerAPI.Enum.ChartTypeString.Treemap)
644
+ * .setSource('A1:D8')
645
+ * .setHierarchyFields([0, 1, 2])
646
+ * .setValueField(3)
647
+ * .setParentLabelLayout(univerAPI.Enum.ChartTreemapParentLabelLayout.Banner)
648
+ * .build();
649
+ * await fWorksheet.insertChart(chartInfo);
650
+ * ```
651
+ */
652
+ ChartTreemapParentLabelLayout: typeof TreemapParentLabelLayout;
653
+ /**
654
+ * Stacking modes supported by Waterfall Charts.
655
+ * @example
656
+ * ```ts
657
+ * const fWorkbook = univerAPI.getActiveWorkbook();
658
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
659
+ * const chartInfo = fWorksheet
660
+ * .newChart(univerAPI.Enum.ChartTypeString.Waterfall)
661
+ * .setSource('A1:B8')
662
+ * .setStackType(univerAPI.Enum.ChartWaterfallStackTypeEnum.Arrangement)
663
+ * .build();
664
+ * await fWorksheet.insertChart(chartInfo);
665
+ * ```
666
+ */
667
+ ChartWaterfallStackTypeEnum: typeof WaterfallStackTypeEnum;
668
+ /**
669
+ * Built-in outline shapes for Word Cloud Charts.
670
+ * @example
671
+ * ```ts
672
+ * const fWorkbook = univerAPI.getActiveWorkbook();
673
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
674
+ * const chartInfo = fWorksheet
675
+ * .newChart(univerAPI.Enum.ChartTypeString.WordCloud)
676
+ * .setSource('A1:B8')
677
+ * .setShape(univerAPI.Enum.ChartWordCloudShapeEnum.Cloud)
678
+ * .build();
679
+ * await fWorksheet.insertChart(chartInfo);
680
+ * ```
681
+ */
682
+ ChartWordCloudShapeEnum: typeof WordCloudShapeEnum;
38
683
  }
684
+ /** @ignore */
39
685
  export declare class FChartEnumMixin extends FEnum implements IFChartEnumMixin {
40
686
  get ChartAggregationTarget(): typeof ChartAggregationTarget;
41
- get ChartAxisDimension(): typeof ChartAxisDimension;
42
687
  get ChartTrendlineType(): typeof ChartTrendlineType;
43
688
  get ChartAppearanceTarget(): typeof ChartAppearanceTarget;
44
689
  get ChartAxisName(): typeof ChartAxisName;
@@ -47,31 +692,39 @@ export declare class FChartEnumMixin extends FEnum implements IFChartEnumMixin {
47
692
  get ChartAxisTickPosition(): typeof ChartAxisTickPosition;
48
693
  get ChartMarkLineLabelPosition(): typeof ChartMarkLineLabelPosition;
49
694
  get ChartSemanticAxis(): typeof ChartSemanticAxis;
695
+ get ChartChordFocusMode(): typeof ChartChordFocusMode;
696
+ get ChartChordLabelPosition(): typeof ChartChordLabelPosition;
697
+ get ChartChordRibbonColorMode(): typeof ChartChordRibbonColorMode;
698
+ get ChartGaugeMode(): typeof ChartGaugeMode;
699
+ get ChartGaugePointerShape(): typeof ChartGaugePointerShape;
50
700
  get ChartSeriesAxis(): typeof ChartSeriesAxis;
51
701
  get ChartSeriesClearTarget(): typeof ChartSeriesClearTarget;
52
702
  get ChartAllSeriesStyleTarget(): typeof ChartAllSeriesStyleTarget;
53
703
  get ChartSeriesTypeString(): typeof ChartSeriesTypeString;
54
704
  get ChartSunburstLabelPosition(): typeof ChartSunburstLabelPosition;
55
705
  get ChartTypeString(): typeof ChartTypeString;
706
+ get ChartThemeName(): typeof ChartThemeName;
56
707
  get ChartVisualMapType(): typeof ChartVisualMapType;
57
708
  get ChartWaterfallStyleTarget(): typeof ChartWaterfallStyleTarget;
58
709
  get ChartWaterfallPointRole(): typeof ChartWaterfallPointRole;
59
- get ChartWordCloudShapeSource(): typeof ChartWordCloudShapeSource;
60
- get AreaLineStyle(): typeof AreaLineStyle;
61
- get InvalidValueType(): typeof InvalidValueType;
62
- get LabelAlignEnum(): typeof LabelAlignEnum;
63
- get LegendPositionEnum(): typeof LegendPositionEnum;
64
- get LinePointShape(): typeof LinePointShape;
65
- get PieLabelPosition(): typeof PieLabelPosition;
66
- get RadarShape(): typeof RadarShape;
67
- get RelationChartLayoutEnum(): typeof RelationChartLayoutEnum;
68
- get SelectModeEnum(): typeof SelectModeEnum;
69
- get SeriesLabelPosition(): typeof SeriesLabelPosition;
70
- get TitlePositionEnum(): typeof TitlePositionEnum;
71
- get WaterfallStackTypeEnum(): typeof WaterfallStackTypeEnum;
72
- get WordCloudShapeEnum(): typeof WordCloudShapeEnum;
710
+ get ChartAreaLineStyle(): typeof AreaLineStyle;
711
+ get ChartInvalidValueType(): typeof InvalidValueType;
712
+ get ChartLabelAlignEnum(): typeof LabelAlignEnum;
713
+ get ChartLegendPositionEnum(): typeof LegendPositionEnum;
714
+ get ChartLinePointShape(): typeof LinePointShape;
715
+ get ChartPieLabelPosition(): typeof PieLabelPosition;
716
+ get ChartPieSecondaryPlotType(): typeof PieSecondaryPlotType;
717
+ get ChartRadarShape(): typeof RadarShape;
718
+ get ChartRelationChartLayoutEnum(): typeof RelationChartLayoutEnum;
719
+ get ChartSelectModeEnum(): typeof SelectModeEnum;
720
+ get ChartSeriesLabelPosition(): typeof SeriesLabelPosition;
721
+ get ChartTitlePositionEnum(): typeof TitlePositionEnum;
722
+ get ChartTreemapParentLabelLayout(): typeof TreemapParentLabelLayout;
723
+ get ChartWaterfallStackTypeEnum(): typeof WaterfallStackTypeEnum;
724
+ get ChartWordCloudShapeEnum(): typeof WordCloudShapeEnum;
73
725
  }
74
726
  declare module '@univerjs/core/facade' {
75
727
  interface FEnum extends IFChartEnumMixin {
76
728
  }
77
729
  }
730
+ export {};