@univerjs-pro/engine-chart 1.0.0-alpha.8 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -3
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/es-ES.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/cjs/locale/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -0
- package/lib/cjs/locale/ko-KR.js +1 -0
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -0
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/es-ES.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/fr-FR.js +1 -0
- package/lib/es/locale/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -0
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/sk-SK.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -0
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/es-ES.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -0
- package/lib/locale/ko-KR.js +1 -0
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/sk-SK.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/types/chart-builder/chart-builder-adapter.d.ts +1 -3
- package/lib/types/chart-builder/chart-builder.d.ts +4 -6
- package/lib/types/chart-builder/chart-live-adapter.d.ts +15 -0
- package/lib/types/chart-builder/chart-starter-data.d.ts +3 -2
- package/lib/types/chart-builder/chart-types.d.ts +129 -13
- package/lib/types/chart-builder/configuration/assertions.d.ts +2 -0
- package/lib/types/chart-builder/configuration/cartesian-series.d.ts +3 -1
- package/lib/types/chart-builder/configuration/chart-config-group.d.ts +38 -0
- package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +1 -33
- package/lib/types/chart-builder/configuration/chord.d.ts +12 -0
- package/lib/types/chart-builder/configuration/gauge.d.ts +31 -0
- package/lib/types/chart-builder/configuration/pie.d.ts +5 -6
- package/lib/types/chart-builder/configuration/sunburst.d.ts +7 -0
- package/lib/types/chart-builder/configuration/treemap.d.ts +2 -2
- package/lib/types/chart-builder/configuration/waterfall.d.ts +3 -1
- package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +25 -10
- package/lib/types/chart-builder/conversion/chart-context-patch.d.ts +1 -1
- package/lib/types/chart-builder/conversion/chart-create-config.d.ts +6 -0
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +25 -7
- package/lib/types/chart-builder/conversion/chart-type-converter.d.ts +3 -1
- package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +1419 -7
- package/lib/types/chart-builder/conversion/resolve-chart-model-data.d.ts +2 -2
- package/lib/types/chart-builder/detached-chart-builder-adapter.d.ts +4 -4
- package/lib/types/chart-builder/internal/apply-pending-to-description.d.ts +2 -0
- package/lib/types/chart-builder/internal/chart-host-config-adapter.d.ts +3 -0
- package/lib/types/chart-builder/internal/chart-patch-replace-policy.d.ts +6 -0
- package/lib/types/chart-builder/internal/chart-pending-patch.d.ts +11 -0
- package/lib/types/chart-builder/internal/patch-interpreter.d.ts +17 -0
- package/lib/types/chart-data-aggregation.d.ts +10 -0
- package/lib/types/config/config.d.ts +7 -0
- package/lib/types/enum.d.ts +45 -2
- package/lib/types/facade/builders/f-area-chart-builder.d.ts +52 -7
- package/lib/types/facade/builders/f-boxplot-chart-builder.d.ts +88 -3
- package/lib/types/facade/builders/f-bubble-chart-builder.d.ts +59 -6
- package/lib/types/facade/builders/f-candlestick-chart-builder.d.ts +90 -31
- package/lib/types/facade/builders/f-chord-chart-builder.d.ts +202 -0
- package/lib/types/facade/builders/f-combination-chart-builder.d.ts +55 -10
- package/lib/types/facade/builders/f-funnel-chart-builder.d.ts +55 -9
- package/lib/types/facade/builders/f-gauge-chart-builder.d.ts +420 -0
- package/lib/types/facade/builders/f-heatmap-chart-builder.d.ts +83 -26
- package/lib/types/facade/builders/f-histogram-chart-builder.d.ts +142 -16
- package/lib/types/facade/builders/f-line-chart-builder.d.ts +51 -6
- package/lib/types/facade/builders/f-pareto-chart-builder.d.ts +83 -20
- package/lib/types/facade/builders/f-pie-chart-builder.d.ts +134 -107
- package/lib/types/facade/builders/f-radar-chart-builder.d.ts +64 -11
- package/lib/types/facade/builders/f-relation-chart-builder.d.ts +72 -38
- package/lib/types/facade/builders/f-scatter-chart-builder.d.ts +58 -6
- package/lib/types/facade/builders/f-sunburst-chart-builder.d.ts +138 -0
- package/lib/types/facade/builders/f-treemap-chart-builder.d.ts +116 -14
- package/lib/types/facade/builders/f-waterfall-chart-builder.d.ts +87 -53
- package/lib/types/facade/builders/f-word-cloud-chart-builder.d.ts +64 -15
- package/lib/types/facade/chart-builder-registry.d.ts +4 -4
- package/lib/types/facade/chart-builder-type-map.d.ts +55 -30
- package/lib/types/facade/chart-host-builder-types.d.ts +2 -21
- package/lib/types/facade/create-chart-builder.d.ts +46 -0
- package/lib/types/facade/f-axis-chart-builder.d.ts +21 -38
- package/lib/types/facade/f-cartesian-chart-builder.d.ts +34 -22
- package/lib/types/facade/f-chart-builder-base.d.ts +206 -74
- package/lib/types/facade/f-chart.d.ts +652 -0
- package/lib/types/facade/f-enum.d.ts +686 -31
- package/lib/types/facade/f-univer.d.ts +51 -0
- package/lib/types/facade/index.d.ts +27 -10
- package/lib/types/facade/internal/chart-builder-facade-context.d.ts +11 -10
- package/lib/types/index.d.ts +131 -39
- package/lib/types/locale/ar-SA.d.ts +3 -0
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/de-DE.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +46 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/locale/fr-FR.d.ts +3 -0
- package/lib/types/locale/id-ID.d.ts +3 -0
- package/lib/types/locale/it-IT.d.ts +3 -0
- package/lib/types/locale/ja-JP.d.ts +3 -0
- package/lib/types/locale/ko-KR.d.ts +3 -0
- package/lib/types/locale/pl-PL.d.ts +3 -0
- package/lib/types/locale/pt-BR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/types/locale/zh-HK.d.ts +3 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/models/{chart-semantic-axes.d.ts → chart-context/axes/chart-semantic-axes.d.ts} +2 -2
- package/lib/types/models/chart-context/chart-field-selection.d.ts +21 -0
- package/lib/types/models/chart-context/resolve-chart-context.d.ts +5 -0
- package/lib/types/models/chart-data/build-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/boxplot-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/candlestick-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/cartesian-point-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/category-series-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/chord-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/gauge-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/heatmap-chart-data.d.ts +3 -0
- package/lib/types/models/chart-data/builders/hierarchy-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/histogram-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/relation-chart-data.d.ts +3 -0
- package/lib/types/models/chart-data/builders/sankey-chart-data.d.ts +3 -0
- package/lib/types/models/chart-data/chart-field-consumption-validator.d.ts +15 -0
- package/lib/types/models/chart-data/chart-field-consumption.d.ts +4 -0
- package/lib/types/models/chart-data/chart-field-requirements.d.ts +7 -0
- package/lib/types/models/chart-data/get-chart-data-builder.d.ts +7 -0
- package/lib/types/models/chart-data/internal/aggregate-number-format.d.ts +8 -0
- package/lib/types/models/{chart-data-operators → chart-data/internal}/cartesian-point-data.d.ts +3 -8
- package/lib/types/models/chart-data/internal/category-data.d.ts +3 -0
- package/lib/types/models/chart-data/internal/category-series-aggregation.d.ts +10 -0
- package/lib/types/models/chart-data/internal/chart-data-result.d.ts +5 -0
- package/lib/types/models/chart-data/internal/chart-hierarchy-data.d.ts +1 -0
- package/lib/types/models/chart-data/internal/chord-data.d.ts +7 -0
- package/lib/types/models/chart-data/internal/data-set-accessors.d.ts +7 -0
- package/lib/types/models/chart-data/internal/gauge-data.d.ts +5 -0
- package/lib/types/models/{chart-data-operators/histogram-data.d.ts → chart-data/internal/histogram-bins.d.ts} +1 -1
- package/lib/types/models/chart-data/internal/relation-data-shape.d.ts +2 -0
- package/lib/types/models/chart-data/internal/source-cell-label.d.ts +3 -0
- package/lib/types/models/chart-data/internal/sunburst-data.d.ts +4 -0
- package/lib/types/models/chart-data/internal/treemap-data.d.ts +4 -0
- package/lib/types/models/chart-data/pie-composite/pie-composite-projection.d.ts +36 -0
- package/lib/types/models/chart-data/pie-composite/pie-composite-render-metadata.d.ts +15 -0
- package/lib/types/models/chart-data/pie-composite/pie-composite-spec.d.ts +38 -0
- package/lib/types/models/{chart-host-style.d.ts → chart-host/chart-host-style.d.ts} +1 -1
- package/lib/types/models/chart-host/config/chart-config-interpreter.d.ts +13 -0
- package/lib/types/models/{image-chart-host.d.ts → chart-host/image-chart-host.d.ts} +14 -2
- package/lib/types/models/{offscreen-chart-host.d.ts → chart-host/offscreen-chart-host.d.ts} +1 -1
- package/lib/types/models/chart-host/resource/chart-data-source-resolver.d.ts +58 -0
- package/lib/types/models/chart-host/resource/chart-resource-repository.d.ts +111 -0
- package/lib/types/models/{chart-resource-serializer.d.ts → chart-host/resource/chart-resource-serializer.d.ts} +3 -2
- package/lib/types/models/chart-host/resource/inline-chart-table.d.ts +5 -0
- package/lib/types/models/chart-host/resource/persisted-chart-style.d.ts +3 -0
- package/lib/types/models/chart-host/resource/resource-ref-chart-data-source.adapter.d.ts +22 -0
- package/lib/types/models/chart-host/resource/resource-ref-chart-data-source.provider.d.ts +12 -0
- package/lib/types/models/chart-host/static/chart-model-store.d.ts +56 -0
- package/lib/types/models/chart-host/static/chart-runtime.d.ts +27 -0
- package/lib/types/models/{chart-model.d.ts → chart-model/chart-model.d.ts} +1415 -947
- package/lib/types/models/{echart-to-chart-model-init.d.ts → chart-model/echart-to-chart-model-init.d.ts} +2 -2
- package/lib/types/models/{data-context-transformers/bar-data-context-transformer.d.ts → chart-model/type-transition/bar-type-transition.d.ts} +1 -1
- package/lib/types/models/{data-context-transformers/line-like-context-transformer.d.ts → chart-model/type-transition/line-like-type-transition.d.ts} +1 -1
- package/lib/types/models/{data-context-transformers/percent-data-context-transformer.d.ts → chart-model/type-transition/percent-type-transition.d.ts} +1 -1
- package/lib/types/models/{chart-element-axis-id.d.ts → chart-render/axes/chart-element-axis-id.d.ts} +1 -1
- package/lib/types/models/{chart-runtime-axes.d.ts → chart-render/axes/chart-runtime-axes.d.ts} +4 -4
- package/lib/types/models/{chart-render-input-resolver.d.ts → chart-render/chart-render-input-resolver.d.ts} +3 -3
- package/lib/types/models/{chart-render-model-manager.service.d.ts → chart-render/chart-render-model-manager.service.d.ts} +2 -3
- package/lib/types/models/chart-render/converter/converters/boxplot-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/bubble-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/candlestick-chart-converter.d.ts +4 -0
- package/lib/types/models/chart-render/converter/converters/chord-chart-converter.d.ts +10 -0
- package/lib/types/models/chart-render/converter/converters/combination-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/funnel-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/gauge-chart-converter.d.ts +20 -0
- package/lib/types/models/chart-render/converter/converters/heatmap-chart-convert.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/histogram-chart-converter.d.ts +2 -3
- package/lib/types/models/chart-render/converter/converters/pareto-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/pie-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/radar-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/relation-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/sankey-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/scatter-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/sunburst-chart-converter.d.ts +3 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/tools.d.ts +1 -1
- package/lib/types/models/chart-render/converter/converters/treemap-chart-converter.d.ts +3 -0
- package/lib/types/models/chart-render/converter/converters/waterfall-chart-converter.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/waterfall-layout.d.ts +2 -2
- package/lib/types/models/chart-render/converter/converters/word-cloud-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/echart-text-overflow.d.ts +7 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/mode-converter.d.ts +3 -5
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/auto-gradient-presets.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/axis-title.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/bar-layout.operator.d.ts +3 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/bubble-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter/render-spec-operators/trend-line/trend-line.operator.d.ts → chart-render/converter/render-spec-operators/chart-axes.operator.d.ts} +1 -1
- package/lib/types/models/{mode-converter/render-spec-operators/relation-chart-operator/relation-chart-operator.d.ts → chart-render/converter/render-spec-operators/chart-box-style.operator.d.ts} +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/chart-color.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/empty-style-operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/font-size.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/grid-operator.d.ts +12 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/heatmap-chart-operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/hover-mark-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/implicit-category-axis.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter/render-spec-operators/series-style-operator/pareto-series-style.handler.d.ts → chart-render/converter/render-spec-operators/invalid-value-style.operator.d.ts} +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/legend-size.d.ts +1 -2
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/legend-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/line-like-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/mark-line.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/pie-composite-layout.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/pie-style.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/plot-area.d.ts +10 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/radar-style.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/relation-chart-operator/relation-chart-operator.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/rich-text-inheritance.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/rtl-render-spec.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/sankey-chart-operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/scatter-style.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/series-style-operator/pareto-series-style.handler.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-style-operator.d.ts +3 -3
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/waterfall-series-style-operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/stack.operator.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/theme.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/title-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tool-tip-operator.d.ts +6 -17
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tool-tip-renderer.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tools.d.ts +5 -7
- package/lib/types/models/chart-render/converter/render-spec-operators/trend-line/trend-line.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/visual-map-operator.d.ts +6 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/watermark.operator.d.ts +1 -1
- package/lib/types/models/{echart-render-model.d.ts → chart-render/echart-render-model.d.ts} +22 -12
- package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/chart-element-edit-overlay.d.ts +2 -2
- package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/resolve-chart-element-hit-layout.d.ts +2 -2
- package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/types.d.ts +1 -1
- package/lib/types/models/chart-render/format/chart-value-format.d.ts +16 -0
- package/lib/types/models/{chart-runtime-style.d.ts → chart-render/style/chart-runtime-style.d.ts} +3 -3
- package/lib/types/models/common/chart-field-diagnostic.d.ts +14 -0
- package/lib/types/models/common/chart-field-role.d.ts +53 -0
- package/lib/types/models/common/chart-locale-texts.d.ts +44 -0
- package/lib/types/models/common/constants/chord.d.ts +5 -0
- package/lib/types/models/common/constants/default-chart-style.d.ts +920 -0
- package/lib/types/models/{constants → common/constants}/default.d.ts +3 -2
- package/lib/types/models/common/constants/hierarchy.d.ts +5 -0
- package/lib/types/models/common/constants/histogram-defaults.d.ts +8 -0
- package/lib/types/models/common/constants/treemap.d.ts +1 -0
- package/lib/types/models/common/theme/build-in-theme/theme-util.d.ts +4 -0
- package/lib/types/models/{chart-theme.service.d.ts → common/theme/chart-theme.service.d.ts} +1 -3
- package/lib/types/plugin.d.ts +15 -0
- package/lib/types/types.d.ts +307 -39
- package/lib/types/util.d.ts +1 -1
- package/lib/types/utils/compact.d.ts +6 -0
- package/lib/types/utils/echarts.d.ts +0 -1
- package/lib/types/word-cloud-resource/word-cloud-resource-config.d.ts +5 -0
- package/lib/types/wordcloud-chart/adapters/echarts/chart-view.d.ts +0 -2
- package/lib/types/wordcloud-chart/adapters/echarts/echarts-options.d.ts +1 -1
- package/lib/types/wordcloud-chart/adapters/echarts/layout-register.d.ts +0 -2
- package/lib/types/wordcloud-chart/adapters/echarts/series-model.d.ts +0 -2
- package/lib/types/wordcloud-chart/adapters/echarts/text-measurer.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/box-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/word-cloud-render-config.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +11 -4
- package/lib/types/chart-builder/candlestick-inline-table.d.ts +0 -4
- package/lib/types/chart-builder/configuration/index.d.ts +0 -34
- package/lib/types/chart-builder/index.d.ts +0 -17
- package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +0 -3
- package/lib/types/chart-builder/internal/merge-description.d.ts +0 -2
- package/lib/types/facade/builders/index.d.ts +0 -17
- package/lib/types/facade/f-chart-base.d.ts +0 -82
- package/lib/types/facade/f-charts-base.d.ts +0 -74
- package/lib/types/facade/internal/host-builder-composer.d.ts +0 -16
- package/lib/types/models/chart-data-operators/build-chart-data.d.ts +0 -9
- package/lib/types/models/chart-data-operators/index.d.ts +0 -3
- package/lib/types/models/chart-data-operators/operators.d.ts +0 -26
- package/lib/types/models/chart-data-operators/treemap-data.d.ts +0 -3
- package/lib/types/models/chart-element-edit-overlay/index.d.ts +0 -4
- package/lib/types/models/chart-locale-texts.d.ts +0 -36
- package/lib/types/models/constants/build-in-theme/index.d.ts +0 -15
- package/lib/types/models/constants/build-in-theme/theme-util.d.ts +0 -5
- package/lib/types/models/constants/default-chart-style.d.ts +0 -181
- package/lib/types/models/constants/histogram-defaults.d.ts +0 -4
- package/lib/types/models/constants/treemap.d.ts +0 -1
- package/lib/types/models/data-context-transformers/box-plot-data-context-transformer.d.ts +0 -3
- package/lib/types/models/data-context-transformers/candlestick-data-context-transformer.d.ts +0 -4
- package/lib/types/models/data-context-transformers/histogram-data-context-transformer.d.ts +0 -7
- package/lib/types/models/data-context-transformers/pareto-data-context-transformer.d.ts +0 -3
- package/lib/types/models/data-context-transformers/pie-data-context-transformer.d.ts +0 -3
- package/lib/types/models/data-context-transformers/treemap-data-context-transformer.d.ts +0 -11
- package/lib/types/models/data-context-transformers/word-cloud-data-context-transform.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/boxplot-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/bubble-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/candlestick-chart-converter.d.ts +0 -5
- package/lib/types/models/mode-converter/converters/combination-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/funnel-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/heatmap-chart-convert.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/pareto-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/pie-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/radar-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/relation-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/sankey-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/scatter-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/treemap-chart-converter.d.ts +0 -4
- package/lib/types/models/mode-converter/converters/waterfall-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/word-cloud-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/render-spec-operators/chart-axes.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/chart-box-style.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/font-size.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/grid-operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/index.d.ts +0 -15
- package/lib/types/models/mode-converter/render-spec-operators/invalid-value-style.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/pie-style.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/stack.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/visual-map-operator.d.ts +0 -2
- package/lib/types/models/spec-converter/spec-converter.d.ts +0 -1
- package/lib/types/models/word-cloud-musk-image.service.d.ts +0 -17
- package/lib/types/wordcloud-chart/index.d.ts +0 -12
- /package/lib/types/models/{mode-converter → chart-render/converter}/converters/constants.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/operator-types.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/relation-chart-operator/relation-force-directed-layout.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-chart-style.handler.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-data-label.handler.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/trend-line/trendline-util.d.ts +0 -0
- /package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/palette.d.ts +0 -0
- /package/lib/types/models/{series-style → chart-render/style/series-style}/series-style-resolver.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/default.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/types.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient1.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient2.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient3.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient4.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient5.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient6.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer1.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer2.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer3.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer4.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer5.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer6.d.ts +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
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
5
|
/** Canonical semantic chart type names exposed by the chart facade. */
|
|
5
6
|
export declare enum ChartTypeString {
|
|
@@ -29,7 +30,10 @@ export declare enum ChartTypeString {
|
|
|
29
30
|
Boxplot = "boxplot",
|
|
30
31
|
Candlestick = "candlestick",
|
|
31
32
|
Histogram = "histogram",
|
|
32
|
-
Treemap = "treemap"
|
|
33
|
+
Treemap = "treemap",
|
|
34
|
+
Sunburst = "sunburst",
|
|
35
|
+
Gauge = "gauge",
|
|
36
|
+
Chord = "chord"
|
|
33
37
|
}
|
|
34
38
|
export declare enum ChartSeriesTypeString {
|
|
35
39
|
Column = "column",
|
|
@@ -64,6 +68,11 @@ export interface IChartFontSpec {
|
|
|
64
68
|
italic?: boolean;
|
|
65
69
|
family?: string;
|
|
66
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
|
+
}
|
|
67
76
|
export interface IChartTitleOptions extends IChartFontSpec {
|
|
68
77
|
text?: string;
|
|
69
78
|
visible?: boolean;
|
|
@@ -89,6 +98,7 @@ export interface IChartAxisLabelSpec extends IChartFontSpec {
|
|
|
89
98
|
}
|
|
90
99
|
export interface IChartAxisSpec {
|
|
91
100
|
title?: string;
|
|
101
|
+
titleAlignment?: AxisAlignEnum;
|
|
92
102
|
min?: number;
|
|
93
103
|
max?: number;
|
|
94
104
|
reverse?: boolean;
|
|
@@ -111,6 +121,7 @@ export interface IChartAxisSpec {
|
|
|
111
121
|
visible?: boolean;
|
|
112
122
|
color?: string;
|
|
113
123
|
width?: number;
|
|
124
|
+
dashType?: ChartBorderDashType;
|
|
114
125
|
};
|
|
115
126
|
}
|
|
116
127
|
export interface IChartAxesSpec {
|
|
@@ -166,17 +177,19 @@ export interface IChartSeriesBorderSpec {
|
|
|
166
177
|
opacity?: number;
|
|
167
178
|
dashType?: ChartBorderDashType;
|
|
168
179
|
}
|
|
180
|
+
export interface IChartLineStyleSpec extends IChartSeriesBorderSpec {
|
|
181
|
+
}
|
|
169
182
|
export interface IChartSeriesPointSpec {
|
|
170
183
|
shape?: LinePointShape;
|
|
171
184
|
size?: number;
|
|
172
185
|
color?: string;
|
|
173
186
|
}
|
|
174
|
-
export interface IChartSeriesLabelSpec extends IChartFontSpec {
|
|
187
|
+
export interface IChartSeriesLabelSpec extends IChartFontSpec, IChartValueLabelSpec {
|
|
175
188
|
visible?: boolean;
|
|
176
189
|
position?: SeriesLabelPosition;
|
|
177
190
|
contentType?: LabelContentType;
|
|
178
191
|
}
|
|
179
|
-
export interface IChartHeatmapLabelSpec extends IChartFontSpec {
|
|
192
|
+
export interface IChartHeatmapLabelSpec extends IChartFontSpec, IChartValueLabelSpec {
|
|
180
193
|
visible?: boolean;
|
|
181
194
|
position?: SeriesLabelPosition;
|
|
182
195
|
}
|
|
@@ -203,7 +216,10 @@ export interface IChartSeriesPatch extends IChartSeriesStyleSpec {
|
|
|
203
216
|
selector: ChartSeriesSelector;
|
|
204
217
|
type?: ChartSeriesTypeString;
|
|
205
218
|
dataPoints?: Record<number, IChartSeriesDataPointStyleSpec>;
|
|
206
|
-
waterfallStyles?: Partial<Record<ChartWaterfallStyleTarget,
|
|
219
|
+
waterfallStyles?: Partial<Record<ChartWaterfallStyleTarget, IChartWaterfallSeriesStyleSpec>>;
|
|
220
|
+
}
|
|
221
|
+
export interface IChartWaterfallSeriesStyleSpec extends Omit<IChartSeriesPatch, 'selector' | 'waterfallStyles'> {
|
|
222
|
+
name?: string;
|
|
207
223
|
}
|
|
208
224
|
/** Series patch for line-like marks whose data points are symbols. */
|
|
209
225
|
export interface IChartLineSeriesPatch extends Omit<IChartSeriesPatch, 'dataPoints'> {
|
|
@@ -276,6 +292,11 @@ export interface IChartBubbleMappingSpec extends IChartScatterMappingSpec {
|
|
|
276
292
|
sizeIndex?: number;
|
|
277
293
|
seriesIndex?: number;
|
|
278
294
|
}
|
|
295
|
+
export interface IChartEdgeMappingSpec {
|
|
296
|
+
sourceIndex: number;
|
|
297
|
+
targetIndex: number;
|
|
298
|
+
valueIndex?: number;
|
|
299
|
+
}
|
|
279
300
|
export interface IChartMappingSpec {
|
|
280
301
|
categoryIndex?: number;
|
|
281
302
|
/** Ordered root-to-leaf hierarchy fields for hierarchy charts. */
|
|
@@ -285,12 +306,14 @@ export interface IChartMappingSpec {
|
|
|
285
306
|
scatter?: IChartScatterMappingSpec;
|
|
286
307
|
bubble?: IChartBubbleMappingSpec;
|
|
287
308
|
candlestick?: IChartCandlestickMappingSpec;
|
|
309
|
+
chord?: IChartChordMappingSpec;
|
|
310
|
+
edge?: IChartEdgeMappingSpec;
|
|
288
311
|
}
|
|
289
312
|
export interface IChartAggregationSpec {
|
|
290
313
|
aggregate?: boolean;
|
|
291
|
-
topN?:
|
|
314
|
+
topN?: IChartTopNSpec;
|
|
292
315
|
}
|
|
293
|
-
export interface IChartPieLabelSpec extends IChartFontSpec {
|
|
316
|
+
export interface IChartPieLabelSpec extends IChartFontSpec, IChartValueLabelSpec {
|
|
294
317
|
visible?: boolean;
|
|
295
318
|
position?: PieLabelPosition;
|
|
296
319
|
contentType?: LabelContentType;
|
|
@@ -300,7 +323,67 @@ export interface IChartSliceStyleSpec {
|
|
|
300
323
|
color?: ChartColor;
|
|
301
324
|
fillOpacity?: number;
|
|
302
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
|
+
}
|
|
303
383
|
export interface IChartPieSpec {
|
|
384
|
+
composite?: IChartPieCompositeSpec;
|
|
385
|
+
/** Clockwise degrees from 12 o'clock. */
|
|
386
|
+
startAngle?: number;
|
|
304
387
|
doughnutHole?: number;
|
|
305
388
|
explosion?: number;
|
|
306
389
|
borderColor?: string;
|
|
@@ -309,8 +392,6 @@ export interface IChartPieSpec {
|
|
|
309
392
|
rosePie?: boolean;
|
|
310
393
|
showLabelLine?: boolean;
|
|
311
394
|
valueScale?: number;
|
|
312
|
-
valueSuffix?: string;
|
|
313
|
-
digitalFixed?: number;
|
|
314
395
|
label?: IChartPieLabelSpec;
|
|
315
396
|
/** Sparse authored slice styles keyed by materialized slice index. */
|
|
316
397
|
sliceStyles?: Partial<Record<number, IChartSliceStyleSpec>>;
|
|
@@ -333,7 +414,7 @@ export interface IChartParetoPointStyleSpec {
|
|
|
333
414
|
color?: string;
|
|
334
415
|
}
|
|
335
416
|
interface IChartParetoLabelStyleBase extends Omit<IChartSeriesLabelSpec, 'contentType' | 'position'> {
|
|
336
|
-
contentType?: LabelContentType
|
|
417
|
+
contentType?: LabelContentType;
|
|
337
418
|
}
|
|
338
419
|
/** Pareto bar-label appearance. */
|
|
339
420
|
export interface IChartParetoBarLabelStyleSpec extends IChartParetoLabelStyleBase {
|
|
@@ -349,6 +430,7 @@ export interface IChartParetoBarStyleSpec {
|
|
|
349
430
|
opacity?: number;
|
|
350
431
|
border?: IChartParetoBorderStyleSpec;
|
|
351
432
|
label?: IChartParetoBarLabelStyleSpec;
|
|
433
|
+
dataPoints?: Record<number, IChartSeriesDataPointStyleSpec>;
|
|
352
434
|
}
|
|
353
435
|
/** Supported appearance for the derived Pareto cumulative line. */
|
|
354
436
|
export interface IChartParetoLineStyleSpec {
|
|
@@ -358,6 +440,7 @@ export interface IChartParetoLineStyleSpec {
|
|
|
358
440
|
dashType?: ChartBorderDashType;
|
|
359
441
|
point?: IChartParetoPointStyleSpec;
|
|
360
442
|
label?: IChartParetoLineLabelStyleSpec;
|
|
443
|
+
dataPoints?: Record<number, IChartSeriesDataPointStyleSpec>;
|
|
361
444
|
}
|
|
362
445
|
/** Pareto semantic configuration exposed through the Facade. */
|
|
363
446
|
export interface IChartParetoSpec {
|
|
@@ -375,11 +458,23 @@ export interface IChartAreaSpec {
|
|
|
375
458
|
lineStyle?: AreaLineStyle;
|
|
376
459
|
}
|
|
377
460
|
export interface IChartBarSpec {
|
|
461
|
+
gapWidth?: number;
|
|
462
|
+
overlap?: number;
|
|
378
463
|
is3D?: boolean;
|
|
379
464
|
shape?: BarShape;
|
|
380
465
|
rotX?: number;
|
|
381
466
|
rotY?: number;
|
|
382
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
|
+
}
|
|
383
478
|
export interface IChartFunnelSpec {
|
|
384
479
|
gap?: number;
|
|
385
480
|
useAbsoluteValue?: boolean;
|
|
@@ -403,7 +498,7 @@ export interface IChartWaterfallSpec {
|
|
|
403
498
|
useSubtotal?: boolean;
|
|
404
499
|
pointRoles?: IChartWaterfallPointRoleSpec[];
|
|
405
500
|
connector?: boolean | IChartWaterfallConnectorStyleSpec;
|
|
406
|
-
styles?: Partial<Record<ChartWaterfallStyleTarget,
|
|
501
|
+
styles?: Partial<Record<ChartWaterfallStyleTarget, IChartWaterfallSeriesStyleSpec>>;
|
|
407
502
|
}
|
|
408
503
|
/** Public Waterfall series selector; numbers are stable source-series indexes. */
|
|
409
504
|
export type ChartWaterfallSeriesSelector = number | {
|
|
@@ -444,17 +539,39 @@ interface IChartSemanticConfig {
|
|
|
444
539
|
axisPointer?: IChartAxisPointerSpec;
|
|
445
540
|
area?: IChartAreaSpec;
|
|
446
541
|
bar?: IChartBarSpec;
|
|
542
|
+
bubble?: IChartBubbleSpec;
|
|
543
|
+
plotArea?: IChartPlotAreaSpec;
|
|
447
544
|
funnel?: IChartFunnelSpec;
|
|
448
545
|
relation?: IChartRelationSpec;
|
|
449
546
|
waterfall?: IChartWaterfallSpec;
|
|
450
547
|
candlestick?: IChartCandlestickSpec;
|
|
451
548
|
histogram?: IChartHistogramSpec;
|
|
452
549
|
treemap?: IChartTreemapSpec;
|
|
550
|
+
sunburst?: IChartSunburstSpec;
|
|
551
|
+
gauge?: IChartGaugeSpec;
|
|
552
|
+
chord?: IChartChordSpec;
|
|
453
553
|
markLines?: IChartMarkLineSpec[];
|
|
454
554
|
theme?: string;
|
|
455
555
|
/** Persisted absolute series colors. A non-empty value overrides theme colors. */
|
|
456
556
|
palette?: string[];
|
|
457
557
|
}
|
|
558
|
+
/** Absolute Chart position in host coordinates. */
|
|
559
|
+
export interface IChartPosition {
|
|
560
|
+
x: number;
|
|
561
|
+
y: number;
|
|
562
|
+
}
|
|
563
|
+
/** Chart frame size in host coordinates. */
|
|
564
|
+
export interface IChartSize {
|
|
565
|
+
width: number;
|
|
566
|
+
height: number;
|
|
567
|
+
}
|
|
568
|
+
/** Detached information shared by host-specific Chart insertion APIs. */
|
|
569
|
+
export interface IChartInfo<TSource> {
|
|
570
|
+
config: IChartCreateConfig;
|
|
571
|
+
dataSource: TSource;
|
|
572
|
+
position?: IChartPosition;
|
|
573
|
+
size?: IChartSize;
|
|
574
|
+
}
|
|
458
575
|
/** Pending chart edits; `null` is a runtime-only delete marker consumed before persistence. */
|
|
459
576
|
export type ChartPendingConfig = Pick<IChartSemanticConfig, 'type'> & DeepNullish<Omit<IChartSemanticConfig, 'type' | 'series'>> & {
|
|
460
577
|
series?: Array<{
|
|
@@ -472,7 +589,6 @@ export interface IChartSeriesDescription extends IChartSeriesStyleSpec {
|
|
|
472
589
|
export interface IChartCategoryDescription {
|
|
473
590
|
name: string;
|
|
474
591
|
}
|
|
475
|
-
/** Materialized engine semantic data returned explicitly by hosted builders. */
|
|
476
592
|
export interface IChartDescription extends Omit<IChartSemanticConfig, 'autoGradientFill' | 'series'> {
|
|
477
593
|
id: string;
|
|
478
594
|
type: ChartTypeString;
|
|
@@ -1,3 +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
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;
|
|
@@ -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,6 @@ 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
|
|
25
|
+
export declare const clearAllSeriesOverrides: () => import("./chart-config-operation").IChartConfigOperation;
|
|
26
|
+
export declare const setAllSeriesStyle: (style: DeepNullish<IChartSeriesStyleSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
25
27
|
export declare const clearAllSeriesStyle: (target?: ChartAllSeriesStyleTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** Top-level semantic groups accepted by the fluent chart builder. */
|
|
2
|
+
export declare enum ChartConfigGroup {
|
|
3
|
+
AllSeriesStyle = "allSeriesStyle",
|
|
4
|
+
Area = "area",
|
|
5
|
+
AutoGradientFill = "autoGradientFill",
|
|
6
|
+
AxisPointer = "axisPointer",
|
|
7
|
+
Aggregation = "aggregation",
|
|
8
|
+
Appearance = "appearance",
|
|
9
|
+
Candlestick = "candlestick",
|
|
10
|
+
Histogram = "histogram",
|
|
11
|
+
Treemap = "treemap",
|
|
12
|
+
Sunburst = "sunburst",
|
|
13
|
+
Gauge = "gauge",
|
|
14
|
+
Chord = "chord",
|
|
15
|
+
Axes = "axes",
|
|
16
|
+
Bar = "bar",
|
|
17
|
+
Bubble = "bubble",
|
|
18
|
+
Heatmap = "heatmap",
|
|
19
|
+
Funnel = "funnel",
|
|
20
|
+
InvalidValueStrategy = "invalidValueStrategy",
|
|
21
|
+
Legend = "legend",
|
|
22
|
+
Mapping = "mapping",
|
|
23
|
+
MarkLines = "markLines",
|
|
24
|
+
Palette = "palette",
|
|
25
|
+
Pareto = "pareto",
|
|
26
|
+
Pie = "pie",
|
|
27
|
+
PlotArea = "plotArea",
|
|
28
|
+
Radar = "radar",
|
|
29
|
+
Relation = "relation",
|
|
30
|
+
Series = "series",
|
|
31
|
+
Subtitle = "subtitle",
|
|
32
|
+
Theme = "theme",
|
|
33
|
+
Title = "title",
|
|
34
|
+
Type = "type",
|
|
35
|
+
Trendlines = "trendlines",
|
|
36
|
+
WordCloud = "wordCloud",
|
|
37
|
+
Waterfall = "waterfall"
|
|
38
|
+
}
|
|
@@ -1,36 +1,5 @@
|
|
|
1
1
|
import type { ChartPendingConfig } from '../chart-types';
|
|
2
|
-
|
|
3
|
-
export declare enum ChartConfigGroup {
|
|
4
|
-
AllSeriesStyle = "allSeriesStyle",
|
|
5
|
-
Area = "area",
|
|
6
|
-
AutoGradientFill = "autoGradientFill",
|
|
7
|
-
AxisPointer = "axisPointer",
|
|
8
|
-
Aggregation = "aggregation",
|
|
9
|
-
Appearance = "appearance",
|
|
10
|
-
Candlestick = "candlestick",
|
|
11
|
-
Histogram = "histogram",
|
|
12
|
-
Treemap = "treemap",
|
|
13
|
-
Axes = "axes",
|
|
14
|
-
Bar = "bar",
|
|
15
|
-
Heatmap = "heatmap",
|
|
16
|
-
Funnel = "funnel",
|
|
17
|
-
InvalidValueStrategy = "invalidValueStrategy",
|
|
18
|
-
Legend = "legend",
|
|
19
|
-
Mapping = "mapping",
|
|
20
|
-
MarkLines = "markLines",
|
|
21
|
-
Palette = "palette",
|
|
22
|
-
Pareto = "pareto",
|
|
23
|
-
Pie = "pie",
|
|
24
|
-
Radar = "radar",
|
|
25
|
-
Relation = "relation",
|
|
26
|
-
Series = "series",
|
|
27
|
-
Subtitle = "subtitle",
|
|
28
|
-
Theme = "theme",
|
|
29
|
-
Title = "title",
|
|
30
|
-
Trendlines = "trendlines",
|
|
31
|
-
WordCloud = "wordCloud",
|
|
32
|
-
Waterfall = "waterfall"
|
|
33
|
-
}
|
|
2
|
+
import type { ChartConfigGroup } from './chart-config-group';
|
|
34
3
|
export declare enum ChartConfigOperationMode {
|
|
35
4
|
Merge = "merge",
|
|
36
5
|
Replace = "replace"
|
|
@@ -41,4 +10,3 @@ export interface IChartConfigOperation {
|
|
|
41
10
|
readonly patch: ChartPendingConfig;
|
|
42
11
|
}
|
|
43
12
|
export declare function chartConfigOperation<K extends ChartConfigGroup>(group: K, value: ChartPendingConfig[K], mode?: ChartConfigOperationMode): IChartConfigOperation;
|
|
44
|
-
export declare function mergeChartPendingConfig(current: ChartPendingConfig, next: ChartPendingConfig): 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 { ChartGaugeMode } from '../../enum';
|
|
2
|
+
import type { DeepNullish, IChartGaugeAnchorSpec, IChartGaugeAnglesSpec, IChartGaugeAxisLabelSpec, IChartGaugeAxisLineSpec, IChartGaugeAxisTickSpec, IChartGaugeDetailSpec, IChartGaugePointerSpec, IChartGaugeProgressSpec, IChartGaugeRangeSpec, IChartGaugeScaleSpec, IChartGaugeSplitLineSpec, IChartGaugeTitleSpec } from '../../types';
|
|
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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { TreemapParentLabelLayout } from '../../enum';
|
|
2
|
-
import type { IChartTreemapLabelSpec } from '../../types';
|
|
2
|
+
import type { DeepNullish, IChartTreemapLabelSpec } from '../../types';
|
|
3
3
|
export declare const setTreemapHierarchyFields: (indexes: readonly number[]) => import("./chart-config-operation").IChartConfigOperation;
|
|
4
4
|
export declare const setTreemapValueField: (index: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
5
|
export declare const setTreemapParentLabelLayout: (layout: TreemapParentLabelLayout) => import("./chart-config-operation").IChartConfigOperation;
|
|
6
6
|
export declare const resetTreemapParentLabelLayout: () => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
-
export declare const setTreemapLabel: (label: IChartTreemapLabelSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const setTreemapLabel: (label: DeepNullish<IChartTreemapLabelSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
8
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,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { IChartDataAggregation } from '../../chart-data-aggregation';
|
|
2
|
+
import type { ChartStyle, IChartContext, IChartDataSeries } from '../../types';
|
|
3
|
+
import type { ChartPendingConfig, IChartCreateConfig, IChartDescription } from '../chart-types';
|
|
3
4
|
import { ChartTypeBits } from '../../enum';
|
|
4
5
|
interface IChartConfigConversionOptions {
|
|
5
6
|
series?: IChartDataSeries[];
|
|
@@ -8,22 +9,36 @@ interface IChartConfigConversionOptions {
|
|
|
8
9
|
currentContext?: IChartContext;
|
|
9
10
|
currentDataAggregation?: IChartDataAggregation;
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
-
interface IChartModelConfigPendingUpdate {
|
|
12
|
+
interface IChartModelConfigUpdate {
|
|
13
13
|
chartType?: ChartTypeBits;
|
|
14
14
|
style?: ChartStyle;
|
|
15
|
-
context?: ChartContextPendingPatch;
|
|
16
|
-
dataAggregation?: Partial<IChartDataAggregation>;
|
|
17
|
-
}
|
|
18
|
-
interface IChartModelConfigUpdate extends Omit<IChartModelConfigPendingUpdate, 'context'> {
|
|
19
15
|
context?: IChartContext;
|
|
16
|
+
dataAggregation?: Partial<IChartDataAggregation>;
|
|
20
17
|
}
|
|
21
|
-
export interface
|
|
18
|
+
export interface IResolvedChartModelConfigUpdate {
|
|
22
19
|
chartType?: ChartTypeBits;
|
|
23
20
|
style?: ChartStyle;
|
|
24
21
|
context?: IChartContext;
|
|
25
22
|
dataAggregation?: Partial<IChartDataAggregation>;
|
|
26
23
|
}
|
|
27
24
|
export declare function toChartModelConfig(config: ChartPendingConfig | IChartDescription, options?: IChartConfigConversionOptions): IChartModelConfigUpdate;
|
|
28
|
-
|
|
25
|
+
/** Replaces the complete public semantic configuration while preserving engine-owned style fields. */
|
|
26
|
+
export declare function toChartModelConfigReplacement(config: IChartCreateConfig, options?: IChartConfigConversionOptions): Required<IResolvedChartModelConfigUpdate>;
|
|
27
|
+
interface IChartModelApplicationState {
|
|
28
|
+
chartType?: ChartTypeBits;
|
|
29
|
+
chartTypeChanged?: boolean;
|
|
30
|
+
style?: ChartStyle;
|
|
31
|
+
styleChanged?: boolean;
|
|
32
|
+
context?: IChartContext;
|
|
33
|
+
contextChanged?: boolean;
|
|
34
|
+
dataAggregation?: IChartDataAggregation;
|
|
35
|
+
dataAggregationChanged?: boolean;
|
|
36
|
+
series?: IChartDataSeries[];
|
|
37
|
+
}
|
|
38
|
+
interface IChartPendingApplicationState {
|
|
39
|
+
description: IChartDescription;
|
|
40
|
+
model?: IChartModelApplicationState;
|
|
41
|
+
}
|
|
42
|
+
export declare const chartPendingPatchInterpreter: import("../internal/patch-interpreter").IPatchInterpreter<IChartPendingApplicationState, ChartPendingConfig>;
|
|
43
|
+
export declare function resolveChartModelConfigUpdate(configChange: ChartPendingConfig, options?: IChartConfigConversionOptions): IResolvedChartModelConfigUpdate;
|
|
29
44
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DeepNullish, IChartContext } from '../../types';
|
|
2
|
-
/** Validates
|
|
2
|
+
/** Validates a complete persisted context and returns the canonical snapshot fields only. */
|
|
3
3
|
export declare function canonicalizeChartContext(value: unknown): IChartContext;
|
|
4
4
|
/** Internal Pending boundary used before a command payload is created. */
|
|
5
5
|
export declare function applyPendingChartContext(current: IChartContext | undefined, value: DeepNullish<IChartContext>): IChartContext;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DeepReadonly } from '@univerjs/core';
|
|
2
|
+
import type { ChartPendingConfig, IChartCreateConfig, IChartDescription } from '../chart-types';
|
|
3
|
+
/** Converts an effective builder description into detached creation configuration. */
|
|
4
|
+
export declare function toChartCreateConfig<TDescription extends IChartDescription>(description: DeepReadonly<TDescription>, pending: DeepReadonly<ChartPendingConfig>): IChartCreateConfig;
|
|
5
|
+
/** Converts a complete live description into a reusable creation configuration. */
|
|
6
|
+
export declare function toChartCreateConfigSnapshot<TDescription extends IChartDescription>(description: DeepReadonly<TDescription>, pending?: DeepReadonly<ChartPendingConfig>): IChartCreateConfig;
|
|
@@ -3,6 +3,7 @@ export declare enum ChartStyleField {
|
|
|
3
3
|
AllSeriesStyle = "allSeriesStyle",
|
|
4
4
|
Area = "area",
|
|
5
5
|
Bar = "bar",
|
|
6
|
+
Bubble = "bubble",
|
|
6
7
|
BackgroundColor = "backgroundColor",
|
|
7
8
|
BorderColor = "borderColor",
|
|
8
9
|
BorderWidth = "borderWidth",
|
|
@@ -11,15 +12,19 @@ export declare enum ChartStyleField {
|
|
|
11
12
|
FontFamily = "fontFamily",
|
|
12
13
|
FontSize = "fontSize",
|
|
13
14
|
Funnel = "funnel",
|
|
15
|
+
Gauge = "gauge",
|
|
16
|
+
Chord = "chord",
|
|
14
17
|
GradientFill = "gradientFill",
|
|
15
18
|
Heatmap = "heatmap",
|
|
16
19
|
Histogram = "histogram",
|
|
20
|
+
Sunburst = "sunburst",
|
|
17
21
|
Treemap = "treemap",
|
|
18
22
|
InvalidValueType = "invalidValueType",
|
|
19
23
|
MarkLines = "markLines",
|
|
20
24
|
Palette = "palette",
|
|
21
25
|
Pareto = "pareto",
|
|
22
26
|
Pie = "pie",
|
|
27
|
+
PlotArea = "plotArea",
|
|
23
28
|
Radar = "radar",
|
|
24
29
|
Relation = "relation",
|
|
25
30
|
RightYAxis = "rightYAxis",
|
|
@@ -33,18 +38,28 @@ export declare enum ChartStyleField {
|
|
|
33
38
|
YAxis = "yAxis"
|
|
34
39
|
}
|
|
35
40
|
export declare enum ChartContextField {
|
|
36
|
-
|
|
37
|
-
BubbleSizeIndex = "bubbleSizeIndex",
|
|
38
|
-
CategoryIndex = "categoryIndex",
|
|
39
|
-
Candlestick = "candlestick",
|
|
41
|
+
CategoryIndexes = "categoryIndexes",
|
|
40
42
|
Histogram = "histogram",
|
|
43
|
+
SeriesIndexes = "seriesIndexes",
|
|
44
|
+
UseDateAxis = "useDateAxis"
|
|
45
|
+
}
|
|
46
|
+
export declare enum ChartMappingField {
|
|
47
|
+
Bubble = "bubble",
|
|
48
|
+
Candlestick = "candlestick",
|
|
49
|
+
CategoryIndex = "categoryIndex",
|
|
50
|
+
Chord = "chord",
|
|
51
|
+
Edge = "edge",
|
|
41
52
|
HierarchyIndexes = "hierarchyIndexes",
|
|
42
|
-
|
|
43
|
-
ScatterXIndex = "scatterXIndex",
|
|
44
|
-
ScatterYIndex = "scatterYIndex",
|
|
53
|
+
Scatter = "scatter",
|
|
45
54
|
SeriesIndexes = "seriesIndexes",
|
|
46
55
|
UseDateAxis = "useDateAxis"
|
|
47
56
|
}
|
|
57
|
+
export declare enum ChartHistogramField {
|
|
58
|
+
BinGap = "binGap",
|
|
59
|
+
Binning = "binning",
|
|
60
|
+
OverflowThreshold = "overflowThreshold",
|
|
61
|
+
UnderflowThreshold = "underflowThreshold"
|
|
62
|
+
}
|
|
48
63
|
export declare enum ChartDataAggregationField {
|
|
49
64
|
Aggregate = "aggregate",
|
|
50
65
|
TopN = "topN"
|
|
@@ -55,8 +70,10 @@ export declare enum ChartAxisTitleField {
|
|
|
55
70
|
YAxisTitle = "yAxisTitle"
|
|
56
71
|
}
|
|
57
72
|
export declare enum ChartAxisStyleField {
|
|
73
|
+
AxisTitleAlignment = "label.axisTitleAlign",
|
|
58
74
|
Format = "format",
|
|
59
75
|
GridLineColor = "gridLine.color",
|
|
76
|
+
GridLineDashType = "gridLine.dashType",
|
|
60
77
|
GridLineVisible = "gridLine.visible",
|
|
61
78
|
GridLineWidth = "gridLine.width",
|
|
62
79
|
LabelColor = "label.color",
|
|
@@ -105,6 +122,7 @@ export declare enum ChartSeriesStyleField {
|
|
|
105
122
|
LabelContentType = "label.contentType",
|
|
106
123
|
LabelFontSize = "label.fontSize",
|
|
107
124
|
LabelFamily = "label.family",
|
|
125
|
+
LabelFormat = "label.format",
|
|
108
126
|
LabelItalic = "label.italic",
|
|
109
127
|
LabelPosition = "label.position",
|
|
110
128
|
LabelVisible = "label.visible",
|