@univerjs-pro/engine-chart 1.0.0-alpha.8 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (396) hide show
  1. package/README.md +25 -3
  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 -0
  5. package/lib/cjs/locale/ca-ES.js +1 -0
  6. package/lib/cjs/locale/de-DE.js +1 -0
  7. package/lib/cjs/locale/en-US.js +1 -0
  8. package/lib/cjs/locale/es-ES.js +1 -0
  9. package/lib/cjs/locale/fa-IR.js +1 -0
  10. package/lib/cjs/locale/fr-FR.js +1 -0
  11. package/lib/cjs/locale/id-ID.js +1 -0
  12. package/lib/cjs/locale/it-IT.js +1 -0
  13. package/lib/cjs/locale/ja-JP.js +1 -0
  14. package/lib/cjs/locale/ko-KR.js +1 -0
  15. package/lib/cjs/locale/pl-PL.js +1 -0
  16. package/lib/cjs/locale/pt-BR.js +1 -0
  17. package/lib/cjs/locale/ru-RU.js +1 -0
  18. package/lib/cjs/locale/sk-SK.js +1 -0
  19. package/lib/cjs/locale/vi-VN.js +1 -0
  20. package/lib/cjs/locale/zh-CN.js +1 -0
  21. package/lib/cjs/locale/zh-HK.js +1 -0
  22. package/lib/cjs/locale/zh-TW.js +1 -0
  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 -0
  26. package/lib/es/locale/ca-ES.js +1 -0
  27. package/lib/es/locale/de-DE.js +1 -0
  28. package/lib/es/locale/en-US.js +1 -0
  29. package/lib/es/locale/es-ES.js +1 -0
  30. package/lib/es/locale/fa-IR.js +1 -0
  31. package/lib/es/locale/fr-FR.js +1 -0
  32. package/lib/es/locale/id-ID.js +1 -0
  33. package/lib/es/locale/it-IT.js +1 -0
  34. package/lib/es/locale/ja-JP.js +1 -0
  35. package/lib/es/locale/ko-KR.js +1 -0
  36. package/lib/es/locale/pl-PL.js +1 -0
  37. package/lib/es/locale/pt-BR.js +1 -0
  38. package/lib/es/locale/ru-RU.js +1 -0
  39. package/lib/es/locale/sk-SK.js +1 -0
  40. package/lib/es/locale/vi-VN.js +1 -0
  41. package/lib/es/locale/zh-CN.js +1 -0
  42. package/lib/es/locale/zh-HK.js +1 -0
  43. package/lib/es/locale/zh-TW.js +1 -0
  44. package/lib/facade.js +1 -1
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -0
  47. package/lib/locale/ca-ES.js +1 -0
  48. package/lib/locale/de-DE.js +1 -0
  49. package/lib/locale/en-US.js +1 -0
  50. package/lib/locale/es-ES.js +1 -0
  51. package/lib/locale/fa-IR.js +1 -0
  52. package/lib/locale/fr-FR.js +1 -0
  53. package/lib/locale/id-ID.js +1 -0
  54. package/lib/locale/it-IT.js +1 -0
  55. package/lib/locale/ja-JP.js +1 -0
  56. package/lib/locale/ko-KR.js +1 -0
  57. package/lib/locale/pl-PL.js +1 -0
  58. package/lib/locale/pt-BR.js +1 -0
  59. package/lib/locale/ru-RU.js +1 -0
  60. package/lib/locale/sk-SK.js +1 -0
  61. package/lib/locale/vi-VN.js +1 -0
  62. package/lib/locale/zh-CN.js +1 -0
  63. package/lib/locale/zh-HK.js +1 -0
  64. package/lib/locale/zh-TW.js +1 -0
  65. package/lib/types/chart-builder/chart-builder-adapter.d.ts +1 -3
  66. package/lib/types/chart-builder/chart-builder.d.ts +4 -6
  67. package/lib/types/chart-builder/chart-live-adapter.d.ts +15 -0
  68. package/lib/types/chart-builder/chart-starter-data.d.ts +3 -2
  69. package/lib/types/chart-builder/chart-types.d.ts +129 -13
  70. package/lib/types/chart-builder/configuration/assertions.d.ts +2 -0
  71. package/lib/types/chart-builder/configuration/cartesian-series.d.ts +3 -1
  72. package/lib/types/chart-builder/configuration/chart-config-group.d.ts +38 -0
  73. package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +1 -33
  74. package/lib/types/chart-builder/configuration/chord.d.ts +12 -0
  75. package/lib/types/chart-builder/configuration/gauge.d.ts +31 -0
  76. package/lib/types/chart-builder/configuration/pie.d.ts +5 -6
  77. package/lib/types/chart-builder/configuration/sunburst.d.ts +7 -0
  78. package/lib/types/chart-builder/configuration/treemap.d.ts +2 -2
  79. package/lib/types/chart-builder/configuration/waterfall.d.ts +3 -1
  80. package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +25 -10
  81. package/lib/types/chart-builder/conversion/chart-context-patch.d.ts +1 -1
  82. package/lib/types/chart-builder/conversion/chart-create-config.d.ts +6 -0
  83. package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +25 -7
  84. package/lib/types/chart-builder/conversion/chart-type-converter.d.ts +3 -1
  85. package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +1419 -7
  86. package/lib/types/chart-builder/conversion/resolve-chart-model-data.d.ts +2 -2
  87. package/lib/types/chart-builder/detached-chart-builder-adapter.d.ts +4 -4
  88. package/lib/types/chart-builder/internal/apply-pending-to-description.d.ts +2 -0
  89. package/lib/types/chart-builder/internal/chart-host-config-adapter.d.ts +3 -0
  90. package/lib/types/chart-builder/internal/chart-patch-replace-policy.d.ts +6 -0
  91. package/lib/types/chart-builder/internal/chart-pending-patch.d.ts +11 -0
  92. package/lib/types/chart-builder/internal/patch-interpreter.d.ts +17 -0
  93. package/lib/types/chart-data-aggregation.d.ts +10 -0
  94. package/lib/types/config/config.d.ts +7 -0
  95. package/lib/types/enum.d.ts +45 -2
  96. package/lib/types/facade/builders/f-area-chart-builder.d.ts +52 -7
  97. package/lib/types/facade/builders/f-boxplot-chart-builder.d.ts +88 -3
  98. package/lib/types/facade/builders/f-bubble-chart-builder.d.ts +59 -6
  99. package/lib/types/facade/builders/f-candlestick-chart-builder.d.ts +90 -31
  100. package/lib/types/facade/builders/f-chord-chart-builder.d.ts +202 -0
  101. package/lib/types/facade/builders/f-combination-chart-builder.d.ts +55 -10
  102. package/lib/types/facade/builders/f-funnel-chart-builder.d.ts +55 -9
  103. package/lib/types/facade/builders/f-gauge-chart-builder.d.ts +420 -0
  104. package/lib/types/facade/builders/f-heatmap-chart-builder.d.ts +83 -26
  105. package/lib/types/facade/builders/f-histogram-chart-builder.d.ts +142 -16
  106. package/lib/types/facade/builders/f-line-chart-builder.d.ts +51 -6
  107. package/lib/types/facade/builders/f-pareto-chart-builder.d.ts +83 -20
  108. package/lib/types/facade/builders/f-pie-chart-builder.d.ts +134 -107
  109. package/lib/types/facade/builders/f-radar-chart-builder.d.ts +64 -11
  110. package/lib/types/facade/builders/f-relation-chart-builder.d.ts +72 -38
  111. package/lib/types/facade/builders/f-scatter-chart-builder.d.ts +58 -6
  112. package/lib/types/facade/builders/f-sunburst-chart-builder.d.ts +138 -0
  113. package/lib/types/facade/builders/f-treemap-chart-builder.d.ts +116 -14
  114. package/lib/types/facade/builders/f-waterfall-chart-builder.d.ts +87 -53
  115. package/lib/types/facade/builders/f-word-cloud-chart-builder.d.ts +64 -15
  116. package/lib/types/facade/chart-builder-registry.d.ts +4 -4
  117. package/lib/types/facade/chart-builder-type-map.d.ts +55 -30
  118. package/lib/types/facade/chart-host-builder-types.d.ts +2 -21
  119. package/lib/types/facade/create-chart-builder.d.ts +46 -0
  120. package/lib/types/facade/f-axis-chart-builder.d.ts +21 -38
  121. package/lib/types/facade/f-cartesian-chart-builder.d.ts +34 -22
  122. package/lib/types/facade/f-chart-builder-base.d.ts +206 -74
  123. package/lib/types/facade/f-chart.d.ts +652 -0
  124. package/lib/types/facade/f-enum.d.ts +686 -31
  125. package/lib/types/facade/f-univer.d.ts +51 -0
  126. package/lib/types/facade/index.d.ts +27 -10
  127. package/lib/types/facade/internal/chart-builder-facade-context.d.ts +11 -10
  128. package/lib/types/index.d.ts +131 -39
  129. package/lib/types/locale/ar-SA.d.ts +3 -0
  130. package/lib/types/locale/ca-ES.d.ts +3 -0
  131. package/lib/types/locale/de-DE.d.ts +3 -0
  132. package/lib/types/locale/en-US.d.ts +46 -0
  133. package/lib/types/locale/es-ES.d.ts +3 -0
  134. package/lib/types/locale/fa-IR.d.ts +3 -0
  135. package/lib/types/locale/fr-FR.d.ts +3 -0
  136. package/lib/types/locale/id-ID.d.ts +3 -0
  137. package/lib/types/locale/it-IT.d.ts +3 -0
  138. package/lib/types/locale/ja-JP.d.ts +3 -0
  139. package/lib/types/locale/ko-KR.d.ts +3 -0
  140. package/lib/types/locale/pl-PL.d.ts +3 -0
  141. package/lib/types/locale/pt-BR.d.ts +3 -0
  142. package/lib/types/locale/ru-RU.d.ts +3 -0
  143. package/lib/types/locale/sk-SK.d.ts +3 -0
  144. package/lib/types/locale/types.d.ts +3 -0
  145. package/lib/types/locale/vi-VN.d.ts +3 -0
  146. package/lib/types/locale/zh-CN.d.ts +3 -0
  147. package/lib/types/locale/zh-HK.d.ts +3 -0
  148. package/lib/types/locale/zh-TW.d.ts +3 -0
  149. package/lib/types/models/{chart-semantic-axes.d.ts → chart-context/axes/chart-semantic-axes.d.ts} +2 -2
  150. package/lib/types/models/chart-context/chart-field-selection.d.ts +21 -0
  151. package/lib/types/models/chart-context/resolve-chart-context.d.ts +5 -0
  152. package/lib/types/models/chart-data/build-chart-data.d.ts +5 -0
  153. package/lib/types/models/chart-data/builders/boxplot-chart-data.d.ts +4 -0
  154. package/lib/types/models/chart-data/builders/candlestick-chart-data.d.ts +4 -0
  155. package/lib/types/models/chart-data/builders/cartesian-point-chart-data.d.ts +5 -0
  156. package/lib/types/models/chart-data/builders/category-series-chart-data.d.ts +5 -0
  157. package/lib/types/models/chart-data/builders/chord-chart-data.d.ts +4 -0
  158. package/lib/types/models/chart-data/builders/gauge-chart-data.d.ts +4 -0
  159. package/lib/types/models/chart-data/builders/heatmap-chart-data.d.ts +3 -0
  160. package/lib/types/models/chart-data/builders/hierarchy-chart-data.d.ts +5 -0
  161. package/lib/types/models/chart-data/builders/histogram-chart-data.d.ts +4 -0
  162. package/lib/types/models/chart-data/builders/relation-chart-data.d.ts +3 -0
  163. package/lib/types/models/chart-data/builders/sankey-chart-data.d.ts +3 -0
  164. package/lib/types/models/chart-data/chart-field-consumption-validator.d.ts +15 -0
  165. package/lib/types/models/chart-data/chart-field-consumption.d.ts +4 -0
  166. package/lib/types/models/chart-data/chart-field-requirements.d.ts +7 -0
  167. package/lib/types/models/chart-data/get-chart-data-builder.d.ts +7 -0
  168. package/lib/types/models/chart-data/internal/aggregate-number-format.d.ts +8 -0
  169. package/lib/types/models/{chart-data-operators → chart-data/internal}/cartesian-point-data.d.ts +3 -8
  170. package/lib/types/models/chart-data/internal/category-data.d.ts +3 -0
  171. package/lib/types/models/chart-data/internal/category-series-aggregation.d.ts +10 -0
  172. package/lib/types/models/chart-data/internal/chart-data-result.d.ts +5 -0
  173. package/lib/types/models/chart-data/internal/chart-hierarchy-data.d.ts +1 -0
  174. package/lib/types/models/chart-data/internal/chord-data.d.ts +7 -0
  175. package/lib/types/models/chart-data/internal/data-set-accessors.d.ts +7 -0
  176. package/lib/types/models/chart-data/internal/gauge-data.d.ts +5 -0
  177. package/lib/types/models/{chart-data-operators/histogram-data.d.ts → chart-data/internal/histogram-bins.d.ts} +1 -1
  178. package/lib/types/models/chart-data/internal/relation-data-shape.d.ts +2 -0
  179. package/lib/types/models/chart-data/internal/source-cell-label.d.ts +3 -0
  180. package/lib/types/models/chart-data/internal/sunburst-data.d.ts +4 -0
  181. package/lib/types/models/chart-data/internal/treemap-data.d.ts +4 -0
  182. package/lib/types/models/chart-data/pie-composite/pie-composite-projection.d.ts +36 -0
  183. package/lib/types/models/chart-data/pie-composite/pie-composite-render-metadata.d.ts +15 -0
  184. package/lib/types/models/chart-data/pie-composite/pie-composite-spec.d.ts +38 -0
  185. package/lib/types/models/{chart-host-style.d.ts → chart-host/chart-host-style.d.ts} +1 -1
  186. package/lib/types/models/chart-host/config/chart-config-interpreter.d.ts +13 -0
  187. package/lib/types/models/{image-chart-host.d.ts → chart-host/image-chart-host.d.ts} +14 -2
  188. package/lib/types/models/{offscreen-chart-host.d.ts → chart-host/offscreen-chart-host.d.ts} +1 -1
  189. package/lib/types/models/chart-host/resource/chart-data-source-resolver.d.ts +58 -0
  190. package/lib/types/models/chart-host/resource/chart-resource-repository.d.ts +111 -0
  191. package/lib/types/models/{chart-resource-serializer.d.ts → chart-host/resource/chart-resource-serializer.d.ts} +3 -2
  192. package/lib/types/models/chart-host/resource/inline-chart-table.d.ts +5 -0
  193. package/lib/types/models/chart-host/resource/persisted-chart-style.d.ts +3 -0
  194. package/lib/types/models/chart-host/resource/resource-ref-chart-data-source.adapter.d.ts +22 -0
  195. package/lib/types/models/chart-host/resource/resource-ref-chart-data-source.provider.d.ts +12 -0
  196. package/lib/types/models/chart-host/static/chart-model-store.d.ts +56 -0
  197. package/lib/types/models/chart-host/static/chart-runtime.d.ts +27 -0
  198. package/lib/types/models/{chart-model.d.ts → chart-model/chart-model.d.ts} +1415 -947
  199. package/lib/types/models/{echart-to-chart-model-init.d.ts → chart-model/echart-to-chart-model-init.d.ts} +2 -2
  200. package/lib/types/models/{data-context-transformers/bar-data-context-transformer.d.ts → chart-model/type-transition/bar-type-transition.d.ts} +1 -1
  201. package/lib/types/models/{data-context-transformers/line-like-context-transformer.d.ts → chart-model/type-transition/line-like-type-transition.d.ts} +1 -1
  202. package/lib/types/models/{data-context-transformers/percent-data-context-transformer.d.ts → chart-model/type-transition/percent-type-transition.d.ts} +1 -1
  203. package/lib/types/models/{chart-element-axis-id.d.ts → chart-render/axes/chart-element-axis-id.d.ts} +1 -1
  204. package/lib/types/models/{chart-runtime-axes.d.ts → chart-render/axes/chart-runtime-axes.d.ts} +4 -4
  205. package/lib/types/models/{chart-render-input-resolver.d.ts → chart-render/chart-render-input-resolver.d.ts} +3 -3
  206. package/lib/types/models/{chart-render-model-manager.service.d.ts → chart-render/chart-render-model-manager.service.d.ts} +2 -3
  207. package/lib/types/models/chart-render/converter/converters/boxplot-chart-converter.d.ts +2 -0
  208. package/lib/types/models/chart-render/converter/converters/bubble-chart-converter.d.ts +2 -0
  209. package/lib/types/models/chart-render/converter/converters/candlestick-chart-converter.d.ts +4 -0
  210. package/lib/types/models/chart-render/converter/converters/chord-chart-converter.d.ts +10 -0
  211. package/lib/types/models/chart-render/converter/converters/combination-chart-converter.d.ts +2 -0
  212. package/lib/types/models/chart-render/converter/converters/funnel-chart-converter.d.ts +2 -0
  213. package/lib/types/models/chart-render/converter/converters/gauge-chart-converter.d.ts +20 -0
  214. package/lib/types/models/chart-render/converter/converters/heatmap-chart-convert.d.ts +2 -0
  215. package/lib/types/models/{mode-converter → chart-render/converter}/converters/histogram-chart-converter.d.ts +2 -3
  216. package/lib/types/models/chart-render/converter/converters/pareto-chart-converter.d.ts +2 -0
  217. package/lib/types/models/chart-render/converter/converters/pie-chart-converter.d.ts +2 -0
  218. package/lib/types/models/chart-render/converter/converters/radar-chart-converter.d.ts +2 -0
  219. package/lib/types/models/chart-render/converter/converters/relation-chart-converter.d.ts +2 -0
  220. package/lib/types/models/chart-render/converter/converters/sankey-chart-converter.d.ts +2 -0
  221. package/lib/types/models/chart-render/converter/converters/scatter-chart-converter.d.ts +2 -0
  222. package/lib/types/models/chart-render/converter/converters/sunburst-chart-converter.d.ts +3 -0
  223. package/lib/types/models/{mode-converter → chart-render/converter}/converters/tools.d.ts +1 -1
  224. package/lib/types/models/chart-render/converter/converters/treemap-chart-converter.d.ts +3 -0
  225. package/lib/types/models/chart-render/converter/converters/waterfall-chart-converter.d.ts +2 -0
  226. package/lib/types/models/{mode-converter → chart-render/converter}/converters/waterfall-layout.d.ts +2 -2
  227. package/lib/types/models/chart-render/converter/converters/word-cloud-converter.d.ts +2 -0
  228. package/lib/types/models/chart-render/converter/echart-text-overflow.d.ts +7 -0
  229. package/lib/types/models/{mode-converter → chart-render/converter}/mode-converter.d.ts +3 -5
  230. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/auto-gradient-presets.d.ts +1 -1
  231. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/axis-title.operator.d.ts +1 -1
  232. package/lib/types/models/chart-render/converter/render-spec-operators/bar-layout.operator.d.ts +3 -0
  233. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/bubble-style.operator.d.ts +1 -1
  234. package/lib/types/models/{mode-converter/render-spec-operators/trend-line/trend-line.operator.d.ts → chart-render/converter/render-spec-operators/chart-axes.operator.d.ts} +1 -1
  235. package/lib/types/models/{mode-converter/render-spec-operators/relation-chart-operator/relation-chart-operator.d.ts → chart-render/converter/render-spec-operators/chart-box-style.operator.d.ts} +1 -1
  236. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/chart-color.d.ts +1 -1
  237. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/empty-style-operator.d.ts +1 -1
  238. package/lib/types/models/chart-render/converter/render-spec-operators/font-size.operator.d.ts +2 -0
  239. package/lib/types/models/chart-render/converter/render-spec-operators/grid-operator.d.ts +12 -0
  240. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/heatmap-chart-operator.d.ts +1 -1
  241. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/hover-mark-style.operator.d.ts +1 -1
  242. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/implicit-category-axis.operator.d.ts +1 -1
  243. package/lib/types/models/{mode-converter/render-spec-operators/series-style-operator/pareto-series-style.handler.d.ts → chart-render/converter/render-spec-operators/invalid-value-style.operator.d.ts} +1 -1
  244. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/legend-size.d.ts +1 -2
  245. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/legend-style.operator.d.ts +1 -1
  246. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/line-like-style.operator.d.ts +1 -1
  247. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/mark-line.operator.d.ts +1 -1
  248. package/lib/types/models/chart-render/converter/render-spec-operators/pie-composite-layout.operator.d.ts +2 -0
  249. package/lib/types/models/chart-render/converter/render-spec-operators/pie-style.operator.d.ts +2 -0
  250. package/lib/types/models/chart-render/converter/render-spec-operators/plot-area.d.ts +10 -0
  251. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/radar-style.operator.d.ts +1 -1
  252. package/lib/types/models/chart-render/converter/render-spec-operators/relation-chart-operator/relation-chart-operator.d.ts +2 -0
  253. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/rich-text-inheritance.operator.d.ts +1 -1
  254. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/rtl-render-spec.operator.d.ts +1 -1
  255. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/sankey-chart-operator.d.ts +1 -1
  256. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/scatter-style.operator.d.ts +1 -1
  257. package/lib/types/models/chart-render/converter/render-spec-operators/series-style-operator/pareto-series-style.handler.d.ts +2 -0
  258. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-style-operator.d.ts +3 -3
  259. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/waterfall-series-style-operator.d.ts +1 -1
  260. package/lib/types/models/chart-render/converter/render-spec-operators/stack.operator.d.ts +2 -0
  261. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/theme.operator.d.ts +1 -1
  262. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/title-style.operator.d.ts +1 -1
  263. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tool-tip-operator.d.ts +6 -17
  264. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tool-tip-renderer.d.ts +1 -1
  265. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tools.d.ts +5 -7
  266. package/lib/types/models/chart-render/converter/render-spec-operators/trend-line/trend-line.operator.d.ts +2 -0
  267. package/lib/types/models/chart-render/converter/render-spec-operators/visual-map-operator.d.ts +6 -0
  268. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/watermark.operator.d.ts +1 -1
  269. package/lib/types/models/{echart-render-model.d.ts → chart-render/echart-render-model.d.ts} +22 -12
  270. package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/chart-element-edit-overlay.d.ts +2 -2
  271. package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/resolve-chart-element-hit-layout.d.ts +2 -2
  272. package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/types.d.ts +1 -1
  273. package/lib/types/models/chart-render/format/chart-value-format.d.ts +16 -0
  274. package/lib/types/models/{chart-runtime-style.d.ts → chart-render/style/chart-runtime-style.d.ts} +3 -3
  275. package/lib/types/models/common/chart-field-diagnostic.d.ts +14 -0
  276. package/lib/types/models/common/chart-field-role.d.ts +53 -0
  277. package/lib/types/models/common/chart-locale-texts.d.ts +44 -0
  278. package/lib/types/models/common/constants/chord.d.ts +5 -0
  279. package/lib/types/models/common/constants/default-chart-style.d.ts +920 -0
  280. package/lib/types/models/{constants → common/constants}/default.d.ts +3 -2
  281. package/lib/types/models/common/constants/hierarchy.d.ts +5 -0
  282. package/lib/types/models/common/constants/histogram-defaults.d.ts +8 -0
  283. package/lib/types/models/common/constants/treemap.d.ts +1 -0
  284. package/lib/types/models/common/theme/build-in-theme/theme-util.d.ts +4 -0
  285. package/lib/types/models/{chart-theme.service.d.ts → common/theme/chart-theme.service.d.ts} +1 -3
  286. package/lib/types/plugin.d.ts +15 -0
  287. package/lib/types/types.d.ts +307 -39
  288. package/lib/types/util.d.ts +1 -1
  289. package/lib/types/utils/compact.d.ts +6 -0
  290. package/lib/types/utils/echarts.d.ts +0 -1
  291. package/lib/types/word-cloud-resource/word-cloud-resource-config.d.ts +5 -0
  292. package/lib/types/wordcloud-chart/adapters/echarts/chart-view.d.ts +0 -2
  293. package/lib/types/wordcloud-chart/adapters/echarts/echarts-options.d.ts +1 -1
  294. package/lib/types/wordcloud-chart/adapters/echarts/layout-register.d.ts +0 -2
  295. package/lib/types/wordcloud-chart/adapters/echarts/series-model.d.ts +0 -2
  296. package/lib/types/wordcloud-chart/adapters/echarts/text-measurer.d.ts +1 -1
  297. package/lib/types/wordcloud-chart/core/collision/box-shape-engine.d.ts +1 -1
  298. package/lib/types/wordcloud-chart/word-cloud-render-config.d.ts +1 -0
  299. package/lib/umd/facade.js +1 -1
  300. package/lib/umd/index.js +1 -1
  301. package/lib/umd/locale/ar-SA.js +1 -0
  302. package/lib/umd/locale/ca-ES.js +1 -0
  303. package/lib/umd/locale/de-DE.js +1 -0
  304. package/lib/umd/locale/en-US.js +1 -0
  305. package/lib/umd/locale/es-ES.js +1 -0
  306. package/lib/umd/locale/fa-IR.js +1 -0
  307. package/lib/umd/locale/fr-FR.js +1 -0
  308. package/lib/umd/locale/id-ID.js +1 -0
  309. package/lib/umd/locale/it-IT.js +1 -0
  310. package/lib/umd/locale/ja-JP.js +1 -0
  311. package/lib/umd/locale/ko-KR.js +1 -0
  312. package/lib/umd/locale/pl-PL.js +1 -0
  313. package/lib/umd/locale/pt-BR.js +1 -0
  314. package/lib/umd/locale/ru-RU.js +1 -0
  315. package/lib/umd/locale/sk-SK.js +1 -0
  316. package/lib/umd/locale/vi-VN.js +1 -0
  317. package/lib/umd/locale/zh-CN.js +1 -0
  318. package/lib/umd/locale/zh-HK.js +1 -0
  319. package/lib/umd/locale/zh-TW.js +1 -0
  320. package/package.json +11 -4
  321. package/lib/types/chart-builder/candlestick-inline-table.d.ts +0 -4
  322. package/lib/types/chart-builder/configuration/index.d.ts +0 -34
  323. package/lib/types/chart-builder/index.d.ts +0 -17
  324. package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +0 -3
  325. package/lib/types/chart-builder/internal/merge-description.d.ts +0 -2
  326. package/lib/types/facade/builders/index.d.ts +0 -17
  327. package/lib/types/facade/f-chart-base.d.ts +0 -82
  328. package/lib/types/facade/f-charts-base.d.ts +0 -74
  329. package/lib/types/facade/internal/host-builder-composer.d.ts +0 -16
  330. package/lib/types/models/chart-data-operators/build-chart-data.d.ts +0 -9
  331. package/lib/types/models/chart-data-operators/index.d.ts +0 -3
  332. package/lib/types/models/chart-data-operators/operators.d.ts +0 -26
  333. package/lib/types/models/chart-data-operators/treemap-data.d.ts +0 -3
  334. package/lib/types/models/chart-element-edit-overlay/index.d.ts +0 -4
  335. package/lib/types/models/chart-locale-texts.d.ts +0 -36
  336. package/lib/types/models/constants/build-in-theme/index.d.ts +0 -15
  337. package/lib/types/models/constants/build-in-theme/theme-util.d.ts +0 -5
  338. package/lib/types/models/constants/default-chart-style.d.ts +0 -181
  339. package/lib/types/models/constants/histogram-defaults.d.ts +0 -4
  340. package/lib/types/models/constants/treemap.d.ts +0 -1
  341. package/lib/types/models/data-context-transformers/box-plot-data-context-transformer.d.ts +0 -3
  342. package/lib/types/models/data-context-transformers/candlestick-data-context-transformer.d.ts +0 -4
  343. package/lib/types/models/data-context-transformers/histogram-data-context-transformer.d.ts +0 -7
  344. package/lib/types/models/data-context-transformers/pareto-data-context-transformer.d.ts +0 -3
  345. package/lib/types/models/data-context-transformers/pie-data-context-transformer.d.ts +0 -3
  346. package/lib/types/models/data-context-transformers/treemap-data-context-transformer.d.ts +0 -11
  347. package/lib/types/models/data-context-transformers/word-cloud-data-context-transform.d.ts +0 -3
  348. package/lib/types/models/mode-converter/converters/boxplot-chart-converter.d.ts +0 -3
  349. package/lib/types/models/mode-converter/converters/bubble-chart-converter.d.ts +0 -3
  350. package/lib/types/models/mode-converter/converters/candlestick-chart-converter.d.ts +0 -5
  351. package/lib/types/models/mode-converter/converters/combination-chart-converter.d.ts +0 -3
  352. package/lib/types/models/mode-converter/converters/funnel-chart-converter.d.ts +0 -3
  353. package/lib/types/models/mode-converter/converters/heatmap-chart-convert.d.ts +0 -3
  354. package/lib/types/models/mode-converter/converters/pareto-chart-converter.d.ts +0 -3
  355. package/lib/types/models/mode-converter/converters/pie-chart-converter.d.ts +0 -3
  356. package/lib/types/models/mode-converter/converters/radar-chart-converter.d.ts +0 -3
  357. package/lib/types/models/mode-converter/converters/relation-chart-converter.d.ts +0 -3
  358. package/lib/types/models/mode-converter/converters/sankey-chart-converter.d.ts +0 -3
  359. package/lib/types/models/mode-converter/converters/scatter-chart-converter.d.ts +0 -3
  360. package/lib/types/models/mode-converter/converters/treemap-chart-converter.d.ts +0 -4
  361. package/lib/types/models/mode-converter/converters/waterfall-chart-converter.d.ts +0 -3
  362. package/lib/types/models/mode-converter/converters/word-cloud-converter.d.ts +0 -3
  363. package/lib/types/models/mode-converter/render-spec-operators/chart-axes.operator.d.ts +0 -2
  364. package/lib/types/models/mode-converter/render-spec-operators/chart-box-style.operator.d.ts +0 -2
  365. package/lib/types/models/mode-converter/render-spec-operators/font-size.operator.d.ts +0 -2
  366. package/lib/types/models/mode-converter/render-spec-operators/grid-operator.d.ts +0 -2
  367. package/lib/types/models/mode-converter/render-spec-operators/index.d.ts +0 -15
  368. package/lib/types/models/mode-converter/render-spec-operators/invalid-value-style.operator.d.ts +0 -2
  369. package/lib/types/models/mode-converter/render-spec-operators/pie-style.operator.d.ts +0 -2
  370. package/lib/types/models/mode-converter/render-spec-operators/stack.operator.d.ts +0 -2
  371. package/lib/types/models/mode-converter/render-spec-operators/visual-map-operator.d.ts +0 -2
  372. package/lib/types/models/spec-converter/spec-converter.d.ts +0 -1
  373. package/lib/types/models/word-cloud-musk-image.service.d.ts +0 -17
  374. package/lib/types/wordcloud-chart/index.d.ts +0 -12
  375. /package/lib/types/models/{mode-converter → chart-render/converter}/converters/constants.d.ts +0 -0
  376. /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/operator-types.d.ts +0 -0
  377. /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/relation-chart-operator/relation-force-directed-layout.d.ts +0 -0
  378. /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-chart-style.handler.d.ts +0 -0
  379. /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-data-label.handler.d.ts +0 -0
  380. /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/trend-line/trendline-util.d.ts +0 -0
  381. /package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/palette.d.ts +0 -0
  382. /package/lib/types/models/{series-style → chart-render/style/series-style}/series-style-resolver.d.ts +0 -0
  383. /package/lib/types/models/{constants → common/theme}/build-in-theme/default.d.ts +0 -0
  384. /package/lib/types/models/{constants → common/theme}/build-in-theme/types.d.ts +0 -0
  385. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient1.d.ts +0 -0
  386. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient2.d.ts +0 -0
  387. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient3.d.ts +0 -0
  388. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient4.d.ts +0 -0
  389. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient5.d.ts +0 -0
  390. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient6.d.ts +0 -0
  391. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer1.d.ts +0 -0
  392. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer2.d.ts +0 -0
  393. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer3.d.ts +0 -0
  394. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer4.d.ts +0 -0
  395. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer5.d.ts +0 -0
  396. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer6.d.ts +0 -0
@@ -0,0 +1,51 @@
1
+ import type { IEchartTheme } from '@univerjs-pro/engine-chart';
2
+ import { FUniver } from '@univerjs/core/facade';
3
+ /** @ignore */
4
+ export interface IFUniverChartMixin {
5
+ /**
6
+ * Registers a Chart theme in this Univer runtime.
7
+ *
8
+ * The theme is shared by Sheet, Slide, Document, and Board Charts. Use the
9
+ * same `name` with a Chart builder's `setTheme()` method to apply it.
10
+ * Registering the same name again replaces the previous theme.
11
+ *
12
+ * @param {string} name The stable name used by Chart builders.
13
+ * @param {IEchartTheme} theme The complete Chart theme definition.
14
+ * @returns {void}
15
+ * @example
16
+ * ```ts
17
+ * import { UniverTheme1 } from '@univerjs-pro/engine-chart';
18
+ *
19
+ * univerAPI.registerTheme('brand', {
20
+ * ...UniverTheme1,
21
+ * themeName: 'brand',
22
+ * theme: {
23
+ * ...UniverTheme1.theme,
24
+ * color: ['#1677ff', '#52c41a', '#faad14'],
25
+ * },
26
+ * });
27
+ *
28
+ * const fWorkbook = univerAPI.getActiveWorkbook();
29
+ * if (!fWorkbook) throw new Error('No active workbook.');
30
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
31
+ * if (!fWorksheet) throw new Error('Worksheet not found.');
32
+ *
33
+ * const chartInfo = fWorksheet
34
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
35
+ * .setSource('A1:D8')
36
+ * .setTheme('brand')
37
+ * .build();
38
+ *
39
+ * await fWorksheet.insertChart(chartInfo);
40
+ * ```
41
+ */
42
+ registerTheme(name: string, theme: IEchartTheme): void;
43
+ }
44
+ /** @ignore */
45
+ export declare class FUniverChartMixin extends FUniver implements IFUniverChartMixin {
46
+ registerTheme(name: string, theme: IEchartTheme): void;
47
+ }
48
+ declare module '@univerjs/core/facade' {
49
+ interface FUniver extends IFUniverChartMixin {
50
+ }
51
+ }
@@ -1,16 +1,33 @@
1
1
  import './register-builders';
2
2
  import './f-enum';
3
- export * from './builders';
4
- export { getChartBuilderConstructor } from './chart-builder-registry';
5
- export type { IChartBuilderTypeMap } from './chart-builder-type-map';
6
- export type { HostAnyChartBuilder, HostChartBuilderOf, HostComposedChartBuilder, IHostChartBuilderTypes } from './chart-host-builder-types';
3
+ import './f-univer';
4
+ export type { IChartLiveAdapter } from '../chart-builder/chart-live-adapter';
5
+ export { FAreaChartBuilder } from './builders/f-area-chart-builder';
6
+ export { FBoxplotChartBuilder } from './builders/f-boxplot-chart-builder';
7
+ export { FBubbleChartBuilder } from './builders/f-bubble-chart-builder';
8
+ export { FCandlestickChartBuilder } from './builders/f-candlestick-chart-builder';
9
+ export { FChordChartBuilder } from './builders/f-chord-chart-builder';
10
+ export { FCombinationChartBuilder } from './builders/f-combination-chart-builder';
11
+ export { FFunnelChartBuilder } from './builders/f-funnel-chart-builder';
12
+ export { FGaugeChartBuilder } from './builders/f-gauge-chart-builder';
13
+ export { FHeatmapChartBuilder } from './builders/f-heatmap-chart-builder';
14
+ export { FHistogramChartBuilder } from './builders/f-histogram-chart-builder';
15
+ export { FLineChartBuilder } from './builders/f-line-chart-builder';
16
+ export { FParetoChartBuilder } from './builders/f-pareto-chart-builder';
17
+ export { FPieChartBuilder } from './builders/f-pie-chart-builder';
18
+ export { FRadarChartBuilder } from './builders/f-radar-chart-builder';
19
+ export { FRelationChartBuilder } from './builders/f-relation-chart-builder';
20
+ export { FScatterChartBuilder } from './builders/f-scatter-chart-builder';
21
+ export { FSunburstChartBuilder } from './builders/f-sunburst-chart-builder';
22
+ export { FTreemapChartBuilder } from './builders/f-treemap-chart-builder';
23
+ export { FWaterfallChartBuilder } from './builders/f-waterfall-chart-builder';
24
+ export { FWordCloudChartBuilder } from './builders/f-word-cloud-chart-builder';
25
+ export type { FAnyChartBuilder, IChartBuilderTypeMap } from './chart-builder-type-map';
26
+ export type { HostComposedChartBuilder } from './chart-host-builder-types';
27
+ export type { FChartInfoBuilder, IChartBuilderExtensionContext } from './create-chart-builder';
28
+ export { createChartBuilder } from './create-chart-builder';
7
29
  export { FAxisChartBuilder } from './f-axis-chart-builder';
8
30
  export { FCartesianChartBuilder } from './f-cartesian-chart-builder';
9
- export { FChartBase } from './f-chart-base';
31
+ export { FChart } from './f-chart';
10
32
  export { FChartBuilderBase } from './f-chart-builder-base';
11
- export { FChartsBase } from './f-charts-base';
12
- export type { IChartBuilderHostTypes } from './f-charts-base';
13
- export { getChartBuilderPendingConfig } from './internal/chart-builder-facade-context';
14
33
  export { CHART_FACADE_RANDOM_ID_LENGTH } from './internal/constants';
15
- export { HostBuilderComposer } from './internal/host-builder-composer';
16
- export type { EngineChartBuilderConstructor } from './internal/host-builder-composer';
@@ -1,12 +1,13 @@
1
- import type { ChartBuilder } from '@univerjs-pro/engine-chart';
2
- export type ChartFacadeBuilderConstructor<TFacade = unknown> = new (context: IChartBuilderFacadeContext) => TFacade;
3
- /** Facade-owned wrapping context for one shared chart builder instance. */
4
- export interface IChartBuilderFacadeContext<TBuilder extends ChartBuilder = ChartBuilder> {
1
+ import type { ChartBuilder, ChartTypeString, IChartCreateConfig, IChartInfo } from '@univerjs-pro/engine-chart';
2
+ import type { IChartBuilderTypeMap } from '../chart-builder-type-map';
3
+ export interface IChartBuilderFacadeContext<TBuilder extends ChartBuilder = ChartBuilder, TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> {
5
4
  readonly builder: TBuilder;
6
- wrap<TFacade>(Constructor: ChartFacadeBuilderConstructor<TFacade>): TFacade;
5
+ readonly info: Partial<TInfo>;
6
+ readonly normalizeSource: (source: TSource) => TDataSource;
7
+ readonly createConfig: (builder: TBuilder) => IChartCreateConfig;
8
+ readonly requireSource: boolean;
7
9
  }
8
- export declare const ChartBuilderFacadeContextAccess: unique symbol;
9
- export interface IChartBuilderFacadeContextAccess {
10
- readonly [ChartBuilderFacadeContextAccess]: IChartBuilderFacadeContext;
11
- }
12
- export declare function wrapChartBuilder<TFacade>(builder: ChartBuilder, Constructor: ChartFacadeBuilderConstructor<TFacade>): TFacade;
10
+ export type ChartFacadeBuilderConstructor<TFacade, TSource, TDataSource, TInfo extends IChartInfo<TDataSource>> = new (context: IChartBuilderFacadeContext<ChartBuilder, TSource, TDataSource, TInfo>) => TFacade;
11
+ export declare function wrapChartBuilder<TFacade, TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>>(builder: ChartBuilder, Constructor: ChartFacadeBuilderConstructor<TFacade, TSource, TDataSource, TInfo>, context?: Omit<IChartBuilderFacadeContext<ChartBuilder, TSource, TDataSource, TInfo>, 'builder'>): TFacade;
12
+ /** Wraps a core Builder with the concrete Facade selected by its fixed type. */
13
+ export declare function wrapTypedChartBuilder<T extends ChartTypeString, TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>>(builder: ChartBuilder, type: T, context?: Omit<IChartBuilderFacadeContext<ChartBuilder, TSource, TDataSource, TInfo>, 'builder'>): IChartBuilderTypeMap<TSource, TDataSource, TInfo>[T];
@@ -1,48 +1,138 @@
1
- export type { ChartColor, ChartDescription, ChartLegendSpec, ChartLinearGradientInput, ChartPublicSeriesSelector, ChartSeriesSelector, ChartSeriesTrendlineSelector, ChartSubtitleSpec, ChartTitleSpec, IChartAggregationSpec, IChartAppearanceSpec, IChartAreaSpec, IChartAxesSpec, IChartAxisBindingDescription, IChartAxisLabelSpec, IChartAxisPointerSpec, IChartAxisSpec, IChartBarSpec, IChartBubbleMappingSpec, IChartCandlestickMappingSpec, IChartCandlestickSpec, IChartCandlestickStateStyleSpec, IChartConfigOperation, IChartDescription, IChartFontSpec, IChartFunnelSpec, IChartGradientPoint, IChartGradientStop, IChartHeatmapLabelSpec, IChartHeatmapSpec, IChartHistogramBinningSpec, IChartHistogramDataSpec, IChartHistogramSpec, IChartHistogramStyleSpec, IChartLegendOptions, IChartLinearGradient, IChartLineSeriesPatch, IChartMappingSpec, IChartMarkLineLabelSpec, IChartMarkLineSpec, IChartParetoBarLabelStyleSpec, IChartParetoBarStyleSpec, IChartParetoBorderStyleSpec, IChartParetoLineLabelStyleSpec, IChartParetoLineStyleSpec, IChartParetoPointStyleSpec, IChartParetoSpec, IChartPieLabelSpec, IChartPieSpec, IChartRadarSpec, IChartRelationForceSpec, IChartRelationSpec, IChartScatterMappingSpec, IChartSeriesBorderSpec, IChartSeriesDataPointStyleSpec, IChartSeriesDescription, IChartSeriesLabelSpec, IChartSeriesPatch, IChartSeriesPointSpec, IChartSeriesStyleSpec, IChartSliceStyleSpec, IChartSolidSeriesPatch, IChartSolidSeriesStyleSpec, IChartSubtitleOptions, IChartSymbolDataPointStyleSpec, IChartTitleOptions, IChartTreemapLabelSpec, IChartTreemapSpec, IChartTrendlineSpec, IChartWaterfallConnectorStyleSpec, IChartWaterfallPointRoleSpec, IChartWaterfallSpec, IChartWordCloudDescription, IChartWordCloudSpec, IInlineChartBuilderAdapter, IInlineChartHostPatch, } from './chart-builder';
2
- export { AREA_CHART_TYPES, AXIS_CHART_TYPES, CARTESIAN_CHART_TYPES, CHART_LINEAR_GRADIENT_TYPE, ChartAggregationTarget, ChartAllSeriesStyleTarget, ChartAppearanceTarget, ChartAxisName, ChartAxisPointerTarget, ChartAxisTarget, ChartAxisTickPosition, chartLinearGradient, ChartSeriesAxis, ChartSeriesClearTarget, ChartSeriesTypeString, ChartTypeString, ChartVisualMapType, ChartWaterfallStyleTarget, ChartWordCloudShapeSource, DEFAULT_CHART_TYPE, } from './chart-builder';
3
- export { canonicalizeChartContext, ChartBuilder, chartTypeToBits, clearAggregation, clearAllSeriesStyle, clearAppearance, clearAreaLineStyle, clearAxisPointer, clearAxisTitle, clearBar, clearBubbleMapping, clearCandlestickFields, clearCategoryField, clearCellLabel, clearCumulativeLineStyle, clearDojiStyle, clearDoughnutHole, clearFallingStyle, clearHistogramField, clearHistogramOverflowThreshold, clearHistogramUnderflowThreshold, clearLegend, clearLineStyle, clearMarkLines, clearMaskImage, clearPalette, clearParetoBarStyle, clearPieLabel, clearRelationForce, clearRightYAxis, clearRisingStyle, clearScatterMapping, clearSeries, clearSliceBorderColor, clearSliceStyle, clearSubtitle, clearTheme, clearTitle, clearTrendlines, clearValueFields, clearValueRange, clearValueSuffix, clearValueUnit, clearWaterfallConnector, clearWaterfallStyle, clearXAxis, clearYAxis, describeChartModel, DetachedChartBuilderAdapter, InlineChartBuilder, removeTrendline, resetAutoGradientFill, resetCandleWidth, resetCircularLabelRotation, resetCombinationSeriesAxis, resetCombinationSeriesType, resetDecimalPlaces, resetEmphasisEnabled, resetExplosion, resetFunnelGap, resetHalfPie, resetHistogramBinGap, resetHistogramBinning, resetIncludeZeroValues, resetInvalidValueStrategy, resetLabelLineVisible, resetPaddingAngleEnabled, resetRadarFill, resetRadarShape, resetRelationLayout, resetRelationNodeShape, resetRosePie, resetTreemapLabel, resetTreemapParentLabelLayout, resetUseAbsoluteValue, resetUseDateAxis, resetUseSubtotal, resetUseValueAsSymbolSize, resetValueScale, resetVisualMapType, resetWaterfallStackType, resetWordCloudRepeat, resetWordCloudShape, resolveChartDescriptionMetadata, resolveChartModelData, resolveInlineChartDataSet, setAggregation, setAllSeriesStyle, setAppearance, setAreaLineStyle, setAutoGradientFill, setAxisPointer, setAxisTitle, setBar, setBubbleMapping, setCandlestickFields, setCandleWidth, setCategoryField, setCellLabel, setCircularLabelRotation, setCombinationSeriesAxis, setCombinationSeriesType, setCumulativeLineStyle, setDecimalPlaces, setDojiStyle, setDoughnutHole, setEmphasisEnabled, setExplosion, setFallingStyle, setFunnelGap, setHalfPie, setHistogramBinCount, setHistogramBinGap, setHistogramBinWidth, setHistogramField, setHistogramOverflowThreshold, setHistogramUnderflowThreshold, setIncludeZeroValues, setInvalidValueStrategy, setLabelLineVisible, setLegend, setLineStyle, setMarkLines, setMaskImage, setPaddingAngleEnabled, setPalette, setParetoBarStyle, setPieLabel, setRadarFill, setRadarShape, setRelationForce, setRelationLayout, setRelationNodeShape, setRightYAxis, setRisingStyle, setRosePie, setScatterMapping, setSeries, setSliceBorderColor, setSliceStyle, setSubtitle, setTheme, setTitle, setTreemapHierarchyFields, setTreemapLabel, setTreemapParentLabelLayout, setTreemapValueField, setTrendline, setUseAbsoluteValue, setUseDateAxis, setUseSubtotal, setUseValueAsSymbolSize, setValueFields, setValueRange, setValueScale, setValueSuffix, setValueUnit, setVisualMapType, setWaterfallConnector, setWaterfallPointRoles, setWaterfallStackType, setWaterfallStyle, setWordCloudRepeat, setWordCloudShape, setXAxis, setYAxis, toChartModelConfig, toCompleteChartModelConfig, } from './chart-builder';
4
- export type { ChartPendingConfig, ChartTrendlineSelector, ChartTrendlineValue, IChartBuilderAdapter, IChartCreateConfig, } from './chart-builder';
5
- export { normalizeCandlestickInlineTable } from './chart-builder/candlestick-inline-table';
1
+ export { ChartBuilder, } from './chart-builder/chart-builder';
2
+ export type { IChartBuilderAdapter, } from './chart-builder/chart-builder-adapter';
3
+ export type { ChartColor, ChartLinearGradientInput, IChartGradientPoint, IChartGradientStop, IChartLinearGradient, } from './chart-builder/chart-color';
4
+ export { CHART_LINEAR_GRADIENT_TYPE, chartLinearGradient, } from './chart-builder/chart-color';
5
+ export type { ChartDescription, } from './chart-builder/chart-description';
6
+ export type { IChartLiveAdapter } from './chart-builder/chart-live-adapter';
6
7
  export { createChartStarterRows } from './chart-builder/chart-starter-data';
7
- export { AreaLineStyle, AxisAlignEnum, AxisValueType, BarShape, CategoryType, ChartAttributeBits, ChartAxisDimension, ChartBorderDashType, ChartCandlestickState, ChartHistogramBinKind, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartSourceDataTypeEnum, ChartTrendlineType, ChartTypeBits, ChartWaterfallPointRole, DataOrientation, HistogramBinningMode, InvalidValueType, IRuntimeAxisPosition, IRuntimeAxisPriority, LabelAlignEnum, LabelContentType, LegendPositionEnum, LinePointShape, ParetoSeriesIndex, ParetoSeriesPart, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, StackType, TextAlign, TextVerticalAlign, TitlePositionEnum, TreemapParentLabelLayout, WaterfallSeriesTypeEnum, WaterfallStackTypeEnum, WordCloudShapeEnum, } from './enum';
8
- export { buildChartData, RelationColumnIndex } from './models/chart-data-operators/build-chart-data';
9
- export { CartesianPointRoleIndex, CartesianPointValueIndex } from './models/chart-data-operators/cartesian-point-data';
10
- export { MAX_HISTOGRAM_BIN_COUNT } from './models/chart-data-operators/histogram-data';
11
- export { defaultChartContextOperators, findCategoryIndexes, findCategoryOperator, findHeaderOperator, findSeriesOperator, generateChartModelContextByOperators, pieSeriesFilterOperator, } from './models/chart-data-operators/operators';
12
- export { CHART_HOST_DEFAULT_BORDER_COLOR, CHART_HOST_DEFAULT_BORDER_RADIUS, CHART_HOST_DEFAULT_BORDER_WIDTH, composeChartHostFrameImage, getChartHostFrameContentRect, resolveChartHostFrameBorder, resolveChartHostFrameStyle, resolveDefaultChartHostFrameStyle, shouldComposeChartHostFrame, } from './models/chart-host-style';
13
- export type { IResolveChartHostFrameStyleInput, IResolveDefaultChartHostFrameStyleInput, } from './models/chart-host-style';
14
- export type { IChartLocaleTexts } from './models/chart-locale-texts';
15
- export { getDefaultChartLocaleTexts, replaceLocaleParams, resolveChartLocaleTexts } from './models/chart-locale-texts';
16
- export { CHART_DEBOUNCE_TIME, ChartModel, } from './models/chart-model';
17
- export { resolveChartRenderModelImageExportInput } from './models/chart-render-input-resolver';
18
- export type { IChartRenderInputRuntime, IResolveChartRenderModelImageExportInputParams, } from './models/chart-render-input-resolver';
19
- export { ChartRenderModelManagerService, IChartRenderModelManagerService, registerChartRenderModelManagerService, } from './models/chart-render-model-manager.service';
20
- export { serializeChartResource } from './models/chart-resource-serializer';
21
- export { resolveChartRuntimeStyle, resolveChartStyleBackgroundColor, } from './models/chart-runtime-style';
22
- export { ChartThemeService, registerChartThemeService, } from './models/chart-theme.service';
23
- export { getThemeAxesByType } from './models/constants/build-in-theme';
24
- export { themeDefault, UniverTheme1, UniverTheme2, UniverTheme3, UniverTheme4, UniverTheme5, UniverTheme6, UniverThemeGradient1, UniverThemeGradient2, UniverThemeGradient3, UniverThemeGradient4, UniverThemeGradient5, UniverThemeGradient6, } from './models/constants/build-in-theme';
25
- export type { IEchartTheme } from './models/constants/build-in-theme';
26
- export { getThemeProps } from './models/constants/build-in-theme';
27
- export { defaultChartHeight, defaultChartWidth, EChartRenderEngineName } from './models/constants/default';
28
- export { defaultChartConfig, RTLChartStyle, themeColors } from './models/constants/default-chart-style';
29
- export { MAX_HISTOGRAM_BIN_GAP } from './models/constants/histogram-defaults';
30
- export { EChartRenderEngine, EChartRenderModel } from './models/echart-render-model';
31
- export type { IEChartRenderModelOptions } from './models/echart-render-model';
32
- export { echartToChartModelInit, isChartModelInit } from './models/echart-to-chart-model-init';
33
- export { chartImageSourceToDataUrl, ImageChartHost } from './models/image-chart-host';
34
- export type { IChartModelInitParams } from './models/mode-converter/mode-converter';
35
- export { convertModelFromInitData, convertModelToSpec, } from './models/mode-converter/mode-converter';
36
- export { OffscreenChartHost } from './models/offscreen-chart-host';
37
- export { registerWordCloudChartMakImageService, WordCloudMuskImageService, } from './models/word-cloud-musk-image.service';
8
+ export type { ChartLegendSpec, ChartSeriesSelector, ChartSubtitleSpec, ChartTitleSpec, IChartAggregationSpec, IChartAppearanceSpec, IChartAreaSpec, IChartAxesSpec, IChartAxisBindingDescription, IChartAxisLabelSpec, IChartAxisPointerSpec, IChartAxisSpec, IChartBarSpec, IChartBubbleMappingSpec, IChartBubbleSpec, IChartDescription, IChartFontSpec, IChartFunnelSpec, IChartGaugeTicksPatch, IChartHeatmapLabelSpec, IChartHeatmapSpec, IChartInfo, IChartLegendOptions, IChartLineSeriesPatch, IChartMappingSpec, IChartMarkLineLabelSpec, IChartMarkLineSpec, IChartParetoBarLabelStyleSpec, IChartParetoBarStyleSpec, IChartParetoBorderStyleSpec, IChartParetoLineLabelStyleSpec, IChartParetoLineStyleSpec, IChartParetoPointStyleSpec, IChartParetoSpec, IChartPieAggregateSpec, IChartPieCompositeSpec, IChartPieConnectorSpec, IChartPieLabelSpec, IChartPieSecondaryPlotSpec, IChartPieSpec, IChartPlotAreaSpec, IChartPosition, IChartRadarSpec, IChartRelationForceSpec, IChartRelationSpec, IChartScatterMappingSpec, IChartSeriesBorderSpec, IChartSeriesDataPointStyleSpec, IChartSeriesDescription, IChartSeriesLabelSpec, IChartSeriesPatch, IChartSeriesPointSpec, IChartSeriesStyleSpec, IChartSize, IChartSliceStyleSpec, IChartSolidSeriesPatch, IChartSolidSeriesStyleSpec, IChartSubtitleOptions, IChartSymbolDataPointStyleSpec, IChartTitleOptions, IChartTrendlineSpec, IChartWaterfallConnectorStyleSpec, IChartWaterfallPointRoleSpec, IChartWaterfallSpec, IChartWordCloudDescription, IChartWordCloudSpec, PieSecondarySplitSpec, } from './chart-builder/chart-types';
9
+ export { AREA_CHART_TYPES, AXIS_CHART_TYPES, CARTESIAN_CHART_TYPES, ChartAxisTickPosition, ChartSeriesTypeString, ChartTypeString, ChartVisualMapType, ChartWaterfallStyleTarget, ChartWordCloudShapeSource, DEFAULT_CHART_TYPE, PieCompositeMarkRole, PieSecondaryPlotType, PieSecondarySplitType, } from './chart-builder/chart-types';
10
+ export type { ChartPendingConfig, IChartCreateConfig, } from './chart-builder/chart-types';
11
+ export { ChartAggregationTarget, } from './chart-builder/configuration/aggregation';
12
+ export { clearAggregation, setAggregation, } from './chart-builder/configuration/aggregation';
13
+ export { ChartAppearanceTarget, } from './chart-builder/configuration/appearance';
14
+ export { clearAppearance, setAppearance, } from './chart-builder/configuration/appearance';
15
+ export { clearAreaLineStyle, setAreaLineStyle, } from './chart-builder/configuration/area';
16
+ export { resetAutoGradientFill, setAutoGradientFill, } from './chart-builder/configuration/auto-gradient-fill';
17
+ export { ChartAxisName, ChartAxisTarget, } from './chart-builder/configuration/axes';
18
+ export { clearAxisTitle, clearRightYAxis, clearXAxis, clearYAxis, resetUseDateAxis, setAxisTitle, setRightYAxis, setUseDateAxis, setXAxis, setYAxis, } from './chart-builder/configuration/axes';
19
+ export { ChartAxisPointerTarget, } from './chart-builder/configuration/axis-pointer';
20
+ export { clearAxisPointer, setAxisPointer, } from './chart-builder/configuration/axis-pointer';
21
+ export { clearBar, setBar, } from './chart-builder/configuration/bar';
22
+ export { clearDojiStyle, clearFallingStyle, clearRisingStyle, resetCandleWidth, setCandleWidth, setDojiStyle, setFallingStyle, setRisingStyle, } from './chart-builder/configuration/candlestick';
23
+ export type { ChartPublicSeriesSelector, } from './chart-builder/configuration/cartesian-series';
24
+ export { ChartAllSeriesStyleTarget, ChartSeriesClearTarget, } from './chart-builder/configuration/cartesian-series';
25
+ export { clearAllSeriesOverrides, clearAllSeriesStyle, clearSeries, setAllSeriesStyle, setSeries, } from './chart-builder/configuration/cartesian-series';
26
+ export type { IChartConfigOperation, } from './chart-builder/configuration/chart-config-operation';
27
+ export { resetChordEmphasis, resetChordLabel, resetChordLayout, resetChordNode, resetChordRibbon, setChordEmphasis, setChordLabel, setChordLayout, setChordMapping, setChordNode, setChordRibbon, } from './chart-builder/configuration/chord';
28
+ export { ChartSeriesAxis, } from './chart-builder/configuration/combination';
29
+ export { resetCombinationSeriesAxis, resetCombinationSeriesType, setCombinationSeriesAxis, setCombinationSeriesType, } from './chart-builder/configuration/combination';
30
+ export { resetFunnelGap, resetUseAbsoluteValue, setFunnelGap, setUseAbsoluteValue, } from './chart-builder/configuration/funnel';
31
+ export { resetGaugeAnchor, resetGaugeAngles, resetGaugeAxisLabel, resetGaugeAxisLine, resetGaugeAxisTick, resetGaugeDetail, resetGaugeMode, resetGaugePointer, resetGaugeProgress, resetGaugeRanges, resetGaugeScale, resetGaugeSplitLine, resetGaugeTitle, setGaugeAnchor, setGaugeAngles, setGaugeAxisLabel, setGaugeAxisLine, setGaugeAxisTick, setGaugeDetail, setGaugeMode, setGaugePointer, setGaugeProgress, setGaugeRanges, setGaugeScale, setGaugeSplitLine, setGaugeTicks, setGaugeTitle, setGaugeValueField, } from './chart-builder/configuration/gauge';
32
+ export { clearCellLabel, clearValueRange, clearValueUnit, resetVisualMapType, setCellLabel, setValueRange, setValueUnit, setVisualMapType, } from './chart-builder/configuration/heatmap';
33
+ export { clearHistogramField, clearHistogramOverflowThreshold, clearHistogramUnderflowThreshold, resetHistogramBinGap, resetHistogramBinning, setHistogramBinCount, setHistogramBinGap, setHistogramBinWidth, setHistogramField, setHistogramOverflowThreshold, setHistogramUnderflowThreshold, } from './chart-builder/configuration/histogram';
34
+ export { resetInvalidValueStrategy, setInvalidValueStrategy, } from './chart-builder/configuration/invalid-value';
35
+ export { clearLegend, setLegend, } from './chart-builder/configuration/legend';
36
+ export { clearLineStyle, setLineStyle, } from './chart-builder/configuration/line';
37
+ export { clearCategoryField, clearValueFields, setCategoryField, setValueFields, } from './chart-builder/configuration/mapping';
38
+ export { clearMarkLines, setMarkLines, } from './chart-builder/configuration/mark-lines';
39
+ export { clearPalette, setPalette, } from './chart-builder/configuration/palette';
40
+ export { clearCumulativeLineStyle, clearParetoBarStyle, resetIncludeZeroValues, setCumulativeLineStyle, setIncludeZeroValues, setParetoBarStyle, } from './chart-builder/configuration/pareto';
41
+ export { clearDoughnutHole, clearPieComposite, clearPieLabel, clearSliceBorderColor, clearSliceStyle, resetExplosion, resetHalfPie, resetLabelLineVisible, resetPaddingAngleEnabled, resetRosePie, resetValueScale, setDoughnutHole, setExplosion, setHalfPie, setLabelLineVisible, setPaddingAngleEnabled, setPieComposite, setPieLabel, setRosePie, setSliceBorderColor, setSliceStyle, setValueScale, } from './chart-builder/configuration/pie';
42
+ export { clearBubbleMapping, clearCandlestickFields, clearScatterMapping, setBubbleMapping, setCandlestickFields, setScatterMapping, } from './chart-builder/configuration/point-mapping';
43
+ export { resetRadarFill, resetRadarShape, setRadarFill, setRadarShape, } from './chart-builder/configuration/radar';
44
+ export { clearRelationForce, resetCircularLabelRotation, resetEmphasisEnabled, resetRelationLayout, resetRelationNodeShape, resetUseValueAsSymbolSize, setCircularLabelRotation, setEmphasisEnabled, setRelationForce, setRelationLayout, setRelationNodeShape, setUseValueAsSymbolSize, } from './chart-builder/configuration/relation';
45
+ export { clearSubtitle, setSubtitle, } from './chart-builder/configuration/subtitle';
46
+ export { resetSunburstCenterLabel, resetSunburstLabel, setSunburstCenterLabel, setSunburstHierarchyFields, setSunburstLabel, setSunburstValueField, } from './chart-builder/configuration/sunburst';
47
+ export { clearTheme, setTheme, } from './chart-builder/configuration/theme';
48
+ export { clearTitle, setTitle, } from './chart-builder/configuration/title';
49
+ export { resetTreemapLabel, resetTreemapParentLabelLayout, setTreemapHierarchyFields, setTreemapLabel, setTreemapParentLabelLayout, setTreemapValueField, } from './chart-builder/configuration/treemap';
50
+ export type { ChartSeriesTrendlineSelector, } from './chart-builder/configuration/trendline';
51
+ export { clearTrendlines, removeTrendline, setTrendline, } from './chart-builder/configuration/trendline';
52
+ export type { ChartTrendlineSelector, ChartTrendlineValue, } from './chart-builder/configuration/trendline';
53
+ export { clearWaterfallConnector, clearWaterfallStyle, resetUseSubtotal, resetWaterfallStackType, setUseSubtotal, setWaterfallConnector, setWaterfallPointRoles, setWaterfallStackType, setWaterfallStyle, } from './chart-builder/configuration/waterfall';
54
+ export { clearMaskImage, resetWordCloudRepeat, resetWordCloudShape, setMaskImage, setWordCloudRepeat, setWordCloudShape, } from './chart-builder/configuration/word-cloud';
55
+ export type { IResolvedChartModelConfigUpdate, } from './chart-builder/conversion/chart-config-converter';
56
+ export { resolveChartModelConfigUpdate, toChartModelConfig, toChartModelConfigReplacement, } from './chart-builder/conversion/chart-config-converter';
57
+ export { canonicalizeChartContext, } from './chart-builder/conversion/chart-context-patch';
58
+ export { toChartCreateConfig, toChartCreateConfigSnapshot } from './chart-builder/conversion/chart-create-config';
59
+ export { chartBitsToType, chartTypeToBits, getChartStackType, withChartStackType, } from './chart-builder/conversion/chart-type-converter';
60
+ export { describeChartModel, projectChartModelDescription, resolveChartDescriptionMetadata, } from './chart-builder/conversion/describe-chart-model';
61
+ export { resolveChartModelData, } from './chart-builder/conversion/resolve-chart-model-data';
62
+ export { DetachedChartBuilderAdapter, } from './chart-builder/detached-chart-builder-adapter';
63
+ export type { IChartHostConfigAdapter, IChartHostPatch, } from './chart-builder/internal/chart-host-config-adapter';
64
+ export { resolveChartDataSetFromValues, } from './chart-builder/internal/chart-host-config-adapter';
65
+ export type { IChartDataAggregation, IChartTopNSpec } from './chart-data-aggregation';
66
+ export type { IUniverChartConfig } from './config/config';
67
+ export { AreaLineStyle, AxisAlignEnum, AxisValueType, BarShape, CategoryType, ChartAttributeBits, ChartAxisDimension, ChartBorderDashType, ChartCandlestickState, ChartChordFocusMode, ChartChordLabelPosition, ChartChordRibbonColorMode, ChartGaugeMode, ChartGaugePointerShape, ChartHistogramBinKind, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartSourceDataTypeEnum, ChartSunburstLabelPosition, ChartTrendlineType, ChartTypeBits, ChartWaterfallPointRole, DataOrientation, HistogramBinningMode, InvalidValueType, IRuntimeAxisPosition, IRuntimeAxisPriority, LabelAlignEnum, LabelContentType, LegendPositionEnum, LinePointShape, ParetoSeriesIndex, ParetoSeriesPart, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, StackType, TextAlign, TextVerticalAlign, TitlePositionEnum, TreemapParentLabelLayout, WaterfallSeriesTypeEnum, WaterfallStackTypeEnum, WordCloudShapeEnum, } from './enum';
68
+ export { generateChartContext, reconcileChartContext } from './models/chart-context/resolve-chart-context';
69
+ export { MAX_HISTOGRAM_BIN_COUNT } from './models/chart-data/internal/histogram-bins';
70
+ export { PIE_CONNECTOR_COLOR_DEFAULT, PIE_CONNECTOR_DASH_TYPE_DEFAULT, PIE_CONNECTOR_OPACITY_DEFAULT, PIE_CONNECTOR_VISIBLE_DEFAULT, PIE_CONNECTOR_WIDTH_DEFAULT, PIE_PERCENTAGE_SPLIT_LESS_THAN_DEFAULT, PIE_POSITION_SPLIT_COUNT_DEFAULT, PIE_POSITION_SPLIT_COUNT_MIN, PIE_SECONDARY_GAP_WIDTH_DEFAULT, PIE_SECONDARY_GAP_WIDTH_MAX, PIE_SECONDARY_GAP_WIDTH_MIN, PIE_SECONDARY_SIZE_DEFAULT, PIE_SECONDARY_SIZE_MAX, PIE_SECONDARY_SIZE_MIN, PIE_VALUE_SPLIT_LESS_THAN_DEFAULT, } from './models/chart-data/pie-composite/pie-composite-spec';
71
+ export { CHART_HOST_DEFAULT_BORDER_COLOR, CHART_HOST_DEFAULT_BORDER_RADIUS, CHART_HOST_DEFAULT_BORDER_WIDTH, composeChartHostFrameImage, getChartHostFrameContentRect, resolveChartHostFrameBorder, resolveChartHostFrameStyle, resolveDefaultChartHostFrameStyle, shouldComposeChartHostFrame, } from './models/chart-host/chart-host-style';
72
+ export type { IResolveChartHostFrameStyleInput, IResolveDefaultChartHostFrameStyleInput, } from './models/chart-host/chart-host-style';
73
+ export { chartConfigInterpreter } from './models/chart-host/config/chart-config-interpreter';
74
+ export type { IChartConfigUpdate } from './models/chart-host/config/chart-config-interpreter';
75
+ export { chartImageSourceToDataUrl, DataUrlImageChartHost, ImageChartHost, } from './models/chart-host/image-chart-host';
76
+ export { OffscreenChartHost } from './models/chart-host/offscreen-chart-host';
77
+ export { ChartDataSourceResolver, ChartDataSourceRuntimeStatus, IChartDataSourceResolver, } from './models/chart-host/resource/chart-data-source-resolver';
78
+ export type { IChartDataSourceHandle, IChartDataSourceProvider, IChartDataSourceResolveResult, IChartDataSourceRuntimeState, } from './models/chart-host/resource/chart-data-source-resolver';
79
+ export { CHART_RESOURCE_VERSION, ChartResourceRepository, isInlineChartDataSource, isReferencedChartDataSource, } from './models/chart-host/resource/chart-resource-repository';
80
+ export type { IChartDataSourceInput, IChartResource, IChartResourceContext, IChartResourceDataSource, IChartResourceSnapshot, IChartResourceState, ICreateChartDataSourceOptions, ICreateChartSnapshotOptions, IInlineChartDataSource, IReferencedChartDataSource, IUpdateChartSnapshotPatch, } from './models/chart-host/resource/chart-resource-repository';
81
+ export { serializeChartResource } from './models/chart-host/resource/chart-resource-serializer';
82
+ export { buildChartDataSetFromValues, parseInlineChartTable, } from './models/chart-host/resource/inline-chart-table';
83
+ export type { ChartDataSourceValue } from './models/chart-host/resource/inline-chart-table';
84
+ export { RESOURCE_REF_CHART_DATA_SOURCE_KIND, ResourceRefChartDataSourceAdapter, } from './models/chart-host/resource/resource-ref-chart-data-source.adapter';
85
+ export type { IResourceRefChartDataSourceInput, IResourceRefChartDataSourceReference, } from './models/chart-host/resource/resource-ref-chart-data-source.adapter';
86
+ export { ChartModelStore } from './models/chart-host/static/chart-model-store';
87
+ export type { IChartModelRuntime } from './models/chart-host/static/chart-model-store';
88
+ export { createChartRuntime, refreshChartRuntime, } from './models/chart-host/static/chart-runtime';
89
+ export type { IChartRuntime, IChartRuntimeConfig, ICreateChartRuntimeOptions, } from './models/chart-host/static/chart-runtime';
90
+ export type { IChartModelInit } from './models/chart-model/chart-model';
91
+ export { ChartModel } from './models/chart-model/chart-model';
92
+ export { echartToChartModelInit, isChartModelInit } from './models/chart-model/echart-to-chart-model-init';
93
+ export { resolveChartElementAxisId } from './models/chart-render/axes/chart-element-axis-id';
94
+ export type { ChartElementAxisId } from './models/chart-render/axes/chart-element-axis-id';
95
+ export { resolveChartRenderModelImageExportInput } from './models/chart-render/chart-render-input-resolver';
96
+ export type { IChartRenderInputRuntime, IResolveChartRenderModelImageExportInputParams, } from './models/chart-render/chart-render-input-resolver';
97
+ export { ChartRenderModelManagerService, IChartRenderModelManagerService, } from './models/chart-render/chart-render-model-manager.service';
98
+ export type { IChartModelInitParams } from './models/chart-render/converter/mode-converter';
99
+ export { convertModelFromInitData, convertModelToSpec, } from './models/chart-render/converter/mode-converter';
100
+ export { resolveChartPlotAreaForEditing } from './models/chart-render/converter/render-spec-operators/grid-operator';
101
+ export { EChartRenderEngine, EChartRenderModel } from './models/chart-render/echart-render-model';
102
+ export type { IEChartRenderModelOptions } from './models/chart-render/echart-render-model';
103
+ export { CHART_VALUE_FORMAT_PRESETS, CHART_VALUE_FORMAT_PREVIEW_VALUE, } from './models/chart-render/format/chart-value-format';
104
+ export { resolveChartRuntimeStyle, resolveChartStyleBackgroundColor, } from './models/chart-render/style/chart-runtime-style';
105
+ export type { IChartLocaleTexts } from './models/common/chart-locale-texts';
106
+ export { replaceLocaleParams } from './models/common/chart-locale-texts';
107
+ export { DEFAULT_CHORD_MAPPING } from './models/common/constants/chord';
108
+ export { defaultChartHeight, defaultChartWidth, EChartRenderEngineName } from './models/common/constants/default';
109
+ export { defaultChartConfig, resolveGaugeStyle, RTLChartStyle } from './models/common/constants/default-chart-style';
110
+ export { DEFAULT_HISTOGRAM_BIN_COUNT, DEFAULT_HISTOGRAM_BIN_WIDTH, MAX_HISTOGRAM_BIN_GAP, } from './models/common/constants/histogram-defaults';
111
+ export type { IEchartTheme } from './models/common/theme/build-in-theme/types';
112
+ export { UniverTheme1 } from './models/common/theme/build-in-theme/univer1';
113
+ export { UniverTheme2 } from './models/common/theme/build-in-theme/univer2';
114
+ export { UniverTheme3 } from './models/common/theme/build-in-theme/univer3';
115
+ export { UniverTheme4 } from './models/common/theme/build-in-theme/univer4';
116
+ export { UniverTheme5 } from './models/common/theme/build-in-theme/univer5';
117
+ export { UniverTheme6 } from './models/common/theme/build-in-theme/univer6';
118
+ export { UniverThemeGradient1 } from './models/common/theme/build-in-theme/univer-gradient1';
119
+ export { UniverThemeGradient2 } from './models/common/theme/build-in-theme/univer-gradient2';
120
+ export { UniverThemeGradient3 } from './models/common/theme/build-in-theme/univer-gradient3';
121
+ export { UniverThemeGradient4 } from './models/common/theme/build-in-theme/univer-gradient4';
122
+ export { UniverThemeGradient5 } from './models/common/theme/build-in-theme/univer-gradient5';
123
+ export { UniverThemeGradient6 } from './models/common/theme/build-in-theme/univer-gradient6';
124
+ export { ChartThemeService, } from './models/common/theme/chart-theme.service';
125
+ export { UniverChartPlugin } from './plugin';
38
126
  export { toChartDataItem } from './source/chart-data-item';
39
127
  export { ChartDataSource } from './source/chart-source';
40
128
  export { StaticChartSource } from './source/static-chart-source';
129
+ export type { IChartCandlestickMappingSpec, IChartCandlestickSpec, IChartCandlestickStateStyleSpec, IChartChordEmphasisSpec, IChartChordLabelSpec, IChartChordLayoutSpec, IChartChordMappingSpec, IChartChordNodeStyleSpec, IChartChordRibbonStyleSpec, IChartChordSpec, IChartGaugeAnchorSpec, IChartGaugeAnglesSpec, IChartGaugeAxisLabelSpec, IChartGaugeAxisLineSpec, IChartGaugeAxisTickSpec, IChartGaugeDetailSpec, IChartGaugeFontSpec, IChartGaugePointerSpec, IChartGaugeProgressSpec, IChartGaugeRangeSpec, IChartGaugeScaleSpec, IChartGaugeSpec, IChartGaugeSplitLineSpec, IChartGaugeTitleSpec, IChartHistogramBinningSpec, IChartHistogramDataSpec, IChartHistogramSpec, IChartHistogramStyleSpec, IChartSunburstCenterLabelSpec, IChartSunburstLabelSpec, IChartSunburstSpec, IChartTreemapLabelSpec, IChartTreemapSpec, IChartValueLabelSpec, } from './types';
41
130
  export { ChartHostRenderMode, ChartImageSourceType } from './types';
42
- export type { OptionDataValue, ChartDataSourceValues, ChartDirection, ChartElementEventHandler, ChartElementEventType, ChartElementKind, ChartImageSource, ChartStyle, DeepNullish, DeepPartial, DimensionDefinitionLoose, IAllSeriesStyle, IAxisOptions, IBarStyle, IChartCandlestickData, IChartCandlestickPoint, IChartConfig, IChartContext, IChartData, IChartDataAggregation, IChartDataCategory, IChartDataSeries, IChartDataSource, IChartElementBounds, IChartElementEvent, IChartElementHit, IChartElementOverlay, IChartHistogramBin, IChartHistogramData, IChartHost, IChartHostBorderStyle, IChartHostLease, IChartHostRect, IChartHostStyle, IChartInstance, IChartRenderAsImageOptions, IChartRenderInput, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderInstanceSpecInput, IChartRenderInstanceStyleInput, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IChartSnapshot, IChartStyle, IChartTreemapData, IChartTreemapNode, IDimensionDefinition, IDomChartHost, IGridLineStyle, IImageChartHost, ILabelStyle, ILegendStyle, IPieLabelStyle, IPointStyle, IRelationForceOptions, IRuntimeAxis, ISeriesLabelStyle, ISeriesStyle, ITrendLine, IUniverDataSet, RightYAxisOptions, } from './types';
131
+ export type { ChartDataSourceValues, ChartDirection, ChartElementEventHandler, ChartElementEventType, ChartElementKind, ChartImageSource, ChartRenderRuntimeContext, ChartRuntimeStyle, ChartStyle, DeepNullish, DeepPartial, DimensionDefinitionLoose, IAllSeriesStyle, IAxisOptions, IBarStyle, IChartBubbleStyle, IChartCandlestickData, IChartCandlestickPoint, IChartChordData, IChartChordLink, IChartChordNode, IChartConfig, IChartContext, IChartData, IChartDataCategory, IChartDataSeries, IChartDataSource, IChartElementBounds, IChartElementEvent, IChartElementHit, IChartElementOverlay, IChartGaugeData, IChartGaugeItem, IChartHistogramBin, IChartHistogramData, IChartHost, IChartHostBorderStyle, IChartHostLease, IChartHostRect, IChartHostStyle, IChartInstance, IChartPlotArea, IChartRenderAsImageOptions, IChartRenderInput, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderInstanceSpecInput, IChartRenderInstanceStyleInput, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IChartSnapshot, IChartStyle, IChartSunburstData, IChartSunburstNode, IChartTreemapData, IChartTreemapNode, IDimensionDefinition, IDomChartHost, IGridLineStyle, IImageChartHost, ILabelStyle, ILegendStyle, IPieLabelStyle, IPointStyle, IRelationForceOptions, IRuntimeAxis, ISeriesLabelStyle, ISeriesStyle, ITrendLine, IUniverDataSet, OptionDataValue, RightYAxisOptions, } from './types';
43
132
  export { chartBitsUtils, chartTypeCanUseTrendLine, mergeChartConfig, } from './util';
44
- export * from './utils/echarts';
45
- export { WordCloudResourceConfig } from './word-cloud-resource/word-cloud-resource-config';
133
+ export { omitUndefinedFields, } from './utils/compact';
134
+ export { echarts } from './utils/echarts';
135
+ export { WordCloudMaskImageOptions, WordCloudResourceConfig } from './word-cloud-resource/word-cloud-resource-config';
46
136
  export { WORD_CLOUD_DEFAULT_OPTION, WORD_CLOUD_SERIES_TYPE } from './wordcloud-chart/adapters/echarts/echarts-options';
47
137
  export { registerWordCloudChart } from './wordcloud-chart/adapters/echarts/install';
48
138
  export { layoutWordCloudChart } from './wordcloud-chart/canvas';
@@ -87,6 +177,8 @@ export { DEFAULT_WORD_CLOUD_SHAPE } from './wordcloud-chart/types';
87
177
  export { normalizeWordCloudShape } from './wordcloud-chart/types';
88
178
  export { SUPPORTED_WORD_CLOUD_SHAPES } from './wordcloud-chart/types';
89
179
  export { DEFAULT_WORD_CLOUD_RENDER_CONFIG } from './wordcloud-chart/word-cloud-render-config';
180
+ export { STATIC_CHART_WORD_CLOUD_RENDER_CONFIG } from './wordcloud-chart/word-cloud-render-config';
90
181
  export { resolveWordCloudRenderConfig } from './wordcloud-chart/word-cloud-render-config';
91
182
  export type { IResolvedWordCloudRenderConfig } from './wordcloud-chart/word-cloud-render-config';
92
183
  export type { IWordCloudRenderConfig } from './wordcloud-chart/word-cloud-render-config';
184
+ export type { BarSeriesOption, DatasetComponentOption, ECharts, EChartsInitOpts, EChartsOption, FunnelSeriesOption, LegendComponentOption, LineSeriesOption, PieSeriesOption, XAXisComponentOption, } from 'echarts';
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,46 @@
1
+ declare const locale: {
2
+ 'engine-chart': {
3
+ seriesDefaultName: string;
4
+ categoryDefaultName: string;
5
+ blank: string;
6
+ boxplotMin: string;
7
+ boxplotQ1: string;
8
+ boxplotMedian: string;
9
+ boxplotQ3: string;
10
+ boxplotMax: string;
11
+ bubbleEmptyTips: string;
12
+ cloudWord: string;
13
+ cloudFrequency: string;
14
+ msgEmptyTips: string;
15
+ msgSankeyCircularTips: string;
16
+ paretoLineName: string;
17
+ pieAggregateOther: string;
18
+ pieAggregateMembers: string;
19
+ relationEmptyTips: string;
20
+ waterfallPositive: string;
21
+ waterfallNegative: string;
22
+ waterfallSubtotal: string;
23
+ candlestickSeries: string;
24
+ candlestickCategory: string;
25
+ candlestickOpen: string;
26
+ candlestickHigh: string;
27
+ candlestickLow: string;
28
+ candlestickClose: string;
29
+ histogramFrequency: string;
30
+ treemapEmptyTips: string;
31
+ treemapOwnValue: string;
32
+ treemapChildren: string;
33
+ sunburstEmptyTips: string;
34
+ sunburstOwnValue: string;
35
+ sunburstChildren: string;
36
+ gaugeEmptyTips: string;
37
+ gaugeInvalidMapping: string;
38
+ gaugeInvalidConfig: string;
39
+ chordEmptyTips: string;
40
+ chordInvalidMapping: string;
41
+ chordInvalidConfig: string;
42
+ chordCount: string;
43
+ chordAssociatedValue: string;
44
+ };
45
+ };
46
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type { LocaleLeafKeys } from '@univerjs/core';
2
+ import type enUS from './en-US';
3
+ export type LocaleKey = LocaleLeafKeys<typeof enUS>;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -1,4 +1,4 @@
1
- import type { IChartAxisBinding, IRuntimeAxis } from '../types';
2
- import { ChartSemanticAxis, ChartTypeBits } from '../enum';
1
+ import type { IChartAxisBinding, IRuntimeAxis } from '../../../types';
2
+ import { ChartSemanticAxis, ChartTypeBits } from '../../../enum';
3
3
  /** Maps the renderer's transient axes to stable semantic roles used by Facade readback. */
4
4
  export declare function resolveChartSemanticAxisBindings(type: ChartTypeBits, axes: readonly IRuntimeAxis[]): Partial<Record<ChartSemanticAxis, IChartAxisBinding>> | undefined;
@@ -0,0 +1,21 @@
1
+ import type { IChartContext, IChartSnapshotContext, IUniverDataSet, OptionDataValue } from '../../types';
2
+ import { ChartSourceDataTypeEnum } from '../../enum';
3
+ export interface IChartFieldSelection {
4
+ categoryIndexes: number[];
5
+ seriesIndexes: number[];
6
+ }
7
+ type ChartContextWithHistoricalCategoryIndex = Partial<IChartContext> & {
8
+ categoryIndex?: unknown;
9
+ };
10
+ export declare function countChartFieldTypes(field: Array<OptionDataValue | undefined>, sourceTypes?: Array<ChartSourceDataTypeEnum | undefined>): {
11
+ numbers: number;
12
+ strings: number;
13
+ total: number;
14
+ };
15
+ export declare function classifyChartFields(dataSet: Pick<IUniverDataSet, 'source' | 'sourceType'>): IChartFieldSelection;
16
+ export declare function resolveChartFieldSelectionContext(dataSet: IUniverDataSet, context: IChartContext, initializeSelection?: boolean): IChartContext;
17
+ /** The single compatibility boundary for the historical scalar snapshot field. */
18
+ export declare function normalizeChartSnapshotContext(context: IChartSnapshotContext): IChartContext;
19
+ /** Decodes the only supported historical field while preserving every canonical context field. */
20
+ export declare function decodeHistoricalCategoryIndex(context: ChartContextWithHistoricalCategoryIndex): Partial<IChartContext>;
21
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { ChartTypeBits } from '../../enum';
2
+ import type { IChartContext, IUniverDataSet } from '../../types';
3
+ export declare function generateChartContext(dataSet: IUniverDataSet, context?: IChartContext, initializeSelection?: boolean): IChartContext;
4
+ /** Preserves a usable field selection and re-infers it when the latest data shape invalidates it. */
5
+ export declare function reconcileChartContext(dataSet: IUniverDataSet, context: IChartContext, chartType: ChartTypeBits): IChartContext;
@@ -0,0 +1,5 @@
1
+ import type { IChartDataAggregation } from '../../chart-data-aggregation';
2
+ import type { ChartTypeBits } from '../../enum';
3
+ import type { IChartContext, IChartData, IUniverDataSet } from '../../types';
4
+ import type { IChartLocaleTexts } from '../common/chart-locale-texts';
5
+ export declare function buildChartData(dataSet: IUniverDataSet, chartContext: IChartContext, chartType: ChartTypeBits, localeTexts: IChartLocaleTexts, dataAggregation?: IChartDataAggregation): IChartData;
@@ -0,0 +1,4 @@
1
+ import type { IChartContext, IChartData, IUniverDataSet } from '../../../types';
2
+ import type { IChartLocaleTexts } from '../../common/chart-locale-texts';
3
+ import type { IChartFieldConsumption } from '../chart-field-consumption';
4
+ export declare function buildBoxplotChartData(dataSet: IUniverDataSet, fieldConsumption: IChartFieldConsumption, _chartContext: IChartContext, localeTexts: IChartLocaleTexts): IChartData;
@@ -0,0 +1,4 @@
1
+ import type { IChartContext, IChartData, IUniverDataSet } from '../../../types';
2
+ import type { IChartLocaleTexts } from '../../common/chart-locale-texts';
3
+ import type { IChartFieldConsumption } from '../chart-field-consumption';
4
+ export declare function buildCandlestickChartData(dataSet: IUniverDataSet, fieldConsumption: IChartFieldConsumption, chartContext: IChartContext, localeTexts: IChartLocaleTexts): IChartData;
@@ -0,0 +1,5 @@
1
+ import type { IChartContext, IChartData, IUniverDataSet } from '../../../types';
2
+ import type { IChartLocaleTexts } from '../../common/chart-locale-texts';
3
+ import type { IChartFieldConsumption } from '../chart-field-consumption';
4
+ export declare function buildScatterChartData(dataSet: IUniverDataSet, fieldConsumption: IChartFieldConsumption, chartContext: IChartContext, localeTexts: IChartLocaleTexts): IChartData;
5
+ export declare function buildBubbleChartData(dataSet: IUniverDataSet, fieldConsumption: IChartFieldConsumption, chartContext: IChartContext, localeTexts: IChartLocaleTexts): IChartData;
@@ -0,0 +1,5 @@
1
+ import type { IChartDataAggregation } from '../../../chart-data-aggregation';
2
+ import type { IChartContext, IChartData, IUniverDataSet } from '../../../types';
3
+ import type { IChartLocaleTexts } from '../../common/chart-locale-texts';
4
+ import type { IChartFieldConsumption } from '../chart-field-consumption';
5
+ export declare function buildCategorySeriesChartData(dataSet: IUniverDataSet, fieldConsumption: IChartFieldConsumption, chartContext: IChartContext, localeTexts: IChartLocaleTexts, dataAggregation?: IChartDataAggregation): IChartData;
@@ -0,0 +1,4 @@
1
+ import type { IChartContext, IChartData, IUniverDataSet } from '../../../types';
2
+ import type { IChartLocaleTexts } from '../../common/chart-locale-texts';
3
+ import type { IChartFieldConsumption } from '../chart-field-consumption';
4
+ export declare function buildChordChartData(dataSet: IUniverDataSet, fieldConsumption: IChartFieldConsumption, chartContext: IChartContext, localeTexts: IChartLocaleTexts): IChartData;
@@ -0,0 +1,4 @@
1
+ import type { IChartContext, IChartData, IUniverDataSet } from '../../../types';
2
+ import type { IChartLocaleTexts } from '../../common/chart-locale-texts';
3
+ import type { IChartFieldConsumption } from '../chart-field-consumption';
4
+ export declare function buildGaugeChartData(dataSet: IUniverDataSet, fieldConsumption: IChartFieldConsumption, chartContext: IChartContext, localeTexts: IChartLocaleTexts): IChartData;
@@ -0,0 +1,3 @@
1
+ import type { IChartContext, IChartData, IUniverDataSet } from '../../../types';
2
+ import type { IChartFieldConsumption } from '../chart-field-consumption';
3
+ export declare function buildHeatmapChartData(dataSet: IUniverDataSet, fieldConsumption: IChartFieldConsumption, _chartContext: IChartContext): IChartData;