@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,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { IChartTopNSpec } from '../chart-data-aggregation';
|
|
2
|
+
import type { AreaLineStyle, AxisAlignEnum, BarShape, ChartAxisDimension, ChartBorderDashType, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartTrendlineType, ChartWaterfallPointRole, InvalidValueType, IRuntimeAxisPosition, LabelAlignEnum, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from '../enum';
|
|
3
|
+
import type { DeepNullish, IChartCandlestickMappingSpec, IChartCandlestickSpec, IChartChordMappingSpec, IChartChordSpec, IChartGaugeSpec, IChartHistogramSpec, IChartSunburstSpec, IChartTreemapSpec, IChartValueLabelSpec } from '../types';
|
|
3
4
|
import type { ChartColor } from './chart-color';
|
|
4
|
-
export { ChartAxisDimension, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartWaterfallPointRole } from '../enum';
|
|
5
5
|
/** Canonical semantic chart type names exposed by the chart facade. */
|
|
6
6
|
export declare enum ChartTypeString {
|
|
7
7
|
Line = "line",
|
|
@@ -27,7 +27,13 @@ export declare enum ChartTypeString {
|
|
|
27
27
|
Pareto = "pareto",
|
|
28
28
|
Sankey = "sankey",
|
|
29
29
|
Heatmap = "heatmap",
|
|
30
|
-
Boxplot = "boxplot"
|
|
30
|
+
Boxplot = "boxplot",
|
|
31
|
+
Candlestick = "candlestick",
|
|
32
|
+
Histogram = "histogram",
|
|
33
|
+
Treemap = "treemap",
|
|
34
|
+
Sunburst = "sunburst",
|
|
35
|
+
Gauge = "gauge",
|
|
36
|
+
Chord = "chord"
|
|
31
37
|
}
|
|
32
38
|
export declare enum ChartSeriesTypeString {
|
|
33
39
|
Column = "column",
|
|
@@ -62,6 +68,11 @@ export interface IChartFontSpec {
|
|
|
62
68
|
italic?: boolean;
|
|
63
69
|
family?: string;
|
|
64
70
|
}
|
|
71
|
+
/** Facade-only semantic patch for the regular divisions of a Gauge scale. */
|
|
72
|
+
export interface IChartGaugeTicksPatch {
|
|
73
|
+
majorDivisions?: number | null;
|
|
74
|
+
minorDivisionsPerMajor?: number | null;
|
|
75
|
+
}
|
|
65
76
|
export interface IChartTitleOptions extends IChartFontSpec {
|
|
66
77
|
text?: string;
|
|
67
78
|
visible?: boolean;
|
|
@@ -87,8 +98,9 @@ export interface IChartAxisLabelSpec extends IChartFontSpec {
|
|
|
87
98
|
}
|
|
88
99
|
export interface IChartAxisSpec {
|
|
89
100
|
title?: string;
|
|
90
|
-
|
|
91
|
-
|
|
101
|
+
titleAlignment?: AxisAlignEnum;
|
|
102
|
+
min?: number;
|
|
103
|
+
max?: number;
|
|
92
104
|
reverse?: boolean;
|
|
93
105
|
line?: {
|
|
94
106
|
visible?: boolean;
|
|
@@ -102,13 +114,14 @@ export interface IChartAxisSpec {
|
|
|
102
114
|
length?: number;
|
|
103
115
|
position?: ChartAxisTickPosition;
|
|
104
116
|
};
|
|
105
|
-
format?: string
|
|
117
|
+
format?: string;
|
|
106
118
|
titleStyle?: IChartFontSpec;
|
|
107
119
|
label?: IChartAxisLabelSpec;
|
|
108
120
|
gridLine?: {
|
|
109
121
|
visible?: boolean;
|
|
110
122
|
color?: string;
|
|
111
123
|
width?: number;
|
|
124
|
+
dashType?: ChartBorderDashType;
|
|
112
125
|
};
|
|
113
126
|
}
|
|
114
127
|
export interface IChartAxesSpec {
|
|
@@ -159,22 +172,24 @@ export type ChartSeriesSelector = {
|
|
|
159
172
|
name: string;
|
|
160
173
|
};
|
|
161
174
|
export interface IChartSeriesBorderSpec {
|
|
162
|
-
color?: string
|
|
175
|
+
color?: string;
|
|
163
176
|
width?: number;
|
|
164
177
|
opacity?: number;
|
|
165
178
|
dashType?: ChartBorderDashType;
|
|
166
179
|
}
|
|
180
|
+
export interface IChartLineStyleSpec extends IChartSeriesBorderSpec {
|
|
181
|
+
}
|
|
167
182
|
export interface IChartSeriesPointSpec {
|
|
168
183
|
shape?: LinePointShape;
|
|
169
184
|
size?: number;
|
|
170
|
-
color?: string
|
|
185
|
+
color?: string;
|
|
171
186
|
}
|
|
172
|
-
export interface IChartSeriesLabelSpec extends IChartFontSpec {
|
|
187
|
+
export interface IChartSeriesLabelSpec extends IChartFontSpec, IChartValueLabelSpec {
|
|
173
188
|
visible?: boolean;
|
|
174
189
|
position?: SeriesLabelPosition;
|
|
175
190
|
contentType?: LabelContentType;
|
|
176
191
|
}
|
|
177
|
-
export interface IChartHeatmapLabelSpec extends IChartFontSpec {
|
|
192
|
+
export interface IChartHeatmapLabelSpec extends IChartFontSpec, IChartValueLabelSpec {
|
|
178
193
|
visible?: boolean;
|
|
179
194
|
position?: SeriesLabelPosition;
|
|
180
195
|
}
|
|
@@ -201,7 +216,10 @@ export interface IChartSeriesPatch extends IChartSeriesStyleSpec {
|
|
|
201
216
|
selector: ChartSeriesSelector;
|
|
202
217
|
type?: ChartSeriesTypeString;
|
|
203
218
|
dataPoints?: Record<number, IChartSeriesDataPointStyleSpec>;
|
|
204
|
-
waterfallStyles?: Partial<Record<ChartWaterfallStyleTarget,
|
|
219
|
+
waterfallStyles?: Partial<Record<ChartWaterfallStyleTarget, IChartWaterfallSeriesStyleSpec>>;
|
|
220
|
+
}
|
|
221
|
+
export interface IChartWaterfallSeriesStyleSpec extends Omit<IChartSeriesPatch, 'selector' | 'waterfallStyles'> {
|
|
222
|
+
name?: string;
|
|
205
223
|
}
|
|
206
224
|
/** Series patch for line-like marks whose data points are symbols. */
|
|
207
225
|
export interface IChartLineSeriesPatch extends Omit<IChartSeriesPatch, 'dataPoints'> {
|
|
@@ -240,7 +258,7 @@ export interface IChartHeatmapSpec {
|
|
|
240
258
|
}
|
|
241
259
|
export interface IChartWordCloudSpec {
|
|
242
260
|
shape?: WordCloudShapeEnum;
|
|
243
|
-
maskImageId?: string
|
|
261
|
+
maskImageId?: string;
|
|
244
262
|
repeat?: boolean;
|
|
245
263
|
}
|
|
246
264
|
export interface IChartWordCloudDescription {
|
|
@@ -252,10 +270,10 @@ export interface IChartWordCloudDescription {
|
|
|
252
270
|
export interface IChartAppearanceSpec {
|
|
253
271
|
background?: {
|
|
254
272
|
/** CSS background color. Use `'transparent'` for an explicit transparent chart and host background. */
|
|
255
|
-
color?: string
|
|
273
|
+
color?: string;
|
|
256
274
|
};
|
|
257
275
|
border?: {
|
|
258
|
-
color?: string
|
|
276
|
+
color?: string;
|
|
259
277
|
/** Persisted host-border width. Use `0` to hide the host border without changing host-owned stroke state. */
|
|
260
278
|
width?: number;
|
|
261
279
|
};
|
|
@@ -268,24 +286,34 @@ export interface IChartAppearanceSpec {
|
|
|
268
286
|
export interface IChartScatterMappingSpec {
|
|
269
287
|
xIndex: number;
|
|
270
288
|
yIndex: number;
|
|
271
|
-
labelIndex?: number
|
|
289
|
+
labelIndex?: number;
|
|
272
290
|
}
|
|
273
291
|
export interface IChartBubbleMappingSpec extends IChartScatterMappingSpec {
|
|
274
|
-
sizeIndex?: number
|
|
275
|
-
seriesIndex?: number
|
|
292
|
+
sizeIndex?: number;
|
|
293
|
+
seriesIndex?: number;
|
|
294
|
+
}
|
|
295
|
+
export interface IChartEdgeMappingSpec {
|
|
296
|
+
sourceIndex: number;
|
|
297
|
+
targetIndex: number;
|
|
298
|
+
valueIndex?: number;
|
|
276
299
|
}
|
|
277
300
|
export interface IChartMappingSpec {
|
|
278
|
-
categoryIndex?: number
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
301
|
+
categoryIndex?: number;
|
|
302
|
+
/** Ordered root-to-leaf hierarchy fields for hierarchy charts. */
|
|
303
|
+
hierarchyIndexes?: number[];
|
|
304
|
+
seriesIndexes?: number[];
|
|
305
|
+
useDateAxis?: boolean;
|
|
306
|
+
scatter?: IChartScatterMappingSpec;
|
|
307
|
+
bubble?: IChartBubbleMappingSpec;
|
|
308
|
+
candlestick?: IChartCandlestickMappingSpec;
|
|
309
|
+
chord?: IChartChordMappingSpec;
|
|
310
|
+
edge?: IChartEdgeMappingSpec;
|
|
283
311
|
}
|
|
284
312
|
export interface IChartAggregationSpec {
|
|
285
|
-
aggregate?: boolean
|
|
286
|
-
topN?:
|
|
313
|
+
aggregate?: boolean;
|
|
314
|
+
topN?: IChartTopNSpec;
|
|
287
315
|
}
|
|
288
|
-
export interface IChartPieLabelSpec extends IChartFontSpec {
|
|
316
|
+
export interface IChartPieLabelSpec extends IChartFontSpec, IChartValueLabelSpec {
|
|
289
317
|
visible?: boolean;
|
|
290
318
|
position?: PieLabelPosition;
|
|
291
319
|
contentType?: LabelContentType;
|
|
@@ -295,8 +323,68 @@ export interface IChartSliceStyleSpec {
|
|
|
295
323
|
color?: ChartColor;
|
|
296
324
|
fillOpacity?: number;
|
|
297
325
|
}
|
|
326
|
+
export declare const PieSecondaryPlotType: {
|
|
327
|
+
readonly Pie: "pie";
|
|
328
|
+
readonly Bar: "bar";
|
|
329
|
+
};
|
|
330
|
+
export type PieSecondaryPlotType = typeof PieSecondaryPlotType[keyof typeof PieSecondaryPlotType];
|
|
331
|
+
export declare const PieCompositePlot: {
|
|
332
|
+
readonly Primary: "primary";
|
|
333
|
+
readonly Secondary: "secondary";
|
|
334
|
+
};
|
|
335
|
+
export type PieCompositePlot = typeof PieCompositePlot[keyof typeof PieCompositePlot];
|
|
336
|
+
export declare const PieCompositeMarkRole: {
|
|
337
|
+
readonly Source: "source";
|
|
338
|
+
readonly Aggregate: "aggregate";
|
|
339
|
+
readonly Connector: "connector";
|
|
340
|
+
};
|
|
341
|
+
export type PieCompositeMarkRole = typeof PieCompositeMarkRole[keyof typeof PieCompositeMarkRole];
|
|
342
|
+
export declare const PieSecondarySplitType: {
|
|
343
|
+
readonly Auto: "auto";
|
|
344
|
+
readonly Position: "position";
|
|
345
|
+
readonly Value: "value";
|
|
346
|
+
readonly Percentage: "percentage";
|
|
347
|
+
readonly Custom: "custom";
|
|
348
|
+
};
|
|
349
|
+
export type PieSecondarySplitSpec = {
|
|
350
|
+
type: typeof PieSecondarySplitType.Auto;
|
|
351
|
+
} | {
|
|
352
|
+
type: typeof PieSecondarySplitType.Position;
|
|
353
|
+
count: number;
|
|
354
|
+
} | {
|
|
355
|
+
type: typeof PieSecondarySplitType.Value;
|
|
356
|
+
lessThan: number;
|
|
357
|
+
} | {
|
|
358
|
+
type: typeof PieSecondarySplitType.Percentage;
|
|
359
|
+
lessThan: number;
|
|
360
|
+
} | {
|
|
361
|
+
type: typeof PieSecondarySplitType.Custom;
|
|
362
|
+
pointIndexes: number[];
|
|
363
|
+
};
|
|
364
|
+
export interface IChartPieConnectorSpec extends IChartLineStyleSpec {
|
|
365
|
+
visible?: boolean;
|
|
366
|
+
}
|
|
367
|
+
export interface IChartPieSecondaryPlotSpec {
|
|
368
|
+
type: PieSecondaryPlotType;
|
|
369
|
+
split?: PieSecondarySplitSpec;
|
|
370
|
+
size?: number;
|
|
371
|
+
gapWidth?: number;
|
|
372
|
+
connector?: IChartPieConnectorSpec;
|
|
373
|
+
}
|
|
374
|
+
export interface IChartPieAggregateSpec {
|
|
375
|
+
label?: string;
|
|
376
|
+
style?: IChartSliceStyleSpec;
|
|
377
|
+
}
|
|
378
|
+
export interface IChartPieCompositeSpec {
|
|
379
|
+
enabled?: boolean;
|
|
380
|
+
secondaryPlot: IChartPieSecondaryPlotSpec;
|
|
381
|
+
aggregate?: IChartPieAggregateSpec;
|
|
382
|
+
}
|
|
298
383
|
export interface IChartPieSpec {
|
|
299
|
-
|
|
384
|
+
composite?: IChartPieCompositeSpec;
|
|
385
|
+
/** Clockwise degrees from 12 o'clock. */
|
|
386
|
+
startAngle?: number;
|
|
387
|
+
doughnutHole?: number;
|
|
300
388
|
explosion?: number;
|
|
301
389
|
borderColor?: string;
|
|
302
390
|
hasPaddingAngle?: boolean;
|
|
@@ -304,8 +392,6 @@ export interface IChartPieSpec {
|
|
|
304
392
|
rosePie?: boolean;
|
|
305
393
|
showLabelLine?: boolean;
|
|
306
394
|
valueScale?: number;
|
|
307
|
-
valueSuffix?: string;
|
|
308
|
-
digitalFixed?: number;
|
|
309
395
|
label?: IChartPieLabelSpec;
|
|
310
396
|
/** Sparse authored slice styles keyed by materialized slice index. */
|
|
311
397
|
sliceStyles?: Partial<Record<number, IChartSliceStyleSpec>>;
|
|
@@ -328,7 +414,7 @@ export interface IChartParetoPointStyleSpec {
|
|
|
328
414
|
color?: string;
|
|
329
415
|
}
|
|
330
416
|
interface IChartParetoLabelStyleBase extends Omit<IChartSeriesLabelSpec, 'contentType' | 'position'> {
|
|
331
|
-
contentType?: LabelContentType
|
|
417
|
+
contentType?: LabelContentType;
|
|
332
418
|
}
|
|
333
419
|
/** Pareto bar-label appearance. */
|
|
334
420
|
export interface IChartParetoBarLabelStyleSpec extends IChartParetoLabelStyleBase {
|
|
@@ -344,6 +430,7 @@ export interface IChartParetoBarStyleSpec {
|
|
|
344
430
|
opacity?: number;
|
|
345
431
|
border?: IChartParetoBorderStyleSpec;
|
|
346
432
|
label?: IChartParetoBarLabelStyleSpec;
|
|
433
|
+
dataPoints?: Record<number, IChartSeriesDataPointStyleSpec>;
|
|
347
434
|
}
|
|
348
435
|
/** Supported appearance for the derived Pareto cumulative line. */
|
|
349
436
|
export interface IChartParetoLineStyleSpec {
|
|
@@ -353,6 +440,7 @@ export interface IChartParetoLineStyleSpec {
|
|
|
353
440
|
dashType?: ChartBorderDashType;
|
|
354
441
|
point?: IChartParetoPointStyleSpec;
|
|
355
442
|
label?: IChartParetoLineLabelStyleSpec;
|
|
443
|
+
dataPoints?: Record<number, IChartSeriesDataPointStyleSpec>;
|
|
356
444
|
}
|
|
357
445
|
/** Pareto semantic configuration exposed through the Facade. */
|
|
358
446
|
export interface IChartParetoSpec {
|
|
@@ -367,17 +455,29 @@ export interface IChartAxisPointerSpec {
|
|
|
367
455
|
indicatorLabelTextColor?: string;
|
|
368
456
|
}
|
|
369
457
|
export interface IChartAreaSpec {
|
|
370
|
-
lineStyle?: AreaLineStyle
|
|
458
|
+
lineStyle?: AreaLineStyle;
|
|
371
459
|
}
|
|
372
460
|
export interface IChartBarSpec {
|
|
461
|
+
gapWidth?: number;
|
|
462
|
+
overlap?: number;
|
|
373
463
|
is3D?: boolean;
|
|
374
464
|
shape?: BarShape;
|
|
375
465
|
rotX?: number;
|
|
376
466
|
rotY?: number;
|
|
377
467
|
}
|
|
468
|
+
export interface IChartBubbleSpec {
|
|
469
|
+
scale?: number;
|
|
470
|
+
sizeRepresents?: 'area' | 'width';
|
|
471
|
+
}
|
|
472
|
+
export interface IChartPlotAreaSpec {
|
|
473
|
+
left: number;
|
|
474
|
+
top: number;
|
|
475
|
+
width: number;
|
|
476
|
+
height: number;
|
|
477
|
+
}
|
|
378
478
|
export interface IChartFunnelSpec {
|
|
379
|
-
gap?: number
|
|
380
|
-
useAbsoluteValue?: boolean
|
|
479
|
+
gap?: number;
|
|
480
|
+
useAbsoluteValue?: boolean;
|
|
381
481
|
}
|
|
382
482
|
export interface IChartRelationForceSpec {
|
|
383
483
|
gravity?: number;
|
|
@@ -385,12 +485,12 @@ export interface IChartRelationForceSpec {
|
|
|
385
485
|
edgeLength?: number;
|
|
386
486
|
}
|
|
387
487
|
export interface IChartRelationSpec {
|
|
388
|
-
layout?: RelationChartLayoutEnum
|
|
389
|
-
useValueAsSymbolSize?: boolean
|
|
390
|
-
emphasisEnabled?: boolean
|
|
391
|
-
force?: IChartRelationForceSpec
|
|
392
|
-
circularLabelRotation?: boolean
|
|
393
|
-
nodeShape?: LinePointShape
|
|
488
|
+
layout?: RelationChartLayoutEnum;
|
|
489
|
+
useValueAsSymbolSize?: boolean;
|
|
490
|
+
emphasisEnabled?: boolean;
|
|
491
|
+
force?: IChartRelationForceSpec;
|
|
492
|
+
circularLabelRotation?: boolean;
|
|
493
|
+
nodeShape?: LinePointShape;
|
|
394
494
|
}
|
|
395
495
|
/** Waterfall semantic configuration exposed through the Facade. */
|
|
396
496
|
export interface IChartWaterfallSpec {
|
|
@@ -398,7 +498,7 @@ export interface IChartWaterfallSpec {
|
|
|
398
498
|
useSubtotal?: boolean;
|
|
399
499
|
pointRoles?: IChartWaterfallPointRoleSpec[];
|
|
400
500
|
connector?: boolean | IChartWaterfallConnectorStyleSpec;
|
|
401
|
-
styles?: Partial<Record<ChartWaterfallStyleTarget,
|
|
501
|
+
styles?: Partial<Record<ChartWaterfallStyleTarget, IChartWaterfallSeriesStyleSpec>>;
|
|
402
502
|
}
|
|
403
503
|
/** Public Waterfall series selector; numbers are stable source-series indexes. */
|
|
404
504
|
export type ChartWaterfallSeriesSelector = number | {
|
|
@@ -420,33 +520,47 @@ export interface IChartWaterfallConnectorStyleSpec {
|
|
|
420
520
|
interface IChartSemanticConfig {
|
|
421
521
|
type?: ChartTypeString;
|
|
422
522
|
autoGradientFill?: boolean;
|
|
423
|
-
title?: ChartTitleSpec
|
|
424
|
-
subtitle?: ChartSubtitleSpec
|
|
425
|
-
trendlines?: IChartTrendlineSpec[]
|
|
426
|
-
heatmap?: IChartHeatmapSpec
|
|
427
|
-
invalidValueStrategy?: InvalidValueType
|
|
428
|
-
legend?: ChartLegendSpec
|
|
429
|
-
axes?: IChartAxesSpec
|
|
430
|
-
allSeriesStyle?: IChartSeriesStyleSpec
|
|
431
|
-
series?: IChartSeriesPatch[]
|
|
432
|
-
wordCloud?: IChartWordCloudSpec
|
|
433
|
-
appearance?: IChartAppearanceSpec
|
|
434
|
-
mapping?: IChartMappingSpec
|
|
435
|
-
aggregation?: IChartAggregationSpec
|
|
436
|
-
pie?: IChartPieSpec
|
|
437
|
-
radar?: IChartRadarSpec
|
|
438
|
-
pareto?: IChartParetoSpec
|
|
439
|
-
axisPointer?: IChartAxisPointerSpec
|
|
440
|
-
area?: IChartAreaSpec
|
|
441
|
-
bar?: IChartBarSpec
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
523
|
+
title?: ChartTitleSpec;
|
|
524
|
+
subtitle?: ChartSubtitleSpec;
|
|
525
|
+
trendlines?: IChartTrendlineSpec[];
|
|
526
|
+
heatmap?: IChartHeatmapSpec;
|
|
527
|
+
invalidValueStrategy?: InvalidValueType;
|
|
528
|
+
legend?: ChartLegendSpec;
|
|
529
|
+
axes?: IChartAxesSpec;
|
|
530
|
+
allSeriesStyle?: IChartSeriesStyleSpec;
|
|
531
|
+
series?: IChartSeriesPatch[];
|
|
532
|
+
wordCloud?: IChartWordCloudSpec;
|
|
533
|
+
appearance?: IChartAppearanceSpec;
|
|
534
|
+
mapping?: IChartMappingSpec;
|
|
535
|
+
aggregation?: IChartAggregationSpec;
|
|
536
|
+
pie?: IChartPieSpec;
|
|
537
|
+
radar?: IChartRadarSpec;
|
|
538
|
+
pareto?: IChartParetoSpec;
|
|
539
|
+
axisPointer?: IChartAxisPointerSpec;
|
|
540
|
+
area?: IChartAreaSpec;
|
|
541
|
+
bar?: IChartBarSpec;
|
|
542
|
+
bubble?: IChartBubbleSpec;
|
|
543
|
+
plotArea?: IChartPlotAreaSpec;
|
|
544
|
+
funnel?: IChartFunnelSpec;
|
|
545
|
+
relation?: IChartRelationSpec;
|
|
546
|
+
waterfall?: IChartWaterfallSpec;
|
|
547
|
+
candlestick?: IChartCandlestickSpec;
|
|
548
|
+
histogram?: IChartHistogramSpec;
|
|
549
|
+
treemap?: IChartTreemapSpec;
|
|
550
|
+
sunburst?: IChartSunburstSpec;
|
|
551
|
+
gauge?: IChartGaugeSpec;
|
|
552
|
+
chord?: IChartChordSpec;
|
|
553
|
+
markLines?: IChartMarkLineSpec[];
|
|
554
|
+
theme?: string;
|
|
447
555
|
/** Persisted absolute series colors. A non-empty value overrides theme colors. */
|
|
448
|
-
palette?: string[]
|
|
556
|
+
palette?: string[];
|
|
449
557
|
}
|
|
558
|
+
/** Pending chart edits; `null` is a runtime-only delete marker consumed before persistence. */
|
|
559
|
+
export type ChartPendingConfig = Pick<IChartSemanticConfig, 'type'> & DeepNullish<Omit<IChartSemanticConfig, 'type' | 'series'>> & {
|
|
560
|
+
series?: Array<{
|
|
561
|
+
selector: ChartSeriesSelector;
|
|
562
|
+
} & DeepNullish<Omit<IChartSeriesPatch, 'selector'>>> | null;
|
|
563
|
+
};
|
|
450
564
|
/** Data-free metadata and semantic styling for one source series. */
|
|
451
565
|
export interface IChartSeriesDescription extends IChartSeriesStyleSpec {
|
|
452
566
|
name: string;
|
|
@@ -458,8 +572,6 @@ export interface IChartSeriesDescription extends IChartSeriesStyleSpec {
|
|
|
458
572
|
export interface IChartCategoryDescription {
|
|
459
573
|
name: string;
|
|
460
574
|
}
|
|
461
|
-
/** Materialized engine semantic data returned explicitly by hosted builders. */
|
|
462
|
-
export type IResolvedChartData = IChartData;
|
|
463
575
|
export interface IChartDescription extends Omit<IChartSemanticConfig, 'autoGradientFill' | 'series'> {
|
|
464
576
|
id: string;
|
|
465
577
|
type: ChartTypeString;
|
|
@@ -484,3 +596,4 @@ export interface IChartDescription extends Omit<IChartSemanticConfig, 'autoGradi
|
|
|
484
596
|
*/
|
|
485
597
|
axisBindings?: Partial<Record<ChartSemanticAxis, IChartAxisBindingDescription>>;
|
|
486
598
|
}
|
|
599
|
+
export {};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
/** Validates semantic indexes before a Facade operation can mutate Pending state. */
|
|
2
2
|
export declare function assertChartIndex(value: number, name: string): void;
|
|
3
|
+
export declare function assertChartIndexes(values: readonly number[], name: string): void;
|
|
4
|
+
export declare function assertDistinctChartIndexes(values: readonly number[], name: string): void;
|
|
5
|
+
export declare function assertPositiveInteger(value: number, name: string): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IChartCandlestickStateStyleSpec } from '../../types';
|
|
2
|
+
export declare const setRisingStyle: (value: IChartCandlestickStateStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const clearRisingStyle: () => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const setFallingStyle: (value: IChartCandlestickStateStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const clearFallingStyle: () => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const setDojiStyle: (value: IChartCandlestickStateStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const clearDojiStyle: () => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const setCandleWidth: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
9
|
+
export declare const resetCandleWidth: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DeepNullish } from '../../types';
|
|
1
2
|
import type { ChartPendingConfig, IChartSeriesStyleSpec } from '../chart-types';
|
|
2
3
|
export declare enum ChartAllSeriesStyleTarget {
|
|
3
4
|
Border = "border",
|
|
@@ -21,5 +22,5 @@ export type ChartPublicSeriesSelector = number | {
|
|
|
21
22
|
};
|
|
22
23
|
export declare const setSeries: (selector: ChartPublicSeriesSelector, patch: Omit<NonNullable<ChartPendingConfig["series"]>[number], "selector">) => import("./chart-config-operation").IChartConfigOperation;
|
|
23
24
|
export declare const clearSeries: (selector: ChartPublicSeriesSelector, target?: ChartSeriesClearTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
24
|
-
export declare const setAllSeriesStyle: (style: IChartSeriesStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
25
|
+
export declare const setAllSeriesStyle: (style: DeepNullish<IChartSeriesStyleSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
25
26
|
export declare const clearAllSeriesStyle: (target?: ChartAllSeriesStyleTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -7,8 +7,15 @@ export declare enum ChartConfigGroup {
|
|
|
7
7
|
AxisPointer = "axisPointer",
|
|
8
8
|
Aggregation = "aggregation",
|
|
9
9
|
Appearance = "appearance",
|
|
10
|
+
Candlestick = "candlestick",
|
|
11
|
+
Histogram = "histogram",
|
|
12
|
+
Treemap = "treemap",
|
|
13
|
+
Sunburst = "sunburst",
|
|
14
|
+
Gauge = "gauge",
|
|
15
|
+
Chord = "chord",
|
|
10
16
|
Axes = "axes",
|
|
11
17
|
Bar = "bar",
|
|
18
|
+
Bubble = "bubble",
|
|
12
19
|
Heatmap = "heatmap",
|
|
13
20
|
Funnel = "funnel",
|
|
14
21
|
InvalidValueStrategy = "invalidValueStrategy",
|
|
@@ -18,6 +25,7 @@ export declare enum ChartConfigGroup {
|
|
|
18
25
|
Palette = "palette",
|
|
19
26
|
Pareto = "pareto",
|
|
20
27
|
Pie = "pie",
|
|
28
|
+
PlotArea = "plotArea",
|
|
21
29
|
Radar = "radar",
|
|
22
30
|
Relation = "relation",
|
|
23
31
|
Series = "series",
|
|
@@ -38,4 +46,4 @@ export interface IChartConfigOperation {
|
|
|
38
46
|
readonly patch: ChartPendingConfig;
|
|
39
47
|
}
|
|
40
48
|
export declare function chartConfigOperation<K extends ChartConfigGroup>(group: K, value: ChartPendingConfig[K], mode?: ChartConfigOperationMode): IChartConfigOperation;
|
|
41
|
-
export declare function mergeChartPendingConfig(current: ChartPendingConfig, next: ChartPendingConfig): ChartPendingConfig;
|
|
49
|
+
export declare function mergeChartPendingConfig(current: ChartPendingConfig, next: ChartPendingConfig, path?: readonly string[]): ChartPendingConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IChartChordEmphasisSpec, IChartChordLabelSpec, IChartChordLayoutSpec, IChartChordMappingSpec, IChartChordNodeStyleSpec, IChartChordRibbonStyleSpec } from '../../types';
|
|
2
|
+
export declare function setChordMapping(value: IChartChordMappingSpec): import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const setChordLayout: (value: IChartChordLayoutSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const resetChordLayout: () => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const setChordNode: (value: IChartChordNodeStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const resetChordNode: () => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const setChordLabel: (value: IChartChordLabelSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const resetChordLabel: () => import("./chart-config-operation").IChartConfigOperation;
|
|
9
|
+
export declare const setChordRibbon: (value: IChartChordRibbonStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
10
|
+
export declare const resetChordRibbon: () => import("./chart-config-operation").IChartConfigOperation;
|
|
11
|
+
export declare const setChordEmphasis: (value: IChartChordEmphasisSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
12
|
+
export declare const resetChordEmphasis: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { DeepNullish, IChartGaugeAnchorSpec, IChartGaugeAnglesSpec, IChartGaugeAxisLabelSpec, IChartGaugeAxisLineSpec, IChartGaugeAxisTickSpec, IChartGaugeDetailSpec, IChartGaugePointerSpec, IChartGaugeProgressSpec, IChartGaugeRangeSpec, IChartGaugeScaleSpec, IChartGaugeSplitLineSpec, IChartGaugeTitleSpec } from '../../types';
|
|
2
|
+
import type { ChartGaugeMode } from '../../enum';
|
|
3
|
+
import type { IChartGaugeTicksPatch } from '../chart-types';
|
|
4
|
+
export declare function setGaugeValueField(index: number): import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const setGaugeMode: (value: ChartGaugeMode) => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const resetGaugeMode: () => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const setGaugeScale: (value: IChartGaugeScaleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const resetGaugeScale: () => import("./chart-config-operation").IChartConfigOperation;
|
|
9
|
+
export declare const setGaugeTicks: (value: IChartGaugeTicksPatch) => import("./chart-config-operation").IChartConfigOperation;
|
|
10
|
+
export declare const setGaugeAngles: (value: IChartGaugeAnglesSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
11
|
+
export declare const resetGaugeAngles: () => import("./chart-config-operation").IChartConfigOperation;
|
|
12
|
+
export declare const setGaugeRanges: (value: readonly IChartGaugeRangeSpec[]) => import("./chart-config-operation").IChartConfigOperation;
|
|
13
|
+
export declare const resetGaugeRanges: () => import("./chart-config-operation").IChartConfigOperation;
|
|
14
|
+
export declare const setGaugeAxisLine: (value: IChartGaugeAxisLineSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
15
|
+
export declare const resetGaugeAxisLine: () => import("./chart-config-operation").IChartConfigOperation;
|
|
16
|
+
export declare const setGaugeAxisTick: (value: IChartGaugeAxisTickSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
17
|
+
export declare const resetGaugeAxisTick: () => import("./chart-config-operation").IChartConfigOperation;
|
|
18
|
+
export declare const setGaugeSplitLine: (value: IChartGaugeSplitLineSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
19
|
+
export declare const resetGaugeSplitLine: () => import("./chart-config-operation").IChartConfigOperation;
|
|
20
|
+
export declare const setGaugeAxisLabel: (value: DeepNullish<IChartGaugeAxisLabelSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
21
|
+
export declare const resetGaugeAxisLabel: () => import("./chart-config-operation").IChartConfigOperation;
|
|
22
|
+
export declare const setGaugePointer: (value: IChartGaugePointerSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
23
|
+
export declare const resetGaugePointer: () => import("./chart-config-operation").IChartConfigOperation;
|
|
24
|
+
export declare const setGaugeAnchor: (value: IChartGaugeAnchorSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
25
|
+
export declare const resetGaugeAnchor: () => import("./chart-config-operation").IChartConfigOperation;
|
|
26
|
+
export declare const setGaugeProgress: (value: IChartGaugeProgressSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
27
|
+
export declare const resetGaugeProgress: () => import("./chart-config-operation").IChartConfigOperation;
|
|
28
|
+
export declare const setGaugeTitle: (value: IChartGaugeTitleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
29
|
+
export declare const resetGaugeTitle: () => import("./chart-config-operation").IChartConfigOperation;
|
|
30
|
+
export declare const setGaugeDetail: (value: DeepNullish<IChartGaugeDetailSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
31
|
+
export declare const resetGaugeDetail: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const setHistogramField: (index: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
2
|
+
export declare const clearHistogramField: () => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const setHistogramBinCount: (count: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const setHistogramBinWidth: (width: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const resetHistogramBinning: () => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const setHistogramUnderflowThreshold: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const clearHistogramUnderflowThreshold: () => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const setHistogramOverflowThreshold: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
9
|
+
export declare const clearHistogramOverflowThreshold: () => import("./chart-config-operation").IChartConfigOperation;
|
|
10
|
+
export declare const setHistogramBinGap: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
11
|
+
export declare const resetHistogramBinGap: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DeepNullish } from '../../types';
|
|
2
|
+
import type { IChartPieCompositeSpec, IChartPieLabelSpec, IChartSliceStyleSpec } from '../chart-types';
|
|
2
3
|
export declare const setDoughnutHole: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
4
|
export declare const clearDoughnutHole: () => import("./chart-config-operation").IChartConfigOperation;
|
|
4
5
|
export declare const setExplosion: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -15,13 +16,11 @@ export declare const setLabelLineVisible: (value: boolean) => import("./chart-co
|
|
|
15
16
|
export declare const resetLabelLineVisible: () => import("./chart-config-operation").IChartConfigOperation;
|
|
16
17
|
export declare const setValueScale: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
17
18
|
export declare const resetValueScale: () => import("./chart-config-operation").IChartConfigOperation;
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const clearValueSuffix: () => import("./chart-config-operation").IChartConfigOperation;
|
|
20
|
-
export declare const setDecimalPlaces: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
21
|
-
export declare const resetDecimalPlaces: () => import("./chart-config-operation").IChartConfigOperation;
|
|
22
|
-
export declare const setPieLabel: (value: IChartPieLabelSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
19
|
+
export declare const setPieLabel: (value: DeepNullish<IChartPieLabelSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
23
20
|
export declare const clearPieLabel: () => import("./chart-config-operation").IChartConfigOperation;
|
|
24
21
|
/** Records the authored style for one materialized Pie or Donut slice. */
|
|
25
22
|
export declare const setSliceStyle: (index: number, value: IChartSliceStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
26
23
|
/** Clears the authored style for one materialized Pie or Donut slice. */
|
|
27
24
|
export declare const clearSliceStyle: (index: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
25
|
+
export declare const setPieComposite: (value: DeepNullish<IChartPieCompositeSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
26
|
+
export declare const clearPieComposite: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import type { IChartCandlestickMappingSpec } from '../../types';
|
|
1
2
|
import type { IChartBubbleMappingSpec, IChartScatterMappingSpec } from '../chart-types';
|
|
2
3
|
export declare const setScatterMapping: (value: IChartScatterMappingSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
4
|
export declare const clearScatterMapping: () => import("./chart-config-operation").IChartConfigOperation;
|
|
4
5
|
export declare const setBubbleMapping: (value: IChartBubbleMappingSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
6
|
export declare const clearBubbleMapping: () => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare function setCandlestickFields(value: IChartCandlestickMappingSpec): import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const clearCandlestickFields: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DeepNullish, IChartSunburstCenterLabelSpec, IChartSunburstLabelSpec } from '../../types';
|
|
2
|
+
export declare const setSunburstHierarchyFields: (indexes: readonly number[]) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const setSunburstValueField: (index: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const setSunburstLabel: (label: DeepNullish<IChartSunburstLabelSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const resetSunburstLabel: () => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const setSunburstCenterLabel: (centerLabel: DeepNullish<IChartSunburstCenterLabelSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const resetSunburstCenterLabel: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TreemapParentLabelLayout } from '../../enum';
|
|
2
|
+
import type { DeepNullish, IChartTreemapLabelSpec } from '../../types';
|
|
3
|
+
export declare const setTreemapHierarchyFields: (indexes: readonly number[]) => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const setTreemapValueField: (index: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const setTreemapParentLabelLayout: (layout: TreemapParentLabelLayout) => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const resetTreemapParentLabelLayout: () => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const setTreemapLabel: (label: DeepNullish<IChartTreemapLabelSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const resetTreemapLabel: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -8,5 +8,7 @@ export declare const resetUseSubtotal: () => import("./chart-config-operation").
|
|
|
8
8
|
export declare const setWaterfallPointRoles: (roles: readonly IChartWaterfallPointRoleSpec[]) => import("./chart-config-operation").IChartConfigOperation;
|
|
9
9
|
export declare const setWaterfallConnector: (value: boolean | IChartWaterfallConnectorStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
10
10
|
export declare const clearWaterfallConnector: () => import("./chart-config-operation").IChartConfigOperation;
|
|
11
|
-
export declare const setWaterfallStyle: (selector: ChartPublicSeriesSelector, target: ChartWaterfallStyleTarget, value: Omit<IChartSeriesPatch, "selector"
|
|
11
|
+
export declare const setWaterfallStyle: (selector: ChartPublicSeriesSelector, target: ChartWaterfallStyleTarget, value: Omit<IChartSeriesPatch, "selector" | "waterfallStyles"> & {
|
|
12
|
+
name?: string;
|
|
13
|
+
}) => import("./chart-config-operation").IChartConfigOperation;
|
|
12
14
|
export declare const clearWaterfallStyle: (selector: ChartPublicSeriesSelector, target: ChartWaterfallStyleTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IChartDataAggregation } from '../../chart-data-aggregation';
|
|
2
|
+
import type { ChartStyle, DeepNullish, IChartContext, IChartDataSeries } from '../../types';
|
|
2
3
|
import type { ChartPendingConfig, IChartDescription } from '../chart-types';
|
|
3
4
|
import { ChartTypeBits } from '../../enum';
|
|
4
5
|
interface IChartConfigConversionOptions {
|
|
@@ -8,12 +9,16 @@ interface IChartConfigConversionOptions {
|
|
|
8
9
|
currentContext?: IChartContext;
|
|
9
10
|
currentDataAggregation?: IChartDataAggregation;
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
+
type ChartContextPendingPatch = DeepNullish<IChartContext>;
|
|
13
|
+
interface IChartModelConfigPendingUpdate {
|
|
12
14
|
chartType?: ChartTypeBits;
|
|
13
15
|
style?: ChartStyle;
|
|
14
|
-
context?:
|
|
16
|
+
context?: ChartContextPendingPatch;
|
|
15
17
|
dataAggregation?: Partial<IChartDataAggregation>;
|
|
16
18
|
}
|
|
19
|
+
interface IChartModelConfigUpdate extends Omit<IChartModelConfigPendingUpdate, 'context'> {
|
|
20
|
+
context?: IChartContext;
|
|
21
|
+
}
|
|
17
22
|
export interface ICompleteChartModelConfig {
|
|
18
23
|
chartType?: ChartTypeBits;
|
|
19
24
|
style?: ChartStyle;
|
|
@@ -22,4 +27,5 @@ export interface ICompleteChartModelConfig {
|
|
|
22
27
|
}
|
|
23
28
|
export declare function toChartModelConfig(config: ChartPendingConfig | IChartDescription, options?: IChartConfigConversionOptions): IChartModelConfigUpdate;
|
|
24
29
|
export declare function toCompleteChartModelConfig(configChange: ChartPendingConfig, options?: IChartConfigConversionOptions): ICompleteChartModelConfig;
|
|
30
|
+
export declare function applyChartStylePatch(current: ChartStyle | undefined, patch: DeepNullish<ChartStyle>): ChartStyle;
|
|
25
31
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DeepNullish, IChartContext } from '../../types';
|
|
2
|
+
/** Validates a complete persisted context and returns the canonical snapshot fields only. */
|
|
3
|
+
export declare function canonicalizeChartContext(value: unknown): IChartContext;
|
|
4
|
+
/** Internal Pending boundary used before a command payload is created. */
|
|
5
|
+
export declare function applyPendingChartContext(current: IChartContext | undefined, value: DeepNullish<IChartContext>): IChartContext;
|