@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,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChartDirection, ChartRuntimeStyle } from '../../../types';
|
|
2
|
+
export declare const DEFAULT_CHART_DIRECTION: ChartDirection;
|
|
2
3
|
export declare const EChartRenderEngineName = "EChartRenderEngine";
|
|
3
4
|
export declare const defaultChartWidth = 468;
|
|
4
5
|
export declare const defaultChartHeight = 369;
|
|
@@ -6,7 +7,7 @@ export declare const LegendPadding = 15;
|
|
|
6
7
|
export declare const TitleOrLegendPadding = 12;
|
|
7
8
|
export declare const TitleDefaultStartPosition = 8;
|
|
8
9
|
export declare const DEFAULT_CHART_LAYOUT_PADDING = 14;
|
|
9
|
-
export declare function getChartLayoutPadding(style
|
|
10
|
+
export declare function getChartLayoutPadding(style: ChartRuntimeStyle): number;
|
|
10
11
|
export declare const TitleLineHeightBase = 1.2;
|
|
11
12
|
export declare const AxisLabelMaxPercent = 0.15;
|
|
12
13
|
export declare const defaultBubbleSize = 0.12;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Ratio of each category band reserved as the default separator between Histogram bins. */
|
|
2
|
+
export declare const DEFAULT_HISTOGRAM_BIN_GAP = 0.007;
|
|
3
|
+
/** Largest supported ratio of a category band reserved between Histogram bins. */
|
|
4
|
+
export declare const MAX_HISTOGRAM_BIN_GAP = 0.9;
|
|
5
|
+
/** Initial authored bin count when switching Histogram binning from Auto to Count. */
|
|
6
|
+
export declare const DEFAULT_HISTOGRAM_BIN_COUNT = 10;
|
|
7
|
+
/** Initial authored bin width when switching Histogram binning from Auto to Width. */
|
|
8
|
+
export declare const DEFAULT_HISTOGRAM_BIN_WIDTH = 1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TREEMAP_ECHARTS_SERIES_TYPE = "treemap";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IEchartTheme, IEchartThemeContent } from './types';
|
|
2
|
+
export type axesType = 'category' | 'value' | 'time' | 'log' | 'all' | undefined;
|
|
3
|
+
export declare function getThemeAxesByType(themeInfo: IEchartTheme, axesType: axesType): import("./types").IEchartThemeAxisConfig | undefined;
|
|
4
|
+
export declare function getThemeProps<K extends keyof IEchartThemeContent>(themeInfo: IEchartTheme | undefined, key: K): IEchartThemeContent[K];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { IEchartTheme } from './constants/build-in-theme';
|
|
1
|
+
import type { IEchartTheme } from './build-in-theme/types';
|
|
3
2
|
import { Disposable, ThemeService } from '@univerjs/core';
|
|
4
3
|
import { ICanvasColorService } from '@univerjs/engine-render';
|
|
5
4
|
export interface IChartTheme {
|
|
@@ -37,4 +36,3 @@ export declare class ChartThemeService extends Disposable {
|
|
|
37
36
|
getDefaultTheme(): IEchartTheme;
|
|
38
37
|
dispose(): void;
|
|
39
38
|
}
|
|
40
|
-
export declare function registerChartThemeService(injector: Injector): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IUniverChartConfig } from './config/config';
|
|
2
|
+
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
|
+
/** Registers the shared chart rendering runtime used by every chart host. */
|
|
4
|
+
export declare class UniverChartPlugin extends Plugin {
|
|
5
|
+
private readonly _config;
|
|
6
|
+
protected readonly _injector: Injector;
|
|
7
|
+
private readonly _configService;
|
|
8
|
+
static type: UniverInstanceType;
|
|
9
|
+
static pluginName: string;
|
|
10
|
+
static packageName: string;
|
|
11
|
+
static version: string;
|
|
12
|
+
private readonly _resolvedConfig;
|
|
13
|
+
constructor(_config: IUniverChartConfig | undefined, _injector: Injector, _configService: IConfigService);
|
|
14
|
+
onStarting(): void;
|
|
15
|
+
}
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { IDisposable, Nullable } from '@univerjs/core';
|
|
2
|
+
import type { BarSeriesOption, EChartsOption } from 'echarts';
|
|
2
3
|
import type { Observable } from 'rxjs';
|
|
3
4
|
import type { ChartColor, IChartLinearGradient } from './chart-builder/chart-color';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
5
|
+
import type { IChartPieCompositeSpec, PieCompositeMarkRole, PieCompositePlot } from './chart-builder/chart-types';
|
|
6
|
+
import type { IChartDataAggregation } from './chart-data-aggregation';
|
|
7
|
+
import type { AreaLineStyle, AxisAlignEnum, AxisValueType, BarShape, CategoryType, ChartAxisDimension, ChartBorderDashType, ChartChordFocusMode, ChartChordLabelPosition, ChartChordRibbonColorMode, ChartGaugeMode, ChartGaugePointerShape, ChartHistogramBinKind, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartSourceDataTypeEnum, ChartSunburstLabelPosition, ChartTrendlineType, ChartTypeBits, ChartWaterfallPointRole, DataOrientation, HistogramBinningMode, InvalidValueType, IRuntimeAxisPosition, IRuntimeAxisPriority, LabelAlignEnum, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, TreemapParentLabelLayout, WaterfallSeriesTypeEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from './enum';
|
|
8
|
+
import type { ICartesianPointData } from './models/chart-data/internal/cartesian-point-data';
|
|
9
|
+
import type { IChartLocaleTexts } from './models/common/chart-locale-texts';
|
|
10
|
+
import type { IEchartTheme } from './models/common/theme/build-in-theme/types';
|
|
9
11
|
import type { IWordCloudRenderConfig } from './wordcloud-chart/word-cloud-render-config';
|
|
10
12
|
export type DeepPartial<T> = T extends IChartLinearGradient ? T : T extends Record<string, any> ? T extends any[] ? T : {
|
|
11
13
|
[key in keyof T]+?: DeepPartial<T[key]>;
|
|
@@ -99,8 +101,12 @@ export interface IChartHistogramStyleSpec {
|
|
|
99
101
|
/** Public Histogram semantic configuration. */
|
|
100
102
|
export interface IChartHistogramSpec extends IChartHistogramDataSpec, IChartHistogramStyleSpec {
|
|
101
103
|
}
|
|
104
|
+
/** Shared authored number format for chart labels that display a numeric Value fragment. */
|
|
105
|
+
export interface IChartValueLabelSpec {
|
|
106
|
+
format?: string;
|
|
107
|
+
}
|
|
102
108
|
/** Persisted leaf-label style supported by Treemap charts. */
|
|
103
|
-
export interface IChartTreemapLabelSpec {
|
|
109
|
+
export interface IChartTreemapLabelSpec extends IChartValueLabelSpec {
|
|
104
110
|
visible?: boolean;
|
|
105
111
|
contentType?: LabelContentType;
|
|
106
112
|
color?: string;
|
|
@@ -114,6 +120,199 @@ export interface IChartTreemapSpec {
|
|
|
114
120
|
parentLabelLayout?: TreemapParentLabelLayout;
|
|
115
121
|
label?: IChartTreemapLabelSpec;
|
|
116
122
|
}
|
|
123
|
+
/** Persisted semantic label style supported by Sunburst charts. */
|
|
124
|
+
export interface IChartSunburstLabelSpec extends IChartValueLabelSpec {
|
|
125
|
+
visible?: boolean;
|
|
126
|
+
contentType?: LabelContentType;
|
|
127
|
+
position?: ChartSunburstLabelPosition;
|
|
128
|
+
color?: string;
|
|
129
|
+
fontSize?: number;
|
|
130
|
+
bold?: boolean;
|
|
131
|
+
italic?: boolean;
|
|
132
|
+
family?: string;
|
|
133
|
+
}
|
|
134
|
+
/** Persisted style for the aggregate value rendered in the Sunburst center. */
|
|
135
|
+
export interface IChartSunburstCenterLabelSpec extends IChartValueLabelSpec {
|
|
136
|
+
visible?: boolean;
|
|
137
|
+
color?: string;
|
|
138
|
+
fontSize?: number;
|
|
139
|
+
bold?: boolean;
|
|
140
|
+
italic?: boolean;
|
|
141
|
+
family?: string;
|
|
142
|
+
}
|
|
143
|
+
/** Public Sunburst semantic style configuration. */
|
|
144
|
+
export interface IChartSunburstSpec {
|
|
145
|
+
centerLabel?: IChartSunburstCenterLabelSpec;
|
|
146
|
+
label?: IChartSunburstLabelSpec;
|
|
147
|
+
}
|
|
148
|
+
export interface IChartGaugeFontSpec {
|
|
149
|
+
color?: string;
|
|
150
|
+
fontSize?: number;
|
|
151
|
+
bold?: boolean;
|
|
152
|
+
italic?: boolean;
|
|
153
|
+
family?: string;
|
|
154
|
+
}
|
|
155
|
+
/** Values are semantic degrees; ratios are represented from 0 through 1. */
|
|
156
|
+
export interface IChartGaugeScaleSpec {
|
|
157
|
+
min?: number;
|
|
158
|
+
max?: number;
|
|
159
|
+
splitNumber?: number;
|
|
160
|
+
}
|
|
161
|
+
export interface IChartGaugeAnglesSpec {
|
|
162
|
+
startAngle?: number;
|
|
163
|
+
endAngle?: number;
|
|
164
|
+
}
|
|
165
|
+
export interface IChartGaugeRangeSpec {
|
|
166
|
+
from: number;
|
|
167
|
+
to: number;
|
|
168
|
+
color: string;
|
|
169
|
+
}
|
|
170
|
+
export interface IChartGaugeAxisLineSpec {
|
|
171
|
+
visible?: boolean;
|
|
172
|
+
width?: number;
|
|
173
|
+
color?: string;
|
|
174
|
+
}
|
|
175
|
+
export interface IChartGaugeAxisTickSpec {
|
|
176
|
+
visible?: boolean;
|
|
177
|
+
splitNumber?: number;
|
|
178
|
+
length?: number;
|
|
179
|
+
width?: number;
|
|
180
|
+
color?: string;
|
|
181
|
+
}
|
|
182
|
+
export interface IChartGaugeSplitLineSpec {
|
|
183
|
+
visible?: boolean;
|
|
184
|
+
length?: number;
|
|
185
|
+
width?: number;
|
|
186
|
+
color?: string;
|
|
187
|
+
}
|
|
188
|
+
export interface IChartGaugeAxisLabelSpec extends IChartGaugeFontSpec, IChartValueLabelSpec {
|
|
189
|
+
visible?: boolean;
|
|
190
|
+
distance?: number;
|
|
191
|
+
}
|
|
192
|
+
export interface IChartGaugePointerSpec {
|
|
193
|
+
visible?: boolean;
|
|
194
|
+
length?: number;
|
|
195
|
+
width?: number;
|
|
196
|
+
color?: string;
|
|
197
|
+
shape?: ChartGaugePointerShape;
|
|
198
|
+
}
|
|
199
|
+
export interface IChartGaugeAnchorSpec {
|
|
200
|
+
visible?: boolean;
|
|
201
|
+
size?: number;
|
|
202
|
+
color?: string;
|
|
203
|
+
borderColor?: string;
|
|
204
|
+
borderWidth?: number;
|
|
205
|
+
}
|
|
206
|
+
export interface IChartGaugeProgressSpec {
|
|
207
|
+
visible?: boolean;
|
|
208
|
+
width?: number;
|
|
209
|
+
color?: string;
|
|
210
|
+
rounded?: boolean;
|
|
211
|
+
}
|
|
212
|
+
export interface IChartGaugeTitleSpec extends IChartGaugeFontSpec {
|
|
213
|
+
visible?: boolean;
|
|
214
|
+
offsetY?: number;
|
|
215
|
+
}
|
|
216
|
+
export interface IChartGaugeDetailSpec extends IChartGaugeFontSpec, IChartValueLabelSpec {
|
|
217
|
+
visible?: boolean;
|
|
218
|
+
offsetY?: number;
|
|
219
|
+
}
|
|
220
|
+
/** Persisted renderer-independent Gauge appearance shared by every rendered gauge item. */
|
|
221
|
+
export interface IChartGaugeSpec {
|
|
222
|
+
mode?: ChartGaugeMode;
|
|
223
|
+
scale?: IChartGaugeScaleSpec;
|
|
224
|
+
angles?: IChartGaugeAnglesSpec;
|
|
225
|
+
ranges?: IChartGaugeRangeSpec[];
|
|
226
|
+
axisLine?: IChartGaugeAxisLineSpec;
|
|
227
|
+
axisTick?: IChartGaugeAxisTickSpec;
|
|
228
|
+
splitLine?: IChartGaugeSplitLineSpec;
|
|
229
|
+
axisLabel?: IChartGaugeAxisLabelSpec;
|
|
230
|
+
pointer?: IChartGaugePointerSpec;
|
|
231
|
+
anchor?: IChartGaugeAnchorSpec;
|
|
232
|
+
progress?: IChartGaugeProgressSpec;
|
|
233
|
+
title?: IChartGaugeTitleSpec;
|
|
234
|
+
detail?: IChartGaugeDetailSpec;
|
|
235
|
+
}
|
|
236
|
+
export interface IChartGaugeItem {
|
|
237
|
+
id: string;
|
|
238
|
+
name: string;
|
|
239
|
+
value: number;
|
|
240
|
+
formattedValue: string;
|
|
241
|
+
}
|
|
242
|
+
export interface IChartGaugeData {
|
|
243
|
+
items: IChartGaugeItem[];
|
|
244
|
+
diagnostic?: string;
|
|
245
|
+
}
|
|
246
|
+
/** Persisted Source/Target/optional-Value roles for an undirected Chord edge list. */
|
|
247
|
+
export interface IChartChordMappingSpec {
|
|
248
|
+
sourceIndex: number;
|
|
249
|
+
targetIndex: number;
|
|
250
|
+
valueIndex?: number;
|
|
251
|
+
}
|
|
252
|
+
export interface IChartChordLayoutSpec {
|
|
253
|
+
startAngle?: number;
|
|
254
|
+
clockwise?: boolean;
|
|
255
|
+
padAngle?: number;
|
|
256
|
+
minAngle?: number;
|
|
257
|
+
innerRadiusRatio?: number;
|
|
258
|
+
outerRadiusRatio?: number;
|
|
259
|
+
}
|
|
260
|
+
export interface IChartChordNodeStyleSpec {
|
|
261
|
+
color?: string;
|
|
262
|
+
opacity?: number;
|
|
263
|
+
borderColor?: string;
|
|
264
|
+
borderWidth?: number;
|
|
265
|
+
borderType?: ChartBorderDashType;
|
|
266
|
+
}
|
|
267
|
+
export interface IChartChordLabelSpec {
|
|
268
|
+
visible?: boolean;
|
|
269
|
+
position?: ChartChordLabelPosition;
|
|
270
|
+
rotation?: number;
|
|
271
|
+
distance?: number;
|
|
272
|
+
color?: string;
|
|
273
|
+
fontSize?: number;
|
|
274
|
+
bold?: boolean;
|
|
275
|
+
italic?: boolean;
|
|
276
|
+
family?: string;
|
|
277
|
+
}
|
|
278
|
+
export interface IChartChordRibbonStyleSpec {
|
|
279
|
+
color?: ChartChordRibbonColorMode;
|
|
280
|
+
opacity?: number;
|
|
281
|
+
width?: number;
|
|
282
|
+
type?: ChartBorderDashType;
|
|
283
|
+
}
|
|
284
|
+
export interface IChartChordEmphasisSpec {
|
|
285
|
+
focus?: ChartChordFocusMode;
|
|
286
|
+
}
|
|
287
|
+
export interface IChartChordSpec {
|
|
288
|
+
layout?: IChartChordLayoutSpec;
|
|
289
|
+
node?: IChartChordNodeStyleSpec;
|
|
290
|
+
label?: IChartChordLabelSpec;
|
|
291
|
+
ribbon?: IChartChordRibbonStyleSpec;
|
|
292
|
+
emphasis?: IChartChordEmphasisSpec;
|
|
293
|
+
}
|
|
294
|
+
export interface IChartChordNode {
|
|
295
|
+
id: string;
|
|
296
|
+
name: string;
|
|
297
|
+
value: number;
|
|
298
|
+
formattedValue: string;
|
|
299
|
+
}
|
|
300
|
+
export interface IChartChordLink {
|
|
301
|
+
id: string;
|
|
302
|
+
endpointAId: string;
|
|
303
|
+
endpointBId: string;
|
|
304
|
+
endpointAName: string;
|
|
305
|
+
endpointBName: string;
|
|
306
|
+
value: number;
|
|
307
|
+
formattedValue: string;
|
|
308
|
+
}
|
|
309
|
+
export interface IChartChordData {
|
|
310
|
+
valueFieldName?: string;
|
|
311
|
+
weightMode: 'value' | 'count';
|
|
312
|
+
nodes: IChartChordNode[];
|
|
313
|
+
links: IChartChordLink[];
|
|
314
|
+
diagnostic?: string;
|
|
315
|
+
}
|
|
117
316
|
/** Runtime-only renderer-independent Treemap node. */
|
|
118
317
|
export interface IChartTreemapNode {
|
|
119
318
|
id: string;
|
|
@@ -121,6 +320,8 @@ export interface IChartTreemapNode {
|
|
|
121
320
|
path: string[];
|
|
122
321
|
value: number;
|
|
123
322
|
selfValue: number;
|
|
323
|
+
formattedValue?: string;
|
|
324
|
+
formattedSelfValue?: string;
|
|
124
325
|
children?: IChartTreemapNode[];
|
|
125
326
|
}
|
|
126
327
|
/** Runtime-only Treemap data prepared from the canonical flat mapping. */
|
|
@@ -131,12 +332,30 @@ export interface IChartTreemapData {
|
|
|
131
332
|
paletteOrder?: string[];
|
|
132
333
|
diagnostic?: string;
|
|
133
334
|
}
|
|
335
|
+
/** Runtime-only renderer-independent Sunburst node. */
|
|
336
|
+
export interface IChartSunburstNode {
|
|
337
|
+
id: string;
|
|
338
|
+
name: string;
|
|
339
|
+
path: string[];
|
|
340
|
+
value: number;
|
|
341
|
+
selfValue: number;
|
|
342
|
+
formattedValue?: string;
|
|
343
|
+
formattedSelfValue?: string;
|
|
344
|
+
children?: IChartSunburstNode[];
|
|
345
|
+
}
|
|
346
|
+
/** Runtime-only Sunburst data prepared from the canonical flat mapping. */
|
|
347
|
+
export interface IChartSunburstData {
|
|
348
|
+
valueFieldName: string;
|
|
349
|
+
nodes: IChartSunburstNode[];
|
|
350
|
+
/** Runtime-only top-level first-source order used for stable palette assignment. */
|
|
351
|
+
paletteOrder?: string[];
|
|
352
|
+
diagnostic?: string;
|
|
353
|
+
}
|
|
134
354
|
export interface IChartContext {
|
|
135
355
|
headers?: string[];
|
|
136
356
|
categoryType?: CategoryType;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
hierarchyIndexes?: number[];
|
|
357
|
+
/** Ordered selected Label field indexes. */
|
|
358
|
+
categoryIndexes?: number[];
|
|
140
359
|
/**
|
|
141
360
|
* the flag to indicate whether the chart use date axis, only all category data is date type, the chart will use date axis, if there are some string type data, the chart will use category axis even the flag is true.
|
|
142
361
|
*/
|
|
@@ -144,16 +363,6 @@ export interface IChartContext {
|
|
|
144
363
|
categoryResourceIndexes?: number[];
|
|
145
364
|
seriesIndexes?: number[];
|
|
146
365
|
seriesResourceIndexes?: number[];
|
|
147
|
-
transform?: {
|
|
148
|
-
categoryIndex?: number;
|
|
149
|
-
seriesIndexes?: number[];
|
|
150
|
-
};
|
|
151
|
-
scatterXIndex?: number;
|
|
152
|
-
scatterYIndex?: number;
|
|
153
|
-
scatterLabelIndex?: number;
|
|
154
|
-
bubbleSizeIndex?: number;
|
|
155
|
-
bubbleSeriesIndex?: number;
|
|
156
|
-
candlestick?: IChartCandlestickMappingSpec;
|
|
157
366
|
histogram?: IChartHistogramDataSpec;
|
|
158
367
|
}
|
|
159
368
|
export interface IRelationNodes {
|
|
@@ -185,10 +394,15 @@ export interface IChartData {
|
|
|
185
394
|
candlestickData?: IChartCandlestickData;
|
|
186
395
|
histogramData?: IChartHistogramData;
|
|
187
396
|
treemapData?: IChartTreemapData;
|
|
397
|
+
sunburstData?: IChartSunburstData;
|
|
398
|
+
gaugeData?: IChartGaugeData;
|
|
399
|
+
chordData?: IChartChordData;
|
|
400
|
+
fieldDiagnostic?: import('./models/common/chart-field-diagnostic').IChartFieldDiagnostic;
|
|
188
401
|
heatmapData?: {
|
|
189
402
|
xData: string[];
|
|
190
403
|
yData: string[];
|
|
191
404
|
values: number[][];
|
|
405
|
+
formattedValues: string[][];
|
|
192
406
|
isValidateHeatmapSource: boolean;
|
|
193
407
|
};
|
|
194
408
|
relationData?: {
|
|
@@ -276,6 +490,8 @@ export interface IChartRuntimeContext {
|
|
|
276
490
|
axes: IRuntimeAxis[];
|
|
277
491
|
themeInfo: IEchartTheme;
|
|
278
492
|
wordCloudRenderConfig?: IWordCloudRenderConfig;
|
|
493
|
+
/** Runtime-only host policy for rendering a chart watermark. */
|
|
494
|
+
addWatermark?: boolean;
|
|
279
495
|
/** Runtime-only extra inset reserved by host adapters around chart content. */
|
|
280
496
|
layoutInset?: number;
|
|
281
497
|
/**
|
|
@@ -308,6 +524,13 @@ export interface ILabelStyle {
|
|
|
308
524
|
showMinLabel?: boolean;
|
|
309
525
|
rotate?: number;
|
|
310
526
|
}
|
|
527
|
+
export interface IChartTitleStyle extends Omit<ILabelStyle, 'visible'> {
|
|
528
|
+
/** PowerPoint manual title anchor, as chart-relative edge coordinates. */
|
|
529
|
+
manualLayout?: {
|
|
530
|
+
left: number;
|
|
531
|
+
top: number;
|
|
532
|
+
};
|
|
533
|
+
}
|
|
311
534
|
export interface ILegendStyle {
|
|
312
535
|
position?: LegendPositionEnum;
|
|
313
536
|
label?: Omit<ILabelStyle, 'visible' | 'align' | 'content'>;
|
|
@@ -319,6 +542,7 @@ export interface IGridLineStyle {
|
|
|
319
542
|
visible: boolean;
|
|
320
543
|
color: string;
|
|
321
544
|
width: number;
|
|
545
|
+
dashType?: ChartBorderDashType;
|
|
322
546
|
}
|
|
323
547
|
export interface IAxisOptions {
|
|
324
548
|
lineVisible: boolean;
|
|
@@ -340,10 +564,14 @@ export interface IAxisOptions {
|
|
|
340
564
|
export interface ISeriesLabelStyle extends ILabelStyle {
|
|
341
565
|
contentType: number;
|
|
342
566
|
position: SeriesLabelPosition;
|
|
567
|
+
format?: string;
|
|
568
|
+
/** Per-category text imported from OOXML data-label ranges. */
|
|
569
|
+
customValues?: Record<number, string>;
|
|
343
570
|
}
|
|
344
571
|
export interface IPieLabelStyle extends Omit<ILabelStyle, 'align' | 'content'> {
|
|
345
572
|
contentType: number;
|
|
346
573
|
position: PieLabelPosition;
|
|
574
|
+
format?: string;
|
|
347
575
|
}
|
|
348
576
|
export interface IPointStyle {
|
|
349
577
|
shape: LinePointShape;
|
|
@@ -440,6 +668,10 @@ export type IChartMarkLine = {
|
|
|
440
668
|
value: number;
|
|
441
669
|
});
|
|
442
670
|
export interface IBarStyle {
|
|
671
|
+
/** Gap between category clusters, as a percentage of one bar width. */
|
|
672
|
+
gapWidth?: number;
|
|
673
|
+
/** Series overlap from -100 (separated) through 100 (fully overlapped). */
|
|
674
|
+
overlap?: number;
|
|
443
675
|
/** Exchange metadata. Renderers without 3D support may ignore these fields. */
|
|
444
676
|
is3D: boolean;
|
|
445
677
|
shape: BarShape;
|
|
@@ -448,10 +680,20 @@ export interface IBarStyle {
|
|
|
448
680
|
/** OOXML view rotation around the vertical axis, in degrees. */
|
|
449
681
|
rotY: number;
|
|
450
682
|
}
|
|
683
|
+
export interface IChartBubbleStyle {
|
|
684
|
+
/** Maximum bubble size as an OOXML-compatible percentage. */
|
|
685
|
+
scale?: number;
|
|
686
|
+
/** Whether the authored bubble value represents its area or width. */
|
|
687
|
+
sizeRepresents?: 'area' | 'width';
|
|
688
|
+
}
|
|
689
|
+
/** Manual inner plot rectangle, normalized against the whole chart frame. */
|
|
690
|
+
export interface IChartPlotArea {
|
|
691
|
+
left: number;
|
|
692
|
+
top: number;
|
|
693
|
+
width: number;
|
|
694
|
+
height: number;
|
|
695
|
+
}
|
|
451
696
|
export interface IChartStyle {
|
|
452
|
-
runtime: IChartRuntimeContext;
|
|
453
|
-
/** Runtime-only locale direction. It must not be persisted in chart snapshots. */
|
|
454
|
-
direction: ChartDirection;
|
|
455
697
|
width: number;
|
|
456
698
|
height: number;
|
|
457
699
|
theme: string;
|
|
@@ -466,9 +708,11 @@ export interface IChartStyle {
|
|
|
466
708
|
fontFamily: string;
|
|
467
709
|
borderColor: Nullable<string>;
|
|
468
710
|
borderWidth: number;
|
|
711
|
+
/** Omission keeps renderer-owned automatic layout. */
|
|
712
|
+
plotArea?: IChartPlotArea;
|
|
469
713
|
titles: {
|
|
470
|
-
title:
|
|
471
|
-
subtitle:
|
|
714
|
+
title: IChartTitleStyle;
|
|
715
|
+
subtitle: IChartTitleStyle;
|
|
472
716
|
xAxisTitle: Omit<ILabelStyle, 'visible'>;
|
|
473
717
|
/** Primary vertical axis title. RTL may render it on the physical right, but it is still persisted here. */
|
|
474
718
|
yAxisTitle: Omit<ILabelStyle, 'visible'>;
|
|
@@ -487,8 +731,12 @@ export interface IChartStyle {
|
|
|
487
731
|
[id: string]: ISeriesStyle;
|
|
488
732
|
};
|
|
489
733
|
bar: IBarStyle;
|
|
734
|
+
bubble: IChartBubbleStyle;
|
|
490
735
|
trendlines: ITrendLine[];
|
|
491
736
|
pie: {
|
|
737
|
+
composite?: IChartPieCompositeSpec;
|
|
738
|
+
/** Clockwise degrees from 12 o'clock, matching the authored chart semantic. */
|
|
739
|
+
startAngle?: number;
|
|
492
740
|
doughnutHole: Nullable<number>;
|
|
493
741
|
/** Slice offset as a ratio of the pie radius. */
|
|
494
742
|
explosion?: number;
|
|
@@ -501,8 +749,6 @@ export interface IChartStyle {
|
|
|
501
749
|
rosePie: boolean;
|
|
502
750
|
showLabelLine: boolean;
|
|
503
751
|
valueScale: number;
|
|
504
|
-
valueSuffix: string;
|
|
505
|
-
digitalFixed: number;
|
|
506
752
|
/** Persisted sparse slice overrides. Slice data remains owned by the chart data source. */
|
|
507
753
|
sliceStyles: {
|
|
508
754
|
[index: number]: {
|
|
@@ -565,6 +811,9 @@ export interface IChartStyle {
|
|
|
565
811
|
candlestick: IChartCandlestickSpec;
|
|
566
812
|
histogram: IChartHistogramStyleSpec;
|
|
567
813
|
treemap: IChartTreemapSpec;
|
|
814
|
+
sunburst: IChartSunburstSpec;
|
|
815
|
+
gauge: IChartGaugeSpec;
|
|
816
|
+
chord: IChartChordSpec;
|
|
568
817
|
}
|
|
569
818
|
export interface IRelationForceOptions {
|
|
570
819
|
repulsion?: number;
|
|
@@ -572,10 +821,11 @@ export interface IRelationForceOptions {
|
|
|
572
821
|
gravity?: number;
|
|
573
822
|
}
|
|
574
823
|
export type ChartStyle = DeepPartial<IChartStyle>;
|
|
575
|
-
export
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
824
|
+
export type ChartRenderRuntimeContext = Omit<DeepPartial<IChartRuntimeContext>, 'localeTexts'> & Pick<IChartRuntimeContext, 'localeTexts'>;
|
|
825
|
+
export type ChartRuntimeStyle = ChartStyle & {
|
|
826
|
+
direction: ChartDirection;
|
|
827
|
+
runtime: ChartRenderRuntimeContext;
|
|
828
|
+
};
|
|
579
829
|
export interface IChartConfig extends IChartData {
|
|
580
830
|
type: ChartTypeBits;
|
|
581
831
|
}
|
|
@@ -583,20 +833,25 @@ export interface IChartSnapshot {
|
|
|
583
833
|
id: string;
|
|
584
834
|
chartType: ChartTypeBits;
|
|
585
835
|
orient?: DataOrientation;
|
|
586
|
-
context?:
|
|
836
|
+
context?: IChartSnapshotContext;
|
|
587
837
|
style?: ChartStyle;
|
|
588
838
|
dataAggregation?: IChartDataAggregation;
|
|
589
839
|
}
|
|
840
|
+
/** Persisted chart field selection accepted by the snapshot reader. */
|
|
841
|
+
export interface IChartSnapshotContext extends Pick<IChartContext, 'categoryIndexes' | 'seriesIndexes' | 'histogram'> {
|
|
842
|
+
/** Historical snapshot field decoded only when `categoryIndexes` is absent. */
|
|
843
|
+
categoryIndex?: number;
|
|
844
|
+
}
|
|
590
845
|
export interface IWaterfallLegendData {
|
|
591
846
|
name: string;
|
|
592
847
|
color: ChartColor;
|
|
593
848
|
}
|
|
594
849
|
export interface IChartRenderSpecConverter<ChartRenderSpec = Record<string, any>> {
|
|
595
850
|
canConvert: (config: IChartConfig) => boolean;
|
|
596
|
-
convert: (config: IChartConfig, style:
|
|
851
|
+
convert: (config: IChartConfig, style: ChartRuntimeStyle) => ChartRenderSpec;
|
|
597
852
|
}
|
|
598
853
|
export type ChartConfigInterceptor = (config: IChartConfig) => IChartConfig;
|
|
599
|
-
export type RenderSpecOperator<ChartRenderSpec> = (spec: ChartRenderSpec, style:
|
|
854
|
+
export type RenderSpecOperator<ChartRenderSpec> = (spec: ChartRenderSpec, style: ChartRuntimeStyle, config: IChartConfig, instance: IChartInstance) => void;
|
|
600
855
|
export declare enum ChartHostRenderMode {
|
|
601
856
|
Image = "image",
|
|
602
857
|
Dom = "dom"
|
|
@@ -640,7 +895,7 @@ export interface IDomChartHost extends IChartHost {
|
|
|
640
895
|
export interface IChartRenderInput {
|
|
641
896
|
chartId: string;
|
|
642
897
|
config: IChartConfig;
|
|
643
|
-
style:
|
|
898
|
+
style: ChartRuntimeStyle;
|
|
644
899
|
}
|
|
645
900
|
export interface IChartRenderModelImageExportInput extends IChartRenderInput {
|
|
646
901
|
width: number;
|
|
@@ -681,12 +936,12 @@ export interface IChartRenderInstanceCreateContext<Spec = Record<string, any>> {
|
|
|
681
936
|
prepareSpec?: (input: IChartRenderInstanceSpecInput<Spec>) => Spec;
|
|
682
937
|
}
|
|
683
938
|
export interface IChartRenderModelStylizeInit<Spec> {
|
|
684
|
-
chartStyle:
|
|
939
|
+
chartStyle: ChartRuntimeStyle;
|
|
685
940
|
chartConfig: IChartConfig;
|
|
686
941
|
chartInstance?: IChartInstance<Spec>;
|
|
687
942
|
}
|
|
688
943
|
export interface IChartRenderModel<Spec extends Record<string, any> = Record<string, any>> extends IDisposable {
|
|
689
|
-
toSpec(chartConfig: IChartConfig, style:
|
|
944
|
+
toSpec(chartConfig: IChartConfig, style: ChartRuntimeStyle): Spec;
|
|
690
945
|
stylizeSpec(spec: Spec, stylizeInit: IChartRenderModelStylizeInit<Spec>, rect: IChartHostRect): Spec;
|
|
691
946
|
exportImage(input: IChartRenderModelImageExportInput, options?: IChartRenderModelImageExportOptions): Promise<IChartRenderModelImageExportResult>;
|
|
692
947
|
updateWatermark(addWatermark: boolean): void;
|
|
@@ -756,6 +1011,17 @@ export interface IChartElementHit {
|
|
|
756
1011
|
seriesId?: string;
|
|
757
1012
|
seriesName?: string;
|
|
758
1013
|
dataIndex?: number;
|
|
1014
|
+
/** Stable runtime identity for an aggregated semantic mark. Renderer indexes are intentionally omitted. */
|
|
1015
|
+
semanticId?: string;
|
|
1016
|
+
semanticKind?: 'node' | 'link';
|
|
1017
|
+
semanticValue?: number;
|
|
1018
|
+
semanticFormattedValue?: string;
|
|
1019
|
+
semanticEndpointAName?: string;
|
|
1020
|
+
semanticEndpointBName?: string;
|
|
1021
|
+
pieCompositeRole?: PieCompositeMarkRole;
|
|
1022
|
+
pieCompositePlot?: PieCompositePlot;
|
|
1023
|
+
pieSourcePointIndex?: number;
|
|
1024
|
+
pieAggregateMemberSourcePointIndexes?: readonly number[];
|
|
759
1025
|
baseSeriesIndex?: string;
|
|
760
1026
|
waterfallSeriesType?: WaterfallSeriesTypeEnum;
|
|
761
1027
|
}
|
|
@@ -788,12 +1054,14 @@ export interface IChartInstanceConstructor<Spec> {
|
|
|
788
1054
|
}
|
|
789
1055
|
export type OptionalDataValue = number | string | null | undefined;
|
|
790
1056
|
export type ExtractArrayItem<T> = T extends Array<infer U> ? U : never;
|
|
791
|
-
export type
|
|
1057
|
+
export type EChartSpec = EChartsOption;
|
|
1058
|
+
export type EChartSeriesItem = ExtractArrayItem<EChartSpec['series']> & {
|
|
1059
|
+
formattedData?: string[];
|
|
792
1060
|
rawData?: number[];
|
|
793
1061
|
seriesId: string;
|
|
794
1062
|
};
|
|
795
|
-
export type EChartInstance = IChartInstance<
|
|
796
|
-
export type EChartRenderSpecOperator = RenderSpecOperator<
|
|
1063
|
+
export type EChartInstance = IChartInstance<EChartSpec>;
|
|
1064
|
+
export type EChartRenderSpecOperator = RenderSpecOperator<EChartSpec>;
|
|
797
1065
|
export interface IChartHostRect {
|
|
798
1066
|
width: number;
|
|
799
1067
|
height: number;
|
package/lib/types/util.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const chartBitsUtils: {
|
|
|
3
3
|
has(bit: number, attribute: number): boolean;
|
|
4
4
|
baseOn(bit: number, base: number): boolean;
|
|
5
5
|
remove(bit: number, attribute: number): number;
|
|
6
|
-
chartBitToString(bit: ChartTypeBits): "" | "line" | "bar" | "
|
|
6
|
+
chartBitToString(bit: ChartTypeBits): "" | "line" | "bar" | "pie" | "radar" | "scatter" | "combination" | "wordCloud" | "funnel" | "sankey" | "heatmap" | "boxplot" | "candlestick" | "treemap" | "sunburst" | "gauge" | "chord" | "graph";
|
|
7
7
|
};
|
|
8
8
|
export declare function mergeChartConfig<T extends object>(current: T | undefined, update: Partial<T>): T;
|
|
9
9
|
export declare const setProperty: (data: Record<string, any>, propertyPath: string, value: any) => void;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
/** Copies only the top-level container while preserving nested references. */
|
|
2
|
+
export declare function shallowClone<T>(value: T): T;
|
|
1
3
|
/** Deep-clones a value while removing own properties whose value is undefined. */
|
|
2
4
|
export declare function cloneWithoutUndefined<T>(value: T): T;
|
|
3
5
|
/** Returns an undefined-free record, or undefined when no fields remain. */
|
|
4
6
|
export declare function compactRecord<T extends object>(value: T): T | undefined;
|
|
7
|
+
/** Returns a shallow copy without own string fields whose value is undefined. */
|
|
8
|
+
export declare function omitUndefinedFields<T extends object>(value: T): T;
|
|
9
|
+
/** Deletes own string fields whose value is undefined and preserves object identity. */
|
|
10
|
+
export declare function deleteUndefinedFields<T extends object>(target: T): T;
|
|
@@ -14,4 +14,3 @@ export declare const echarts: {
|
|
|
14
14
|
registerPreprocessor: typeof registerPreprocessor;
|
|
15
15
|
util: typeof util;
|
|
16
16
|
};
|
|
17
|
-
export type { BarSeriesOption, DatasetComponentOption, ECharts, EChartsInitOpts, EChartsOption, FunnelSeriesOption, LegendComponentOption, LineSeriesOption, PieSeriesOption, XAXisComponentOption, } from 'echarts';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { echarts } from '../../../utils/echarts';
|
|
2
|
-
import { WORD_CLOUD_SERIES_TYPE } from './echarts-options';
|
|
3
2
|
export interface IRegisterWordCloudChartViewContext {
|
|
4
3
|
createTextElement(layout: any, data: any, dataIndex: number, seriesModel: any): unknown;
|
|
5
4
|
}
|
|
6
5
|
export declare function registerWordCloudChartView(echartsInstance: typeof echarts, context: IRegisterWordCloudChartViewContext): void;
|
|
7
|
-
export { WORD_CLOUD_SERIES_TYPE };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const WORD_CLOUD_SERIES_TYPE = "wordCloud";
|
|
2
2
|
export declare const WORD_CLOUD_DEFAULT_OPTION: {
|
|
3
3
|
readonly z: 2;
|
|
4
|
-
readonly maskSource: import("
|
|
4
|
+
readonly maskSource: import("../../types").IWordCloudEChartsMaskSource;
|
|
5
5
|
readonly colorBy: "data";
|
|
6
6
|
readonly keepAspect: false;
|
|
7
7
|
readonly left: "center";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { echarts } from '../../../utils/echarts';
|
|
2
|
-
import { WORD_CLOUD_SERIES_TYPE } from './echarts-options';
|
|
3
2
|
export type PerformWordCloudSeriesLayout = (seriesModel: unknown, ecModel: unknown, api: unknown) => void;
|
|
4
3
|
export declare function registerWordCloudLayout(echartsInstance: typeof echarts, performSeriesLayout: PerformWordCloudSeriesLayout): void;
|
|
5
|
-
export { WORD_CLOUD_SERIES_TYPE };
|