@univerjs-pro/engine-chart 1.0.0-beta.0 → 1.0.0-beta.2
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 +9 -0
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/chart-builder/chart-builder-adapter.d.ts +1 -3
- package/lib/types/chart-builder/chart-builder.d.ts +2 -5
- package/lib/types/chart-builder/chart-live-adapter.d.ts +15 -0
- package/lib/types/chart-builder/chart-types.d.ts +21 -0
- package/lib/types/chart-builder/configuration/cartesian-series.d.ts +1 -0
- 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 -38
- package/lib/types/chart-builder/configuration/gauge.d.ts +1 -1
- package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +24 -11
- package/lib/types/chart-builder/conversion/chart-create-config.d.ts +6 -0
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +20 -0
- package/lib/types/chart-builder/conversion/chart-type-converter.d.ts +1 -3
- package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +0 -127
- package/lib/types/chart-builder/detached-chart-builder-adapter.d.ts +1 -10
- 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-pending-patch.d.ts +11 -0
- package/lib/types/chart-builder/internal/patch-interpreter.d.ts +17 -0
- 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 +180 -8
- 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 +378 -10
- 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 +131 -47
- 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 +122 -8
- package/lib/types/facade/builders/f-treemap-chart-builder.d.ts +115 -13
- 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 +35 -32
- 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 +32 -20
- package/lib/types/facade/f-chart-builder-base.d.ts +240 -73
- package/lib/types/facade/f-chart.d.ts +686 -0
- package/lib/types/facade/f-enum.d.ts +684 -31
- package/lib/types/facade/f-univer.d.ts +51 -0
- package/lib/types/facade/index.d.ts +7 -9
- package/lib/types/facade/internal/category-fields.d.ts +3 -0
- package/lib/types/facade/internal/chart-builder-facade-context.d.ts +11 -10
- package/lib/types/index.d.ts +28 -17
- package/lib/types/models/chart-context/chart-field-selection.d.ts +1 -1
- package/lib/types/models/chart-context/resolve-chart-context.d.ts +3 -0
- package/lib/types/models/chart-data/chart-field-consumption-validator.d.ts +1 -1
- package/lib/types/models/chart-data/internal/category-series-aggregation.d.ts +1 -2
- package/lib/types/models/chart-data/internal/data-set-category-spans.d.ts +7 -0
- package/lib/types/models/chart-data/internal/multi-level-category-axis.d.ts +10 -0
- package/lib/types/models/chart-host/config/chart-config-interpreter.d.ts +13 -0
- 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-host/resource/chart-resource-serializer.d.ts +2 -1
- package/lib/types/models/chart-host/resource/inline-chart-table.d.ts +4 -3
- 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/{static-chart-runtime.d.ts → chart-runtime.d.ts} +6 -5
- package/lib/types/models/chart-model/chart-model.d.ts +2 -383
- package/lib/types/models/chart-render/axes/chart-runtime-axes.d.ts +2 -2
- package/lib/types/models/chart-render/chart-render-input-resolver.d.ts +2 -2
- package/lib/types/models/chart-render/converter/category-axis-domain.d.ts +6 -0
- package/lib/types/models/chart-render/converter/converters/gauge-chart-converter.d.ts +5 -3
- package/lib/types/models/chart-render/converter/echart-text-overflow.d.ts +7 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/grid-operator.d.ts +3 -3
- package/lib/types/models/chart-render/converter/render-spec-operators/legend-size.d.ts +1 -2
- package/lib/types/models/chart-render/converter/render-spec-operators/multi-level-category-axis-grid.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/multi-level-category-axis-layout.d.ts +23 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/multi-level-category-axis-overlay.operator.d.ts +12 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/series-style-operator/series-style-operator.d.ts +2 -2
- package/lib/types/models/chart-render/converter/render-spec-operators/tool-tip-operator.d.ts +3 -13
- package/lib/types/models/chart-render/converter/render-spec-operators/tools.d.ts +4 -4
- package/lib/types/models/chart-render/converter/render-spec-operators/visual-map-operator.d.ts +4 -0
- package/lib/types/models/chart-render/echart-render-model.d.ts +7 -3
- package/lib/types/models/chart-render/edit-overlay/chart-element-edit-overlay.d.ts +1 -1
- package/lib/types/models/chart-render/edit-overlay/resolve-chart-element-hit-layout.d.ts +1 -1
- package/lib/types/models/chart-render/style/chart-runtime-style.d.ts +0 -1
- package/lib/types/models/common/constants/default-chart-style.d.ts +53 -53
- package/lib/types/models/common/constants/default.d.ts +3 -2
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/types.d.ts +46 -6
- package/lib/types/util.d.ts +0 -1
- package/lib/types/utils/compact.d.ts +6 -0
- package/lib/types/utils/device-pixel-ratio.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 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -6
- 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/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-host/resource/static-chart-resource-repository.d.ts +0 -75
- package/lib/types/models/chart-host/static/static-chart-model-store.d.ts +0 -43
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3ebccf=_0x2321;(function(_0x27b0f4,_0x331ad1){const _0x24cdb2=_0x2321,_0x3b7b17=_0x27b0f4();while(!![]){try{const _0x51755a=-parseInt(_0x24cdb2(0x176))/0x1+parseInt(_0x24cdb2(0x16a))/0x2*(-parseInt(_0x24cdb2(0x161))/0x3)+parseInt(_0x24cdb2(0x16e))/0x4*(parseInt(_0x24cdb2(0x177))/0x5)+parseInt(_0x24cdb2(0x16d))/0x6*(-parseInt(_0x24cdb2(0x17b))/0x7)+parseInt(_0x24cdb2(0x171))/0x8*(-parseInt(_0x24cdb2(0x168))/0x9)+-parseInt(_0x24cdb2(0x175))/0xa*(parseInt(_0x24cdb2(0x178))/0xb)+-parseInt(_0x24cdb2(0x17e))/0xc*(-parseInt(_0x24cdb2(0x166))/0xd);if(_0x51755a===_0x331ad1)break;else _0x3b7b17['push'](_0x3b7b17['shift']());}catch(_0x3f9b9b){_0x3b7b17['push'](_0x3b7b17['shift']());}}}(_0x551e,0xebb24));const e={'engine-chart':{'seriesDefaultName':_0x3ebccf(0x174),'categoryDefaultName':_0x3ebccf(0x164),'blank':'(空)','boxplotMin':_0x3ebccf(0x163),'boxplotQ1':_0x3ebccf(0x165),'boxplotMedian':_0x3ebccf(0x16f),'boxplotQ3':_0x3ebccf(0x173),'boxplotMax':_0x3ebccf(0x15c),'bubbleEmptyTips':_0x3ebccf(0x17d),'cloudWord':'词语','cloudFrequency':'频率','msgEmptyTips':_0x3ebccf(0x15e),'msgSankeyCircularTips':'桑基图不能包含循环数据','paretoLineName':_0x3ebccf(0x170),'pieAggregateOther':'其他','pieAggregateMembers':_0x3ebccf(0x17c),'relationEmptyTips':_0x3ebccf(0x17a),'waterfallPositive':'正值','waterfallNegative':'负值','waterfallSubtotal':'小计','candlestickSeries':_0x3ebccf(0x162),'candlestickCategory':'类别','candlestickOpen':'开盘','candlestickHigh':'最高','candlestickLow':'最低','candlestickClose':'收盘','histogramFrequency':'频数','treemapEmptyTips':_0x3ebccf(0x167),'treemapOwnValue':_0x3ebccf(0x172),'treemapChildren':'子项','sunburstEmptyTips':_0x3ebccf(0x16c),'sunburstOwnValue':_0x3ebccf(0x172),'sunburstChildren':'子项','gaugeEmptyTips':'仪表图至少需要一个有限数值。','gaugeInvalidMapping':'仪表图需要一个标签字段且只能有一个数值字段。','gaugeInvalidConfig':_0x3ebccf(0x15f),'chordEmptyTips':_0x3ebccf(0x160),'chordInvalidMapping':_0x3ebccf(0x15d),'chordInvalidConfig':_0x3ebccf(0x16b),'chordCount':_0x3ebccf(0x169),'chordAssociatedValue':_0x3ebccf(0x179)}};export{e as default};function _0x2321(_0x3184b3,_0x2f094d){_0x3184b3=_0x3184b3-0x15c;const _0x551ef7=_0x551e();let _0x232169=_0x551ef7[_0x3184b3];return _0x232169;}function _0x551e(){const _0xd9aaa8=['312815tktcum','607684SQzIBl','关联值','关系图数据源为额外添加类型列在第二列的共词矩阵','29407MbCNLA','成员数','气泡图至少需要2列,X轴、Y轴。','708WDBpXB','最大值','弦图需要不同的来源字段和目标字段,并可选一个与二者不同的数值字段。','请先添加系列开始数据可视化','仪表图配置无效,请检查刻度范围、分段区间、比例和尺寸。','弦图至少需要两个不同节点之间的一条正权重关系。','1377zQnsMu','OHLC\x20系列','最小值','类别\x20{0}','第一四分位数','1036035mVXzsW','矩形树图至少需要一个层级字段和一个数值字段。','9BfmoBw','关系计数','3284ELHdtB','弦图配置无效,请检查角度、半径、不透明度和尺寸。','旭日图至少需要一个层级字段和一个数值字段。','1074HZewwm','12MPgaBn','中位数','累积占比','2822936jwcqsT','自身值','第三四分位数','系列\x20{0}','180xsEwlT','1071366MLaoHA'];_0x551e=function(){return _0xd9aaa8;};return _0x551e();}
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x37b27d=_0x31f3;function _0x31f3(_0x149c85,_0x2df99e){_0x149c85=_0x149c85-0xf7;const _0xe808f=_0xe808();let _0x31f376=_0xe808f[_0x149c85];return _0x31f376;}(function(_0x1c0f97,_0x4a51e7){const _0x15e7e1=_0x31f3,_0x4deac9=_0x1c0f97();while(!![]){try{const _0x591ef1=-parseInt(_0x15e7e1(0x10d))/0x1*(-parseInt(_0x15e7e1(0x101))/0x2)+-parseInt(_0x15e7e1(0x114))/0x3+-parseInt(_0x15e7e1(0xf7))/0x4+-parseInt(_0x15e7e1(0xf9))/0x5+-parseInt(_0x15e7e1(0x107))/0x6+parseInt(_0x15e7e1(0xfc))/0x7*(parseInt(_0x15e7e1(0x109))/0x8)+parseInt(_0x15e7e1(0x102))/0x9;if(_0x591ef1===_0x4a51e7)break;else _0x4deac9['push'](_0x4deac9['shift']());}catch(_0x3f017a){_0x4deac9['push'](_0x4deac9['shift']());}}}(_0xe808,0xbad8e));const e={'engine-chart':{'seriesDefaultName':_0x37b27d(0x115),'categoryDefaultName':_0x37b27d(0xff),'blank':'(空)','boxplotMin':_0x37b27d(0x100),'boxplotQ1':'第一四分位數','boxplotMedian':_0x37b27d(0x10f),'boxplotQ3':_0x37b27d(0x108),'boxplotMax':_0x37b27d(0x116),'bubbleEmptyTips':_0x37b27d(0xfe),'cloudWord':'詞','cloudFrequency':'頻率','msgEmptyTips':_0x37b27d(0x112),'msgSankeyCircularTips':_0x37b27d(0x106),'paretoLineName':_0x37b27d(0x117),'pieAggregateOther':'其他','pieAggregateMembers':'成員','relationEmptyTips':'關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','waterfallPositive':'正值','waterfallNegative':'負值','waterfallSubtotal':'小計','candlestickSeries':_0x37b27d(0x10c),'candlestickCategory':'類別','candlestickOpen':_0x37b27d(0xfd),'candlestickHigh':_0x37b27d(0xf8),'candlestickLow':_0x37b27d(0x110),'candlestickClose':_0x37b27d(0x10e),'histogramFrequency':'頻數','treemapEmptyTips':_0x37b27d(0x104),'treemapOwnValue':_0x37b27d(0xfb),'treemapChildren':'子項','sunburstEmptyTips':_0x37b27d(0x113),'sunburstOwnValue':_0x37b27d(0xfb),'sunburstChildren':'子項','gaugeEmptyTips':_0x37b27d(0xfa),'gaugeInvalidMapping':_0x37b27d(0x10a),'gaugeInvalidConfig':_0x37b27d(0x103),'chordEmptyTips':_0x37b27d(0x111),'chordInvalidMapping':'弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','chordInvalidConfig':_0x37b27d(0x10b),'chordCount':'關係數','chordAssociatedValue':_0x37b27d(0x105)}};function _0xe808(){const _0x52b1a3=['最小值','22KtYSPB','34840890MHNvUR','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','矩形樹圖至少需要一個階層欄位和一個數值欄位。','關聯值','桑基圖不能包含循環數據','8915760MfCDxZ','第三四分位數','24IbEWyA','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','OHLC\x20數列','34949RwSsvs','收盤價','中位數','最低價','弦圖至少需要兩個不同節點之間的一條正權重關係。','請先添加系列開始數據可視化','旭日圖至少需要一個階層欄位和一個數值欄位。','2309517oWhqih','系列\x20{0}','最大值','累積占比','4863152dprofu','最高價','6683225CqtRPe','儀表圖至少需要一個有限數值。','自身值','3075121msKGZE','開盤價','氣泡圖至少需要2欄,X軸、Y軸。','類別\x20{0}'];_0xe808=function(){return _0x52b1a3;};return _0xe808();}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x39b5(_0x49a4ea,_0x36e836){_0x49a4ea=_0x49a4ea-0xf5;const _0x6a15c4=_0x6a15();let _0x39b549=_0x6a15c4[_0x49a4ea];return _0x39b549;}function _0x6a15(){const _0x257d49=['153SjLiRF','請先添加系列開始數據可視化','(空)','OHLC\x20數列','2144110sCNoeA','關係數','開盤價','最大值','4362700jOFHbm','973705vMxLov','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','28889060udJlCk','7qzaZAU','旭日圖至少需要一個階層欄位和一個數值欄位。','矩形樹圖至少需要一個階層欄位和一個數值欄位。','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','26031opBzpb','累積占比','最低價','最小值','弦圖至少需要兩個不同節點之間的一條正權重關係。','類別\x20{0}','503988pOeYjN','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','350288Mhpmzf','第一四分位數','儀表圖至少需要一個有限數值。','26GMuMCd','桑基圖不能包含循環數據','最高價','收盤價'];_0x6a15=function(){return _0x257d49;};return _0x6a15();}const _0x23a34a=_0x39b5;(function(_0x21cfd8,_0x1d7c0e){const _0x2f1e5d=_0x39b5,_0x1347b7=_0x21cfd8();while(!![]){try{const _0x2ad856=parseInt(_0x2f1e5d(0x109))/0x1+parseInt(_0x2f1e5d(0xfc))/0x2*(parseInt(_0x2f1e5d(0x111))/0x3)+parseInt(_0x2f1e5d(0x108))/0x4+parseInt(_0x2f1e5d(0x104))/0x5+parseInt(_0x2f1e5d(0xf7))/0x6*(parseInt(_0x2f1e5d(0x10d))/0x7)+-parseInt(_0x2f1e5d(0xf9))/0x8*(-parseInt(_0x2f1e5d(0x100))/0x9)+-parseInt(_0x2f1e5d(0x10c))/0xa;if(_0x2ad856===_0x1d7c0e)break;else _0x1347b7['push'](_0x1347b7['shift']());}catch(_0x524cdf){_0x1347b7['push'](_0x1347b7['shift']());}}}(_0x6a15,0x852b1));const e={'engine-chart':{'seriesDefaultName':'系列\x20{0}','categoryDefaultName':_0x23a34a(0xf6),'blank':_0x23a34a(0x102),'boxplotMin':_0x23a34a(0x114),'boxplotQ1':_0x23a34a(0xfa),'boxplotMedian':'中位數','boxplotQ3':'第三四分位數','boxplotMax':_0x23a34a(0x107),'bubbleEmptyTips':'氣泡圖至少需要2欄,X軸、Y軸。','cloudWord':'詞','cloudFrequency':'頻率','msgEmptyTips':_0x23a34a(0x101),'msgSankeyCircularTips':_0x23a34a(0xfd),'paretoLineName':_0x23a34a(0x112),'pieAggregateOther':'其他','pieAggregateMembers':'成員','relationEmptyTips':_0x23a34a(0x10a),'waterfallPositive':'正值','waterfallNegative':'負值','waterfallSubtotal':'小計','candlestickSeries':_0x23a34a(0x103),'candlestickCategory':'類別','candlestickOpen':_0x23a34a(0x106),'candlestickHigh':_0x23a34a(0xfe),'candlestickLow':_0x23a34a(0x113),'candlestickClose':_0x23a34a(0xff),'histogramFrequency':'頻數','treemapEmptyTips':_0x23a34a(0x10f),'treemapOwnValue':'自身值','treemapChildren':'子項','sunburstEmptyTips':_0x23a34a(0x10e),'sunburstOwnValue':'自身值','sunburstChildren':'子項','gaugeEmptyTips':_0x23a34a(0xfb),'gaugeInvalidMapping':_0x23a34a(0x110),'gaugeInvalidConfig':_0x23a34a(0x10b),'chordEmptyTips':_0x23a34a(0xf5),'chordInvalidMapping':_0x23a34a(0xf8),'chordInvalidConfig':'弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','chordCount':_0x23a34a(0x105),'chordAssociatedValue':'關聯值'}};export{e as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IChartData,
|
|
1
|
+
import type { IChartData, IUniverDataSet } from '../types';
|
|
2
2
|
import type { ChartPendingConfig, IChartDescription } from './chart-types';
|
|
3
3
|
/** Host-owned persistence and rendering capabilities used by a chart builder. */
|
|
4
4
|
export interface IChartBuilderAdapter<THostDescription extends object = object> {
|
|
@@ -8,6 +8,4 @@ export interface IChartBuilderAdapter<THostDescription extends object = object>
|
|
|
8
8
|
commit(config: ChartPendingConfig): void;
|
|
9
9
|
/** Materializes fresh engine semantic data for the effective pending state without mutating the host. */
|
|
10
10
|
resolveData(config: ChartPendingConfig): IChartData;
|
|
11
|
-
/** Renders the hosted chart as an image when rendering is available. */
|
|
12
|
-
exportImage(options?: IChartRenderModelImageExportOptions): Promise<IChartRenderModelImageExportResult | null>;
|
|
13
11
|
}
|
|
@@ -12,10 +12,8 @@ export declare class ChartBuilder<THostDescription extends object = object> {
|
|
|
12
12
|
protected _pending: ChartPendingConfig;
|
|
13
13
|
/** Creates a builder for one chart identity and host adapter. */
|
|
14
14
|
constructor(id: string, baseline: IChartDescription & THostDescription, adapter: IChartBuilderAdapter<THostDescription>);
|
|
15
|
-
/** Returns the
|
|
15
|
+
/** Returns the chart type fixed by the builder baseline. */
|
|
16
16
|
get type(): ChartTypeString;
|
|
17
|
-
/** Changes the chart type and discards pending options that the new type cannot represent. */
|
|
18
|
-
setType(type: ChartTypeString): void;
|
|
19
17
|
/** Merges a semantic patch into the pending configuration. */
|
|
20
18
|
mergePending(patch: ChartPendingConfig): void;
|
|
21
19
|
/** Applies one typed configuration operation to the pending state. */
|
|
@@ -25,12 +23,11 @@ export declare class ChartBuilder<THostDescription extends object = object> {
|
|
|
25
23
|
/** Materializes a fresh deeply read-only engine data result for this hosted builder. */
|
|
26
24
|
resolveData(): DeepReadonly<IChartData>;
|
|
27
25
|
/** Persists pending changes through the host adapter and refreshes the baseline. */
|
|
28
|
-
commit(): void
|
|
26
|
+
commit(): void | Promise<void>;
|
|
29
27
|
protected refreshBaseline(): void;
|
|
30
28
|
/** Supplies host-owned pending data when `describe()` needs to refresh source metadata. */
|
|
31
29
|
protected getDescriptionDataSetOverride(): IUniverDataSet | undefined;
|
|
32
30
|
/** Adds host-owned pending fields before the public description is frozen. */
|
|
33
31
|
protected composeHostDescription(description: IChartDescription & THostDescription): IChartDescription & THostDescription;
|
|
34
32
|
private _assertValidPieCompositePatch;
|
|
35
|
-
private _discardIncompatiblePending;
|
|
36
33
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ArrangeTypeEnum } from '@univerjs/core';
|
|
2
|
+
import type { ChartPendingConfig, IChartDescription, IChartInfo } from './chart-types';
|
|
3
|
+
/** Host persistence boundary used by the common live Chart facade. */
|
|
4
|
+
export interface IChartLiveAdapter<TSource, TInfo = IChartInfo<TSource>> {
|
|
5
|
+
describe(): IChartDescription;
|
|
6
|
+
getInfo(): TInfo;
|
|
7
|
+
update(info: TInfo): Promise<void> | void;
|
|
8
|
+
commit(config: ChartPendingConfig): void;
|
|
9
|
+
setDataSource(source: TSource): Promise<void> | void;
|
|
10
|
+
setAbsolutePosition(x: number, y: number): void;
|
|
11
|
+
setSize(width: number, height: number): void;
|
|
12
|
+
arrange(type: ArrangeTypeEnum): void;
|
|
13
|
+
setZOrder(index: number): void;
|
|
14
|
+
remove(): Promise<boolean> | boolean;
|
|
15
|
+
}
|
|
@@ -299,6 +299,10 @@ export interface IChartEdgeMappingSpec {
|
|
|
299
299
|
}
|
|
300
300
|
export interface IChartMappingSpec {
|
|
301
301
|
categoryIndex?: number;
|
|
302
|
+
/** Ordered category fields used by a multi-level category axis. */
|
|
303
|
+
categoryIndexes?: number[];
|
|
304
|
+
/** Whether the selected category fields render as one root-to-leaf multi-level category axis. */
|
|
305
|
+
multiLevelCategoryAxis?: boolean;
|
|
302
306
|
/** Ordered root-to-leaf hierarchy fields for hierarchy charts. */
|
|
303
307
|
hierarchyIndexes?: number[];
|
|
304
308
|
seriesIndexes?: number[];
|
|
@@ -555,6 +559,23 @@ interface IChartSemanticConfig {
|
|
|
555
559
|
/** Persisted absolute series colors. A non-empty value overrides theme colors. */
|
|
556
560
|
palette?: string[];
|
|
557
561
|
}
|
|
562
|
+
/** Absolute Chart position in host coordinates. */
|
|
563
|
+
export interface IChartPosition {
|
|
564
|
+
x: number;
|
|
565
|
+
y: number;
|
|
566
|
+
}
|
|
567
|
+
/** Chart frame size in host coordinates. */
|
|
568
|
+
export interface IChartSize {
|
|
569
|
+
width: number;
|
|
570
|
+
height: number;
|
|
571
|
+
}
|
|
572
|
+
/** Detached information shared by host-specific Chart insertion APIs. */
|
|
573
|
+
export interface IChartInfo<TSource> {
|
|
574
|
+
config: IChartCreateConfig;
|
|
575
|
+
dataSource: TSource;
|
|
576
|
+
position?: IChartPosition;
|
|
577
|
+
size?: IChartSize;
|
|
578
|
+
}
|
|
558
579
|
/** Pending chart edits; `null` is a runtime-only delete marker consumed before persistence. */
|
|
559
580
|
export type ChartPendingConfig = Pick<IChartSemanticConfig, 'type'> & DeepNullish<Omit<IChartSemanticConfig, 'type' | 'series'>> & {
|
|
560
581
|
series?: Array<{
|
|
@@ -22,5 +22,6 @@ export type ChartPublicSeriesSelector = number | {
|
|
|
22
22
|
};
|
|
23
23
|
export declare const setSeries: (selector: ChartPublicSeriesSelector, patch: Omit<NonNullable<ChartPendingConfig["series"]>[number], "selector">) => import("./chart-config-operation").IChartConfigOperation;
|
|
24
24
|
export declare const clearSeries: (selector: ChartPublicSeriesSelector, target?: ChartSeriesClearTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
25
|
+
export declare const clearAllSeriesOverrides: () => import("./chart-config-operation").IChartConfigOperation;
|
|
25
26
|
export declare const setAllSeriesStyle: (style: DeepNullish<IChartSeriesStyleSpec>) => import("./chart-config-operation").IChartConfigOperation;
|
|
26
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,41 +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
|
-
Sunburst = "sunburst",
|
|
14
|
-
Gauge = "gauge",
|
|
15
|
-
Chord = "chord",
|
|
16
|
-
Axes = "axes",
|
|
17
|
-
Bar = "bar",
|
|
18
|
-
Bubble = "bubble",
|
|
19
|
-
Heatmap = "heatmap",
|
|
20
|
-
Funnel = "funnel",
|
|
21
|
-
InvalidValueStrategy = "invalidValueStrategy",
|
|
22
|
-
Legend = "legend",
|
|
23
|
-
Mapping = "mapping",
|
|
24
|
-
MarkLines = "markLines",
|
|
25
|
-
Palette = "palette",
|
|
26
|
-
Pareto = "pareto",
|
|
27
|
-
Pie = "pie",
|
|
28
|
-
PlotArea = "plotArea",
|
|
29
|
-
Radar = "radar",
|
|
30
|
-
Relation = "relation",
|
|
31
|
-
Series = "series",
|
|
32
|
-
Subtitle = "subtitle",
|
|
33
|
-
Theme = "theme",
|
|
34
|
-
Title = "title",
|
|
35
|
-
Trendlines = "trendlines",
|
|
36
|
-
WordCloud = "wordCloud",
|
|
37
|
-
Waterfall = "waterfall"
|
|
38
|
-
}
|
|
2
|
+
import type { ChartConfigGroup } from './chart-config-group';
|
|
39
3
|
export declare enum ChartConfigOperationMode {
|
|
40
4
|
Merge = "merge",
|
|
41
5
|
Replace = "replace"
|
|
@@ -46,4 +10,3 @@ export interface IChartConfigOperation {
|
|
|
46
10
|
readonly patch: ChartPendingConfig;
|
|
47
11
|
}
|
|
48
12
|
export declare function chartConfigOperation<K extends ChartConfigGroup>(group: K, value: ChartPendingConfig[K], mode?: ChartConfigOperationMode): IChartConfigOperation;
|
|
49
|
-
export declare function mergeChartPendingConfig(current: ChartPendingConfig, next: ChartPendingConfig, path?: readonly string[]): ChartPendingConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DeepNullish, IChartGaugeAnchorSpec, IChartGaugeAnglesSpec, IChartGaugeAxisLabelSpec, IChartGaugeAxisLineSpec, IChartGaugeAxisTickSpec, IChartGaugeDetailSpec, IChartGaugePointerSpec, IChartGaugeProgressSpec, IChartGaugeRangeSpec, IChartGaugeScaleSpec, IChartGaugeSplitLineSpec, IChartGaugeTitleSpec } from '../../types';
|
|
2
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
3
|
import type { IChartGaugeTicksPatch } from '../chart-types';
|
|
4
4
|
export declare function setGaugeValueField(index: number): import("./chart-config-operation").IChartConfigOperation;
|
|
5
5
|
export declare const setGaugeMode: (value: ChartGaugeMode) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IChartDataAggregation } from '../../chart-data-aggregation';
|
|
2
|
-
import type { ChartStyle,
|
|
3
|
-
import type { ChartPendingConfig, IChartDescription } from '../chart-types';
|
|
2
|
+
import type { ChartStyle, IChartContext, IChartDataSeries } from '../../types';
|
|
3
|
+
import type { ChartPendingConfig, IChartCreateConfig, IChartDescription } from '../chart-types';
|
|
4
4
|
import { ChartTypeBits } from '../../enum';
|
|
5
5
|
interface IChartConfigConversionOptions {
|
|
6
6
|
series?: IChartDataSeries[];
|
|
@@ -9,23 +9,36 @@ interface IChartConfigConversionOptions {
|
|
|
9
9
|
currentContext?: IChartContext;
|
|
10
10
|
currentDataAggregation?: IChartDataAggregation;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
interface IChartModelConfigPendingUpdate {
|
|
12
|
+
interface IChartModelConfigUpdate {
|
|
14
13
|
chartType?: ChartTypeBits;
|
|
15
14
|
style?: ChartStyle;
|
|
16
|
-
context?: ChartContextPendingPatch;
|
|
17
|
-
dataAggregation?: Partial<IChartDataAggregation>;
|
|
18
|
-
}
|
|
19
|
-
interface IChartModelConfigUpdate extends Omit<IChartModelConfigPendingUpdate, 'context'> {
|
|
20
15
|
context?: IChartContext;
|
|
16
|
+
dataAggregation?: Partial<IChartDataAggregation>;
|
|
21
17
|
}
|
|
22
|
-
export interface
|
|
18
|
+
export interface IResolvedChartModelConfigUpdate {
|
|
23
19
|
chartType?: ChartTypeBits;
|
|
24
20
|
style?: ChartStyle;
|
|
25
21
|
context?: IChartContext;
|
|
26
22
|
dataAggregation?: Partial<IChartDataAggregation>;
|
|
27
23
|
}
|
|
28
24
|
export declare function toChartModelConfig(config: ChartPendingConfig | IChartDescription, options?: IChartConfigConversionOptions): IChartModelConfigUpdate;
|
|
29
|
-
|
|
30
|
-
export declare function
|
|
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;
|
|
31
44
|
export {};
|
|
@@ -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;
|
|
@@ -40,9 +40,29 @@ export declare enum ChartStyleField {
|
|
|
40
40
|
export declare enum ChartContextField {
|
|
41
41
|
CategoryIndexes = "categoryIndexes",
|
|
42
42
|
Histogram = "histogram",
|
|
43
|
+
MultiLevelCategoryAxis = "multiLevelCategoryAxis",
|
|
43
44
|
SeriesIndexes = "seriesIndexes",
|
|
44
45
|
UseDateAxis = "useDateAxis"
|
|
45
46
|
}
|
|
47
|
+
export declare enum ChartMappingField {
|
|
48
|
+
Bubble = "bubble",
|
|
49
|
+
Candlestick = "candlestick",
|
|
50
|
+
CategoryIndex = "categoryIndex",
|
|
51
|
+
CategoryIndexes = "categoryIndexes",
|
|
52
|
+
Chord = "chord",
|
|
53
|
+
Edge = "edge",
|
|
54
|
+
HierarchyIndexes = "hierarchyIndexes",
|
|
55
|
+
MultiLevelCategoryAxis = "multiLevelCategoryAxis",
|
|
56
|
+
Scatter = "scatter",
|
|
57
|
+
SeriesIndexes = "seriesIndexes",
|
|
58
|
+
UseDateAxis = "useDateAxis"
|
|
59
|
+
}
|
|
60
|
+
export declare enum ChartHistogramField {
|
|
61
|
+
BinGap = "binGap",
|
|
62
|
+
Binning = "binning",
|
|
63
|
+
OverflowThreshold = "overflowThreshold",
|
|
64
|
+
UnderflowThreshold = "underflowThreshold"
|
|
65
|
+
}
|
|
46
66
|
export declare enum ChartDataAggregationField {
|
|
47
67
|
Aggregate = "aggregate",
|
|
48
68
|
TopN = "topN"
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { ChartStyle } from '../../types';
|
|
2
1
|
import { ChartTypeBits, StackType } from '../../enum';
|
|
3
2
|
import { ChartTypeString } from '../chart-types';
|
|
4
3
|
export declare function chartTypeToBits(type: ChartTypeString): ChartTypeBits;
|
|
5
|
-
export declare function chartBitsToType(bits: ChartTypeBits
|
|
4
|
+
export declare function chartBitsToType(bits: ChartTypeBits): ChartTypeString;
|
|
6
5
|
export declare function getChartStackType(chartType: ChartTypeBits | undefined): StackType | undefined;
|
|
7
6
|
export declare function withChartStackType(chartType: ChartTypeBits, stackType: StackType | ''): ChartTypeBits;
|
|
8
|
-
export declare function getInitialChartStyle(type: ChartTypeString): ChartStyle | undefined;
|
|
@@ -19,133 +19,6 @@ export declare function resolveChartDescriptionMetadata(description: IChartDescr
|
|
|
19
19
|
export declare function resolveChartModelEffectiveConfig(chartModel: ChartModel, pending: ChartPendingConfig, dataSet: IUniverDataSet): {
|
|
20
20
|
chartType: ChartTypeBits;
|
|
21
21
|
style: {
|
|
22
|
-
runtime?: {
|
|
23
|
-
themeColors?: string[] | undefined;
|
|
24
|
-
axes?: import("../..").IRuntimeAxis[] | undefined;
|
|
25
|
-
themeInfo?: {
|
|
26
|
-
version?: string | number | undefined;
|
|
27
|
-
themeName?: string | undefined;
|
|
28
|
-
theme?: {
|
|
29
|
-
seriesCnt?: string | undefined;
|
|
30
|
-
backgroundColor?: string | undefined;
|
|
31
|
-
titleColor?: string | undefined;
|
|
32
|
-
subtitleColor?: string | undefined;
|
|
33
|
-
textColorShow?: boolean | undefined;
|
|
34
|
-
textColor?: string | undefined;
|
|
35
|
-
markTextColor?: string | undefined;
|
|
36
|
-
color?: string[] | undefined;
|
|
37
|
-
borderColor?: string | undefined;
|
|
38
|
-
borderWidth?: string | number | undefined;
|
|
39
|
-
visualMapColor?: string[] | undefined;
|
|
40
|
-
legendTextColor?: string | undefined;
|
|
41
|
-
kColor?: string | undefined;
|
|
42
|
-
kColor0?: string | undefined;
|
|
43
|
-
kBorderColor?: string | undefined;
|
|
44
|
-
kBorderColor0?: string | undefined;
|
|
45
|
-
kBorderWidth?: string | number | undefined;
|
|
46
|
-
lineWidth?: string | number | undefined;
|
|
47
|
-
symbolSize?: string | number | undefined;
|
|
48
|
-
symbol?: string | undefined;
|
|
49
|
-
symbolBorderWidth?: string | number | undefined;
|
|
50
|
-
lineSmooth?: boolean | undefined;
|
|
51
|
-
graphLineWidth?: string | number | undefined;
|
|
52
|
-
graphLineColor?: string | undefined;
|
|
53
|
-
mapLabelColor?: string | undefined;
|
|
54
|
-
mapLabelColorE?: string | undefined;
|
|
55
|
-
mapBorderColor?: string | undefined;
|
|
56
|
-
mapBorderColorE?: string | undefined;
|
|
57
|
-
mapBorderWidth?: string | number | undefined;
|
|
58
|
-
mapBorderWidthE?: string | number | undefined;
|
|
59
|
-
mapAreaColor?: string | undefined;
|
|
60
|
-
mapAreaColorE?: string | undefined;
|
|
61
|
-
axes?: import("../../models/common/theme/build-in-theme/types").IEchartThemeAxisConfig[] | undefined;
|
|
62
|
-
axisSeperateSetting?: boolean | undefined;
|
|
63
|
-
toolboxColor?: string | undefined;
|
|
64
|
-
toolboxEmphasisColor?: string | undefined;
|
|
65
|
-
tooltipAxisColor?: string | undefined;
|
|
66
|
-
tooltipAxisWidth?: string | number | undefined;
|
|
67
|
-
timelineLineColor?: string | undefined;
|
|
68
|
-
timelineLineWidth?: string | number | undefined;
|
|
69
|
-
timelineItemColor?: string | undefined;
|
|
70
|
-
timelineItemColorE?: string | undefined;
|
|
71
|
-
timelineCheckColor?: string | undefined;
|
|
72
|
-
timelineCheckBorderColor?: string | undefined;
|
|
73
|
-
timelineItemBorderWidth?: string | number | undefined;
|
|
74
|
-
timelineControlColor?: string | undefined;
|
|
75
|
-
timelineControlBorderColor?: string | undefined;
|
|
76
|
-
timelineControlBorderWidth?: string | number | undefined;
|
|
77
|
-
timelineLabelColor?: string | undefined;
|
|
78
|
-
datazoomBackgroundColor?: string | undefined;
|
|
79
|
-
datazoomDataColor?: string | undefined;
|
|
80
|
-
datazoomFillColor?: string | undefined;
|
|
81
|
-
datazoomHandleColor?: string | undefined;
|
|
82
|
-
datazoomHandleWidth?: string | undefined;
|
|
83
|
-
datazoomLabelColor?: string | undefined;
|
|
84
|
-
} | undefined;
|
|
85
|
-
} | undefined;
|
|
86
|
-
wordCloudRenderConfig?: {
|
|
87
|
-
initialShape?: import("../..").WordCloudShape | undefined;
|
|
88
|
-
collisionShape?: import("../../wordcloud-chart/core/collision/engine").WordCloudCollisionShape | undefined;
|
|
89
|
-
fontSizeRange?: import("../..").WordCloudFontSizeRange | undefined;
|
|
90
|
-
padding?: number | undefined;
|
|
91
|
-
zoomToFit?: {
|
|
92
|
-
shrink?: boolean | undefined;
|
|
93
|
-
enlarge?: boolean | undefined;
|
|
94
|
-
fontSizeLimitMin?: number | undefined;
|
|
95
|
-
fontSizeLimitMax?: number | undefined;
|
|
96
|
-
minShrinkRatio?: number | undefined;
|
|
97
|
-
} | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
addWatermark?: boolean | undefined;
|
|
100
|
-
layoutInset?: number | undefined;
|
|
101
|
-
getRenderColor?: {} | undefined;
|
|
102
|
-
isDarkMode?: boolean | undefined;
|
|
103
|
-
hasSecondaryAxis?: boolean | undefined;
|
|
104
|
-
localeTexts?: {
|
|
105
|
-
seriesDefaultName?: string | undefined;
|
|
106
|
-
categoryDefaultName?: string | undefined;
|
|
107
|
-
blank?: string | undefined;
|
|
108
|
-
boxplotMin?: string | undefined;
|
|
109
|
-
boxplotQ1?: string | undefined;
|
|
110
|
-
boxplotMedian?: string | undefined;
|
|
111
|
-
boxplotQ3?: string | undefined;
|
|
112
|
-
boxplotMax?: string | undefined;
|
|
113
|
-
bubbleEmptyTips?: string | undefined;
|
|
114
|
-
cloudWord?: string | undefined;
|
|
115
|
-
cloudFrequency?: string | undefined;
|
|
116
|
-
msgEmptyTips?: string | undefined;
|
|
117
|
-
msgSankeyCircularTips?: string | undefined;
|
|
118
|
-
paretoLineName?: string | undefined;
|
|
119
|
-
pieAggregateOther?: string | undefined;
|
|
120
|
-
pieAggregateMembers?: string | undefined;
|
|
121
|
-
relationEmptyTips?: string | undefined;
|
|
122
|
-
waterfallPositive?: string | undefined;
|
|
123
|
-
waterfallNegative?: string | undefined;
|
|
124
|
-
waterfallSubtotal?: string | undefined;
|
|
125
|
-
candlestickSeries?: string | undefined;
|
|
126
|
-
candlestickCategory?: string | undefined;
|
|
127
|
-
candlestickOpen?: string | undefined;
|
|
128
|
-
candlestickHigh?: string | undefined;
|
|
129
|
-
candlestickLow?: string | undefined;
|
|
130
|
-
candlestickClose?: string | undefined;
|
|
131
|
-
histogramFrequency?: string | undefined;
|
|
132
|
-
treemapEmptyTips?: string | undefined;
|
|
133
|
-
treemapOwnValue?: string | undefined;
|
|
134
|
-
treemapChildren?: string | undefined;
|
|
135
|
-
sunburstEmptyTips?: string | undefined;
|
|
136
|
-
sunburstOwnValue?: string | undefined;
|
|
137
|
-
sunburstChildren?: string | undefined;
|
|
138
|
-
gaugeEmptyTips?: string | undefined;
|
|
139
|
-
gaugeInvalidMapping?: string | undefined;
|
|
140
|
-
gaugeInvalidConfig?: string | undefined;
|
|
141
|
-
chordEmptyTips?: string | undefined;
|
|
142
|
-
chordInvalidMapping?: string | undefined;
|
|
143
|
-
chordInvalidConfig?: string | undefined;
|
|
144
|
-
chordCount?: string | undefined;
|
|
145
|
-
chordAssociatedValue?: string | undefined;
|
|
146
|
-
} | undefined;
|
|
147
|
-
} | undefined;
|
|
148
|
-
direction?: import("../..").ChartDirection | undefined;
|
|
149
22
|
width?: number | undefined;
|
|
150
23
|
height?: number | undefined;
|
|
151
24
|
theme?: string | undefined;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { Injector } from '@univerjs/core';
|
|
2
|
-
import type {
|
|
3
|
-
import type { IChartRenderModelImageExportOptions, IUniverDataSet } from '../types';
|
|
2
|
+
import type { IUniverDataSet } from '../types';
|
|
4
3
|
import type { IChartBuilderAdapter } from './chart-builder-adapter';
|
|
5
4
|
import type { ChartPendingConfig, IChartDescription } from './chart-types';
|
|
6
|
-
import type { IInlineChartBuilderAdapter, IInlineChartHostPatch } from './internal/host-builder-runtime';
|
|
7
5
|
/** Shared adapter behavior for builders that have not been inserted into a host. */
|
|
8
6
|
export declare class DetachedChartBuilderAdapter<THostDescription extends object = object> implements IChartBuilderAdapter<THostDescription> {
|
|
9
7
|
private readonly _description;
|
|
@@ -17,12 +15,5 @@ export declare class DetachedChartBuilderAdapter<THostDescription extends object
|
|
|
17
15
|
commit(): never;
|
|
18
16
|
/** Detached drafts have no hosted materialization lifecycle. */
|
|
19
17
|
resolveData(): never;
|
|
20
|
-
/** Returns `null` because a detached chart has no render model. */
|
|
21
|
-
exportImage(_options?: IChartRenderModelImageExportOptions): Promise<null>;
|
|
22
18
|
protected rejectCommit(): never;
|
|
23
19
|
}
|
|
24
|
-
/** Detached behavior shared by inline-data builders before insertion into a host. */
|
|
25
|
-
export declare class DetachedInlineChartBuilderAdapter<THostDescription extends object, TCell extends InlineChartCellValue, THostPatch extends IInlineChartHostPatch<TCell>> extends DetachedChartBuilderAdapter<THostDescription> implements IInlineChartBuilderAdapter<THostDescription, TCell, THostPatch> {
|
|
26
|
-
commitHost(_patch: THostPatch): never;
|
|
27
|
-
getData(): null;
|
|
28
|
-
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IUniverDataSet } from '../../types';
|
|
2
|
+
/** Builds a detached data set from raw inline values and disposes the temporary source. */
|
|
3
|
+
export declare function resolveChartDataSetFromValues<TCell>(values: TCell[][], buildDataSet: (data: TCell[][]) => IUniverDataSet, isRowDirection?: boolean): IUniverDataSet;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DeepNullish, IChartHistogramSpec } from '../../types';
|
|
2
|
+
import type { ChartPendingConfig, IChartDescription, IChartMappingSpec } from '../chart-types';
|
|
3
|
+
import type { IPatchFieldSchema, PatchSchema } from './patch-interpreter';
|
|
4
|
+
type MappingPatch = DeepNullish<IChartMappingSpec>;
|
|
5
|
+
type HistogramPatch = DeepNullish<IChartHistogramSpec>;
|
|
6
|
+
export declare const mappingPatchSchema: PatchSchema<IChartMappingSpec, MappingPatch>;
|
|
7
|
+
export declare const histogramPatchSchema: PatchSchema<IChartHistogramSpec, HistogramPatch>;
|
|
8
|
+
export declare function semanticField<TKey extends keyof IChartDescription, TPatchValue>(key: TKey, path: readonly string[]): IPatchFieldSchema<IChartDescription, TPatchValue>;
|
|
9
|
+
export declare function appendCollectionField<TKey extends keyof IChartDescription, TValue>(key: TKey): IPatchFieldSchema<IChartDescription, TValue[] | null | undefined>;
|
|
10
|
+
export declare const seriesField: IPatchFieldSchema<IChartDescription, ChartPendingConfig['series']>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type Defined<T> = Exclude<T, null | undefined>;
|
|
2
|
+
export interface IPatchFieldSchema<TState, TPatchValue> {
|
|
3
|
+
clear(current: TState): TState;
|
|
4
|
+
applyValue(current: TState, value: Defined<TPatchValue>): TState;
|
|
5
|
+
composeValue(current: Defined<TPatchValue>, next: Defined<TPatchValue>): Defined<TPatchValue>;
|
|
6
|
+
}
|
|
7
|
+
export type PatchSchema<TState, TPatch extends object> = {
|
|
8
|
+
[K in keyof TPatch]-?: IPatchFieldSchema<TState, TPatch[K]>;
|
|
9
|
+
};
|
|
10
|
+
export interface IPatchInterpreter<TState, TPatch extends object> {
|
|
11
|
+
apply(current: TState, patch: TPatch): TState;
|
|
12
|
+
compose(current: TPatch, next: TPatch): TPatch;
|
|
13
|
+
}
|
|
14
|
+
export declare function replaceField<TState extends object, TKey extends keyof TState>(key: TKey): IPatchFieldSchema<TState, TState[TKey]>;
|
|
15
|
+
export declare function nestedField<TState extends object, TKey extends keyof TState, TNestedState extends object, TNestedPatch extends object>(key: TKey, schema: PatchSchema<TNestedState, TNestedPatch>): IPatchFieldSchema<TState, TNestedPatch>;
|
|
16
|
+
export declare function createPatchInterpreter<TState, TPatch extends object>(schema: PatchSchema<TState, TPatch>): IPatchInterpreter<TState, TPatch>;
|
|
17
|
+
export {};
|