@univerjs-pro/docs-chart-ui 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/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 +28 -4
- 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/components/DocChartDataEditor.d.ts +6 -4
- package/lib/types/components/DocChartPreview.d.ts +3 -3
- package/lib/types/controllers/doc-chart-clipboard.controller.d.ts +4 -4
- package/lib/types/controllers/doc-chart-drawing-edit.controller.d.ts +2 -2
- package/lib/types/controllers/doc-chart-snapshot-refresh.controller.d.ts +3 -2
- package/lib/types/locale/en-US.d.ts +3 -0
- package/lib/types/services/chart-image-export-provider.d.ts +21 -0
- package/lib/types/services/doc-chart-active-render.service.d.ts +4 -0
- package/lib/types/services/doc-chart-data-edit.service.d.ts +8 -6
- package/lib/types/services/doc-chart-host.d.ts +4 -1
- package/lib/types/services/doc-chart-insert.service.d.ts +4 -3
- package/lib/types/services/doc-chart-print.service.d.ts +18 -5
- package/lib/types/services/doc-chart-render.service.d.ts +3 -3
- package/lib/types/services/doc-chart-snapshot-render.service.d.ts +6 -3
- package/lib/types/services/doc-chart-ui.service.d.ts +3 -3
- package/lib/types/views/print-chart/index.d.ts +1 -9
- 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 +17 -17
- package/lib/types/utils/ChartPanelOptions.d.ts +0 -1
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3c92(_0xafea9d,_0x52144c){_0xafea9d=_0xafea9d-0x18c;const _0x182dda=_0x182d();let _0x3c9298=_0x182dda[_0xafea9d];return _0x3c9298;}const _0x51b17d=_0x3c92;(function(_0x33f630,_0x10eed4){const _0x43cc35=_0x3c92,_0x2379a2=_0x33f630();while(!![]){try{const _0x49634c=-parseInt(_0x43cc35(0x1b3))/0x1+-parseInt(_0x43cc35(0x1a3))/0x2+parseInt(_0x43cc35(0x1a2))/0x3+parseInt(_0x43cc35(0x1c9))/0x4*(parseInt(_0x43cc35(0x1b0))/0x5)+parseInt(_0x43cc35(0x1a8))/0x6+-parseInt(_0x43cc35(0x192))/0x7+-parseInt(_0x43cc35(0x19f))/0x8;if(_0x49634c===_0x10eed4)break;else _0x2379a2['push'](_0x2379a2['shift']());}catch(_0x1a1439){_0x2379a2['push'](_0x2379a2['shift']());}}}(_0x182d,0xc2873));const e={'docs-chart-ui':{'previewRenderFailed':_0x51b17d(0x1a0),'updateChartFailed':'无法更新图表。','chartNotFound':_0x51b17d(0x1b1),'close':'关闭','common':{'horizontalAxis':'横轴','verticalAxis':'纵轴','setup':_0x51b17d(0x1c3),'customize':_0x51b17d(0x196),'editChart':'图表','data':'数据','editData':_0x51b17d(0x19a),'tableDataEmpty':_0x51b17d(0x1b6),'cancel':'取消','duplicate':'复制数据源','apply':'应用','insertChartFailed':_0x51b17d(0x1ad),'inlineData':_0x51b17d(0x1c0),'insert':'插入','deleteChart':'删除图表','insertChart':_0x51b17d(0x1b9),'chartAndAxisTitles':_0x51b17d(0x1b7),'chartStyle':_0x51b17d(0x1c2),'heatmap':_0x51b17d(0x19e),'legend':'图例','rightVerticalAxis':'右纵轴','series':'系列','trendline':_0x51b17d(0x1c8),'category':'类别','label':'标签','value':'数值','valueField':_0x51b17d(0x1bf),'chartType':_0x51b17d(0x1ae)},'floatMenu':{'menuTitle':{'chart':'图表'}},'chartTypes':{'line':'折线图','column':_0x51b17d(0x1b5),'columnStacked':_0x51b17d(0x198),'columnPercentStacked':_0x51b17d(0x19c),'bar':_0x51b17d(0x18f),'barStacked':_0x51b17d(0x1c5),'barPercentStacked':_0x51b17d(0x19d),'pie':'饼图','donut':_0x51b17d(0x1c4),'pieOfPie':'子母饼图','barOfPie':'复合饼图','area':_0x51b17d(0x1bd),'areaStacked':_0x51b17d(0x1aa),'areaPercentStacked':_0x51b17d(0x1b4),'radar':'雷达图','scatter':'散点图','combination':_0x51b17d(0x195),'wordCloud':_0x51b17d(0x18d),'funnel':'漏斗图','bubble':_0x51b17d(0x190),'relation':_0x51b17d(0x18e),'waterfall':'瀑布图','pareto':_0x51b17d(0x1a9),'sankey':_0x51b17d(0x1bc),'heatmap':_0x51b17d(0x19e),'boxplot':_0x51b17d(0x1a1),'candlestick':_0x51b17d(0x1a6),'histogram':_0x51b17d(0x1c1),'treemap':_0x51b17d(0x1b8),'sunburst':_0x51b17d(0x191),'gauge':_0x51b17d(0x1a5),'chord':_0x51b17d(0x1a7)},'section':{'candlestick':'烛台图','chord':_0x51b17d(0x1a7),'funnel':'漏斗图','gauge':'仪表图','gridlinesAndTicks':_0x51b17d(0x1c7),'histogram':_0x51b17d(0x1c1),'indicatorLine':_0x51b17d(0x194),'lineAndArea':_0x51b17d(0x1ba),'paretoBar':_0x51b17d(0x193),'paretoLine':'累积占比系列','pie':'饼图','radar':'雷达图','relation':'关系图','sunburst':_0x51b17d(0x191),'treemap':_0x51b17d(0x1be),'waterfall':'瀑布图','wordCloud':'词云'},'candlestick':{'columnsError':'K\x20线图数据需要“类别、开盘价、最高价、最低价、收盘价”列。','close':'收盘','high':'最高','low':'最低','open':'开盘','series':'OHLC\x20系列'},'chord':{'source':'来源','target':'目标','emptyDiagnostic':_0x51b17d(0x1b2),'mappingDiagnostic':'弦图需要不同的来源字段和目标字段,并可选一个与二者不同的数值字段。','configDiagnostic':'弦图配置无效,请检查角度、半径、不透明度和尺寸。','count':'关系计数','associatedValue':_0x51b17d(0x18c)},'sunburst':{'hierarchy':'层级','ownValue':'自身值','children':'子项','diagnostic':_0x51b17d(0x199)},'histogram':{'frequency':'频数'},'pie':{'aggregateOther':'其他','aggregateMembers':_0x51b17d(0x1a4)},'treemap':{'hierarchy':_0x51b17d(0x1bb),'ownValue':'自身值','children':'子项','diagnostic':'矩形树图至少需要一个层级字段和一个数值字段。'},'gauge':{'emptyDiagnostic':_0x51b17d(0x1ab),'mappingDiagnostic':_0x51b17d(0x1af),'configDiagnostic':_0x51b17d(0x1ac)},'chartField':{'missingCategoryFields':_0x51b17d(0x1c6),'missingSeriesFields':_0x51b17d(0x197),'invalidFieldIndex':'所选图表字段已不可用。','invalidValueFieldType':_0x51b17d(0x19b),'invalidDataStructure':_0x51b17d(0x1ca),'unsupportedChartType':'此图表类型没有字段使用规则。'}}};export{e as default};function _0x182d(){const _0x139099=['堆叠条形图','此图表需要更多标签字段。','网格线和刻度线','趋势线','120iiPuig','所选字段无法构成此图表所需的有效数据结构。','关联值','词云图','关系图','条形图','气泡图','旭日图','2489984nwEfvo','柱状图系列','指示线','组合图','自定义样式','此图表需要更多数值字段。','堆叠\x20·\x20柱状图','旭日图至少需要一个层级字段和一个数值字段。','修改数据','所选值字段不包含数值数据。','百分比堆叠\x20·\x20柱状图','百分比堆叠条形图','热力图','1852832dYTBJr','无法呈现图表预览。','箱线图','3680709zFXnMM','1336862qbLATZ','成员数','仪表盘','K\x20线图','和弦图','5547546SrgzUj','排列图','堆叠面积图','仪表图至少需要一个有限数值。','仪表图配置无效,请检查刻度范围、分段区间、比例和尺寸。','无法插入图表。','图表类型','仪表图需要一个标签字段且只能有一个数值字段。','116840oJaMHh','图表不可用。','弦图至少需要两个不同节点之间的一条正权重关系。','800000ucDXKu','百分比堆叠面积图','柱状图','表格数据为空。','图表和坐标轴标题','矩形树图','插入图表','折线图\x20/\x20面积图','层级字段','桑基图','面积图','树状图','数值字段','内联数据','直方图','图表样式','类型与数据','环形图'];_0x182d=function(){return _0x139099;};return _0x182d();}
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x295ec3=_0x2e04;(function(_0x13ece7,_0x4a8729){const _0x1dd9f7=_0x2e04,_0x86f890=_0x13ece7();while(!![]){try{const _0x3572e8=parseInt(_0x1dd9f7(0x1e0))/0x1+-parseInt(_0x1dd9f7(0x1a4))/0x2*(parseInt(_0x1dd9f7(0x1dd))/0x3)+parseInt(_0x1dd9f7(0x19f))/0x4+parseInt(_0x1dd9f7(0x1c9))/0x5*(-parseInt(_0x1dd9f7(0x1ba))/0x6)+parseInt(_0x1dd9f7(0x1c2))/0x7*(-parseInt(_0x1dd9f7(0x1dc))/0x8)+parseInt(_0x1dd9f7(0x1c0))/0x9+parseInt(_0x1dd9f7(0x1bd))/0xa;if(_0x3572e8===_0x4a8729)break;else _0x86f890['push'](_0x86f890['shift']());}catch(_0x2aa650){_0x86f890['push'](_0x86f890['shift']());}}}(_0x561f,0x3f718));function _0x2e04(_0x43fc22,_0x3f661c){_0x43fc22=_0x43fc22-0x19e;const _0x561f35=_0x561f();let _0x2e0470=_0x561f35[_0x43fc22];return _0x2e0470;}const e={'docs-chart-ui':{'previewRenderFailed':_0x295ec3(0x1b4),'updateChartFailed':_0x295ec3(0x1ab),'chartNotFound':_0x295ec3(0x1bb),'close':'關閉','common':{'horizontalAxis':'橫軸','verticalAxis':'縱軸','setup':_0x295ec3(0x1ca),'customize':_0x295ec3(0x19e),'editChart':_0x295ec3(0x1bc),'data':'資料','editData':_0x295ec3(0x1a0),'tableDataEmpty':'表格資料為空','cancel':'取消','duplicate':'複製','apply':'套用','insertChartFailed':_0x295ec3(0x1d2),'inlineData':_0x295ec3(0x1a8),'insert':'插入','deleteChart':_0x295ec3(0x1d8),'insertChart':_0x295ec3(0x1a6),'chartAndAxisTitles':'圖表與座標軸標題','chartStyle':_0x295ec3(0x1e1),'heatmap':_0x295ec3(0x1cd),'legend':'圖例','rightVerticalAxis':_0x295ec3(0x1b8),'series':'系列','trendline':_0x295ec3(0x1ac),'category':'類別','label':'標籤','value':'數值','valueField':_0x295ec3(0x1aa),'chartType':_0x295ec3(0x1ae)},'floatMenu':{'menuTitle':{'chart':'圖表'}},'chartTypes':{'line':_0x295ec3(0x1a7),'column':_0x295ec3(0x1b3),'columnStacked':_0x295ec3(0x1af),'columnPercentStacked':_0x295ec3(0x1d4),'bar':_0x295ec3(0x1be),'barStacked':_0x295ec3(0x1c4),'barPercentStacked':'百分比堆疊條形圖','pie':'餅圖','donut':'環形圖','pieOfPie':_0x295ec3(0x1c6),'barOfPie':_0x295ec3(0x1b0),'area':_0x295ec3(0x1a5),'areaStacked':_0x295ec3(0x1db),'areaPercentStacked':_0x295ec3(0x1d5),'radar':_0x295ec3(0x1ad),'scatter':_0x295ec3(0x1ce),'combination':'組合圖','wordCloud':'詞雲圖','funnel':_0x295ec3(0x1de),'bubble':_0x295ec3(0x1da),'relation':'關係圖','waterfall':_0x295ec3(0x1e3),'pareto':_0x295ec3(0x1c8),'sankey':'桑基圖','heatmap':_0x295ec3(0x1cd),'boxplot':_0x295ec3(0x1b9),'candlestick':_0x295ec3(0x1df),'histogram':_0x295ec3(0x1d3),'treemap':_0x295ec3(0x1c7),'sunburst':_0x295ec3(0x1b7),'gauge':_0x295ec3(0x1c5),'chord':'和弦圖'},'section':{'candlestick':_0x295ec3(0x1cf),'chord':'和弦圖','funnel':_0x295ec3(0x1de),'gauge':'儀表圖','gridlinesAndTicks':'網格線和刻度線','histogram':_0x295ec3(0x1d3),'indicatorLine':'指示線','lineAndArea':_0x295ec3(0x1b1),'paretoBar':'長條圖系列','paretoLine':_0x295ec3(0x1bf),'pie':'餅圖','radar':_0x295ec3(0x1ad),'relation':_0x295ec3(0x1d7),'sunburst':_0x295ec3(0x1b7),'treemap':'樹狀圖','waterfall':_0x295ec3(0x1e3),'wordCloud':'詞雲'},'candlestick':{'columnsError':_0x295ec3(0x1b6),'close':_0x295ec3(0x1a9),'high':_0x295ec3(0x1e4),'low':'最低價','open':_0x295ec3(0x1e2),'series':_0x295ec3(0x1a3)},'chord':{'source':'來源','target':'目標','emptyDiagnostic':_0x295ec3(0x1c1),'mappingDiagnostic':'弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','configDiagnostic':_0x295ec3(0x1d9),'count':_0x295ec3(0x1a2),'associatedValue':_0x295ec3(0x1b5)},'sunburst':{'hierarchy':'階層','ownValue':_0x295ec3(0x1a1),'children':'子項','diagnostic':_0x295ec3(0x1c3)},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':_0x295ec3(0x1d1),'ownValue':_0x295ec3(0x1a1),'children':'子項','diagnostic':_0x295ec3(0x1d6)},'gauge':{'emptyDiagnostic':'儀表圖至少需要一個有限數值。','mappingDiagnostic':_0x295ec3(0x1b2),'configDiagnostic':_0x295ec3(0x1cb)},'chartField':{'missingCategoryFields':_0x295ec3(0x1d0),'missingSeriesFields':'此圖表需要更多數值欄位。','invalidFieldIndex':'所選圖表欄位已無法使用。','invalidValueFieldType':'所選數值欄位不包含數值資料。','invalidDataStructure':'所選欄位無法構成此圖表所需的有效資料結構。','unsupportedChartType':_0x295ec3(0x1cc)}}};export{e as default};function _0x561f(){const _0x4efc95=['散點圖','燭台圖','此圖表需要更多標籤欄位。','階層欄位','插入圖表失敗','直方圖','百分比堆疊\x20·\x20柱狀圖','百分比堆疊面積圖','矩形樹圖至少需要一個階層欄位和一個數值欄位。','關係圖','刪除圖表','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','氣泡圖','堆疊面積圖','83152FALWZl','83913XuEkDA','漏斗圖','K\x20線圖','71839sONtRr','圖表樣式','開盤價','瀑布圖','最高價','自訂圖表','1962992MEUIoJ','編輯資料','自身值','關係數','OHLC\x20數列','18bhbmKO','面積圖','插入圖表','折線圖','內嵌資料','收盤價','數值欄位','無法更新圖表。','趨勢線','雷達圖','圖表類型','堆疊\x20·\x20柱狀圖','複合餅圖','折線圖\x20/\x20面積圖','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','柱狀圖','無法顯示圖表預覽。','關聯值','K\x20線圖資料需要「類別、開盤價、最高價、最低價及收盤價」欄。','旭日圖','右縱軸','箱型圖','24scHdNS','圖表無法使用。','編輯圖表','1708120IhPkHx','條形圖','累積占比系列','1749384HTzqrw','弦圖至少需要兩個不同節點之間的一條正權重關係。','56WMlqVY','旭日圖至少需要一個階層欄位和一個數值欄位。','堆疊條形圖','儀表盤','子母餅圖','矩形樹圖','排列圖','416275GQSsPz','設定圖表','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','此圖表類型沒有欄位使用規則。','熱力圖'];_0x561f=function(){return _0x4efc95;};return _0x561f();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3e4f08=_0x3943;function _0x3943(_0x4af45b,_0x3b4fcf){_0x4af45b=_0x4af45b-0x76;const _0x2b5425=_0x2b54();let _0x394359=_0x2b5425[_0x4af45b];return _0x394359;}(function(_0x29b587,_0x24c5f0){const _0x183a7b=_0x3943,_0x24696a=_0x29b587();while(!![]){try{const _0x402116=-parseInt(_0x183a7b(0x7e))/0x1+parseInt(_0x183a7b(0x8e))/0x2*(-parseInt(_0x183a7b(0xac))/0x3)+-parseInt(_0x183a7b(0xa2))/0x4+parseInt(_0x183a7b(0xad))/0x5*(parseInt(_0x183a7b(0x87))/0x6)+parseInt(_0x183a7b(0x8b))/0x7*(-parseInt(_0x183a7b(0xc0))/0x8)+-parseInt(_0x183a7b(0xa7))/0x9*(-parseInt(_0x183a7b(0x84))/0xa)+parseInt(_0x183a7b(0x9c))/0xb*(parseInt(_0x183a7b(0xb3))/0xc);if(_0x402116===_0x24c5f0)break;else _0x24696a['push'](_0x24696a['shift']());}catch(_0x3b1a5a){_0x24696a['push'](_0x24696a['shift']());}}}(_0x2b54,0xca24b));const e={'docs-chart-ui':{'previewRenderFailed':_0x3e4f08(0x96),'updateChartFailed':_0x3e4f08(0xc1),'chartNotFound':_0x3e4f08(0xab),'close':'關閉','common':{'horizontalAxis':'橫軸','verticalAxis':'縱軸','setup':_0x3e4f08(0x98),'customize':_0x3e4f08(0x82),'editChart':_0x3e4f08(0x76),'data':'資料','editData':_0x3e4f08(0x7f),'tableDataEmpty':_0x3e4f08(0xba),'cancel':'取消','duplicate':'複製','apply':'套用','insertChartFailed':_0x3e4f08(0x91),'inlineData':_0x3e4f08(0x8a),'insert':'插入','deleteChart':'刪除圖表','insertChart':_0x3e4f08(0x80),'chartAndAxisTitles':_0x3e4f08(0x9e),'chartStyle':_0x3e4f08(0x9a),'heatmap':_0x3e4f08(0xbb),'legend':'圖例','rightVerticalAxis':_0x3e4f08(0x88),'series':'系列','trendline':_0x3e4f08(0x90),'category':'類別','label':'標籤','value':'數值','valueField':_0x3e4f08(0xa6),'chartType':_0x3e4f08(0xb8)},'floatMenu':{'menuTitle':{'chart':'圖表'}},'chartTypes':{'line':_0x3e4f08(0x8d),'column':_0x3e4f08(0xb2),'columnStacked':_0x3e4f08(0x95),'columnPercentStacked':_0x3e4f08(0xaf),'bar':'條形圖','barStacked':_0x3e4f08(0x94),'barPercentStacked':_0x3e4f08(0xbe),'pie':'餅圖','donut':_0x3e4f08(0x89),'pieOfPie':_0x3e4f08(0xaa),'barOfPie':_0x3e4f08(0xb5),'area':'面積圖','areaStacked':_0x3e4f08(0x9f),'areaPercentStacked':'百分比堆疊面積圖','radar':_0x3e4f08(0x85),'scatter':_0x3e4f08(0xbc),'combination':_0x3e4f08(0x9d),'wordCloud':_0x3e4f08(0x7c),'funnel':_0x3e4f08(0xb6),'bubble':_0x3e4f08(0x7b),'relation':_0x3e4f08(0xbf),'waterfall':'瀑布圖','pareto':'排列圖','sankey':'桑基圖','heatmap':'熱力圖','boxplot':_0x3e4f08(0xb1),'candlestick':'K\x20線圖','histogram':_0x3e4f08(0x97),'treemap':_0x3e4f08(0x79),'sunburst':_0x3e4f08(0xa5),'gauge':_0x3e4f08(0xa4),'chord':_0x3e4f08(0xbd)},'section':{'candlestick':'燭台圖','chord':_0x3e4f08(0xbd),'funnel':'漏斗圖','gauge':'儀表圖','gridlinesAndTicks':'網格線和刻度線','histogram':'直方圖','indicatorLine':_0x3e4f08(0xa0),'lineAndArea':_0x3e4f08(0x7a),'paretoBar':_0x3e4f08(0xb0),'paretoLine':_0x3e4f08(0x7d),'pie':'餅圖','radar':'雷達圖','relation':_0x3e4f08(0xbf),'sunburst':_0x3e4f08(0xa5),'treemap':_0x3e4f08(0x83),'waterfall':'瀑布圖','wordCloud':'詞雲'},'candlestick':{'columnsError':_0x3e4f08(0xa3),'close':_0x3e4f08(0x9b),'high':_0x3e4f08(0x77),'low':_0x3e4f08(0xa1),'open':_0x3e4f08(0xb7),'series':'OHLC\x20數列'},'chord':{'source':'來源','target':'目標','emptyDiagnostic':_0x3e4f08(0x93),'mappingDiagnostic':_0x3e4f08(0x86),'configDiagnostic':_0x3e4f08(0x99),'count':_0x3e4f08(0xc2),'associatedValue':_0x3e4f08(0xae)},'sunburst':{'hierarchy':'階層','ownValue':'自身值','children':'子項','diagnostic':'旭日圖至少需要一個階層欄位和一個數值欄位。'},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':_0x3e4f08(0xb9),'ownValue':'自身值','children':'子項','diagnostic':_0x3e4f08(0xb4)},'gauge':{'emptyDiagnostic':_0x3e4f08(0x8f),'mappingDiagnostic':_0x3e4f08(0x78),'configDiagnostic':_0x3e4f08(0x92)},'chartField':{'missingCategoryFields':_0x3e4f08(0xa8),'missingSeriesFields':'這個圖表需要更多數值欄位。','invalidFieldIndex':_0x3e4f08(0xc3),'invalidValueFieldType':_0x3e4f08(0x81),'invalidDataStructure':_0x3e4f08(0xa9),'unsupportedChartType':_0x3e4f08(0x8c)}}};function _0x2b54(){const _0x19a924=['堆疊面積圖','指示線','最低價','4357912qbwapl','K\x20線圖資料需要「類別、開盤價、最高價、最低價及收盤價」欄位。','儀表板','旭日圖','數值欄位','1161DXnrYQ','這個圖表需要更多標籤欄位。','選取的欄位無法構成這個圖表所需的有效資料結構。','子母餅圖','圖表無法使用。','39mvvxkU','620470uehvhH','關聯值','百分比堆疊\x20·\x20柱狀圖','長條圖系列','箱型圖','柱狀圖','12lzcPyO','矩形樹圖至少需要一個階層欄位和一個數值欄位。','複合餅圖','漏斗圖','開盤價','圖表類型','階層欄位','表格資料為空','熱力圖','散點圖','和弦圖','百分比堆疊條形圖','關係圖','511136OqNMcY','無法更新圖表。','關係數','選取的圖表欄位已無法使用。','編輯圖表','最高價','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','矩形樹圖','折線圖\x20/\x20面積圖','氣泡圖','詞雲圖','累積占比系列','1314612qaNjvf','編輯資料','插入圖表','選取的數值欄位不包含數值資料。','自訂圖表','樹狀圖','107080Wswuli','雷達圖','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','42hKJxES','右縱軸','環形圖','內嵌資料','119bKcHHc','這個圖表類型沒有欄位使用規則。','折線圖','170630YQzust','儀表圖至少需要一個有限數值。','趨勢線','插入圖表失敗','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','弦圖至少需要兩個不同節點之間的一條正權重關係。','堆疊條形圖','堆疊\x20·\x20柱狀圖','無法呈現圖表預覽。','直方圖','設定圖表','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','圖表樣式','收盤價','34950718NSDDZq','組合圖','圖表與座標軸標題'];_0x2b54=function(){return _0x19a924;};return _0x2b54();}export{e as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChartDataSourceValue, IChartDataSourceInput, IChartResourceDataSource } from '@univerjs-pro/engine-chart';
|
|
2
2
|
export declare const DOC_CHART_DATA_EDITOR_COMPONENT = "doc-chart.data-editor";
|
|
3
3
|
export declare const DOC_CHART_DATA_EDITOR_DIALOG_ID = "doc-chart.dialog.data-editor";
|
|
4
4
|
export declare enum DocChartDataEditorSubmitMode {
|
|
@@ -6,10 +6,12 @@ export declare enum DocChartDataEditorSubmitMode {
|
|
|
6
6
|
DUPLICATE = "duplicate"
|
|
7
7
|
}
|
|
8
8
|
export interface IDocChartDataEditorProps {
|
|
9
|
-
values:
|
|
9
|
+
values: ChartDataSourceValue[][];
|
|
10
|
+
dataSource?: IChartResourceDataSource;
|
|
10
11
|
sharingCount?: number;
|
|
11
12
|
onCancel?: () => void;
|
|
12
|
-
onChange?: (values:
|
|
13
|
-
onSubmit: (values:
|
|
13
|
+
onChange?: (values: ChartDataSourceValue[][]) => void;
|
|
14
|
+
onSubmit: (values: ChartDataSourceValue[][], mode: DocChartDataEditorSubmitMode) => void;
|
|
15
|
+
onDataSourceSubmit?: (input: IChartDataSourceInput) => void;
|
|
14
16
|
}
|
|
15
17
|
export declare function DocChartDataEditor(props: IDocChartDataEditorProps): import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ChartStyle, ChartTypeBits, IChartDataAggregation,
|
|
1
|
+
import type { ChartDataSourceValue, ChartStyle, ChartTypeBits, IChartDataAggregation, IChartResourceContext } from '@univerjs-pro/engine-chart';
|
|
2
2
|
export interface IDocChartPreviewProps {
|
|
3
|
-
values:
|
|
3
|
+
values: ChartDataSourceValue[][];
|
|
4
4
|
chartType: ChartTypeBits;
|
|
5
|
-
context?:
|
|
5
|
+
context?: IChartResourceContext;
|
|
6
6
|
dataAggregation?: IChartDataAggregation;
|
|
7
7
|
style?: ChartStyle;
|
|
8
8
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IChartResource } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { IDocumentData } from '@univerjs/core';
|
|
3
|
-
import {
|
|
3
|
+
import { ChartResourceRepository } from '@univerjs-pro/engine-chart';
|
|
4
4
|
import { Disposable } from '@univerjs/core';
|
|
5
5
|
import { IDocClipboardPasteAdapterService, IDocClipboardService } from '@univerjs/docs-ui';
|
|
6
6
|
export declare const DOC_CHART_CLIPBOARD_RESOURCE_KEY = "__docsChartResource";
|
|
7
7
|
export interface IDocChartClipboardDocData extends Partial<IDocumentData> {
|
|
8
|
-
[DOC_CHART_CLIPBOARD_RESOURCE_KEY]?:
|
|
8
|
+
[DOC_CHART_CLIPBOARD_RESOURCE_KEY]?: IChartResource;
|
|
9
9
|
}
|
|
10
10
|
export declare class DocChartClipboardController extends Disposable {
|
|
11
11
|
private readonly _docClipboardService;
|
|
12
12
|
private readonly _pasteAdapterService;
|
|
13
13
|
private readonly _resourceService;
|
|
14
|
-
constructor(_docClipboardService: IDocClipboardService, _pasteAdapterService: IDocClipboardPasteAdapterService, _resourceService:
|
|
14
|
+
constructor(_docClipboardService: IDocClipboardService, _pasteAdapterService: IDocClipboardPasteAdapterService, _resourceService: ChartResourceRepository);
|
|
15
15
|
private _initClipboardHooks;
|
|
16
16
|
private _appendChartResources;
|
|
17
17
|
private _getPasteMutationInfos;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChartResourceRepository } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import { Disposable, LocaleService } from '@univerjs/core';
|
|
3
3
|
import { IDocDrawingAdapterService } from '@univerjs/docs-drawing';
|
|
4
4
|
import { DocDrawingFloatingToolbarAdapterService } from '@univerjs/docs-drawing-ui';
|
|
@@ -7,6 +7,6 @@ export declare class DocChartDrawingEditController extends Disposable {
|
|
|
7
7
|
private readonly _floatingToolbarAdapterService;
|
|
8
8
|
private readonly _resourceService;
|
|
9
9
|
private readonly _localeService;
|
|
10
|
-
constructor(_drawingAdapterService: IDocDrawingAdapterService, _floatingToolbarAdapterService: DocDrawingFloatingToolbarAdapterService, _resourceService:
|
|
10
|
+
constructor(_drawingAdapterService: IDocDrawingAdapterService, _floatingToolbarAdapterService: DocDrawingFloatingToolbarAdapterService, _resourceService: ChartResourceRepository, _localeService: LocaleService);
|
|
11
11
|
private _initAdapter;
|
|
12
12
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DocChartModelService
|
|
1
|
+
import { DocChartModelService } from '@univerjs-pro/docs-chart';
|
|
2
|
+
import { ChartResourceRepository } from '@univerjs-pro/engine-chart';
|
|
2
3
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
3
4
|
import { DocChartSnapshotRenderService } from '../services/doc-chart-snapshot-render.service';
|
|
4
5
|
export declare class DocChartSnapshotRefreshController extends Disposable {
|
|
@@ -6,7 +7,7 @@ export declare class DocChartSnapshotRefreshController extends Disposable {
|
|
|
6
7
|
private readonly _snapshotService;
|
|
7
8
|
private readonly _resourceService;
|
|
8
9
|
private readonly _modelService;
|
|
9
|
-
constructor(_commandService: ICommandService, _snapshotService: DocChartSnapshotRenderService, _resourceService:
|
|
10
|
+
constructor(_commandService: ICommandService, _snapshotService: DocChartSnapshotRenderService, _resourceService: ChartResourceRepository, _modelService: DocChartModelService);
|
|
10
11
|
private _listenChartResourceMutations;
|
|
11
12
|
private _shouldWaitForChartConfig;
|
|
12
13
|
}
|
|
@@ -42,10 +42,13 @@ declare const locale: {
|
|
|
42
42
|
chartTypes: {
|
|
43
43
|
line: string;
|
|
44
44
|
column: string;
|
|
45
|
+
columnStacked: string;
|
|
46
|
+
columnPercentStacked: string;
|
|
45
47
|
bar: string;
|
|
46
48
|
barStacked: string;
|
|
47
49
|
barPercentStacked: string;
|
|
48
50
|
pie: string;
|
|
51
|
+
donut: string;
|
|
49
52
|
pieOfPie: string;
|
|
50
53
|
barOfPie: string;
|
|
51
54
|
area: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IChartImageExportOptions, IChartImageExportProvider, IChartImageExportTarget } from '@univerjs-pro/chart-ui';
|
|
2
|
+
import { ChartImageExportService } from '@univerjs-pro/chart-ui';
|
|
3
|
+
import { Disposable } from '@univerjs/core';
|
|
4
|
+
import { DocChartSnapshotRenderService } from './doc-chart-snapshot-render.service';
|
|
5
|
+
interface IDocChartImageExportTarget extends IChartImageExportTarget {
|
|
6
|
+
readonly unitId: string;
|
|
7
|
+
getDrawingId(): string;
|
|
8
|
+
getInfo(): {
|
|
9
|
+
readonly size?: {
|
|
10
|
+
readonly width: number;
|
|
11
|
+
readonly height: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare class DocChartImageExportProvider extends Disposable implements IChartImageExportProvider {
|
|
16
|
+
private readonly _snapshotService;
|
|
17
|
+
constructor(imageExportService: ChartImageExportService, _snapshotService: DocChartSnapshotRenderService);
|
|
18
|
+
supports(chart: IChartImageExportTarget): chart is IDocChartImageExportTarget;
|
|
19
|
+
exportImage(chart: IChartImageExportTarget, options?: IChartImageExportOptions): Promise<string | undefined>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -27,6 +27,7 @@ export declare class DocChartActiveRenderService extends Disposable {
|
|
|
27
27
|
private readonly _staticRenderController;
|
|
28
28
|
private _activeLayer;
|
|
29
29
|
private readonly _layoutChanged$;
|
|
30
|
+
private readonly _visualLayoutChanged$;
|
|
30
31
|
constructor(_drawingManagerService: IDrawingManagerService, _renderManagerService: IRenderManagerService, _canvasFloatDomService: CanvasFloatDomService, _modelService: DocChartModelService, _renderService: DocChartRenderService, _snapshotRenderService: DocChartSnapshotRenderService, _commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _localeService: LocaleService, _staticRenderController: DocChartStaticRenderController);
|
|
31
32
|
mountChart(params: IDocChartDomMountParams): IDisposable;
|
|
32
33
|
dispose(): void;
|
|
@@ -36,11 +37,14 @@ export declare class DocChartActiveRenderService extends Disposable {
|
|
|
36
37
|
private _activate;
|
|
37
38
|
private _deactivate;
|
|
38
39
|
private _refreshActivePosition;
|
|
40
|
+
private _refreshActiveLayout;
|
|
41
|
+
private _bindActiveLayerObservers;
|
|
39
42
|
private _updatePosition;
|
|
40
43
|
private _retryActivateFocusedChart;
|
|
41
44
|
private _getPositionState;
|
|
42
45
|
private _getRenderRect;
|
|
43
46
|
private _getActiveRenderRect;
|
|
47
|
+
private _getActiveRenderScale;
|
|
44
48
|
private _getDrawingSearch;
|
|
45
49
|
private _isActiveLayer;
|
|
46
50
|
private _isDocChartDrawing;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChartDataSourceValue, IChartDataSourceInput, IChartResourceDataSource } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { DocChartDataEditorSubmitMode } from '../components/DocChartDataEditor';
|
|
3
|
+
import { ChartResourceRepository } from '@univerjs-pro/engine-chart';
|
|
3
4
|
import { ICommandService } from '@univerjs/core';
|
|
4
|
-
import { DocChartDataEditorSubmitMode } from '../components/DocChartDataEditor';
|
|
5
5
|
export interface IDocChartDataEditorState {
|
|
6
6
|
unitId: string;
|
|
7
7
|
chartId: string;
|
|
8
8
|
dataSourceId: string;
|
|
9
|
-
|
|
9
|
+
dataSource: IChartResourceDataSource;
|
|
10
|
+
values: ChartDataSourceValue[][];
|
|
10
11
|
sharingCount: number;
|
|
11
12
|
}
|
|
12
13
|
export declare class DocChartDataEditService {
|
|
13
14
|
private readonly _commandService;
|
|
14
15
|
private readonly _resourceService;
|
|
15
|
-
constructor(_commandService: ICommandService, _resourceService:
|
|
16
|
+
constructor(_commandService: ICommandService, _resourceService: ChartResourceRepository);
|
|
16
17
|
getEditorState(unitId: string, chartId: string): IDocChartDataEditorState | null;
|
|
17
18
|
updateDataFromText(unitId: string, chartId: string, text: string, mode: DocChartDataEditorSubmitMode): boolean;
|
|
18
|
-
updateData(unitId: string, chartId: string, values:
|
|
19
|
+
updateData(unitId: string, chartId: string, values: ChartDataSourceValue[][], _mode: DocChartDataEditorSubmitMode): boolean;
|
|
20
|
+
changeDataSource(unitId: string, chartId: string, dataSource: IChartDataSourceInput): boolean;
|
|
19
21
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IChartHostRect, IChartHostStyle, IDomChartHost } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { IScale } from '@univerjs/core';
|
|
2
3
|
import { ChartHostRenderMode } from '@univerjs-pro/engine-chart';
|
|
3
4
|
import { Disposable } from '@univerjs/core';
|
|
4
5
|
export declare class DocDomChartHost extends Disposable implements IDomChartHost {
|
|
@@ -10,14 +11,16 @@ export declare class DocDomChartHost extends Disposable implements IDomChartHost
|
|
|
10
11
|
* Preview hosts are absolutely stretched by their parent, while active drawing hosts need an explicit size.
|
|
11
12
|
*/
|
|
12
13
|
private readonly _manageHostSize;
|
|
14
|
+
private readonly _getRenderScale?;
|
|
13
15
|
readonly mode = ChartHostRenderMode.Dom;
|
|
16
|
+
private _frameNode;
|
|
14
17
|
private _mountNode;
|
|
15
18
|
private _hostStyle;
|
|
16
19
|
constructor(chartId: string, _host: HTMLElement, _applyHostStyle: (host: HTMLElement, style: IChartHostStyle) => void, _getRenderRect?: (() => IChartHostRect | null) | undefined,
|
|
17
20
|
/**
|
|
18
21
|
* Preview hosts are absolutely stretched by their parent, while active drawing hosts need an explicit size.
|
|
19
22
|
*/
|
|
20
|
-
_manageHostSize?: boolean);
|
|
23
|
+
_manageHostSize?: boolean, _getRenderScale?: (() => IScale | null) | undefined);
|
|
21
24
|
getRect(): IChartHostRect;
|
|
22
25
|
setStyle(style: IChartHostStyle): void;
|
|
23
26
|
ensureMount(): Promise<HTMLElement>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { IInsertDocChartCommandResult } from '@univerjs-pro/docs-chart';
|
|
2
|
-
import type { ChartStyle, ChartTypeBits, IChartDataAggregation,
|
|
2
|
+
import type { ChartDataSourceValue, ChartStyle, ChartTypeBits, IChartDataAggregation, IChartDataSourceInput, IChartResourceContext } from '@univerjs-pro/engine-chart';
|
|
3
3
|
import type { ITextRangeParam } from '@univerjs/core';
|
|
4
4
|
import { ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
5
5
|
import { DocContentInsertService, DocSelectionManagerService } from '@univerjs/docs';
|
|
6
6
|
export interface IDocChartInsertOptions {
|
|
7
|
-
context?:
|
|
7
|
+
context?: IChartResourceContext;
|
|
8
|
+
dataSource?: IChartDataSourceInput;
|
|
8
9
|
dataAggregation?: IChartDataAggregation;
|
|
9
10
|
style?: ChartStyle;
|
|
10
11
|
insertRange?: ITextRangeParam;
|
|
@@ -22,7 +23,7 @@ export declare class DocChartInsertService {
|
|
|
22
23
|
private readonly _docContentInsertService;
|
|
23
24
|
constructor(_instanceService: IUniverInstanceService, _commandService: ICommandService, _docSelectionManagerService: DocSelectionManagerService, _docContentInsertService: DocContentInsertService);
|
|
24
25
|
insertChartFromText(text: string, chartType: ChartTypeBits, options?: IDocChartInsertOptions): IDocChartInsertResult | false;
|
|
25
|
-
insertChart(values:
|
|
26
|
+
insertChart(values: ChartDataSourceValue[][], chartType: ChartTypeBits, options?: IDocChartInsertOptions): IDocChartInsertResult | false;
|
|
26
27
|
private _resolveInsertPosition;
|
|
27
28
|
private _prepareStandaloneInsertLine;
|
|
28
29
|
}
|
|
@@ -1,16 +1,29 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IDocChartDrawing } from '@univerjs-pro/docs-chart';
|
|
2
|
+
import type { IDocumentOffsetConfig, IDocumentSkeletonPage } from '@univerjs/engine-render';
|
|
2
3
|
import { Disposable } from '@univerjs/core';
|
|
4
|
+
import { DocPrintInterceptorService } from '@univerjs/docs-ui';
|
|
3
5
|
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
6
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
7
|
import { DocChartSnapshotRenderService } from './doc-chart-snapshot-render.service';
|
|
8
|
+
interface IDocPrintPreparationContext {
|
|
9
|
+
unitId: string;
|
|
10
|
+
dpr: number;
|
|
11
|
+
}
|
|
5
12
|
export interface IDocChartPrintRect {
|
|
6
13
|
width: number;
|
|
7
14
|
height: number;
|
|
8
15
|
}
|
|
16
|
+
export declare function resolveDocChartPrintTransform(drawing: IDocChartDrawing, pages: IDocumentSkeletonPage[], offsetConfig: IDocumentOffsetConfig): NonNullable<IDocChartDrawing['transform']> | null;
|
|
9
17
|
export declare class DocChartPrintService extends Disposable {
|
|
10
18
|
private readonly _drawingManagerService;
|
|
19
|
+
private readonly _renderManagerService;
|
|
11
20
|
private readonly _snapshotRenderService;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
private readonly _docPrintInterceptorService;
|
|
22
|
+
private readonly _preparedCharts;
|
|
23
|
+
constructor(_drawingManagerService: IDrawingManagerService, _renderManagerService: IRenderManagerService, _snapshotRenderService: DocChartSnapshotRenderService, _docPrintInterceptorService: DocPrintInterceptorService);
|
|
24
|
+
prepare(context: IDocPrintPreparationContext): Promise<void>;
|
|
25
|
+
private _initPrinting;
|
|
26
|
+
private _getChartDrawings;
|
|
27
|
+
private _getRenderedChartImage;
|
|
16
28
|
}
|
|
29
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartHostRenderMode, ChartRuntimeStyle, ChartStyle, IChartConfig, IChartHostRect, IChartHostStyle, IChartInstance,
|
|
1
|
+
import type { ChartHostRenderMode, ChartRuntimeStyle, ChartStyle, IChartConfig, IChartHostRect, IChartHostStyle, IChartInstance, IChartModelRuntime, IChartRenderInstance } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import { ChartThemeService, IChartRenderModelManagerService } from '@univerjs-pro/engine-chart';
|
|
3
3
|
import { Disposable, LocaleService } from '@univerjs/core';
|
|
4
4
|
export interface IDocChartRenderSpecResult {
|
|
@@ -18,8 +18,8 @@ export declare class DocChartRenderService extends Disposable {
|
|
|
18
18
|
constructor(_localeService: LocaleService, _chartThemeService: ChartThemeService, _renderModelManager: IChartRenderModelManagerService);
|
|
19
19
|
createChartInstance(): IChartInstance;
|
|
20
20
|
createChartInstance(mode: ChartHostRenderMode): IChartRenderInstance;
|
|
21
|
-
createRenderInput(runtime:
|
|
22
|
-
createRenderSpec(runtime:
|
|
21
|
+
createRenderInput(runtime: IChartModelRuntime): IDocChartRenderInput;
|
|
22
|
+
createRenderSpec(runtime: IChartModelRuntime, rect: IChartHostRect, chartInstance?: IChartInstance): IDocChartRenderSpecResult;
|
|
23
23
|
getHostStyle(chartStyle: ChartStyle): IDocChartRenderSpecResult['hostStyle'];
|
|
24
24
|
applyHostStyle(host: HTMLElement, hostStyle: IDocChartRenderSpecResult['hostStyle']): void;
|
|
25
25
|
private _createChartRenderInstanceContext;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { IChartSnapshotRenderer, IChartSnapshotRequest } from '@univerjs-pro/chart-ui';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IChartModelRuntime } from '@univerjs-pro/engine-chart';
|
|
3
3
|
import { ChartSnapshotQueue } from '@univerjs-pro/chart-ui';
|
|
4
4
|
import { DocChartModelService } from '@univerjs-pro/docs-chart';
|
|
5
|
+
import { ChartImageExportFormat, IChartRenderModelManagerService } from '@univerjs-pro/engine-chart';
|
|
5
6
|
import { LocaleService } from '@univerjs/core';
|
|
6
7
|
import { DocChartRenderService } from './doc-chart-render.service';
|
|
7
8
|
export interface IDocChartSnapshotRequest extends IChartSnapshotRequest {
|
|
9
|
+
format?: ChartImageExportFormat;
|
|
8
10
|
mode?: 'main' | 'print' | 'export';
|
|
9
11
|
}
|
|
10
|
-
export declare const IDocChartSnapshotRendererService: import("@wendellhu/redi").IdentifierDecorator<IChartSnapshotRenderer<IDocChartSnapshotRequest,
|
|
12
|
+
export declare const IDocChartSnapshotRendererService: import("@wendellhu/redi").IdentifierDecorator<IChartSnapshotRenderer<IDocChartSnapshotRequest, IChartModelRuntime>>;
|
|
11
13
|
export declare class DocChartSnapshotRenderService extends ChartSnapshotQueue<IDocChartSnapshotRequest> {
|
|
12
|
-
constructor(localeService: LocaleService, modelService: DocChartModelService, renderService: DocChartRenderService, renderer?: IChartSnapshotRenderer<IDocChartSnapshotRequest>);
|
|
14
|
+
constructor(localeService: LocaleService, modelService: DocChartModelService, renderService: DocChartRenderService, renderModelManager: IChartRenderModelManagerService, renderer?: IChartSnapshotRenderer<IDocChartSnapshotRequest>);
|
|
15
|
+
getCacheKey(request: IDocChartSnapshotRequest): string;
|
|
13
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IUpdateDocChartConfigCommandParams } from '@univerjs-pro/docs-chart';
|
|
2
|
-
import type { IChartContext, IChartDataAggregation,
|
|
2
|
+
import type { IChartContext, IChartDataAggregation, IChartModelRuntime } from '@univerjs-pro/engine-chart';
|
|
3
3
|
import { ChartUIService, ChartViewStateRegistry } from '@univerjs-pro/chart-ui';
|
|
4
4
|
import { DocChartModelService } from '@univerjs-pro/docs-chart';
|
|
5
5
|
import { ICommandService } from '@univerjs/core';
|
|
@@ -11,11 +11,11 @@ type DocChartUpdateConfigParams = Omit<IUpdateDocChartConfigCommandParams, 'unit
|
|
|
11
11
|
};
|
|
12
12
|
export type IDocChartUIService = DocChartUIService;
|
|
13
13
|
export declare const IDocChartUIService: import("@wendellhu/redi").IdentifierDecorator<DocChartUIService>;
|
|
14
|
-
export declare class DocChartUIService extends ChartUIService<
|
|
14
|
+
export declare class DocChartUIService extends ChartUIService<IChartModelRuntime, DocChartUpdateConfigParams> {
|
|
15
15
|
private readonly _modelService;
|
|
16
16
|
private readonly _commandService;
|
|
17
17
|
constructor(_modelService: DocChartModelService, _commandService: ICommandService, viewStates: ChartViewStateRegistry);
|
|
18
|
-
get activeRuntimeModel():
|
|
18
|
+
get activeRuntimeModel(): IChartModelRuntime | null;
|
|
19
19
|
executeChartUpdateConfig(params: DocChartUpdateConfigParams): void;
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface IDocPrintChartProps {
|
|
3
|
-
unitId: string;
|
|
4
|
-
floatDomId: string;
|
|
5
|
-
context: {
|
|
6
|
-
root: RefObject<HTMLDivElement>;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export declare const DocPrintChart: (props: IDocPrintChartProps) => null;
|
|
1
|
+
export declare const DocPrintChart: () => null;
|