@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.
- package/README.md +25 -3
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/es-ES.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/cjs/locale/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -0
- package/lib/cjs/locale/ko-KR.js +1 -0
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -0
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/es-ES.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/fr-FR.js +1 -0
- package/lib/es/locale/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -0
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/sk-SK.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -0
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/es-ES.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -0
- package/lib/locale/ko-KR.js +1 -0
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/sk-SK.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/types/chart-builder/chart-builder-adapter.d.ts +1 -3
- package/lib/types/chart-builder/chart-builder.d.ts +4 -6
- package/lib/types/chart-builder/chart-live-adapter.d.ts +15 -0
- package/lib/types/chart-builder/chart-starter-data.d.ts +3 -2
- package/lib/types/chart-builder/chart-types.d.ts +129 -13
- package/lib/types/chart-builder/configuration/assertions.d.ts +2 -0
- package/lib/types/chart-builder/configuration/cartesian-series.d.ts +3 -1
- package/lib/types/chart-builder/configuration/chart-config-group.d.ts +38 -0
- package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +1 -33
- package/lib/types/chart-builder/configuration/chord.d.ts +12 -0
- package/lib/types/chart-builder/configuration/gauge.d.ts +31 -0
- package/lib/types/chart-builder/configuration/pie.d.ts +5 -6
- package/lib/types/chart-builder/configuration/sunburst.d.ts +7 -0
- package/lib/types/chart-builder/configuration/treemap.d.ts +2 -2
- package/lib/types/chart-builder/configuration/waterfall.d.ts +3 -1
- package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +25 -10
- package/lib/types/chart-builder/conversion/chart-context-patch.d.ts +1 -1
- package/lib/types/chart-builder/conversion/chart-create-config.d.ts +6 -0
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +25 -7
- package/lib/types/chart-builder/conversion/chart-type-converter.d.ts +3 -1
- package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +1419 -7
- package/lib/types/chart-builder/conversion/resolve-chart-model-data.d.ts +2 -2
- package/lib/types/chart-builder/detached-chart-builder-adapter.d.ts +4 -4
- package/lib/types/chart-builder/internal/apply-pending-to-description.d.ts +2 -0
- package/lib/types/chart-builder/internal/chart-host-config-adapter.d.ts +3 -0
- package/lib/types/chart-builder/internal/chart-patch-replace-policy.d.ts +6 -0
- package/lib/types/chart-builder/internal/chart-pending-patch.d.ts +11 -0
- package/lib/types/chart-builder/internal/patch-interpreter.d.ts +17 -0
- package/lib/types/chart-data-aggregation.d.ts +10 -0
- package/lib/types/config/config.d.ts +7 -0
- package/lib/types/enum.d.ts +45 -2
- package/lib/types/facade/builders/f-area-chart-builder.d.ts +52 -7
- package/lib/types/facade/builders/f-boxplot-chart-builder.d.ts +88 -3
- package/lib/types/facade/builders/f-bubble-chart-builder.d.ts +59 -6
- package/lib/types/facade/builders/f-candlestick-chart-builder.d.ts +90 -31
- package/lib/types/facade/builders/f-chord-chart-builder.d.ts +202 -0
- package/lib/types/facade/builders/f-combination-chart-builder.d.ts +55 -10
- package/lib/types/facade/builders/f-funnel-chart-builder.d.ts +55 -9
- package/lib/types/facade/builders/f-gauge-chart-builder.d.ts +420 -0
- package/lib/types/facade/builders/f-heatmap-chart-builder.d.ts +83 -26
- package/lib/types/facade/builders/f-histogram-chart-builder.d.ts +142 -16
- package/lib/types/facade/builders/f-line-chart-builder.d.ts +51 -6
- package/lib/types/facade/builders/f-pareto-chart-builder.d.ts +83 -20
- package/lib/types/facade/builders/f-pie-chart-builder.d.ts +134 -107
- package/lib/types/facade/builders/f-radar-chart-builder.d.ts +64 -11
- package/lib/types/facade/builders/f-relation-chart-builder.d.ts +72 -38
- package/lib/types/facade/builders/f-scatter-chart-builder.d.ts +58 -6
- package/lib/types/facade/builders/f-sunburst-chart-builder.d.ts +138 -0
- package/lib/types/facade/builders/f-treemap-chart-builder.d.ts +116 -14
- package/lib/types/facade/builders/f-waterfall-chart-builder.d.ts +87 -53
- package/lib/types/facade/builders/f-word-cloud-chart-builder.d.ts +64 -15
- package/lib/types/facade/chart-builder-registry.d.ts +4 -4
- package/lib/types/facade/chart-builder-type-map.d.ts +55 -30
- package/lib/types/facade/chart-host-builder-types.d.ts +2 -21
- package/lib/types/facade/create-chart-builder.d.ts +46 -0
- package/lib/types/facade/f-axis-chart-builder.d.ts +21 -38
- package/lib/types/facade/f-cartesian-chart-builder.d.ts +34 -22
- package/lib/types/facade/f-chart-builder-base.d.ts +206 -74
- package/lib/types/facade/f-chart.d.ts +652 -0
- package/lib/types/facade/f-enum.d.ts +686 -31
- package/lib/types/facade/f-univer.d.ts +51 -0
- package/lib/types/facade/index.d.ts +27 -10
- package/lib/types/facade/internal/chart-builder-facade-context.d.ts +11 -10
- package/lib/types/index.d.ts +131 -39
- package/lib/types/locale/ar-SA.d.ts +3 -0
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/de-DE.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +46 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/locale/fr-FR.d.ts +3 -0
- package/lib/types/locale/id-ID.d.ts +3 -0
- package/lib/types/locale/it-IT.d.ts +3 -0
- package/lib/types/locale/ja-JP.d.ts +3 -0
- package/lib/types/locale/ko-KR.d.ts +3 -0
- package/lib/types/locale/pl-PL.d.ts +3 -0
- package/lib/types/locale/pt-BR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/types/locale/zh-HK.d.ts +3 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/models/{chart-semantic-axes.d.ts → chart-context/axes/chart-semantic-axes.d.ts} +2 -2
- package/lib/types/models/chart-context/chart-field-selection.d.ts +21 -0
- package/lib/types/models/chart-context/resolve-chart-context.d.ts +5 -0
- package/lib/types/models/chart-data/build-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/boxplot-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/candlestick-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/cartesian-point-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/category-series-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/chord-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/gauge-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/heatmap-chart-data.d.ts +3 -0
- package/lib/types/models/chart-data/builders/hierarchy-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/histogram-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/relation-chart-data.d.ts +3 -0
- package/lib/types/models/chart-data/builders/sankey-chart-data.d.ts +3 -0
- package/lib/types/models/chart-data/chart-field-consumption-validator.d.ts +15 -0
- package/lib/types/models/chart-data/chart-field-consumption.d.ts +4 -0
- package/lib/types/models/chart-data/chart-field-requirements.d.ts +7 -0
- package/lib/types/models/chart-data/get-chart-data-builder.d.ts +7 -0
- package/lib/types/models/chart-data/internal/aggregate-number-format.d.ts +8 -0
- package/lib/types/models/{chart-data-operators → chart-data/internal}/cartesian-point-data.d.ts +3 -8
- package/lib/types/models/chart-data/internal/category-data.d.ts +3 -0
- package/lib/types/models/chart-data/internal/category-series-aggregation.d.ts +10 -0
- package/lib/types/models/chart-data/internal/chart-data-result.d.ts +5 -0
- package/lib/types/models/chart-data/internal/chart-hierarchy-data.d.ts +1 -0
- package/lib/types/models/chart-data/internal/chord-data.d.ts +7 -0
- package/lib/types/models/chart-data/internal/data-set-accessors.d.ts +7 -0
- package/lib/types/models/chart-data/internal/gauge-data.d.ts +5 -0
- package/lib/types/models/{chart-data-operators/histogram-data.d.ts → chart-data/internal/histogram-bins.d.ts} +1 -1
- package/lib/types/models/chart-data/internal/relation-data-shape.d.ts +2 -0
- package/lib/types/models/chart-data/internal/source-cell-label.d.ts +3 -0
- package/lib/types/models/chart-data/internal/sunburst-data.d.ts +4 -0
- package/lib/types/models/chart-data/internal/treemap-data.d.ts +4 -0
- package/lib/types/models/chart-data/pie-composite/pie-composite-projection.d.ts +36 -0
- package/lib/types/models/chart-data/pie-composite/pie-composite-render-metadata.d.ts +15 -0
- package/lib/types/models/chart-data/pie-composite/pie-composite-spec.d.ts +38 -0
- package/lib/types/models/{chart-host-style.d.ts → chart-host/chart-host-style.d.ts} +1 -1
- package/lib/types/models/chart-host/config/chart-config-interpreter.d.ts +13 -0
- package/lib/types/models/{image-chart-host.d.ts → chart-host/image-chart-host.d.ts} +14 -2
- package/lib/types/models/{offscreen-chart-host.d.ts → chart-host/offscreen-chart-host.d.ts} +1 -1
- package/lib/types/models/chart-host/resource/chart-data-source-resolver.d.ts +58 -0
- package/lib/types/models/chart-host/resource/chart-resource-repository.d.ts +111 -0
- package/lib/types/models/{chart-resource-serializer.d.ts → chart-host/resource/chart-resource-serializer.d.ts} +3 -2
- package/lib/types/models/chart-host/resource/inline-chart-table.d.ts +5 -0
- package/lib/types/models/chart-host/resource/persisted-chart-style.d.ts +3 -0
- package/lib/types/models/chart-host/resource/resource-ref-chart-data-source.adapter.d.ts +22 -0
- package/lib/types/models/chart-host/resource/resource-ref-chart-data-source.provider.d.ts +12 -0
- package/lib/types/models/chart-host/static/chart-model-store.d.ts +56 -0
- package/lib/types/models/chart-host/static/chart-runtime.d.ts +27 -0
- package/lib/types/models/{chart-model.d.ts → chart-model/chart-model.d.ts} +1415 -947
- package/lib/types/models/{echart-to-chart-model-init.d.ts → chart-model/echart-to-chart-model-init.d.ts} +2 -2
- package/lib/types/models/{data-context-transformers/bar-data-context-transformer.d.ts → chart-model/type-transition/bar-type-transition.d.ts} +1 -1
- 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
- package/lib/types/models/{data-context-transformers/percent-data-context-transformer.d.ts → chart-model/type-transition/percent-type-transition.d.ts} +1 -1
- package/lib/types/models/{chart-element-axis-id.d.ts → chart-render/axes/chart-element-axis-id.d.ts} +1 -1
- package/lib/types/models/{chart-runtime-axes.d.ts → chart-render/axes/chart-runtime-axes.d.ts} +4 -4
- package/lib/types/models/{chart-render-input-resolver.d.ts → chart-render/chart-render-input-resolver.d.ts} +3 -3
- package/lib/types/models/{chart-render-model-manager.service.d.ts → chart-render/chart-render-model-manager.service.d.ts} +2 -3
- package/lib/types/models/chart-render/converter/converters/boxplot-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/bubble-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/candlestick-chart-converter.d.ts +4 -0
- package/lib/types/models/chart-render/converter/converters/chord-chart-converter.d.ts +10 -0
- package/lib/types/models/chart-render/converter/converters/combination-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/funnel-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/gauge-chart-converter.d.ts +20 -0
- package/lib/types/models/chart-render/converter/converters/heatmap-chart-convert.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/histogram-chart-converter.d.ts +2 -3
- package/lib/types/models/chart-render/converter/converters/pareto-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/pie-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/radar-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/relation-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/sankey-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/scatter-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/sunburst-chart-converter.d.ts +3 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/tools.d.ts +1 -1
- package/lib/types/models/chart-render/converter/converters/treemap-chart-converter.d.ts +3 -0
- package/lib/types/models/chart-render/converter/converters/waterfall-chart-converter.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/waterfall-layout.d.ts +2 -2
- package/lib/types/models/chart-render/converter/converters/word-cloud-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/echart-text-overflow.d.ts +7 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/mode-converter.d.ts +3 -5
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/auto-gradient-presets.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/axis-title.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/bar-layout.operator.d.ts +3 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/bubble-style.operator.d.ts +1 -1
- 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
- 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
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/chart-color.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/empty-style-operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/font-size.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/grid-operator.d.ts +12 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/heatmap-chart-operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/hover-mark-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/implicit-category-axis.operator.d.ts +1 -1
- 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
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/legend-size.d.ts +1 -2
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/legend-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/line-like-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/mark-line.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/pie-composite-layout.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/pie-style.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/plot-area.d.ts +10 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/radar-style.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/relation-chart-operator/relation-chart-operator.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/rich-text-inheritance.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/rtl-render-spec.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/sankey-chart-operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/scatter-style.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/series-style-operator/pareto-series-style.handler.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-style-operator.d.ts +3 -3
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/waterfall-series-style-operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/stack.operator.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/theme.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/title-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tool-tip-operator.d.ts +6 -17
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tool-tip-renderer.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tools.d.ts +5 -7
- package/lib/types/models/chart-render/converter/render-spec-operators/trend-line/trend-line.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/visual-map-operator.d.ts +6 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/watermark.operator.d.ts +1 -1
- package/lib/types/models/{echart-render-model.d.ts → chart-render/echart-render-model.d.ts} +22 -12
- package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/chart-element-edit-overlay.d.ts +2 -2
- package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/resolve-chart-element-hit-layout.d.ts +2 -2
- package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/types.d.ts +1 -1
- package/lib/types/models/chart-render/format/chart-value-format.d.ts +16 -0
- package/lib/types/models/{chart-runtime-style.d.ts → chart-render/style/chart-runtime-style.d.ts} +3 -3
- package/lib/types/models/common/chart-field-diagnostic.d.ts +14 -0
- package/lib/types/models/common/chart-field-role.d.ts +53 -0
- package/lib/types/models/common/chart-locale-texts.d.ts +44 -0
- package/lib/types/models/common/constants/chord.d.ts +5 -0
- package/lib/types/models/common/constants/default-chart-style.d.ts +920 -0
- package/lib/types/models/{constants → common/constants}/default.d.ts +3 -2
- package/lib/types/models/common/constants/hierarchy.d.ts +5 -0
- package/lib/types/models/common/constants/histogram-defaults.d.ts +8 -0
- package/lib/types/models/common/constants/treemap.d.ts +1 -0
- package/lib/types/models/common/theme/build-in-theme/theme-util.d.ts +4 -0
- package/lib/types/models/{chart-theme.service.d.ts → common/theme/chart-theme.service.d.ts} +1 -3
- package/lib/types/plugin.d.ts +15 -0
- package/lib/types/types.d.ts +307 -39
- package/lib/types/util.d.ts +1 -1
- package/lib/types/utils/compact.d.ts +6 -0
- package/lib/types/utils/echarts.d.ts +0 -1
- package/lib/types/word-cloud-resource/word-cloud-resource-config.d.ts +5 -0
- package/lib/types/wordcloud-chart/adapters/echarts/chart-view.d.ts +0 -2
- package/lib/types/wordcloud-chart/adapters/echarts/echarts-options.d.ts +1 -1
- package/lib/types/wordcloud-chart/adapters/echarts/layout-register.d.ts +0 -2
- package/lib/types/wordcloud-chart/adapters/echarts/series-model.d.ts +0 -2
- package/lib/types/wordcloud-chart/adapters/echarts/text-measurer.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/box-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/word-cloud-render-config.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +11 -4
- package/lib/types/chart-builder/candlestick-inline-table.d.ts +0 -4
- package/lib/types/chart-builder/configuration/index.d.ts +0 -34
- package/lib/types/chart-builder/index.d.ts +0 -17
- package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +0 -3
- package/lib/types/chart-builder/internal/merge-description.d.ts +0 -2
- package/lib/types/facade/builders/index.d.ts +0 -17
- package/lib/types/facade/f-chart-base.d.ts +0 -82
- package/lib/types/facade/f-charts-base.d.ts +0 -74
- package/lib/types/facade/internal/host-builder-composer.d.ts +0 -16
- package/lib/types/models/chart-data-operators/build-chart-data.d.ts +0 -9
- package/lib/types/models/chart-data-operators/index.d.ts +0 -3
- package/lib/types/models/chart-data-operators/operators.d.ts +0 -26
- package/lib/types/models/chart-data-operators/treemap-data.d.ts +0 -3
- package/lib/types/models/chart-element-edit-overlay/index.d.ts +0 -4
- package/lib/types/models/chart-locale-texts.d.ts +0 -36
- package/lib/types/models/constants/build-in-theme/index.d.ts +0 -15
- package/lib/types/models/constants/build-in-theme/theme-util.d.ts +0 -5
- package/lib/types/models/constants/default-chart-style.d.ts +0 -181
- package/lib/types/models/constants/histogram-defaults.d.ts +0 -4
- package/lib/types/models/constants/treemap.d.ts +0 -1
- package/lib/types/models/data-context-transformers/box-plot-data-context-transformer.d.ts +0 -3
- package/lib/types/models/data-context-transformers/candlestick-data-context-transformer.d.ts +0 -4
- package/lib/types/models/data-context-transformers/histogram-data-context-transformer.d.ts +0 -7
- package/lib/types/models/data-context-transformers/pareto-data-context-transformer.d.ts +0 -3
- package/lib/types/models/data-context-transformers/pie-data-context-transformer.d.ts +0 -3
- package/lib/types/models/data-context-transformers/treemap-data-context-transformer.d.ts +0 -11
- package/lib/types/models/data-context-transformers/word-cloud-data-context-transform.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/boxplot-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/bubble-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/candlestick-chart-converter.d.ts +0 -5
- package/lib/types/models/mode-converter/converters/combination-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/funnel-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/heatmap-chart-convert.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/pareto-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/pie-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/radar-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/relation-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/sankey-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/scatter-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/treemap-chart-converter.d.ts +0 -4
- package/lib/types/models/mode-converter/converters/waterfall-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/word-cloud-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/render-spec-operators/chart-axes.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/chart-box-style.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/font-size.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/grid-operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/index.d.ts +0 -15
- package/lib/types/models/mode-converter/render-spec-operators/invalid-value-style.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/pie-style.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/stack.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/visual-map-operator.d.ts +0 -2
- package/lib/types/models/spec-converter/spec-converter.d.ts +0 -1
- package/lib/types/models/word-cloud-musk-image.service.d.ts +0 -17
- package/lib/types/wordcloud-chart/index.d.ts +0 -12
- /package/lib/types/models/{mode-converter → chart-render/converter}/converters/constants.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/operator-types.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/relation-chart-operator/relation-force-directed-layout.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-chart-style.handler.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-data-label.handler.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/trend-line/trendline-util.d.ts +0 -0
- /package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/palette.d.ts +0 -0
- /package/lib/types/models/{series-style → chart-render/style/series-style}/series-style-resolver.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/default.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/types.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient1.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient2.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient3.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient4.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient5.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient6.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer1.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer2.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer3.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer4.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer5.d.ts +0 -0
- /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
|
-
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
6
|
-
export
|
|
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 {
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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
|
|
9
|
-
export
|
|
10
|
-
|
|
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];
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,48 +1,138 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export
|
|
5
|
-
export {
|
|
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 {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export type {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
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 {
|
|
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
|
|
45
|
-
export {
|
|
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,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;
|
package/lib/types/models/{chart-semantic-axes.d.ts → chart-context/axes/chart-semantic-axes.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IChartAxisBinding, IRuntimeAxis } from '
|
|
2
|
-
import { ChartSemanticAxis, ChartTypeBits } from '
|
|
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;
|