@univerjs-pro/sheets-chart-ui 1.0.0-alpha.7 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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/index.css +14 -377
- 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/commands/commands/focused-chart.command.d.ts +1 -1
- package/lib/types/commands/commands/sheet-chart-menu.command.d.ts +4 -1
- package/lib/types/commands/operations/open-chart-panel-operation.d.ts +1 -1
- package/lib/types/config/config.d.ts +4 -0
- package/lib/types/controllers/chart-element-float-menu.controller.d.ts +4 -3
- package/lib/types/controllers/chart-render.controller.d.ts +3 -1
- package/lib/types/controllers/ui.controller.d.ts +7 -6
- package/lib/types/index.d.ts +0 -2
- package/lib/types/locale/en-US.d.ts +55 -302
- package/lib/types/services/chart-element-selection.d.ts +6 -6
- package/lib/types/services/chart-render.service.d.ts +10 -10
- package/lib/types/services/sheet-chart-host.d.ts +2 -4
- package/lib/types/services/sheets-chart-host-provider.service.d.ts +2 -2
- package/lib/types/services/sheets-chart-ui.service.d.ts +25 -138
- package/lib/types/util.d.ts +7 -4
- package/lib/types/views/chart-edit-panel/chart-editor-default-values.d.ts +79 -0
- package/lib/types/views/chart-edit-panel/data-tab-panel/DataTabPanel.d.ts +4 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/StyleTabPanel.d.ts +4 -5
- package/lib/types/views/chart-menu/chart-menu-factory.d.ts +1 -2
- 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 +20 -20
- package/lib/types/hooks.d.ts +0 -3
- package/lib/types/services/chart-panel-route.d.ts +0 -20
- package/lib/types/views/chart-edit-panel/Options.d.ts +0 -165
- package/lib/types/views/chart-edit-panel/RadarChartOptionsEdit.d.ts +0 -3
- package/lib/types/views/chart-edit-panel/button-switch/ButtonSwitch.d.ts +0 -8
- package/lib/types/views/chart-edit-panel/button-switch/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/data-tab-panel/BubbleDataEdit.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/data-tab-panel/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/AxisOptionsEdit.d.ts +0 -9
- package/lib/types/views/chart-edit-panel/style-tab-panel/ChartNumfmtDialog.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/style-tab-panel/DataLabelOptions.d.ts +0 -25
- package/lib/types/views/chart-edit-panel/style-tab-panel/IndicatorLine.d.ts +0 -16
- package/lib/types/views/chart-edit-panel/style-tab-panel/ParetoLine.d.ts +0 -5
- package/lib/types/views/chart-edit-panel/style-tab-panel/PieChartStyleEdit.d.ts +0 -6
- package/lib/types/views/chart-edit-panel/style-tab-panel/RelationEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/TrendLineEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/WaterfallSeriesEdit.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/WordCloudShapeSelector.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/grid-line-and-tick-options/GridLineAndTickOptions.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/style-tab-panel/grid-line-and-tick-options/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/CombinationChartTypeSelect.d.ts +0 -4
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/DataPointsEdit.d.ts +0 -11
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/RadarPoints.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/SeriesStyleEdit.d.ts +0 -7
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/Widgets.d.ts +0 -33
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/const.d.ts +0 -2
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/index.d.ts +0 -1
- package/lib/types/views/chart-edit-panel/style-tab-panel/series-style-edit/use-series-chart-type.d.ts +0 -3
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x915233=_0x124b;(function(_0x35bff9,_0x5c9e75){const _0x2d72f5=_0x124b,_0x1ed01b=_0x35bff9();while(!![]){try{const _0xd79631=parseInt(_0x2d72f5(0x87))/0x1+parseInt(_0x2d72f5(0x9d))/0x2*(parseInt(_0x2d72f5(0x84))/0x3)+-parseInt(_0x2d72f5(0x96))/0x4+parseInt(_0x2d72f5(0x7d))/0x5+parseInt(_0x2d72f5(0x79))/0x6*(parseInt(_0x2d72f5(0x8c))/0x7)+-parseInt(_0x2d72f5(0x9e))/0x8+parseInt(_0x2d72f5(0x99))/0x9*(parseInt(_0x2d72f5(0x94))/0xa);if(_0xd79631===_0x5c9e75)break;else _0x1ed01b['push'](_0x1ed01b['shift']());}catch(_0x316815){_0x1ed01b['push'](_0x1ed01b['shift']());}}}(_0x31ac,0xac1cf));function _0x31ac(){const _0x28d09b=['复合饼图','448362vqQZgb','自定义样式','K\x20线图','折线图','将\x20{0}\x20作为类别','24283LMBjPS','条形图','隐藏图表面板','该范围已被保护,目前无编辑权限。如需编辑,请联系创建者。','关系图','树状图','柱状图','雷达图','3021350gSHvoT','编辑图表','3968056LMKjwX','气泡图','排列图','18fqWxXX','右纵轴','指示线','累积占比系列','1874IOGYfE','11082832XcPwat','瀑布图','图表和坐标轴标题','直方图','删除图表','旭日图','漏斗图','词云图','102uviryU','堆叠面积图','仪表图','桑基图','3941220lYxkIM','热力图','矩形树图','网格线和刻度线','箱线图','导出图片','百分比堆叠面积图','3786skOAKt','数据范围'];_0x31ac=function(){return _0x28d09b;};return _0x31ac();}function _0x124b(_0x25737b,_0x972332){_0x25737b=_0x25737b-0x77;const _0x31ac24=_0x31ac();let _0x124b02=_0x31ac24[_0x25737b];return _0x124b02;}const e={'sheets-chart-ui':{'permission':{'editErr':_0x915233(0x8f)},'common':{'setup':'类型与数据','customize':_0x915233(0x88),'editChart':'图表','useAsCategoryLabels':_0x915233(0x8b),'switchRowColumn':'切换行列','dataRange':_0x915233(0x85),'insertChart':'插入图表','openChartPanel':_0x915233(0x95),'deleteChart':_0x915233(0xa2),'hideChartPanel':_0x915233(0x8e),'chartAndAxisTitles':_0x915233(0xa0),'chartStyle':'图表样式','heatmap':_0x915233(0x7e),'horizontalAxis':'横轴','legend':'图例','rightVerticalAxis':_0x915233(0x9a),'series':'系列','trendline':'趋势线','verticalAxis':'纵轴','category':'类别','copy':'复制','exportImage':_0x915233(0x82)},'waterfall':{'subtotal':'小计','positive':'正值','negative':'负值'},'chartTypes':{'line':_0x915233(0x8a),'column':_0x915233(0x92),'bar':_0x915233(0x8d),'barStacked':'堆叠条形图','barPercentStacked':'百分比堆叠条形图','pie':'饼图','donut':'环形图','pieOfPie':'子母饼图','barOfPie':_0x915233(0x86),'area':'面积图','areaStacked':_0x915233(0x7a),'areaPercentStacked':_0x915233(0x83),'radar':_0x915233(0x93),'scatter':'散点图','combination':'组合图','wordCloud':_0x915233(0x78),'funnel':_0x915233(0x77),'bubble':_0x915233(0x97),'relation':'关系图','waterfall':_0x915233(0x9f),'pareto':_0x915233(0x98),'sankey':_0x915233(0x7c),'heatmap':_0x915233(0x7e),'boxplot':_0x915233(0x81),'candlestick':_0x915233(0x89),'histogram':_0x915233(0xa1),'treemap':_0x915233(0x7f),'sunburst':_0x915233(0xa3),'gauge':'仪表盘','chord':'和弦图'},'section':{'candlestick':'烛台图','chord':'和弦图','funnel':_0x915233(0x77),'gauge':_0x915233(0x7b),'gridlinesAndTicks':_0x915233(0x80),'histogram':_0x915233(0xa1),'indicatorLine':_0x915233(0x9b),'lineAndArea':'折线图\x20/\x20面积图','paretoBar':'柱状图系列','paretoLine':_0x915233(0x9c),'pie':'饼图','radar':_0x915233(0x93),'relation':_0x915233(0x90),'sunburst':'旭日图','treemap':_0x915233(0x91),'waterfall':'瀑布图','wordCloud':'词云'},'chord':{'target':'目标'}}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5853(){const _0x451304=['圖表樣式','指示線','設定圖表','1810MNykJo','插入圖表','自訂圖表','673684hqInII','儀表圖','和弦圖','累積占比系列','該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。\x20','刪除圖表','148893BQtujp','直方圖','複合餅圖','儀表盤','關係圖','網格線和刻度線','氣泡圖','使用\x20{0}\x20作為類別','組合圖','條形圖','27dtpFbi','4031034CVkDrw','41752nlxlyy','1102999PJLDIq','匯出圖片','隱藏圖表面板','堆疊條形圖','折線圖','面積圖','右縱軸','5444AZLGqf','1218980QSGTAQ','燭台圖','56cNnSri','散點圖','子母餅圖','瀑布圖','資料範圍','6kSWXUn','漏斗圖','旭日圖','詞雲圖','柱狀圖','468aqwsLO','熱力圖','百分比堆疊面積圖','切換列或欄','樹狀圖','編輯圖表','百分比堆疊條形圖','排列圖'];_0x5853=function(){return _0x451304;};return _0x5853();}const _0x1fb24a=_0x5c2a;function _0x5c2a(_0x58d774,_0x4a3e15){_0x58d774=_0x58d774-0x92;const _0x58537b=_0x5853();let _0x5c2a64=_0x58537b[_0x58d774];return _0x5c2a64;}(function(_0x1baa33,_0x3d91fe){const _0x181287=_0x5c2a,_0x11ddde=_0x1baa33();while(!![]){try{const _0x52500f=-parseInt(_0x181287(0x9a))/0x1+-parseInt(_0x181287(0xa9))/0x2*(-parseInt(_0x181287(0xc2))/0x3)+parseInt(_0x181287(0xa1))/0x4*(-parseInt(_0x181287(0xb9))/0x5)+-parseInt(_0x181287(0x98))/0x6+parseInt(_0x181287(0xa4))/0x7*(-parseInt(_0x181287(0x99))/0x8)+parseInt(_0x181287(0x97))/0x9*(parseInt(_0x181287(0xa2))/0xa)+-parseInt(_0x181287(0xbc))/0xb*(-parseInt(_0x181287(0xae))/0xc);if(_0x52500f===_0x3d91fe)break;else _0x11ddde['push'](_0x11ddde['shift']());}catch(_0x49c45d){_0x11ddde['push'](_0x11ddde['shift']());}}}(_0x5853,0x90fa7));const e={'sheets-chart-ui':{'permission':{'editErr':_0x1fb24a(0xc0)},'common':{'setup':_0x1fb24a(0xb8),'customize':_0x1fb24a(0xbb),'editChart':_0x1fb24a(0xb3),'useAsCategoryLabels':_0x1fb24a(0x94),'switchRowColumn':_0x1fb24a(0xb1),'dataRange':_0x1fb24a(0xa8),'insertChart':_0x1fb24a(0xba),'openChartPanel':'開啟圖表面板','deleteChart':_0x1fb24a(0xc1),'hideChartPanel':_0x1fb24a(0x9c),'chartAndAxisTitles':'圖表與座標軸標題','chartStyle':_0x1fb24a(0xb6),'heatmap':_0x1fb24a(0xaf),'horizontalAxis':'橫軸','legend':'圖例','rightVerticalAxis':_0x1fb24a(0xa0),'series':'系列','trendline':'趨勢線','verticalAxis':'縱軸','category':'類別','copy':'複製','exportImage':_0x1fb24a(0x9b)},'waterfall':{'subtotal':'小計','positive':'正值','negative':'負值'},'chartTypes':{'line':_0x1fb24a(0x9e),'column':_0x1fb24a(0xad),'bar':_0x1fb24a(0x96),'barStacked':_0x1fb24a(0x9d),'barPercentStacked':_0x1fb24a(0xb4),'pie':'餅圖','donut':'環形圖','pieOfPie':_0x1fb24a(0xa6),'barOfPie':_0x1fb24a(0xc4),'area':_0x1fb24a(0x9f),'areaStacked':'堆疊面積圖','areaPercentStacked':_0x1fb24a(0xb0),'radar':'雷達圖','scatter':_0x1fb24a(0xa5),'combination':_0x1fb24a(0x95),'wordCloud':_0x1fb24a(0xac),'funnel':_0x1fb24a(0xaa),'bubble':_0x1fb24a(0x93),'relation':'關係圖','waterfall':_0x1fb24a(0xa7),'pareto':_0x1fb24a(0xb5),'sankey':'桑基圖','heatmap':_0x1fb24a(0xaf),'boxplot':'箱型圖','candlestick':'K\x20線圖','histogram':_0x1fb24a(0xc3),'treemap':'矩形樹圖','sunburst':'旭日圖','gauge':_0x1fb24a(0xc5),'chord':_0x1fb24a(0xbe)},'section':{'candlestick':_0x1fb24a(0xa3),'chord':_0x1fb24a(0xbe),'funnel':_0x1fb24a(0xaa),'gauge':_0x1fb24a(0xbd),'gridlinesAndTicks':_0x1fb24a(0x92),'histogram':_0x1fb24a(0xc3),'indicatorLine':_0x1fb24a(0xb7),'lineAndArea':'折線圖\x20/\x20面積圖','paretoBar':'長條圖系列','paretoLine':_0x1fb24a(0xbf),'pie':'餅圖','radar':'雷達圖','relation':_0x1fb24a(0xc6),'sunburst':_0x1fb24a(0xab),'treemap':_0x1fb24a(0xb2),'waterfall':_0x1fb24a(0xa7),'wordCloud':'詞雲'},'chord':{'target':'目標'}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x303c(){const _0x2a959d=['網格線和刻度線','使用\x20{0}\x20作為類別','136paXggY','柱狀圖','熱力圖','折線圖\x20/\x20面積圖','設定圖表','堆疊面積圖','子母餅圖','隱藏圖表面板','圖表樣式','刪除圖表','環形圖','燭台圖','排列圖','自訂圖表','直方圖','19252UwbqkE','漏斗圖','972189QleOIp','條形圖','該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。\x20','長條圖系列','圖表與座標軸標題','趨勢線','705350xhcCtJ','128AYueZM','組合圖','22qQTUUr','105UDeDmc','和弦圖','矩形樹圖','瀑布圖','資料範圍','累積占比系列','雷達圖','8yyZFBf','編輯圖表','153260dDPzfg','旭日圖','面積圖','箱型圖','829350TGuIEg','氣泡圖','複合餅圖','儀表板','詞雲圖','儀表圖','112119nWdUtR','百分比堆疊條形圖'];_0x303c=function(){return _0x2a959d;};return _0x303c();}const _0x20b37b=_0x2d14;function _0x2d14(_0x5bb51b,_0x205bef){_0x5bb51b=_0x5bb51b-0xdc;const _0x303c49=_0x303c();let _0x2d1461=_0x303c49[_0x5bb51b];return _0x2d1461;}(function(_0x314575,_0x1bb19d){const _0x9484=_0x2d14,_0x31f879=_0x314575();while(!![]){try{const _0x2fc178=parseInt(_0x9484(0xe2))/0x1*(-parseInt(_0x9484(0xfa))/0x2)+-parseInt(_0x9484(0xfd))/0x3*(-parseInt(_0x9484(0xf1))/0x4)+parseInt(_0x9484(0xf9))/0x5+-parseInt(_0x9484(0x10a))/0x6+parseInt(_0x9484(0xde))/0x7+-parseInt(_0x9484(0x104))/0x8*(parseInt(_0x9484(0xf3))/0x9)+-parseInt(_0x9484(0x106))/0xa*(-parseInt(_0x9484(0xfc))/0xb);if(_0x2fc178===_0x1bb19d)break;else _0x31f879['push'](_0x31f879['shift']());}catch(_0x54776c){_0x31f879['push'](_0x31f879['shift']());}}}(_0x303c,0x18b7c));const e={'sheets-chart-ui':{'permission':{'editErr':_0x20b37b(0xf5)},'common':{'setup':_0x20b37b(0xe6),'customize':_0x20b37b(0xef),'editChart':_0x20b37b(0x105),'useAsCategoryLabels':_0x20b37b(0xe1),'switchRowColumn':'切換列或欄','dataRange':_0x20b37b(0x101),'insertChart':'插入圖表','openChartPanel':'開啟圖表面板','deleteChart':_0x20b37b(0xeb),'hideChartPanel':_0x20b37b(0xe9),'chartAndAxisTitles':_0x20b37b(0xf7),'chartStyle':_0x20b37b(0xea),'heatmap':_0x20b37b(0xe4),'horizontalAxis':'橫軸','legend':'圖例','rightVerticalAxis':'右縱軸','series':'系列','trendline':_0x20b37b(0xf8),'verticalAxis':'縱軸','category':'類別','copy':'複製','exportImage':'匯出圖片'},'waterfall':{'subtotal':'小計','positive':'正值','negative':'負值'},'chartTypes':{'line':'折線圖','column':_0x20b37b(0xe3),'bar':_0x20b37b(0xf4),'barStacked':'堆疊條形圖','barPercentStacked':_0x20b37b(0xdf),'pie':'餅圖','donut':_0x20b37b(0xec),'pieOfPie':_0x20b37b(0xe8),'barOfPie':_0x20b37b(0x10c),'area':_0x20b37b(0x108),'areaStacked':_0x20b37b(0xe7),'areaPercentStacked':'百分比堆疊面積圖','radar':_0x20b37b(0x103),'scatter':'散點圖','combination':_0x20b37b(0xfb),'wordCloud':_0x20b37b(0xdc),'funnel':'漏斗圖','bubble':_0x20b37b(0x10b),'relation':'關係圖','waterfall':_0x20b37b(0x100),'pareto':_0x20b37b(0xee),'sankey':'桑基圖','heatmap':'熱力圖','boxplot':_0x20b37b(0x109),'candlestick':'K\x20線圖','histogram':'直方圖','treemap':_0x20b37b(0xff),'sunburst':_0x20b37b(0x107),'gauge':_0x20b37b(0x10d),'chord':_0x20b37b(0xfe)},'section':{'candlestick':_0x20b37b(0xed),'chord':'和弦圖','funnel':_0x20b37b(0xf2),'gauge':_0x20b37b(0xdd),'gridlinesAndTicks':_0x20b37b(0xe0),'histogram':_0x20b37b(0xf0),'indicatorLine':'指示線','lineAndArea':_0x20b37b(0xe5),'paretoBar':_0x20b37b(0xf6),'paretoLine':_0x20b37b(0x102),'pie':'餅圖','radar':_0x20b37b(0x103),'relation':'關係圖','sunburst':_0x20b37b(0x107),'treemap':'樹狀圖','waterfall':_0x20b37b(0x100),'wordCloud':'詞雲'},'chord':{'target':'目標'}}};export{e as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { IChartEditPanelRoute } from '@univerjs-pro/chart-ui';
|
|
1
2
|
import type { IAccessor, ICommand } from '@univerjs/core';
|
|
2
3
|
import type { ISheetDrawing } from '@univerjs/sheets-drawing';
|
|
3
|
-
import type { IChartEditPanelRoute } from '../../services/chart-panel-route';
|
|
4
4
|
export declare function getFocusedChartDrawing(accessor: IAccessor): ISheetDrawing | null;
|
|
5
5
|
export interface IChartOpenFocusedChartPanelCommandParams {
|
|
6
6
|
route?: IChartEditPanelRoute;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PieSecondaryPlotType as PieSecondaryPlotTypeValue } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { ICommand } from '@univerjs/core';
|
|
3
|
+
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
3
4
|
export interface IMenuInsertChartCommandParams {
|
|
4
5
|
value: ChartTypeBits;
|
|
6
|
+
/** Optional for backward compatibility with historical plain chart menu payloads. */
|
|
7
|
+
pieSecondaryPlotType?: PieSecondaryPlotTypeValue;
|
|
5
8
|
}
|
|
6
9
|
export declare const MenuInsertChartCommand: ICommand;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { IChartEditPanelRoute } from '@univerjs-pro/chart-ui';
|
|
1
2
|
import type { IOperation } from '@univerjs/core';
|
|
2
|
-
import type { IChartEditPanelRoute } from '../../services/chart-panel-route';
|
|
3
3
|
export interface IChartOpenPanelOperationParams {
|
|
4
4
|
unitId: string;
|
|
5
5
|
subUnitId: string;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export declare const SHEETS_CHART_UI_PLUGIN_CONFIG_KEY = "sheets-chart-ui.config";
|
|
2
2
|
export declare const configSymbol: unique symbol;
|
|
3
3
|
export interface IUniverSheetsChartUIConfig {
|
|
4
|
+
/**
|
|
5
|
+
* Enables chart element edit overlays and floating menus for supported chart types.
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
4
8
|
enableChartElementFloatMenu?: boolean;
|
|
5
9
|
}
|
|
6
10
|
export declare const defaultPluginConfig: IUniverSheetsChartUIConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChartElementFloatMenuAdapterRegistry } from '@univerjs-pro/chart-ui';
|
|
2
2
|
import { ChartModelService } from '@univerjs-pro/sheets-chart';
|
|
3
|
-
import { Disposable, ICommandService } from '@univerjs/core';
|
|
3
|
+
import { Disposable, ICommandService, Injector } from '@univerjs/core';
|
|
4
4
|
import { SheetCanvasFloatDomManagerService } from '@univerjs/sheets-drawing-ui';
|
|
5
5
|
import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
|
|
6
6
|
import { ChartRenderService } from '../services/chart-render.service';
|
|
@@ -12,12 +12,13 @@ export declare class SheetsChartElementFloatMenuController extends Disposable {
|
|
|
12
12
|
private readonly _chartHostProvider;
|
|
13
13
|
private readonly _sheetCanvasPopManagerService;
|
|
14
14
|
private readonly _sheetCanvasFloatDomManagerService;
|
|
15
|
-
private readonly
|
|
15
|
+
private readonly _chartUIService;
|
|
16
16
|
private readonly _adapterRegistry;
|
|
17
17
|
private readonly _commandService;
|
|
18
|
+
private readonly _injector;
|
|
18
19
|
private _popupDisposable;
|
|
19
20
|
private _popupChartId;
|
|
20
|
-
constructor(_chartModelService: ChartModelService, _chartRenderService: ChartRenderService, _chartHostProvider: IChartHostProviderService, _sheetCanvasPopManagerService: SheetCanvasPopManagerService, _sheetCanvasFloatDomManagerService: SheetCanvasFloatDomManagerService,
|
|
21
|
+
constructor(_chartModelService: ChartModelService, _chartRenderService: ChartRenderService, _chartHostProvider: IChartHostProviderService, _sheetCanvasPopManagerService: SheetCanvasPopManagerService, _sheetCanvasFloatDomManagerService: SheetCanvasFloatDomManagerService, _chartUIService: ISheetsChartUIService, _adapterRegistry: ChartElementFloatMenuAdapterRegistry, _commandService: ICommandService, _injector: Injector);
|
|
21
22
|
dispose(): void;
|
|
22
23
|
private _registerAdapter;
|
|
23
24
|
private _subscribeChartEvents;
|
|
@@ -2,14 +2,16 @@ import { ChartModelService } from '@univerjs-pro/sheets-chart';
|
|
|
2
2
|
import { Disposable, ICommandService, LocaleService } from '@univerjs/core';
|
|
3
3
|
import { SheetPrintInterceptorService } from '@univerjs/sheets-ui';
|
|
4
4
|
import { ChartRenderService } from '../services/chart-render.service';
|
|
5
|
+
import { ISheetsChartUIService } from '../services/sheets-chart-ui.service';
|
|
5
6
|
export declare class ChartRenderController extends Disposable {
|
|
6
7
|
private readonly _chartModelService;
|
|
7
8
|
private readonly _chartRenderService;
|
|
8
9
|
private readonly _localeService;
|
|
10
|
+
private readonly _chartUIService;
|
|
9
11
|
private readonly _commandService;
|
|
10
12
|
private readonly _sheetPrintInterceptorService;
|
|
11
13
|
private readonly _pendingMutationConfigRenders;
|
|
12
|
-
constructor(_chartModelService: ChartModelService, _chartRenderService: ChartRenderService, _localeService: LocaleService, _commandService: ICommandService, _sheetPrintInterceptorService: SheetPrintInterceptorService);
|
|
14
|
+
constructor(_chartModelService: ChartModelService, _chartRenderService: ChartRenderService, _localeService: LocaleService, _chartUIService: ISheetsChartUIService, _commandService: ICommandService, _sheetPrintInterceptorService: SheetPrintInterceptorService);
|
|
13
15
|
private _initPrinting;
|
|
14
16
|
private _init;
|
|
15
17
|
private _listenChartUpdateMutations;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { IChartEditPanelRoute } from '@univerjs-pro/chart-ui';
|
|
1
2
|
import type { IDrawingParam } from '@univerjs/core';
|
|
2
|
-
import type { IChartEditPanelRoute } from '../services/chart-panel-route';
|
|
3
3
|
import { ChartModelService } from '@univerjs-pro/sheets-chart';
|
|
4
|
-
import { Disposable, DrawingTypeEnum, ICommandService, IContextService, IUniverInstanceService } from '@univerjs/core';
|
|
4
|
+
import { Disposable, DrawingTypeEnum, ICommandService, IConfigService, IContextService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
5
5
|
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
6
6
|
import { IDrawingContextMenuService, SheetCanvasFloatDomManagerService, SheetDrawingHitTestService } from '@univerjs/sheets-drawing-ui';
|
|
7
7
|
import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
|
|
8
|
-
import {
|
|
8
|
+
import { IMenuManagerService, ISidebarService } from '@univerjs/ui';
|
|
9
9
|
import { ChartRenderService } from '../services/chart-render.service';
|
|
10
10
|
import { ISheetsChartUIService } from '../services/sheets-chart-ui.service';
|
|
11
11
|
export declare function isSingleStandaloneChartSelection(params: readonly IDrawingParam[]): boolean;
|
|
@@ -16,8 +16,6 @@ export declare class SheetsChartUIController extends Disposable {
|
|
|
16
16
|
private readonly _chartRenderService;
|
|
17
17
|
private readonly _sheetDrawingHitTestService;
|
|
18
18
|
private _sidebarService;
|
|
19
|
-
private _componentManager;
|
|
20
|
-
private _iconManager;
|
|
21
19
|
protected readonly _menuManagerService: IMenuManagerService;
|
|
22
20
|
private readonly _drawingContextMenuService;
|
|
23
21
|
private readonly _sheetCanvasFloatDomManagerService;
|
|
@@ -25,8 +23,10 @@ export declare class SheetsChartUIController extends Disposable {
|
|
|
25
23
|
private readonly _commandService;
|
|
26
24
|
private readonly _sheetsChartUIService;
|
|
27
25
|
private readonly _contextService;
|
|
26
|
+
private readonly _localeService;
|
|
28
27
|
private _sidebarDisposable;
|
|
29
|
-
|
|
28
|
+
private readonly _isChartElementEditEnabled;
|
|
29
|
+
constructor(_drawingManagerService: IDrawingManagerService, _univerInstanceService: IUniverInstanceService, _chartModelService: ChartModelService, _chartRenderService: ChartRenderService, _sheetDrawingHitTestService: SheetDrawingHitTestService, _sidebarService: ISidebarService, _menuManagerService: IMenuManagerService, _drawingContextMenuService: IDrawingContextMenuService, _sheetCanvasFloatDomManagerService: SheetCanvasFloatDomManagerService, _sheetCanvasPopManagerService: SheetCanvasPopManagerService, _commandService: ICommandService, _sheetsChartUIService: ISheetsChartUIService, _contextService: IContextService, _localeService: LocaleService, configService: IConfigService);
|
|
30
30
|
private _openPanel;
|
|
31
31
|
hidePanel(): void;
|
|
32
32
|
initPanel(): void;
|
|
@@ -36,6 +36,7 @@ export declare class SheetsChartUIController extends Disposable {
|
|
|
36
36
|
private _activateEditPanelState;
|
|
37
37
|
private _deactivateEditPanelState;
|
|
38
38
|
private _initMenus;
|
|
39
|
+
private _shouldEnableChartElementEdit;
|
|
39
40
|
getChartPopupMenus(unitId: string, subUnitId: string, drawingId: string, drawingType: DrawingTypeEnum): ({
|
|
40
41
|
label: string;
|
|
41
42
|
index: number;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -4,6 +4,4 @@ export type { IUniverSheetsChartUIConfig } from './config/config';
|
|
|
4
4
|
export { SheetsChartUIController } from './controllers/ui.controller';
|
|
5
5
|
export { menuSchema as SheetsChartUIMenuSchema } from './menu/schema';
|
|
6
6
|
export { UniverSheetsChartUIPlugin } from './plugin';
|
|
7
|
-
export type { IChartEditPanelRoute, IChartPanelRouteState, IChartSelectedElementState } from './services/chart-panel-route';
|
|
8
|
-
export { resolveChartEditPanelRoute } from './services/chart-panel-route';
|
|
9
7
|
export { ISheetsChartUIService, SheetsChartUIService } from './services/sheets-chart-ui.service';
|