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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) hide show
  1. package/README.md +16 -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 +3 -3
  66. package/lib/types/chart-builder/chart-builder.d.ts +4 -3
  67. package/lib/types/chart-builder/chart-starter-data.d.ts +4 -0
  68. package/lib/types/chart-builder/chart-types.d.ts +180 -67
  69. package/lib/types/chart-builder/configuration/assertions.d.ts +3 -0
  70. package/lib/types/chart-builder/configuration/candlestick.d.ts +9 -0
  71. package/lib/types/chart-builder/configuration/cartesian-series.d.ts +2 -1
  72. package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +9 -1
  73. package/lib/types/chart-builder/configuration/chord.d.ts +12 -0
  74. package/lib/types/chart-builder/configuration/gauge.d.ts +31 -0
  75. package/lib/types/chart-builder/configuration/histogram.d.ts +11 -0
  76. package/lib/types/chart-builder/configuration/pie.d.ts +5 -6
  77. package/lib/types/chart-builder/configuration/point-mapping.d.ts +3 -0
  78. package/lib/types/chart-builder/configuration/sunburst.d.ts +7 -0
  79. package/lib/types/chart-builder/configuration/treemap.d.ts +8 -0
  80. package/lib/types/chart-builder/configuration/waterfall.d.ts +3 -1
  81. package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +9 -3
  82. package/lib/types/chart-builder/conversion/chart-context-patch.d.ts +5 -0
  83. package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +13 -6
  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 +1546 -7
  86. package/lib/types/chart-builder/conversion/resolve-chart-model-data.d.ts +4 -4
  87. package/lib/types/chart-builder/detached-chart-builder-adapter.d.ts +10 -1
  88. package/lib/types/chart-builder/internal/chart-patch-replace-policy.d.ts +6 -0
  89. package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +0 -2
  90. package/lib/types/chart-data-aggregation.d.ts +10 -0
  91. package/lib/types/chart-text-measure-canvas.d.ts +6 -0
  92. package/lib/types/config/config.d.ts +7 -0
  93. package/lib/types/enum.d.ts +78 -2
  94. package/lib/types/facade/builders/f-candlestick-chart-builder.d.ts +133 -0
  95. package/lib/types/facade/builders/f-chord-chart-builder.d.ts +30 -0
  96. package/lib/types/facade/builders/f-gauge-chart-builder.d.ts +52 -0
  97. package/lib/types/facade/builders/f-histogram-chart-builder.d.ts +74 -0
  98. package/lib/types/facade/builders/f-pie-chart-builder.d.ts +4 -61
  99. package/lib/types/facade/builders/f-sunburst-chart-builder.d.ts +24 -0
  100. package/lib/types/facade/builders/f-treemap-chart-builder.d.ts +34 -0
  101. package/lib/types/facade/chart-builder-type-map.d.ts +26 -1
  102. package/lib/types/facade/f-cartesian-chart-builder.d.ts +3 -3
  103. package/lib/types/facade/f-chart-base.d.ts +2 -2
  104. package/lib/types/facade/f-chart-builder-base.d.ts +4 -1
  105. package/lib/types/facade/f-enum.d.ts +3 -1
  106. package/lib/types/facade/index.d.ts +20 -1
  107. package/lib/types/index.d.ts +122 -39
  108. package/lib/types/locale/ar-SA.d.ts +3 -0
  109. package/lib/types/locale/ca-ES.d.ts +3 -0
  110. package/lib/types/locale/de-DE.d.ts +3 -0
  111. package/lib/types/locale/en-US.d.ts +46 -0
  112. package/lib/types/locale/es-ES.d.ts +3 -0
  113. package/lib/types/locale/fa-IR.d.ts +3 -0
  114. package/lib/types/locale/fr-FR.d.ts +3 -0
  115. package/lib/types/locale/id-ID.d.ts +3 -0
  116. package/lib/types/locale/it-IT.d.ts +3 -0
  117. package/lib/types/locale/ja-JP.d.ts +3 -0
  118. package/lib/types/locale/ko-KR.d.ts +3 -0
  119. package/lib/types/locale/pl-PL.d.ts +3 -0
  120. package/lib/types/locale/pt-BR.d.ts +3 -0
  121. package/lib/types/locale/ru-RU.d.ts +3 -0
  122. package/lib/types/locale/sk-SK.d.ts +3 -0
  123. package/lib/types/locale/types.d.ts +3 -0
  124. package/lib/types/locale/vi-VN.d.ts +3 -0
  125. package/lib/types/locale/zh-CN.d.ts +3 -0
  126. package/lib/types/locale/zh-HK.d.ts +3 -0
  127. package/lib/types/locale/zh-TW.d.ts +3 -0
  128. package/lib/types/models/{chart-semantic-axes.d.ts → chart-context/axes/chart-semantic-axes.d.ts} +2 -2
  129. package/lib/types/models/chart-context/chart-field-selection.d.ts +21 -0
  130. package/lib/types/models/chart-context/resolve-chart-context.d.ts +2 -0
  131. package/lib/types/models/chart-data/build-chart-data.d.ts +5 -0
  132. package/lib/types/models/chart-data/builders/boxplot-chart-data.d.ts +4 -0
  133. package/lib/types/models/chart-data/builders/candlestick-chart-data.d.ts +4 -0
  134. package/lib/types/models/chart-data/builders/cartesian-point-chart-data.d.ts +5 -0
  135. package/lib/types/models/chart-data/builders/category-series-chart-data.d.ts +5 -0
  136. package/lib/types/models/chart-data/builders/chord-chart-data.d.ts +4 -0
  137. package/lib/types/models/chart-data/builders/gauge-chart-data.d.ts +4 -0
  138. package/lib/types/models/chart-data/builders/heatmap-chart-data.d.ts +3 -0
  139. package/lib/types/models/chart-data/builders/hierarchy-chart-data.d.ts +5 -0
  140. package/lib/types/models/chart-data/builders/histogram-chart-data.d.ts +4 -0
  141. package/lib/types/models/chart-data/builders/relation-chart-data.d.ts +3 -0
  142. package/lib/types/models/chart-data/builders/sankey-chart-data.d.ts +3 -0
  143. package/lib/types/models/chart-data/chart-field-consumption-validator.d.ts +15 -0
  144. package/lib/types/models/chart-data/chart-field-consumption.d.ts +4 -0
  145. package/lib/types/models/chart-data/chart-field-requirements.d.ts +7 -0
  146. package/lib/types/models/chart-data/get-chart-data-builder.d.ts +7 -0
  147. package/lib/types/models/chart-data/internal/aggregate-number-format.d.ts +8 -0
  148. package/lib/types/models/{chart-data-operators → chart-data/internal}/cartesian-point-data.d.ts +3 -8
  149. package/lib/types/models/chart-data/internal/category-data.d.ts +3 -0
  150. package/lib/types/models/chart-data/internal/category-series-aggregation.d.ts +10 -0
  151. package/lib/types/models/chart-data/internal/chart-data-result.d.ts +5 -0
  152. package/lib/types/models/chart-data/internal/chart-hierarchy-data.d.ts +1 -0
  153. package/lib/types/models/chart-data/internal/chord-data.d.ts +7 -0
  154. package/lib/types/models/chart-data/internal/data-set-accessors.d.ts +7 -0
  155. package/lib/types/models/chart-data/internal/gauge-data.d.ts +5 -0
  156. package/lib/types/models/chart-data/internal/histogram-bins.d.ts +10 -0
  157. package/lib/types/models/chart-data/internal/relation-data-shape.d.ts +2 -0
  158. package/lib/types/models/chart-data/internal/source-cell-label.d.ts +3 -0
  159. package/lib/types/models/chart-data/internal/sunburst-data.d.ts +4 -0
  160. package/lib/types/models/chart-data/internal/treemap-data.d.ts +4 -0
  161. package/lib/types/models/chart-data/pie-composite/pie-composite-projection.d.ts +36 -0
  162. package/lib/types/models/chart-data/pie-composite/pie-composite-render-metadata.d.ts +15 -0
  163. package/lib/types/models/chart-data/pie-composite/pie-composite-spec.d.ts +38 -0
  164. package/lib/types/models/{chart-host-style.d.ts → chart-host/chart-host-style.d.ts} +1 -1
  165. package/lib/types/models/{image-chart-host.d.ts → chart-host/image-chart-host.d.ts} +14 -2
  166. package/lib/types/models/{offscreen-chart-host.d.ts → chart-host/offscreen-chart-host.d.ts} +1 -1
  167. package/lib/types/models/{chart-resource-serializer.d.ts → chart-host/resource/chart-resource-serializer.d.ts} +1 -1
  168. package/lib/types/models/chart-host/resource/inline-chart-table.d.ts +4 -0
  169. package/lib/types/models/chart-host/resource/static-chart-resource-repository.d.ts +75 -0
  170. package/lib/types/models/chart-host/static/static-chart-model-store.d.ts +43 -0
  171. package/lib/types/models/chart-host/static/static-chart-runtime.d.ts +26 -0
  172. package/lib/types/models/{chart-model.d.ts → chart-model/chart-model.d.ts} +1660 -625
  173. package/lib/types/models/{echart-to-chart-model-init.d.ts → chart-model/echart-to-chart-model-init.d.ts} +2 -2
  174. package/lib/types/models/{data-context-transformers/bar-data-context-transformer.d.ts → chart-model/type-transition/bar-type-transition.d.ts} +1 -1
  175. 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
  176. package/lib/types/models/{data-context-transformers/percent-data-context-transformer.d.ts → chart-model/type-transition/percent-type-transition.d.ts} +1 -1
  177. package/lib/types/models/{chart-element-axis-id.d.ts → chart-render/axes/chart-element-axis-id.d.ts} +1 -1
  178. package/lib/types/models/{chart-runtime-axes.d.ts → chart-render/axes/chart-runtime-axes.d.ts} +3 -3
  179. package/lib/types/models/{chart-render-input-resolver.d.ts → chart-render/chart-render-input-resolver.d.ts} +2 -2
  180. package/lib/types/models/{chart-render-model-manager.service.d.ts → chart-render/chart-render-model-manager.service.d.ts} +2 -3
  181. package/lib/types/models/{mode-converter → chart-render/converter}/converters/boxplot-chart-converter.d.ts +1 -1
  182. package/lib/types/models/{mode-converter → chart-render/converter}/converters/bubble-chart-converter.d.ts +1 -1
  183. package/lib/types/models/chart-render/converter/converters/candlestick-chart-converter.d.ts +4 -0
  184. package/lib/types/models/chart-render/converter/converters/chord-chart-converter.d.ts +10 -0
  185. package/lib/types/models/{mode-converter → chart-render/converter}/converters/combination-chart-converter.d.ts +1 -1
  186. package/lib/types/models/{mode-converter → chart-render/converter}/converters/funnel-chart-converter.d.ts +1 -1
  187. package/lib/types/models/chart-render/converter/converters/gauge-chart-converter.d.ts +18 -0
  188. package/lib/types/models/{mode-converter → chart-render/converter}/converters/heatmap-chart-convert.d.ts +1 -1
  189. package/lib/types/models/chart-render/converter/converters/histogram-chart-converter.d.ts +3 -0
  190. package/lib/types/models/{mode-converter → chart-render/converter}/converters/pareto-chart-converter.d.ts +1 -1
  191. package/lib/types/models/{mode-converter → chart-render/converter}/converters/pie-chart-converter.d.ts +1 -1
  192. package/lib/types/models/{mode-converter → chart-render/converter}/converters/radar-chart-converter.d.ts +1 -1
  193. package/lib/types/models/{mode-converter → chart-render/converter}/converters/relation-chart-converter.d.ts +1 -1
  194. package/lib/types/models/{mode-converter → chart-render/converter}/converters/sankey-chart-converter.d.ts +1 -1
  195. package/lib/types/models/{mode-converter → chart-render/converter}/converters/scatter-chart-converter.d.ts +1 -1
  196. package/lib/types/models/chart-render/converter/converters/sunburst-chart-converter.d.ts +3 -0
  197. package/lib/types/models/{mode-converter → chart-render/converter}/converters/tools.d.ts +1 -1
  198. package/lib/types/models/chart-render/converter/converters/treemap-chart-converter.d.ts +3 -0
  199. package/lib/types/models/{mode-converter → chart-render/converter}/converters/waterfall-chart-converter.d.ts +1 -1
  200. package/lib/types/models/{mode-converter → chart-render/converter}/converters/waterfall-layout.d.ts +2 -2
  201. package/lib/types/models/{mode-converter → chart-render/converter}/converters/word-cloud-converter.d.ts +1 -1
  202. package/lib/types/models/{mode-converter → chart-render/converter}/mode-converter.d.ts +3 -5
  203. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/auto-gradient-presets.d.ts +1 -1
  204. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/axis-title.operator.d.ts +1 -1
  205. package/lib/types/models/chart-render/converter/render-spec-operators/bar-layout.operator.d.ts +3 -0
  206. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/bubble-style.operator.d.ts +1 -1
  207. 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
  208. 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
  209. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/chart-color.d.ts +1 -1
  210. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/empty-style-operator.d.ts +1 -1
  211. package/lib/types/models/chart-render/converter/render-spec-operators/font-size.operator.d.ts +2 -0
  212. package/lib/types/models/chart-render/converter/render-spec-operators/grid-operator.d.ts +12 -0
  213. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/heatmap-chart-operator.d.ts +1 -1
  214. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/hover-mark-style.operator.d.ts +1 -1
  215. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/implicit-category-axis.operator.d.ts +1 -1
  216. 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
  217. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/legend-size.d.ts +1 -1
  218. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/legend-style.operator.d.ts +1 -1
  219. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/line-like-style.operator.d.ts +1 -1
  220. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/mark-line.operator.d.ts +1 -1
  221. package/lib/types/models/chart-render/converter/render-spec-operators/pie-composite-layout.operator.d.ts +2 -0
  222. package/lib/types/models/chart-render/converter/render-spec-operators/pie-style.operator.d.ts +2 -0
  223. package/lib/types/models/chart-render/converter/render-spec-operators/plot-area.d.ts +10 -0
  224. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/radar-style.operator.d.ts +1 -1
  225. package/lib/types/models/chart-render/converter/render-spec-operators/relation-chart-operator/relation-chart-operator.d.ts +2 -0
  226. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/rich-text-inheritance.operator.d.ts +1 -1
  227. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/rtl-render-spec.operator.d.ts +1 -1
  228. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/sankey-chart-operator.d.ts +1 -1
  229. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/scatter-style.operator.d.ts +1 -1
  230. package/lib/types/models/chart-render/converter/render-spec-operators/series-style-operator/pareto-series-style.handler.d.ts +2 -0
  231. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-style-operator.d.ts +2 -2
  232. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/waterfall-series-style-operator.d.ts +1 -1
  233. package/lib/types/models/chart-render/converter/render-spec-operators/stack.operator.d.ts +2 -0
  234. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/theme.operator.d.ts +1 -1
  235. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/title-style.operator.d.ts +1 -1
  236. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tool-tip-operator.d.ts +8 -3
  237. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tool-tip-renderer.d.ts +1 -1
  238. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tools.d.ts +1 -2
  239. package/lib/types/models/chart-render/converter/render-spec-operators/trend-line/trend-line.operator.d.ts +2 -0
  240. package/lib/types/models/chart-render/converter/render-spec-operators/visual-map-operator.d.ts +2 -0
  241. package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/watermark.operator.d.ts +1 -1
  242. package/lib/types/models/{echart-render-model.d.ts → chart-render/echart-render-model.d.ts} +10 -4
  243. package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/chart-element-edit-overlay.d.ts +2 -2
  244. package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/resolve-chart-element-hit-layout.d.ts +2 -2
  245. package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/types.d.ts +1 -1
  246. package/lib/types/models/chart-render/format/chart-value-format.d.ts +16 -0
  247. package/lib/types/models/{chart-runtime-style.d.ts → chart-render/style/chart-runtime-style.d.ts} +3 -2
  248. package/lib/types/models/common/chart-field-diagnostic.d.ts +14 -0
  249. package/lib/types/models/common/chart-field-role.d.ts +53 -0
  250. package/lib/types/models/common/chart-locale-texts.d.ts +44 -0
  251. package/lib/types/models/common/constants/chord.d.ts +5 -0
  252. package/lib/types/models/common/constants/default-chart-style.d.ts +920 -0
  253. package/lib/types/models/{constants → common/constants}/default.d.ts +1 -1
  254. package/lib/types/models/common/constants/hierarchy.d.ts +5 -0
  255. package/lib/types/models/common/constants/histogram-defaults.d.ts +8 -0
  256. package/lib/types/models/common/constants/treemap.d.ts +1 -0
  257. package/lib/types/models/common/theme/build-in-theme/theme-util.d.ts +4 -0
  258. package/lib/types/models/{chart-theme.service.d.ts → common/theme/chart-theme.service.d.ts} +1 -3
  259. package/lib/types/plugin.d.ts +15 -0
  260. package/lib/types/types.d.ts +426 -31
  261. package/lib/types/util.d.ts +1 -7
  262. package/lib/types/utils/echarts.d.ts +0 -1
  263. package/lib/types/word-cloud-resource/word-cloud-resource-config.d.ts +5 -0
  264. package/lib/types/wordcloud-chart/adapters/echarts/chart-view.d.ts +0 -2
  265. package/lib/types/wordcloud-chart/adapters/echarts/echarts-options.d.ts +1 -1
  266. package/lib/types/wordcloud-chart/adapters/echarts/layout-register.d.ts +0 -2
  267. package/lib/types/wordcloud-chart/adapters/echarts/series-model.d.ts +0 -2
  268. package/lib/types/wordcloud-chart/adapters/echarts/text-measurer.d.ts +1 -1
  269. package/lib/types/wordcloud-chart/canvas.d.ts +3 -3
  270. package/lib/types/wordcloud-chart/core/collision/box-shape-engine.d.ts +1 -1
  271. package/lib/types/wordcloud-chart/core/layout/word-shrink.d.ts +5 -8
  272. package/lib/types/wordcloud-chart/core/text/formatter.d.ts +2 -2
  273. package/lib/types/wordcloud-chart/core/text/normalize.d.ts +2 -2
  274. package/lib/types/wordcloud-chart/defaults.d.ts +2 -2
  275. package/lib/types/wordcloud-chart/types.d.ts +0 -3
  276. package/lib/types/wordcloud-chart/word-cloud-render-config.d.ts +1 -0
  277. package/lib/umd/facade.js +1 -1
  278. package/lib/umd/index.js +1 -1
  279. package/lib/umd/locale/ar-SA.js +1 -0
  280. package/lib/umd/locale/ca-ES.js +1 -0
  281. package/lib/umd/locale/de-DE.js +1 -0
  282. package/lib/umd/locale/en-US.js +1 -0
  283. package/lib/umd/locale/es-ES.js +1 -0
  284. package/lib/umd/locale/fa-IR.js +1 -0
  285. package/lib/umd/locale/fr-FR.js +1 -0
  286. package/lib/umd/locale/id-ID.js +1 -0
  287. package/lib/umd/locale/it-IT.js +1 -0
  288. package/lib/umd/locale/ja-JP.js +1 -0
  289. package/lib/umd/locale/ko-KR.js +1 -0
  290. package/lib/umd/locale/pl-PL.js +1 -0
  291. package/lib/umd/locale/pt-BR.js +1 -0
  292. package/lib/umd/locale/ru-RU.js +1 -0
  293. package/lib/umd/locale/sk-SK.js +1 -0
  294. package/lib/umd/locale/vi-VN.js +1 -0
  295. package/lib/umd/locale/zh-CN.js +1 -0
  296. package/lib/umd/locale/zh-HK.js +1 -0
  297. package/lib/umd/locale/zh-TW.js +1 -0
  298. package/package.json +10 -4
  299. package/lib/types/chart-builder/configuration/index.d.ts +0 -30
  300. package/lib/types/chart-builder/index.d.ts +0 -14
  301. package/lib/types/facade/builders/index.d.ts +0 -14
  302. package/lib/types/models/chart-data-operators/build-chart-data.d.ts +0 -9
  303. package/lib/types/models/chart-data-operators/index.d.ts +0 -2
  304. package/lib/types/models/chart-data-operators/operators.d.ts +0 -20
  305. package/lib/types/models/chart-element-edit-overlay/index.d.ts +0 -4
  306. package/lib/types/models/chart-locale-texts.d.ts +0 -22
  307. package/lib/types/models/constants/build-in-theme/index.d.ts +0 -15
  308. package/lib/types/models/constants/build-in-theme/theme-util.d.ts +0 -5
  309. package/lib/types/models/constants/default-chart-style.d.ts +0 -138
  310. package/lib/types/models/data-context-transformers/box-plot-data-context-transformer.d.ts +0 -3
  311. package/lib/types/models/data-context-transformers/pareto-data-context-transformer.d.ts +0 -3
  312. package/lib/types/models/data-context-transformers/pie-data-context-transformer.d.ts +0 -3
  313. package/lib/types/models/data-context-transformers/word-cloud-data-context-transform.d.ts +0 -3
  314. package/lib/types/models/mode-converter/render-spec-operators/chart-axes.operator.d.ts +0 -2
  315. package/lib/types/models/mode-converter/render-spec-operators/chart-box-style.operator.d.ts +0 -2
  316. package/lib/types/models/mode-converter/render-spec-operators/font-size.operator.d.ts +0 -2
  317. package/lib/types/models/mode-converter/render-spec-operators/grid-operator.d.ts +0 -2
  318. package/lib/types/models/mode-converter/render-spec-operators/index.d.ts +0 -15
  319. package/lib/types/models/mode-converter/render-spec-operators/invalid-value-style.operator.d.ts +0 -2
  320. package/lib/types/models/mode-converter/render-spec-operators/pie-style.operator.d.ts +0 -2
  321. package/lib/types/models/mode-converter/render-spec-operators/stack.operator.d.ts +0 -2
  322. package/lib/types/models/mode-converter/render-spec-operators/visual-map-operator.d.ts +0 -2
  323. package/lib/types/models/spec-converter/spec-converter.d.ts +0 -1
  324. package/lib/types/models/word-cloud-musk-image.service.d.ts +0 -17
  325. package/lib/types/wordcloud-chart/index.d.ts +0 -12
  326. /package/lib/types/models/{mode-converter → chart-render/converter}/converters/constants.d.ts +0 -0
  327. /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/operator-types.d.ts +0 -0
  328. /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/relation-chart-operator/relation-force-directed-layout.d.ts +0 -0
  329. /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-chart-style.handler.d.ts +0 -0
  330. /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-data-label.handler.d.ts +0 -0
  331. /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/trend-line/trendline-util.d.ts +0 -0
  332. /package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/palette.d.ts +0 -0
  333. /package/lib/types/models/{series-style → chart-render/style/series-style}/series-style-resolver.d.ts +0 -0
  334. /package/lib/types/models/{constants → common/theme}/build-in-theme/default.d.ts +0 -0
  335. /package/lib/types/models/{constants → common/theme}/build-in-theme/types.d.ts +0 -0
  336. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient1.d.ts +0 -0
  337. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient2.d.ts +0 -0
  338. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient3.d.ts +0 -0
  339. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient4.d.ts +0 -0
  340. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient5.d.ts +0 -0
  341. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient6.d.ts +0 -0
  342. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer1.d.ts +0 -0
  343. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer2.d.ts +0 -0
  344. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer3.d.ts +0 -0
  345. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer4.d.ts +0 -0
  346. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer5.d.ts +0 -0
  347. /package/lib/types/models/{constants → common/theme}/build-in-theme/univer6.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- import type { ChartModel } from '../../models/chart-model';
2
- import type { IUniverDataSet } from '../../types';
3
- import type { ChartPendingConfig, IResolvedChartData } from '../chart-types';
1
+ import type { ChartModel } from '../../models/chart-model/chart-model';
2
+ import type { IChartData, IUniverDataSet } from '../../types';
3
+ import type { ChartPendingConfig } from '../chart-types';
4
4
  /** Resolves fresh engine semantic data from the model plus an uncommitted Facade patch. */
5
- export declare function resolveChartModelData(model: ChartModel, pending: ChartPendingConfig, dataSet?: IUniverDataSet, isRowDirection?: boolean): IResolvedChartData;
5
+ export declare function resolveChartModelData(model: ChartModel, pending: ChartPendingConfig, dataSet?: IUniverDataSet): IChartData;
@@ -1,12 +1,16 @@
1
+ import type { Injector } from '@univerjs/core';
2
+ import type { InlineChartCellValue } from '../models/chart-host/resource/inline-chart-table';
1
3
  import type { IChartRenderModelImageExportOptions, IUniverDataSet } from '../types';
2
4
  import type { IChartBuilderAdapter } from './chart-builder-adapter';
3
5
  import type { ChartPendingConfig, IChartDescription } from './chart-types';
6
+ import type { IInlineChartBuilderAdapter, IInlineChartHostPatch } from './internal/host-builder-runtime';
4
7
  /** Shared adapter behavior for builders that have not been inserted into a host. */
5
8
  export declare class DetachedChartBuilderAdapter<THostDescription extends object = object> implements IChartBuilderAdapter<THostDescription> {
6
9
  private readonly _description;
7
10
  private readonly _commitError;
8
11
  /** Creates detached behavior for a description and host-specific commit error. */
9
- constructor(_description: IChartDescription & THostDescription, _commitError: string);
12
+ constructor(_description: IChartDescription & THostDescription, _commitError: string, injector: Injector);
13
+ private readonly _localeTexts;
10
14
  /** Returns a clone of the detached description. */
11
15
  describe(config?: ChartPendingConfig, dataSet?: IUniverDataSet): IChartDescription & THostDescription;
12
16
  /** Rejects persistence until the chart has been inserted into a host. */
@@ -17,3 +21,8 @@ export declare class DetachedChartBuilderAdapter<THostDescription extends object
17
21
  exportImage(_options?: IChartRenderModelImageExportOptions): Promise<null>;
18
22
  protected rejectCommit(): never;
19
23
  }
24
+ /** Detached behavior shared by inline-data builders before insertion into a host. */
25
+ export declare class DetachedInlineChartBuilderAdapter<THostDescription extends object, TCell extends InlineChartCellValue, THostPatch extends IInlineChartHostPatch<TCell>> extends DetachedChartBuilderAdapter<THostDescription> implements IInlineChartBuilderAdapter<THostDescription, TCell, THostPatch> {
26
+ commitHost(_patch: THostPatch): never;
27
+ getData(): null;
28
+ }
@@ -0,0 +1,6 @@
1
+ export declare const REPLACE_ONLY_PIE_COMPOSITE_SECONDARY_PLOT_SPLIT_PATH = "pie.composite.secondaryPlot.split";
2
+ /**
3
+ * Object values at these paths are complete authored values, not partial object patches.
4
+ * Deep-merging them would retain fields omitted by the replacement value.
5
+ */
6
+ export declare function isReplaceOnlyChartPatchPath(path: readonly string[]): boolean;
@@ -1,5 +1,3 @@
1
1
  import type { IUniverDataSet } from '../../types';
2
- export { resolveChartDescriptionMetadata } from '../conversion/describe-chart-model';
3
- export { resolveChartModelData } from '../conversion/resolve-chart-model-data';
4
2
  /** Builds a detached data set from raw inline values and disposes the temporary source. */
5
3
  export declare function resolveInlineChartDataSet<TCell>(values: TCell[][], buildDataSet: (data: TCell[][]) => IUniverDataSet, isRowDirection?: boolean): IUniverDataSet;
@@ -0,0 +1,10 @@
1
+ /** Canonical TopN configuration persisted with a chart. */
2
+ export interface IChartTopNSpec {
3
+ count: number;
4
+ sourceIndex?: number;
5
+ }
6
+ /** Authored category aggregation and ranking configuration. */
7
+ export interface IChartDataAggregation {
8
+ aggregate?: boolean;
9
+ topN?: IChartTopNSpec;
10
+ }
@@ -0,0 +1,6 @@
1
+ interface ISize {
2
+ width: number;
3
+ height: number;
4
+ }
5
+ export declare const calcPosition: (text: string, font: string) => ISize;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { IWordCloudRenderConfig } from '../wordcloud-chart/word-cloud-render-config';
2
+ export declare const ENGINE_CHART_PLUGIN_CONFIG_KEY = "engine-chart.config";
3
+ export declare const configSymbol: unique symbol;
4
+ export interface IUniverChartConfig {
5
+ wordCloudRenderConfig?: IWordCloudRenderConfig;
6
+ }
7
+ export declare const defaultPluginConfig: IUniverChartConfig;
@@ -76,8 +76,57 @@ export declare enum ChartTypeBits {
76
76
  /** Sankey chart */
77
77
  Sankey = 32768,
78
78
  Heatmap = 65536,
79
- Boxplot = 131072
80
- }
79
+ Boxplot = 131072,
80
+ /** Candlestick chart */
81
+ Candlestick = 262144,
82
+ /** Histogram chart */
83
+ Histogram = 524288,
84
+ /** Treemap chart */
85
+ Treemap = 1048576,
86
+ /** Sunburst chart */
87
+ Sunburst = 2097152,
88
+ /** Gauge chart */
89
+ Gauge = 4194304,
90
+ /** Chord chart */
91
+ Chord = 8388608
92
+ }
93
+ export declare const ChartChordLabelPosition: {
94
+ readonly Inside: "inside";
95
+ readonly Outside: "outside";
96
+ };
97
+ export type ChartChordLabelPosition = typeof ChartChordLabelPosition[keyof typeof ChartChordLabelPosition];
98
+ export declare const ChartChordFocusMode: {
99
+ readonly Adjacency: "adjacency";
100
+ readonly Self: "self";
101
+ readonly None: "none";
102
+ };
103
+ export type ChartChordFocusMode = typeof ChartChordFocusMode[keyof typeof ChartChordFocusMode];
104
+ /** Persisted renderer-independent Chord ribbon color semantics. */
105
+ export declare const ChartChordRibbonColorMode: {
106
+ readonly Source: "source";
107
+ readonly Target: "target";
108
+ readonly Gradient: "gradient";
109
+ };
110
+ export type ChartChordRibbonColorMode = typeof ChartChordRibbonColorMode[keyof typeof ChartChordRibbonColorMode];
111
+ /** Persisted Gauge visual language. Missing historical values resolve to Modern. */
112
+ export declare const ChartGaugeMode: {
113
+ readonly Modern: "modern";
114
+ readonly Classic: "classic";
115
+ };
116
+ export type ChartGaugeMode = typeof ChartGaugeMode[keyof typeof ChartGaugeMode];
117
+ /** Persisted renderer-independent Gauge pointer shape. Missing historical values resolve to Needle. */
118
+ export declare const ChartGaugePointerShape: {
119
+ readonly Needle: "needle";
120
+ readonly Slim: "slim";
121
+ readonly Arrow: "arrow";
122
+ };
123
+ export type ChartGaugePointerShape = typeof ChartGaugePointerShape[keyof typeof ChartGaugePointerShape];
124
+ /** Persisted renderer-independent Sunburst label placement. */
125
+ export declare const ChartSunburstLabelPosition: {
126
+ readonly Inside: "inside";
127
+ readonly Outside: "outside";
128
+ };
129
+ export type ChartSunburstLabelPosition = typeof ChartSunburstLabelPosition[keyof typeof ChartSunburstLabelPosition];
81
130
  export declare enum CategoryType {
82
131
  Linear = "Linear",
83
132
  Text = "Text",
@@ -116,6 +165,33 @@ export declare enum ChartWaterfallPointRole {
116
165
  Change = "change",
117
166
  Total = "total"
118
167
  }
168
+ /** Candlestick point states used by persisted style keys and render classification. */
169
+ export declare const ChartCandlestickState: {
170
+ readonly Rising: "rising";
171
+ readonly Falling: "falling";
172
+ readonly Doji: "doji";
173
+ };
174
+ export type ChartCandlestickState = typeof ChartCandlestickState[keyof typeof ChartCandlestickState];
175
+ /** Histogram bin sizing modes persisted by the semantic chart model. */
176
+ export declare const HistogramBinningMode: {
177
+ readonly Count: "count";
178
+ readonly Width: "width";
179
+ };
180
+ export type HistogramBinningMode = typeof HistogramBinningMode[keyof typeof HistogramBinningMode];
181
+ /** Roles assigned to computed Histogram bins. */
182
+ export declare const ChartHistogramBinKind: {
183
+ readonly Underflow: "underflow";
184
+ readonly Regular: "regular";
185
+ readonly Overflow: "overflow";
186
+ };
187
+ export type ChartHistogramBinKind = typeof ChartHistogramBinKind[keyof typeof ChartHistogramBinKind];
188
+ /** Layout modes for Treemap parent labels. */
189
+ export declare const TreemapParentLabelLayout: {
190
+ readonly Banner: "banner";
191
+ readonly Overlapping: "overlapping";
192
+ readonly None: "none";
193
+ };
194
+ export type TreemapParentLabelLayout = typeof TreemapParentLabelLayout[keyof typeof TreemapParentLabelLayout];
119
195
  export declare enum IRuntimeAxisPriority {
120
196
  Primary = 1,
121
197
  Secondary = 2,
@@ -0,0 +1,133 @@
1
+ import type { IChartCandlestickMappingSpec, IChartCandlestickStateStyleSpec } from '@univerjs-pro/engine-chart';
2
+ import { FAxisChartBuilder } from '../f-axis-chart-builder';
3
+ /** Fluent semantic builder for a single OHLC Candlestick series. */
4
+ export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
5
+ /**
6
+ * Replaces Open, High, Low, and Close source fields atomically.
7
+ *
8
+ * Category remains configured through `setCategoryField()`. Every supplied index must be a
9
+ * unique non-negative integer. Read the pending or persisted value with
10
+ * `builder.describe().mapping?.candlestick`.
11
+ *
12
+ * @param fields Required semantic OHLC source field indexes.
13
+ * @returns This builder for chaining.
14
+ * @example
15
+ * ```ts
16
+ * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
17
+ * const builder = worksheet.charts.create()
18
+ * .setType(univerAPI.Enum.ChartTypeString.Candlestick)
19
+ * .setCategoryField(0)
20
+ * .setCandlestickFields({ openIndex: 1, highIndex: 2, lowIndex: 3, closeIndex: 4 });
21
+ * const mapping = builder.describe().mapping?.candlestick;
22
+ * ```
23
+ */
24
+ setCandlestickFields(fields: IChartCandlestickMappingSpec): this;
25
+ /**
26
+ * Clears the atomic OHLC mapping while preserving the category field.
27
+ *
28
+ * @returns This builder for chaining.
29
+ * @example
30
+ * ```ts
31
+ * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
32
+ * worksheet.charts.create()
33
+ * .setType(univerAPI.Enum.ChartTypeString.Candlestick)
34
+ * .clearCandlestickFields();
35
+ * ```
36
+ */
37
+ clearCandlestickFields(): this;
38
+ /**
39
+ * Sets semantic Rising candle body and wick style overrides.
40
+ *
41
+ * @param style Rising body and wick style values, passed through without Facade range validation.
42
+ * @returns This builder for chaining.
43
+ * @example
44
+ * ```ts
45
+ * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
46
+ * worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick)
47
+ * .setRisingStyle({ color: '#0DA471', hollow: true });
48
+ * ```
49
+ */
50
+ setRisingStyle(style: IChartCandlestickStateStyleSpec): this;
51
+ /**
52
+ * Clears explicit Rising style overrides so runtime defaults apply.
53
+ *
54
+ * @returns This builder for chaining.
55
+ * @example
56
+ * ```ts
57
+ * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
58
+ * worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).clearRisingStyle();
59
+ * ```
60
+ */
61
+ clearRisingStyle(): this;
62
+ /**
63
+ * Sets semantic Falling candle body and wick style overrides.
64
+ *
65
+ * @param style Falling body and wick style values, passed through without Facade range validation.
66
+ * @returns This builder for chaining.
67
+ * @example
68
+ * ```ts
69
+ * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
70
+ * worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick)
71
+ * .setFallingStyle({ color: '#F05252' });
72
+ * ```
73
+ */
74
+ setFallingStyle(style: IChartCandlestickStateStyleSpec): this;
75
+ /**
76
+ * Clears explicit Falling style overrides so runtime defaults apply.
77
+ *
78
+ * @returns This builder for chaining.
79
+ * @example
80
+ * ```ts
81
+ * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
82
+ * worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).clearFallingStyle();
83
+ * ```
84
+ */
85
+ clearFallingStyle(): this;
86
+ /**
87
+ * Sets semantic Doji body and wick style overrides.
88
+ *
89
+ * @param style Doji body and wick style values, passed through without Facade range validation.
90
+ * @returns This builder for chaining.
91
+ * @example
92
+ * ```ts
93
+ * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
94
+ * worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick)
95
+ * .setDojiStyle({ color: '#8C8C8C', border: { width: 2 } });
96
+ * ```
97
+ */
98
+ setDojiStyle(style: IChartCandlestickStateStyleSpec): this;
99
+ /**
100
+ * Clears explicit Doji style overrides so runtime defaults apply.
101
+ *
102
+ * @returns This builder for chaining.
103
+ * @example
104
+ * ```ts
105
+ * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
106
+ * worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).clearDojiStyle();
107
+ * ```
108
+ */
109
+ clearDojiStyle(): this;
110
+ /**
111
+ * Sets a fixed candle width value without Facade range validation.
112
+ *
113
+ * @param width Fixed candle width in pixels.
114
+ * @returns This builder for chaining.
115
+ * @example
116
+ * ```ts
117
+ * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
118
+ * worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).setCandleWidth(18);
119
+ * ```
120
+ */
121
+ setCandleWidth(width: number): this;
122
+ /**
123
+ * Removes the fixed candle width so the renderer chooses it automatically.
124
+ *
125
+ * @returns This builder for chaining.
126
+ * @example
127
+ * ```ts
128
+ * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
129
+ * worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).resetCandleWidth();
130
+ * ```
131
+ */
132
+ resetCandleWidth(): this;
133
+ }
@@ -0,0 +1,30 @@
1
+ import type { IChartChordEmphasisSpec, IChartChordLabelSpec, IChartChordLayoutSpec, IChartChordMappingSpec, IChartChordNodeStyleSpec, IChartChordRibbonStyleSpec } from '@univerjs-pro/engine-chart';
2
+ import { FChartBuilderBase } from '../f-chart-builder-base';
3
+ /**
4
+ * Fluent semantic builder for an undirected Source/Target/optional-Value edge list.
5
+ *
6
+ * Final display labels own node identity. Duplicate and reverse rows aggregate,
7
+ * omitted Value means unit-weight counts, and blank endpoints, self-links, and
8
+ * non-positive/non-finite mapped weights are skipped without coercion. Aggregate
9
+ * values are formatted after summing. Defaults are renderer-owned and require the
10
+ * native ECharts 6.1 Chord series; no renderer nodes, links, or layout are persisted.
11
+ */
12
+ export declare class FChordChartBuilder extends FChartBuilderBase {
13
+ setChordMapping(value: IChartChordMappingSpec): this;
14
+ getChordMapping(): IChartChordMappingSpec | undefined;
15
+ setChordLayout(value: IChartChordLayoutSpec): this;
16
+ resetChordLayout(): this;
17
+ getChordLayout(): IChartChordLayoutSpec | undefined;
18
+ setChordNode(value: IChartChordNodeStyleSpec): this;
19
+ resetChordNode(): this;
20
+ getChordNode(): IChartChordNodeStyleSpec | undefined;
21
+ setChordLabel(value: IChartChordLabelSpec): this;
22
+ resetChordLabel(): this;
23
+ getChordLabel(): IChartChordLabelSpec | undefined;
24
+ setChordRibbon(value: IChartChordRibbonStyleSpec): this;
25
+ resetChordRibbon(): this;
26
+ getChordRibbon(): IChartChordRibbonStyleSpec | undefined;
27
+ setChordEmphasis(value: IChartChordEmphasisSpec): this;
28
+ resetChordEmphasis(): this;
29
+ getChordEmphasis(): IChartChordEmphasisSpec | undefined;
30
+ }
@@ -0,0 +1,52 @@
1
+ import type { ChartGaugeMode, DeepNullish, IChartGaugeAnchorSpec, IChartGaugeAnglesSpec, IChartGaugeAxisLabelSpec, IChartGaugeAxisLineSpec, IChartGaugeAxisTickSpec, IChartGaugeDetailSpec, IChartGaugePointerSpec, IChartGaugeProgressSpec, IChartGaugeRangeSpec, IChartGaugeScaleSpec, IChartGaugeSplitLineSpec, IChartGaugeTicksPatch, IChartGaugeTitleSpec } from '@univerjs-pro/engine-chart';
2
+ import { FChartBuilderBase } from '../f-chart-builder-base';
3
+ /**
4
+ * Fluent semantic builder for Google-style label/value Gauge data.
5
+ *
6
+ * The category field is the label and exactly one value field is selected. Each
7
+ * finite numeric observation renders as an independently wrapped gauge; invalid
8
+ * values are skipped without coercion. Scale defaults to 0–100. Out-of-range raw
9
+ * values retain their source formatting for detail and tooltip text while only
10
+ * the rendered indicator is clamped. Angles use degrees, length/offset ratios use
11
+ * 0–1 units, and range bounds use scale-domain values. All style is chart-wide.
12
+ * Layout is derived at render time and is never part of this builder's state.
13
+ *
14
+ * @example
15
+ * chart.setType(ChartTypeString.Gauge)
16
+ * .setCategoryField(0)
17
+ * .setGaugeValueField(1)
18
+ * .setGaugeRanges([{ from: 0, to: 60, color: '#dc2626' }]);
19
+ */
20
+ export declare class FGaugeChartBuilder extends FChartBuilderBase {
21
+ /** Selects the only value field; labels use `setCategoryField()`. */
22
+ setGaugeValueField(index: number): this;
23
+ setGaugeMode(value: ChartGaugeMode): this;
24
+ resetGaugeMode(): this;
25
+ setGaugeScale(value: IChartGaugeScaleSpec): this;
26
+ resetGaugeScale(): this;
27
+ /** Sets regular major scale divisions and minor divisions per major interval. */
28
+ setGaugeTicks(value: IChartGaugeTicksPatch): this;
29
+ setGaugeAngles(value: IChartGaugeAnglesSpec): this;
30
+ resetGaugeAngles(): this;
31
+ setGaugeRanges(value: readonly IChartGaugeRangeSpec[]): this;
32
+ resetGaugeRanges(): this;
33
+ setGaugeAxisLine(value: IChartGaugeAxisLineSpec): this;
34
+ resetGaugeAxisLine(): this;
35
+ setGaugeAxisTick(value: IChartGaugeAxisTickSpec): this;
36
+ resetGaugeAxisTick(): this;
37
+ setGaugeSplitLine(value: IChartGaugeSplitLineSpec): this;
38
+ resetGaugeSplitLine(): this;
39
+ setGaugeAxisLabel(value: DeepNullish<IChartGaugeAxisLabelSpec>): this;
40
+ resetGaugeAxisLabel(): this;
41
+ /** Sets the pointer visibility, dimensions, color, and semantic shape preset. */
42
+ setGaugePointer(value: IChartGaugePointerSpec): this;
43
+ resetGaugePointer(): this;
44
+ setGaugeAnchor(value: IChartGaugeAnchorSpec): this;
45
+ resetGaugeAnchor(): this;
46
+ setGaugeProgress(value: IChartGaugeProgressSpec): this;
47
+ resetGaugeProgress(): this;
48
+ setGaugeTitle(value: IChartGaugeTitleSpec): this;
49
+ resetGaugeTitle(): this;
50
+ setGaugeDetail(value: DeepNullish<IChartGaugeDetailSpec>): this;
51
+ resetGaugeDetail(): this;
52
+ }
@@ -0,0 +1,74 @@
1
+ import { FCartesianChartBuilder } from '../f-cartesian-chart-builder';
2
+ /**
3
+ * Fluent builder for a one-field raw-sample Histogram.
4
+ *
5
+ * Histogram settings are persisted as authored. Rendering uses Scott Auto when explicit
6
+ * binning is ineffective, never emits more than 1000 visible bins, and falls back to a
7
+ * zero visual gap for ineffective gap values.
8
+ *
9
+ * @example
10
+ * const chart = worksheet.charts.create()
11
+ * .setType(univerAPI.Enum.ChartTypeString.Histogram)
12
+ * .setHistogramField(0)
13
+ * .setBinCount(12)
14
+ * .setBinGap(0.1);
15
+ */
16
+ export declare class FHistogramChartBuilder extends FCartesianChartBuilder {
17
+ /**
18
+ * Selects the only active Histogram value field by zero-based source index.
19
+ * @example `builder.setHistogramField(2)`
20
+ */
21
+ setHistogramField(index: number): this;
22
+ /**
23
+ * Clears the active Histogram value field.
24
+ * @example `builder.clearHistogramField()`
25
+ */
26
+ clearHistogramField(): this;
27
+ /**
28
+ * Stores an explicit total visible-bin count. Integers from 1 through 1000 are effective
29
+ * when enabled edge bins still leave room for a regular bin. Other finite values remain
30
+ * persisted and visible through `describe()` but render with Scott Auto. Non-finite calls
31
+ * produce no Pending change.
32
+ * @example `builder.setBinCount(20)`
33
+ */
34
+ setBinCount(count: number): this;
35
+ /**
36
+ * Stores an explicit width. A positive finite width is effective only when the current
37
+ * range produces at most 1000 visible bins; otherwise rendering uses Scott Auto without
38
+ * rewriting the stored value. Non-finite calls produce no Pending change.
39
+ * @example `builder.setBinWidth(2.5)`
40
+ */
41
+ setBinWidth(width: number): this;
42
+ /**
43
+ * Removes explicit binning and restores runtime-only Scott Auto.
44
+ * @example `builder.resetBinning()`
45
+ */
46
+ resetBinning(): this;
47
+ /**
48
+ * Enables the inclusive `x <= threshold` Underflow bin. If both thresholds are present,
49
+ * they are effective only when Underflow is less than Overflow. Non-finite calls are no-op.
50
+ * @example `builder.setUnderflowThreshold(0)`
51
+ */
52
+ setUnderflowThreshold(value: number): this;
53
+ /** Disables Underflow. @example `builder.clearUnderflowThreshold()` */
54
+ clearUnderflowThreshold(): this;
55
+ /**
56
+ * Enables the exclusive `x > threshold` Overflow bin. An ineffective finite threshold
57
+ * pair remains persisted but both thresholds are ignored for rendering. Non-finite calls are no-op.
58
+ * @example `builder.setOverflowThreshold(100)`
59
+ */
60
+ setOverflowThreshold(value: number): this;
61
+ /** Disables Overflow. @example `builder.clearOverflowThreshold()` */
62
+ clearOverflowThreshold(): this;
63
+ /**
64
+ * Stores the visual gap ratio. Values from 0 through 0.9 are effective; other finite values
65
+ * remain persisted but render with the 0.007-gap default. Non-finite calls are no-op.
66
+ * @example `builder.setBinGap(0.15)`
67
+ */
68
+ setBinGap(value: number): this;
69
+ /**
70
+ * Removes the explicit gap and restores the 0.007 runtime default.
71
+ * @example `builder.resetBinGap()`
72
+ */
73
+ resetBinGap(): this;
74
+ }
@@ -1,6 +1,8 @@
1
- import type { IChartPieLabelSpec, IChartSliceStyleSpec } from '@univerjs-pro/engine-chart';
1
+ import type { DeepNullish, IChartPieCompositeSpec, IChartPieLabelSpec, IChartSliceStyleSpec } from '@univerjs-pro/engine-chart';
2
2
  import { FChartBuilderBase } from '../f-chart-builder-base';
3
3
  export declare class FPieChartBuilder extends FChartBuilderBase {
4
+ setPieComposite(value: DeepNullish<IChartPieCompositeSpec>): this;
5
+ clearPieComposite(): this;
4
6
  /**
5
7
  * Sets the style for the materialized slice at `index`.
6
8
  *
@@ -270,65 +272,6 @@ export declare class FPieChartBuilder extends FChartBuilderBase {
270
272
  * ```
271
273
  */
272
274
  resetValueScale(): this;
273
- /**
274
- * Sets the value suffix configuration and returns this builder for chaining.
275
- *
276
- * This method executes synchronously.
277
- *
278
- * @param value The semantic value to record.
279
- * @returns This builder for chaining.
280
- * @example
281
- * ```ts
282
- * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
283
- * const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
284
- * builder.setValueSuffix('%');
285
- * ```
286
- */
287
- setValueSuffix(value: string): this;
288
- /**
289
- * Clears the value suffix so labels append no custom suffix.
290
- *
291
- * This method executes synchronously.
292
- *
293
- * @returns This builder for chaining.
294
- * @example
295
- * ```ts
296
- * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
297
- * const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
298
- * builder.clearValueSuffix();
299
- * ```
300
- */
301
- clearValueSuffix(): this;
302
- /**
303
- * Sets the decimal places configuration and returns this builder for chaining.
304
- *
305
- * This method executes synchronously.
306
- *
307
- * @param value The semantic value to record.
308
- * @returns This builder for chaining.
309
- * @example
310
- * ```ts
311
- * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
312
- * const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
313
- * builder.setDecimalPlaces(2);
314
- * ```
315
- */
316
- setDecimalPlaces(value: number): this;
317
- /**
318
- * Removes the explicit decimal-precision override. When a value scale or suffix still requires
319
- * the custom formatter, that formatter falls back to one decimal place.
320
- *
321
- * This method executes synchronously.
322
- *
323
- * @returns This builder for chaining.
324
- * @example
325
- * ```ts
326
- * const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
327
- * const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
328
- * builder.resetDecimalPlaces();
329
- * ```
330
- */
331
- resetDecimalPlaces(): this;
332
275
  /**
333
276
  * Sets the pie label configuration and returns this builder for chaining.
334
277
  *
@@ -346,7 +289,7 @@ export declare class FPieChartBuilder extends FChartBuilderBase {
346
289
  * builder.setPieLabel({ visible: true, position: univerAPI.Enum.PieLabelPosition.Outside });
347
290
  * ```
348
291
  */
349
- setPieLabel(value: IChartPieLabelSpec): this;
292
+ setPieLabel(value: DeepNullish<IChartPieLabelSpec>): this;
350
293
  /**
351
294
  * Clears the pie label override. Labels fall back to visible outside labels containing category,
352
295
  * value, and percentage with the active chart font and theme colors.
@@ -0,0 +1,24 @@
1
+ import type { DeepNullish, IChartSunburstCenterLabelSpec, IChartSunburstLabelSpec } from '@univerjs-pro/engine-chart';
2
+ import { FChartBuilderBase } from '../f-chart-builder-base';
3
+ /**
4
+ * Fluent semantic builder for an automatically laid-out Sunburst chart.
5
+ *
6
+ * Field indexes are zero-based in the orientation-normalized dataset. Rendering needs at
7
+ * least one ordered hierarchy field and exactly one value field. Duplicate complete paths
8
+ * sum finite numeric values; sparse hierarchy values inherit within ancestor scope; parent
9
+ * facts add to child totals. Ring layout is automatic and root navigation is disabled.
10
+ */
11
+ export declare class FSunburstChartBuilder extends FChartBuilderBase {
12
+ /** Replaces the ordered inner-to-outer hierarchy with zero-based field indexes. */
13
+ setHierarchyFields(indexes: readonly number[]): this;
14
+ /** Replaces the sole numeric value field with a zero-based field index. */
15
+ setValueField(index: number): this;
16
+ /** Sets label visibility, CategoryName/Value content, and font appearance. */
17
+ setSunburstLabel(label: DeepNullish<IChartSunburstLabelSpec>): this;
18
+ /** Removes explicit label style and restores visible category-name labels. */
19
+ resetSunburstLabel(): this;
20
+ /** Sets visibility, number format, and font appearance for the aggregate center value. */
21
+ setCenterLabel(centerLabel: DeepNullish<IChartSunburstCenterLabelSpec>): this;
22
+ /** Removes the authored center-label style and restores its hidden default. */
23
+ resetCenterLabel(): this;
24
+ }
@@ -0,0 +1,34 @@
1
+ import type { DeepNullish, IChartTreemapLabelSpec, TreemapParentLabelLayout } from '@univerjs-pro/engine-chart';
2
+ import { FChartBuilderBase } from '../f-chart-builder-base';
3
+ /**
4
+ * Fluent semantic builder for an automatically laid-out Treemap.
5
+ *
6
+ * Field indexes are zero-based in the orientation-normalized dataset. Rendering needs at
7
+ * least one ordered hierarchy field and exactly one value field. Duplicate complete paths
8
+ * sum finite numeric values; blank, textual, non-finite, and final non-positive values do
9
+ * not render. Parent-owned facts add to child totals. Layout is automatic and navigation
10
+ * is disabled. The runtime defaults are banner parent labels and visible category-name
11
+ * leaf labels; labels may hide when their rectangle cannot fit the complete content.
12
+ *
13
+ * @example
14
+ * const chart = worksheet.charts.create()
15
+ * .setType(univerAPI.Enum.ChartTypeString.Treemap)
16
+ * .setHierarchyFields([0, 1, 2])
17
+ * .setValueField(3)
18
+ * .setParentLabelLayout('banner')
19
+ * .setTreemapLabel({ visible: true, contentType: univerAPI.Enum.LabelContentType.CategoryName });
20
+ */
21
+ export declare class FTreemapChartBuilder extends FChartBuilderBase {
22
+ /** Replaces the ordered root-to-leaf hierarchy with zero-based field indexes. */
23
+ setHierarchyFields(indexes: readonly number[]): this;
24
+ /** Replaces the sole numeric value field with a zero-based field index. */
25
+ setValueField(index: number): this;
26
+ /** Sets parent names to a reserved banner, overlapping text, or hidden. */
27
+ setParentLabelLayout(layout: TreemapParentLabelLayout): this;
28
+ /** Removes the explicit parent layout and restores the runtime banner default. */
29
+ resetParentLabelLayout(): this;
30
+ /** Sets leaf font and CategoryName/Value content. Other content bits are inert. */
31
+ setTreemapLabel(label: DeepNullish<IChartTreemapLabelSpec>): this;
32
+ /** Removes explicit leaf-label style and restores visible category-name labels. */
33
+ resetTreemapLabel(): this;
34
+ }
@@ -1,5 +1,24 @@
1
1
  import type { ChartTypeString } from '@univerjs-pro/engine-chart';
2
- import type { FAreaChartBuilder, FBoxplotChartBuilder, FBubbleChartBuilder, FCombinationChartBuilder, FFunnelChartBuilder, FHeatmapChartBuilder, FLineChartBuilder, FParetoChartBuilder, FPieChartBuilder, FRadarChartBuilder, FRelationChartBuilder, FScatterChartBuilder, FWaterfallChartBuilder, FWordCloudChartBuilder } from './builders';
2
+ import type { FAreaChartBuilder } from './builders/f-area-chart-builder';
3
+ import type { FBoxplotChartBuilder } from './builders/f-boxplot-chart-builder';
4
+ import type { FBubbleChartBuilder } from './builders/f-bubble-chart-builder';
5
+ import type { FCandlestickChartBuilder } from './builders/f-candlestick-chart-builder';
6
+ import type { FChordChartBuilder } from './builders/f-chord-chart-builder';
7
+ import type { FCombinationChartBuilder } from './builders/f-combination-chart-builder';
8
+ import type { FFunnelChartBuilder } from './builders/f-funnel-chart-builder';
9
+ import type { FGaugeChartBuilder } from './builders/f-gauge-chart-builder';
10
+ import type { FHeatmapChartBuilder } from './builders/f-heatmap-chart-builder';
11
+ import type { FHistogramChartBuilder } from './builders/f-histogram-chart-builder';
12
+ import type { FLineChartBuilder } from './builders/f-line-chart-builder';
13
+ import type { FParetoChartBuilder } from './builders/f-pareto-chart-builder';
14
+ import type { FPieChartBuilder } from './builders/f-pie-chart-builder';
15
+ import type { FRadarChartBuilder } from './builders/f-radar-chart-builder';
16
+ import type { FRelationChartBuilder } from './builders/f-relation-chart-builder';
17
+ import type { FScatterChartBuilder } from './builders/f-scatter-chart-builder';
18
+ import type { FSunburstChartBuilder } from './builders/f-sunburst-chart-builder';
19
+ import type { FTreemapChartBuilder } from './builders/f-treemap-chart-builder';
20
+ import type { FWaterfallChartBuilder } from './builders/f-waterfall-chart-builder';
21
+ import type { FWordCloudChartBuilder } from './builders/f-word-cloud-chart-builder';
3
22
  import type { FCartesianChartBuilder } from './f-cartesian-chart-builder';
4
23
  import type { FChartBuilderBase } from './f-chart-builder-base';
5
24
  export interface IChartBuilderTypeMap {
@@ -27,4 +46,10 @@ export interface IChartBuilderTypeMap {
27
46
  [ChartTypeString.Sankey]: FChartBuilderBase;
28
47
  [ChartTypeString.Heatmap]: FHeatmapChartBuilder;
29
48
  [ChartTypeString.Boxplot]: FBoxplotChartBuilder;
49
+ [ChartTypeString.Candlestick]: FCandlestickChartBuilder;
50
+ [ChartTypeString.Histogram]: FHistogramChartBuilder;
51
+ [ChartTypeString.Treemap]: FTreemapChartBuilder;
52
+ [ChartTypeString.Sunburst]: FSunburstChartBuilder;
53
+ [ChartTypeString.Gauge]: FGaugeChartBuilder;
54
+ [ChartTypeString.Chord]: FChordChartBuilder;
30
55
  }