@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.
- package/README.md +16 -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 +3 -3
- package/lib/types/chart-builder/chart-builder.d.ts +4 -3
- package/lib/types/chart-builder/chart-starter-data.d.ts +4 -0
- package/lib/types/chart-builder/chart-types.d.ts +180 -67
- package/lib/types/chart-builder/configuration/assertions.d.ts +3 -0
- package/lib/types/chart-builder/configuration/candlestick.d.ts +9 -0
- package/lib/types/chart-builder/configuration/cartesian-series.d.ts +2 -1
- package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +9 -1
- 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/histogram.d.ts +11 -0
- package/lib/types/chart-builder/configuration/pie.d.ts +5 -6
- package/lib/types/chart-builder/configuration/point-mapping.d.ts +3 -0
- package/lib/types/chart-builder/configuration/sunburst.d.ts +7 -0
- package/lib/types/chart-builder/configuration/treemap.d.ts +8 -0
- package/lib/types/chart-builder/configuration/waterfall.d.ts +3 -1
- package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +9 -3
- package/lib/types/chart-builder/conversion/chart-context-patch.d.ts +5 -0
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +13 -6
- package/lib/types/chart-builder/conversion/chart-type-converter.d.ts +3 -1
- package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +1546 -7
- package/lib/types/chart-builder/conversion/resolve-chart-model-data.d.ts +4 -4
- package/lib/types/chart-builder/detached-chart-builder-adapter.d.ts +10 -1
- package/lib/types/chart-builder/internal/chart-patch-replace-policy.d.ts +6 -0
- package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +0 -2
- package/lib/types/chart-data-aggregation.d.ts +10 -0
- package/lib/types/chart-text-measure-canvas.d.ts +6 -0
- package/lib/types/config/config.d.ts +7 -0
- package/lib/types/enum.d.ts +78 -2
- package/lib/types/facade/builders/f-candlestick-chart-builder.d.ts +133 -0
- package/lib/types/facade/builders/f-chord-chart-builder.d.ts +30 -0
- package/lib/types/facade/builders/f-gauge-chart-builder.d.ts +52 -0
- package/lib/types/facade/builders/f-histogram-chart-builder.d.ts +74 -0
- package/lib/types/facade/builders/f-pie-chart-builder.d.ts +4 -61
- package/lib/types/facade/builders/f-sunburst-chart-builder.d.ts +24 -0
- package/lib/types/facade/builders/f-treemap-chart-builder.d.ts +34 -0
- package/lib/types/facade/chart-builder-type-map.d.ts +26 -1
- package/lib/types/facade/f-cartesian-chart-builder.d.ts +3 -3
- package/lib/types/facade/f-chart-base.d.ts +2 -2
- package/lib/types/facade/f-chart-builder-base.d.ts +4 -1
- package/lib/types/facade/f-enum.d.ts +3 -1
- package/lib/types/facade/index.d.ts +20 -1
- package/lib/types/index.d.ts +122 -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 +2 -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/internal/histogram-bins.d.ts +10 -0
- 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/{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-resource-serializer.d.ts → chart-host/resource/chart-resource-serializer.d.ts} +1 -1
- package/lib/types/models/chart-host/resource/inline-chart-table.d.ts +4 -0
- package/lib/types/models/chart-host/resource/static-chart-resource-repository.d.ts +75 -0
- package/lib/types/models/chart-host/static/static-chart-model-store.d.ts +43 -0
- package/lib/types/models/chart-host/static/static-chart-runtime.d.ts +26 -0
- package/lib/types/models/{chart-model.d.ts → chart-model/chart-model.d.ts} +1660 -625
- 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} +3 -3
- package/lib/types/models/{chart-render-input-resolver.d.ts → chart-render/chart-render-input-resolver.d.ts} +2 -2
- 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/{mode-converter → chart-render/converter}/converters/boxplot-chart-converter.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/bubble-chart-converter.d.ts +1 -1
- 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/{mode-converter → chart-render/converter}/converters/combination-chart-converter.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/funnel-chart-converter.d.ts +1 -1
- package/lib/types/models/chart-render/converter/converters/gauge-chart-converter.d.ts +18 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/heatmap-chart-convert.d.ts +1 -1
- package/lib/types/models/chart-render/converter/converters/histogram-chart-converter.d.ts +3 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/pareto-chart-converter.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/pie-chart-converter.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/radar-chart-converter.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/relation-chart-converter.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/sankey-chart-converter.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/scatter-chart-converter.d.ts +1 -1
- 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/{mode-converter → chart-render/converter}/converters/waterfall-chart-converter.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/waterfall-layout.d.ts +2 -2
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/word-cloud-converter.d.ts +1 -1
- 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 -1
- 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 +2 -2
- 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 +8 -3
- 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 +1 -2
- 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 +2 -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} +10 -4
- 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 -2
- 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 +1 -1
- 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 +426 -31
- package/lib/types/util.d.ts +1 -7
- 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/canvas.d.ts +3 -3
- package/lib/types/wordcloud-chart/core/collision/box-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/word-shrink.d.ts +5 -8
- package/lib/types/wordcloud-chart/core/text/formatter.d.ts +2 -2
- package/lib/types/wordcloud-chart/core/text/normalize.d.ts +2 -2
- package/lib/types/wordcloud-chart/defaults.d.ts +2 -2
- package/lib/types/wordcloud-chart/types.d.ts +0 -3
- 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 +10 -4
- package/lib/types/chart-builder/configuration/index.d.ts +0 -30
- package/lib/types/chart-builder/index.d.ts +0 -14
- package/lib/types/facade/builders/index.d.ts +0 -14
- 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 -2
- package/lib/types/models/chart-data-operators/operators.d.ts +0 -20
- package/lib/types/models/chart-element-edit-overlay/index.d.ts +0 -4
- package/lib/types/models/chart-locale-texts.d.ts +0 -22
- 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 -138
- package/lib/types/models/data-context-transformers/box-plot-data-context-transformer.d.ts +0 -3
- 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/word-cloud-data-context-transform.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EChartsOption } from '
|
|
2
|
-
import type { IChartModelInitParams } from '
|
|
1
|
+
import type { EChartsOption } from 'echarts';
|
|
2
|
+
import type { IChartModelInitParams } from '../chart-render/converter/mode-converter';
|
|
3
3
|
export declare function echartToChartModelInit(echartOption: EChartsOption): IChartModelInitParams;
|
|
4
4
|
export declare function isChartModelInit(option: any): option is IChartModelInitParams;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChartModel } from '../chart-model';
|
|
2
|
-
import { ChartTypeBits } from '
|
|
2
|
+
import { ChartTypeBits } from '../../../enum';
|
|
3
3
|
export declare const percentDataContextTransformer: (fromType: ChartTypeBits, toType: ChartTypeBits, model: ChartModel) => void;
|
package/lib/types/models/{chart-element-axis-id.d.ts → chart-render/axes/chart-element-axis-id.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartDirection, IChartElementHit, IRuntimeAxis } from '
|
|
1
|
+
import type { ChartDirection, IChartElementHit, IRuntimeAxis } from '../../../types';
|
|
2
2
|
export declare const CHART_ELEMENT_AXIS_ID_META = "__univerChartElementAxisId";
|
|
3
3
|
export type ChartElementAxisId = NonNullable<IChartElementHit['axisId']>;
|
|
4
4
|
type ChartElementAxisTarget = 'title' | 'label' | 'line';
|
package/lib/types/models/{chart-runtime-axes.d.ts → chart-render/axes/chart-runtime-axes.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ChartStyle, IChartContext, IRuntimeAxis } from '
|
|
2
|
-
import { ChartTypeBits } from '
|
|
1
|
+
import type { ChartStyle, IChartContext, IRuntimeAxis } from '../../../types';
|
|
2
|
+
import { ChartTypeBits } from '../../../enum';
|
|
3
3
|
export interface IGetChartRuntimeAxesParams {
|
|
4
4
|
chartType: ChartTypeBits;
|
|
5
|
-
context?: Pick<IChartContext, '
|
|
5
|
+
context?: Pick<IChartContext, 'categoryIndexes' | 'seriesIndexes'>;
|
|
6
6
|
style?: ChartStyle;
|
|
7
7
|
direction?: ChartStyle['direction'];
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChartStyle, IChartRenderModelImageExportInput } from '
|
|
2
|
-
import type { ChartModel } from '
|
|
1
|
+
import type { ChartStyle, IChartRenderModelImageExportInput } from '../../types';
|
|
2
|
+
import type { ChartModel } from '../chart-model/chart-model';
|
|
3
3
|
export interface IChartRenderInputRuntime {
|
|
4
4
|
chartId: string;
|
|
5
5
|
model: ChartModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IDisposable
|
|
2
|
-
import type { ChartHostRenderMode, IChartInstance, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult } from '
|
|
1
|
+
import type { IDisposable } from '@univerjs/core';
|
|
2
|
+
import type { ChartHostRenderMode, IChartInstance, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult } from '../../types';
|
|
3
3
|
import { Disposable } from '@univerjs/core';
|
|
4
4
|
export interface IChartRenderModelManagerService extends IDisposable {
|
|
5
5
|
registerRenderModel(name: string, renderModel: IChartRenderModel): void;
|
|
@@ -23,4 +23,3 @@ export declare class ChartRenderModelManagerService extends Disposable implement
|
|
|
23
23
|
exportImage(input: IChartRenderModelImageExportInput, options?: IChartRenderModelImageExportOptions): Promise<IChartRenderModelImageExportResult>;
|
|
24
24
|
dispose(): void;
|
|
25
25
|
}
|
|
26
|
-
export declare function registerChartRenderModelManagerService(injector: Injector, defaultRenderModel?: IChartRenderModel): IChartRenderModelManagerService;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const boxplotChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const bubbleChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EChartSpec, IChartCandlestickPoint, IChartRenderSpecConverter } from '../../../../types';
|
|
2
|
+
import { ChartCandlestickState } from '../../../../enum';
|
|
3
|
+
export declare function classifyCandlestickPoint(point: Pick<IChartCandlestickPoint, 'open' | 'close'>): ChartCandlestickState;
|
|
4
|
+
export declare const candlestickChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EChartSpec, IChartChordSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
|
+
export declare const ChordValidationIssue: {
|
|
3
|
+
readonly Angles: "Chord angles must be finite and non-negative where applicable.";
|
|
4
|
+
readonly Radii: "Chord radii require 0 <= inner < outer <= 1.";
|
|
5
|
+
readonly Opacity: "Chord opacity must be from 0 through 1.";
|
|
6
|
+
readonly Sizes: "Chord visual sizes must be finite and non-negative.";
|
|
7
|
+
readonly RibbonColor: "Chord ribbon color must be source, target, or gradient.";
|
|
8
|
+
};
|
|
9
|
+
export declare function validateChordSpec(spec: IChartChordSpec | undefined): string | undefined;
|
|
10
|
+
export declare const chordChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const combinationChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const funnelChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EChartSpec, IChartGaugeSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
|
+
export declare const GaugeValidationIssue: {
|
|
3
|
+
readonly Mode: "Gauge mode must be modern or classic.";
|
|
4
|
+
readonly Scale: "Gauge scale requires finite min < max.";
|
|
5
|
+
readonly SplitNumber: "Gauge split count must be a positive integer.";
|
|
6
|
+
readonly Angles: "Gauge angles must be finite degrees.";
|
|
7
|
+
readonly Ranges: "Gauge ranges must be finite, ordered, and non-overlapping.";
|
|
8
|
+
readonly Ratios: "Gauge ratios must be from 0 through 1.";
|
|
9
|
+
readonly Sizes: "Gauge visual sizes must be finite and non-negative.";
|
|
10
|
+
readonly PointerShape: "Gauge pointer shape must be needle, slim, or arrow.";
|
|
11
|
+
};
|
|
12
|
+
export declare function validateGaugeSpec(spec: IChartGaugeSpec | undefined): string | undefined;
|
|
13
|
+
export declare function computeGaugeLayout(count: number, width: number, height: number): Array<{
|
|
14
|
+
center: [string, string];
|
|
15
|
+
radius: string;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function applyGaugeLayout(spec: EChartSpec, width: number, height: number): void;
|
|
18
|
+
export declare const gaugeChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const heatmapChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { EChartSpec, IChartHistogramBin, IChartRenderSpecConverter } from '../../../../types';
|
|
2
|
+
export declare function createHistogramIntervalFormatter(bins: readonly IChartHistogramBin[], pattern?: string): (bin: IChartHistogramBin, index: number) => string;
|
|
3
|
+
export declare const histogramChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const paretoChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const pieChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const radarChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const relationChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const sankeyChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const scatterChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const waterfallChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
package/lib/types/models/{mode-converter → chart-render/converter}/converters/waterfall-layout.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IChartDataSeries, IWaterfallPointRole } from '
|
|
2
|
-
import { ChartWaterfallPointRole } from '
|
|
1
|
+
import type { IChartDataSeries, IWaterfallPointRole } from '../../../../types';
|
|
2
|
+
import { ChartWaterfallPointRole } from '../../../../enum';
|
|
3
3
|
export declare enum WaterfallPointClassification {
|
|
4
4
|
Increase = "increase",
|
|
5
5
|
Decrease = "decrease",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartSpec, IChartRenderSpecConverter } from '
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../../types';
|
|
2
2
|
export declare const wordCloudChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Injector } from '@univerjs/core';
|
|
2
|
-
import type { ChartTypeBits } from '
|
|
3
|
-
import type { ChartStyle, IChartContext, IChartHostRect, IUniverDataSet } from '
|
|
4
|
-
import
|
|
5
|
-
import { ChartModel } from '../chart-model';
|
|
2
|
+
import type { ChartTypeBits } from '../../../enum';
|
|
3
|
+
import type { ChartStyle, IChartContext, IChartHostRect, IUniverDataSet } from '../../../types';
|
|
4
|
+
import { ChartModel } from '../../chart-model/chart-model';
|
|
6
5
|
/**
|
|
7
6
|
* The parameters for initializing a chart model.
|
|
8
7
|
*/
|
|
@@ -50,7 +49,6 @@ export interface IChartModelInitParams {
|
|
|
50
49
|
* The direction of the data source. If the data source is column direction, the value should be false.The default value is true.
|
|
51
50
|
*/
|
|
52
51
|
isRowDirection?: boolean;
|
|
53
|
-
localeTexts?: IChartLocaleTexts;
|
|
54
52
|
}
|
|
55
53
|
/**
|
|
56
54
|
* Convert the initial data to a chart model.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IChartLinearGradient } from '
|
|
1
|
+
import type { IChartLinearGradient } from '../../../../chart-builder/chart-color';
|
|
2
2
|
export declare function createBarAutoGradient(color: string, isVerticalSeriesValue: boolean, isNegative?: boolean): IChartLinearGradient;
|
|
3
3
|
export declare function createAreaAutoGradient(color: string, isVerticalSeriesValue: boolean): IChartLinearGradient;
|
|
4
4
|
export declare function createLineAutoGradient(color: string, isVerticalSeriesValue: boolean): IChartLinearGradient;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const axisTitleStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const bubbleStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const chartAxesOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const chartBoxStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartColor, IChartLinearGradient } from '
|
|
1
|
+
import type { ChartColor, IChartLinearGradient } from '../../../../chart-builder/chart-color';
|
|
2
2
|
declare const ECHARTS_LINEAR_GRADIENT_TYPE = "linear";
|
|
3
3
|
export interface IEChartsLinearGradientColor {
|
|
4
4
|
type: typeof ECHARTS_LINEAR_GRADIENT_TYPE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const emptyStyleOperator: EChartRenderSpecOperator;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ChartStyle, EChartRenderSpecOperator, IChartConfig, IChartPlotArea } from '../../../../types';
|
|
2
|
+
export interface IResolvedCartesianGrid {
|
|
3
|
+
left: number;
|
|
4
|
+
right: number;
|
|
5
|
+
top: number;
|
|
6
|
+
bottom: number;
|
|
7
|
+
containLabel: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function resolveAutomaticCartesianGrid(style: ChartStyle, config: IChartConfig): IResolvedCartesianGrid;
|
|
10
|
+
/** Returns the currently rendered automatic geometry as a stable manual-editing seed. */
|
|
11
|
+
export declare function resolveChartPlotAreaForEditing(style: ChartStyle, config: IChartConfig): IChartPlotArea;
|
|
12
|
+
export declare const gridStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const heatmapChartOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const hoverMarkStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const implicitCategoryAxisOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const invalidValueStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const legendStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const lineLikeStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
/** Attaches persisted semantic fixed-axis lines to visible business series. */
|
|
3
3
|
export declare const markLineOperator: EChartRenderSpecOperator;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChartStyle, IChartPlotArea } from '../../../../types';
|
|
2
|
+
export interface IResolvedChartPlotArea {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function isValidChartPlotArea(value: Partial<IChartPlotArea> | undefined): value is IChartPlotArea;
|
|
9
|
+
export declare function resolveChartPlotArea(style: ChartStyle): IResolvedChartPlotArea | undefined;
|
|
10
|
+
export declare function powerPointPieAngleToECharts(value: number): number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const radarStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const richTextInheritanceOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const rtlRenderSpecOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const sankeyChartOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const scatterStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChartStyle, DeepPartial, EChartRenderSpecOperator, EChartSeriesItem, ISeriesStyle } from '
|
|
2
|
-
import { ChartTypeBits } from '
|
|
1
|
+
import type { ChartStyle, DeepPartial, EChartRenderSpecOperator, EChartSeriesItem, ISeriesStyle } from '../../../../../types';
|
|
2
|
+
import { ChartTypeBits } from '../../../../../enum';
|
|
3
3
|
export interface ISeriesStyleHandlerContext {
|
|
4
4
|
seriesItem: EChartSeriesItem;
|
|
5
5
|
seriesIndex: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../../types';
|
|
2
2
|
export declare const waterfallSeriesStyleOperator: EChartRenderSpecOperator;
|
|
3
3
|
export declare const waterfallSeriesDataLabelHandler: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const chartThemeOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const chartTitleStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChartDirection, ChartStyle, EChartRenderSpecOperator, EChartSpec, IChartConfig } from '
|
|
2
|
-
import { InvalidValueType } from '
|
|
1
|
+
import type { ChartDirection, ChartRuntimeStyle, ChartStyle, EChartRenderSpecOperator, EChartSpec, IChartConfig } from '../../../../types';
|
|
2
|
+
import { InvalidValueType } from '../../../../enum';
|
|
3
3
|
interface ITooltipFormatterDataContext {
|
|
4
4
|
category: IChartConfig['category'];
|
|
5
5
|
xAxisFormat: ChartStyle['xAxis'] extends infer T ? T extends {
|
|
@@ -14,6 +14,11 @@ interface ITooltipFormatterDataContext {
|
|
|
14
14
|
maxText: string;
|
|
15
15
|
wordText: string;
|
|
16
16
|
frequencyText: string;
|
|
17
|
+
candlestickCategoryText: string;
|
|
18
|
+
candlestickOpenText: string;
|
|
19
|
+
candlestickHighText: string;
|
|
20
|
+
candlestickLowText: string;
|
|
21
|
+
candlestickCloseText: string;
|
|
17
22
|
isDateAxis: boolean | undefined;
|
|
18
23
|
allSeriesStyle: ChartStyle['allSeriesStyle'];
|
|
19
24
|
seriesStyleMap: ChartStyle['seriesStyleMap'];
|
|
@@ -29,7 +34,7 @@ interface ITooltipFormatters {
|
|
|
29
34
|
wordCloud: (params: any) => string;
|
|
30
35
|
}
|
|
31
36
|
export declare function excelDateToUnixMilliseconds(excelDate: number, useDefault1900DateSystem?: boolean): number;
|
|
32
|
-
export declare function createTooltipFormatterDataContext(spec: EChartSpec, style:
|
|
37
|
+
export declare function createTooltipFormatterDataContext(spec: EChartSpec, style: ChartRuntimeStyle, config: IChartConfig): ITooltipFormatterDataContext;
|
|
33
38
|
export declare function createLTRTooltipFormatters(context: ITooltipFormatterDataContext, config: IChartConfig): ITooltipFormatters;
|
|
34
39
|
export declare function createRTLTooltipFormatters(context: ITooltipFormatterDataContext, config: IChartConfig): ITooltipFormatters;
|
|
35
40
|
export declare function createTooltipFormatters(context: ITooltipFormatterDataContext, config: IChartConfig, direction: ChartDirection): ITooltipFormatters;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartDirection } from '
|
|
1
|
+
import type { ChartDirection } from '../../../../types';
|
|
2
2
|
export declare const tooltipBaseCss = "max-width: 280px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;";
|
|
3
3
|
export declare const rtlTooltipCss = "direction:rtl;text-align:right;";
|
|
4
4
|
export declare function getTooltipExtraCss(backgroundColor: string, direction: ChartDirection): string;
|
package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tools.d.ts
RENAMED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { ChartStyle, EChartSeriesItem, EChartSpec, ILabelStyle } from '
|
|
1
|
+
import type { ChartStyle, EChartSeriesItem, EChartSpec, ILabelStyle } from '../../../../types';
|
|
2
2
|
import type { ISpecGrid } from './operator-types';
|
|
3
3
|
type PartialLabelStyle = Partial<Pick<ILabelStyle, 'visible' | 'color' | 'fontSize' | 'family' | 'italic' | 'bold' | 'underline' | 'strikethrough' | 'showMaxLabel' | 'showMinLabel'>>;
|
|
4
4
|
export declare function applyLabelStyle(spec: Record<string, any>, path: string, labelStyle: PartialLabelStyle): void;
|
|
5
5
|
export declare function applyLineStyle(spec: Record<string, any>, path: string, labelStyle: PartialLabelStyle): void;
|
|
6
6
|
export declare function toArray<T = unknown>(value: T | T[]): T[];
|
|
7
7
|
export declare function seriesForEach(series: EChartSpec['series'], func: (item: EChartSeriesItem, index: number) => void): void;
|
|
8
|
-
export declare function toPercentage(value: number, fixed?: number): string;
|
|
9
8
|
export declare const getCategoryLabelVertical: (gridInfo: ISpecGrid, style: ChartStyle) => number;
|
|
10
9
|
export declare const getCategoryLabelHorizontal: (gridInfo: ISpecGrid, style: ChartStyle, seriesCount: number, axisLabelMaxWidth?: number) => number;
|
|
11
10
|
export declare const getIntegerValue: (value: number, digit?: number) => number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const chartWaterMarkerOperator: EChartRenderSpecOperator;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ChartElementEventHandler, ChartElementEventType, ChartImageSource,
|
|
2
|
-
import type { IWordCloudRenderConfig } from '
|
|
1
|
+
import type { ChartElementEventHandler, ChartElementEventType, ChartImageSource, ChartRuntimeStyle, EChartInstance, EChartSpec, IChartConfig, IChartElementHit, IChartHostRect, IChartInstance, IChartRenderAsImageOptions, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IChartRenderModelStylizeInit, IChartRenderRuntimeOptions } from '../../types';
|
|
2
|
+
import type { IWordCloudRenderConfig } from '../../wordcloud-chart/word-cloud-render-config';
|
|
3
3
|
import { Disposable } from '@univerjs/core';
|
|
4
|
-
import { ChartHostRenderMode } from '
|
|
4
|
+
import { ChartHostRenderMode } from '../../types';
|
|
5
5
|
export interface IEChartRenderModelOptions {
|
|
6
6
|
wordCloudRenderConfig?: IWordCloudRenderConfig;
|
|
7
7
|
}
|
|
@@ -19,12 +19,18 @@ export declare class EChartRenderModel extends Disposable implements IChartRende
|
|
|
19
19
|
clearRuntimeCache(chartId: string): void;
|
|
20
20
|
clearAllRuntimeCache(): void;
|
|
21
21
|
dispose(): void;
|
|
22
|
-
toSpec(config: IChartConfig, style:
|
|
22
|
+
toSpec(config: IChartConfig, style: ChartRuntimeStyle): import("echarts").EChartsOption;
|
|
23
23
|
stylizeSpec(spec: EChartSpec, stylizeInit: IChartRenderModelStylizeInit<EChartSpec>, rect: IChartHostRect): import("echarts").EChartsOption | {
|
|
24
24
|
backgroundColor: string;
|
|
25
25
|
};
|
|
26
26
|
exportImage(input: IChartRenderModelImageExportInput, options?: IChartRenderModelImageExportOptions): Promise<IChartRenderModelImageExportResult>;
|
|
27
27
|
}
|
|
28
|
+
/** Converts materialized composite Pie marks back to their authored source identity. */
|
|
29
|
+
export declare function resolveEChartPieCompositeHit(spec: EChartSpec | null, seriesIndex: number | undefined, params?: any, dataIndex?: number): Pick<IChartElementHit, 'pieCompositeRole' | 'pieCompositePlot' | 'pieSourcePointIndex' | 'pieAggregateMemberSourcePointIndexes'> | undefined;
|
|
30
|
+
/** Converts native Chord node/link events to stable semantic graph identities. */
|
|
31
|
+
export declare function resolveEChartChordHit(spec: EChartSpec | null, seriesIndex: number | undefined, params?: any, dataIndex?: number): Pick<IChartElementHit, 'semanticId' | 'semanticKind' | 'semanticValue' | 'semanticFormattedValue' | 'semanticEndpointAName' | 'semanticEndpointBName'> | undefined;
|
|
32
|
+
/** Normalizes renderer-private marks, including hierarchy residual leaves, to their semantic identity. */
|
|
33
|
+
export declare function resolveEChartSeriesIdentity(spec: EChartSpec | null, seriesIndex: number | undefined, params?: any): Pick<IChartElementHit, 'seriesId' | 'seriesName' | 'baseSeriesIndex' | 'waterfallSeriesType'>;
|
|
28
34
|
export declare class EChartRenderEngine extends Disposable implements EChartInstance {
|
|
29
35
|
static engineName: string;
|
|
30
36
|
private _instance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IChartElementBounds, IChartElementHit } from '
|
|
2
|
-
import type { ECharts } from '
|
|
1
|
+
import type { IChartElementBounds, IChartElementHit } from '../../../types';
|
|
2
|
+
import type { ECharts } from 'echarts';
|
|
3
3
|
import type { ChartElementEditBorderType, IChartElementEditOverlayPalette } from './types';
|
|
4
4
|
export declare class ChartElementEditOverlay {
|
|
5
5
|
private readonly _getInstance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IChartElementBounds, IChartElementHit } from '
|
|
2
|
-
import type { ECharts } from '
|
|
1
|
+
import type { IChartElementBounds, IChartElementHit } from '../../../types';
|
|
2
|
+
import type { ECharts } from 'echarts';
|
|
3
3
|
import type { IChartElementHitLayout, IResolvedChartElementOverlay } from './types';
|
|
4
4
|
export declare function toChartElementFiniteNumber(value: unknown): number | undefined;
|
|
5
5
|
export declare function getChartElementTarget(params: any): any;
|
package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/types.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IChartElementBounds, IChartElementOverlay } from '
|
|
1
|
+
import type { IChartElementBounds, IChartElementOverlay } from '../../../types';
|
|
2
2
|
export type ChartElementEditBorderType = 'hover' | 'fixed';
|
|
3
3
|
export interface IChartElementEditOverlayPalette {
|
|
4
4
|
hoverStroke: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Canonical authored formats shared by chart editors and Facade consumers. */
|
|
2
|
+
export declare const CHART_VALUE_FORMAT_PRESETS: {
|
|
3
|
+
readonly source: null;
|
|
4
|
+
readonly number: "#,##0.00";
|
|
5
|
+
readonly percentage: "0.00%";
|
|
6
|
+
readonly currency: "$#,##0.00";
|
|
7
|
+
readonly scientific: "0.00E+00";
|
|
8
|
+
};
|
|
9
|
+
/** Stable representative value used only for editor previews. */
|
|
10
|
+
export declare const CHART_VALUE_FORMAT_PREVIEW_VALUE = 1234.5;
|
|
11
|
+
/**
|
|
12
|
+
* Formats one semantic chart value without exposing renderer formatter contracts.
|
|
13
|
+
* Invalid authored patterns fall back to the source display text.
|
|
14
|
+
*/
|
|
15
|
+
export declare function formatChartValue(value: number, sourceFormattedValue: string, format?: string): string;
|
|
16
|
+
export declare function toPercentage(value: number, fractionDigits?: number): string;
|