@univerjs-pro/slides-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 +26 -10
- 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/SlideChartDataEditor.d.ts +5 -3
- package/lib/types/components/SlideChartEditPanel.d.ts +2 -14
- package/lib/types/controllers/slide-chart-element-float-menu.controller.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +3 -0
- package/lib/types/services/chart-image-export-provider.d.ts +14 -0
- package/lib/types/services/slide-chart-clipboard-adapter.d.ts +28 -0
- package/lib/types/services/slide-chart-data-edit.service.d.ts +6 -4
- package/lib/types/services/slide-chart-host-provider.service.d.ts +1 -0
- package/lib/types/services/slide-chart-host.d.ts +1 -4
- package/lib/types/services/slide-chart-insert.service.d.ts +3 -2
- package/lib/types/services/slide-chart-render.service.d.ts +3 -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 +15 -15
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xd81709=_0x3167;(function(_0x1cd2d6,_0x1fd444){const _0x53db19=_0x3167,_0x42665a=_0x1cd2d6();while(!![]){try{const _0x52bf73=-parseInt(_0x53db19(0x149))/0x1+parseInt(_0x53db19(0x15d))/0x2+parseInt(_0x53db19(0x157))/0x3*(-parseInt(_0x53db19(0x16b))/0x4)+parseInt(_0x53db19(0x14a))/0x5+-parseInt(_0x53db19(0x13d))/0x6*(-parseInt(_0x53db19(0x142))/0x7)+-parseInt(_0x53db19(0x132))/0x8+parseInt(_0x53db19(0x15a))/0x9;if(_0x52bf73===_0x1fd444)break;else _0x42665a['push'](_0x42665a['shift']());}catch(_0x1bebb0){_0x42665a['push'](_0x42665a['shift']());}}}(_0x264e,0x5fd43));const e={'slides-chart-ui':{'border':'框線','common':{'insertChartFailed':'插入圖表失敗','inlineData':_0xd81709(0x14e),'cancel':'取消','insert':'插入','editData':_0xd81709(0x12f),'editChart':_0xd81709(0x171),'tableDataEmpty':'表格資料為空','duplicate':'複製','apply':'套用','data':'資料','series':'系列','horizontalAxis':'橫軸','verticalAxis':'縱軸','setup':'設定圖表','customize':_0xd81709(0x147),'switchRowColumn':_0xd81709(0x16f),'chartAndAxisTitles':_0xd81709(0x15f),'chartStyle':_0xd81709(0x148),'heatmap':_0xd81709(0x151),'legend':'圖例','rightVerticalAxis':_0xd81709(0x141),'trendline':'趨勢線','category':'類別','label':'標籤','value':'數值','valueField':_0xd81709(0x140),'chartType':_0xd81709(0x137)},'editor':{'defaultColor':_0xd81709(0x169)},'chartTypes':{'line':'折線圖','column':_0xd81709(0x162),'columnStacked':_0xd81709(0x173),'columnPercentStacked':_0xd81709(0x159),'bar':_0xd81709(0x16a),'barStacked':_0xd81709(0x160),'barPercentStacked':'百分比堆疊條形圖','pie':'餅圖','donut':_0xd81709(0x13f),'pieOfPie':_0xd81709(0x153),'barOfPie':'複合餅圖','area':_0xd81709(0x167),'areaStacked':'堆疊面積圖','areaPercentStacked':_0xd81709(0x13b),'radar':'雷達圖','scatter':_0xd81709(0x15b),'combination':_0xd81709(0x170),'wordCloud':_0xd81709(0x14c),'funnel':_0xd81709(0x144),'bubble':'氣泡圖','relation':_0xd81709(0x16c),'waterfall':'瀑布圖','pareto':_0xd81709(0x150),'sankey':_0xd81709(0x146),'heatmap':_0xd81709(0x151),'boxplot':_0xd81709(0x13c),'candlestick':_0xd81709(0x166),'histogram':_0xd81709(0x131),'treemap':_0xd81709(0x136),'sunburst':_0xd81709(0x13a),'gauge':_0xd81709(0x172),'chord':_0xd81709(0x14d)},'section':{'candlestick':_0xd81709(0x130),'chord':_0xd81709(0x14d),'funnel':_0xd81709(0x144),'gauge':_0xd81709(0x145),'gridlinesAndTicks':_0xd81709(0x15e),'histogram':'直方圖','indicatorLine':_0xd81709(0x16d),'lineAndArea':'折線圖\x20/\x20面積圖','paretoBar':_0xd81709(0x15c),'paretoLine':_0xd81709(0x143),'pie':'餅圖','radar':_0xd81709(0x161),'relation':_0xd81709(0x16c),'sunburst':'旭日圖','treemap':_0xd81709(0x163),'waterfall':_0xd81709(0x155),'wordCloud':'詞雲'},'candlestick':{'columnsError':_0xd81709(0x156),'close':_0xd81709(0x165),'high':_0xd81709(0x139),'low':_0xd81709(0x12e),'open':_0xd81709(0x168),'series':_0xd81709(0x14f)},'chord':{'source':'來源','target':'目標','emptyDiagnostic':_0xd81709(0x14b),'mappingDiagnostic':_0xd81709(0x133),'configDiagnostic':_0xd81709(0x154),'count':'關係數','associatedValue':'關聯值'},'sunburst':{'hierarchy':'階層','ownValue':_0xd81709(0x135),'children':'子項','diagnostic':_0xd81709(0x13e)},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':_0xd81709(0x164),'ownValue':_0xd81709(0x135),'children':'子項','diagnostic':_0xd81709(0x158)},'gauge':{'emptyDiagnostic':_0xd81709(0x16e),'mappingDiagnostic':_0xd81709(0x152),'configDiagnostic':'儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。'},'chartField':{'missingCategoryFields':_0xd81709(0x138),'missingSeriesFields':'此圖表需要更多數值欄位。','invalidFieldIndex':'所選圖表欄位已無法使用。','invalidValueFieldType':'所選數值欄位不包含數值資料。','invalidDataStructure':'所選欄位無法構成此圖表所需的有效資料結構。','unsupportedChartType':_0xd81709(0x134)}}};function _0x3167(_0x37ab4f,_0x2a0e06){_0x37ab4f=_0x37ab4f-0x12e;const _0x264e69=_0x264e();let _0x3167c6=_0x264e69[_0x37ab4f];return _0x3167c6;}function _0x264e(){const _0x247a6=['箱型圖','48228fFlhXu','旭日圖至少需要一個階層欄位和一個數值欄位。','環形圖','數值欄位','右縱軸','210HDHRSj','累積占比系列','漏斗圖','儀表圖','桑基圖','自訂圖表','圖表樣式','395699tofcPS','453385SOiujy','弦圖至少需要兩個不同節點之間的一條正權重關係。','詞雲圖','和弦圖','內嵌資料','OHLC\x20數列','排列圖','熱力圖','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','子母餅圖','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','瀑布圖','K\x20線圖資料需要「類別、開盤價、最高價、最低價及收盤價」欄。','303RvlRea','矩形樹圖至少需要一個階層欄位和一個數值欄位。','百分比堆疊\x20·\x20柱狀圖','14091642VUoZxX','散點圖','長條圖系列','183880RUuYfQ','網格線和刻度線','圖表與座標軸標題','堆疊條形圖','雷達圖','柱狀圖','樹狀圖','階層欄位','收盤價','K\x20線圖','面積圖','開盤價','預設顏色','條形圖','22716LsmgdV','關係圖','指示線','儀表圖至少需要一個有限數值。','切換列或欄','組合圖','編輯圖表','儀表盤','堆疊\x20·\x20柱狀圖','最低價','編輯資料','燭台圖','直方圖','5021616OocdQj','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','此圖表類型沒有欄位使用規則。','自身值','矩形樹圖','圖表類型','此圖表需要更多標籤欄位。','最高價','旭日圖','百分比堆疊面積圖'];_0x264e=function(){return _0x247a6;};return _0x264e();}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xfdcc76=_0x3464;(function(_0x38bc8f,_0x2207e9){const _0x296054=_0x3464,_0x580c02=_0x38bc8f();while(!![]){try{const _0x665a2e=-parseInt(_0x296054(0x1c9))/0x1*(-parseInt(_0x296054(0x1f6))/0x2)+-parseInt(_0x296054(0x1e4))/0x3*(parseInt(_0x296054(0x1f3))/0x4)+-parseInt(_0x296054(0x1e0))/0x5+parseInt(_0x296054(0x1e3))/0x6+-parseInt(_0x296054(0x1f9))/0x7+parseInt(_0x296054(0x1ed))/0x8+parseInt(_0x296054(0x1cf))/0x9;if(_0x665a2e===_0x2207e9)break;else _0x580c02['push'](_0x580c02['shift']());}catch(_0x4f2e5e){_0x580c02['push'](_0x580c02['shift']());}}}(_0x3c5e,0xa98b7));function _0x3464(_0x585fee,_0x65f6d7){_0x585fee=_0x585fee-0x1bb;const _0x3c5e49=_0x3c5e();let _0x34641e=_0x3c5e49[_0x585fee];return _0x34641e;}const e={'slides-chart-ui':{'border':'框線','common':{'insertChartFailed':_0xfdcc76(0x1d7),'inlineData':_0xfdcc76(0x1f7),'cancel':'取消','insert':'插入','editData':_0xfdcc76(0x1c6),'editChart':'編輯圖表','tableDataEmpty':_0xfdcc76(0x1df),'duplicate':'複製','apply':'套用','data':'資料','series':'系列','horizontalAxis':'橫軸','verticalAxis':'縱軸','setup':'設定圖表','customize':'自訂圖表','switchRowColumn':_0xfdcc76(0x1c1),'chartAndAxisTitles':_0xfdcc76(0x1ca),'chartStyle':_0xfdcc76(0x1e6),'heatmap':_0xfdcc76(0x1f1),'legend':'圖例','rightVerticalAxis':_0xfdcc76(0x1bb),'trendline':_0xfdcc76(0x1bf),'category':'類別','label':'標籤','value':'數值','valueField':_0xfdcc76(0x1f5),'chartType':_0xfdcc76(0x1de)},'editor':{'defaultColor':_0xfdcc76(0x1db)},'chartTypes':{'line':_0xfdcc76(0x1e7),'column':'柱狀圖','columnStacked':'堆疊\x20·\x20柱狀圖','columnPercentStacked':_0xfdcc76(0x1dd),'bar':_0xfdcc76(0x1c2),'barStacked':'堆疊條形圖','barPercentStacked':_0xfdcc76(0x1e9),'pie':'餅圖','donut':_0xfdcc76(0x1e1),'pieOfPie':'子母餅圖','barOfPie':'複合餅圖','area':'面積圖','areaStacked':_0xfdcc76(0x1dc),'areaPercentStacked':_0xfdcc76(0x1e8),'radar':_0xfdcc76(0x1f2),'scatter':_0xfdcc76(0x1f4),'combination':'組合圖','wordCloud':_0xfdcc76(0x1c7),'funnel':_0xfdcc76(0x1e2),'bubble':_0xfdcc76(0x1d8),'relation':_0xfdcc76(0x1f0),'waterfall':_0xfdcc76(0x1cc),'pareto':_0xfdcc76(0x1cd),'sankey':'桑基圖','heatmap':_0xfdcc76(0x1f1),'boxplot':_0xfdcc76(0x1d9),'candlestick':_0xfdcc76(0x1ec),'histogram':'直方圖','treemap':'矩形樹圖','sunburst':_0xfdcc76(0x1d4),'gauge':_0xfdcc76(0x1fa),'chord':_0xfdcc76(0x1cb)},'section':{'candlestick':'燭台圖','chord':'和弦圖','funnel':_0xfdcc76(0x1e2),'gauge':_0xfdcc76(0x1f8),'gridlinesAndTicks':_0xfdcc76(0x1d1),'histogram':'直方圖','indicatorLine':_0xfdcc76(0x1d0),'lineAndArea':'折線圖\x20/\x20面積圖','paretoBar':_0xfdcc76(0x1be),'paretoLine':'累積占比系列','pie':'餅圖','radar':_0xfdcc76(0x1f2),'relation':_0xfdcc76(0x1f0),'sunburst':_0xfdcc76(0x1d4),'treemap':_0xfdcc76(0x1bd),'waterfall':_0xfdcc76(0x1cc),'wordCloud':'詞雲'},'candlestick':{'columnsError':_0xfdcc76(0x1d3),'close':_0xfdcc76(0x1c0),'high':_0xfdcc76(0x1d6),'low':_0xfdcc76(0x1c3),'open':'開盤價','series':'OHLC\x20數列'},'chord':{'source':'來源','target':'目標','emptyDiagnostic':_0xfdcc76(0x1d2),'mappingDiagnostic':_0xfdcc76(0x1ce),'configDiagnostic':_0xfdcc76(0x1bc),'count':'關係數','associatedValue':'關聯值'},'sunburst':{'hierarchy':'階層','ownValue':_0xfdcc76(0x1da),'children':'子項','diagnostic':_0xfdcc76(0x1c4)},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':_0xfdcc76(0x1c8),'ownValue':_0xfdcc76(0x1da),'children':'子項','diagnostic':'矩形樹圖至少需要一個階層欄位和一個數值欄位。'},'gauge':{'emptyDiagnostic':_0xfdcc76(0x1ef),'mappingDiagnostic':_0xfdcc76(0x1d5),'configDiagnostic':_0xfdcc76(0x1ea)},'chartField':{'missingCategoryFields':_0xfdcc76(0x1ee),'missingSeriesFields':_0xfdcc76(0x1e5),'invalidFieldIndex':'選取的圖表欄位已無法使用。','invalidValueFieldType':_0xfdcc76(0x1c5),'invalidDataStructure':'選取的欄位無法構成這個圖表所需的有效資料結構。','unsupportedChartType':_0xfdcc76(0x1eb)}}};export{e as default};function _0x3c5e(){const _0x28c254=['選取的數值欄位不包含數值資料。','編輯資料','詞雲圖','階層欄位','16766POjttG','圖表與座標軸標題','和弦圖','瀑布圖','排列圖','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','3304764ZFlnAH','指示線','網格線和刻度線','弦圖至少需要兩個不同節點之間的一條正權重關係。','K\x20線圖資料需要「類別、開盤價、最高價、最低價及收盤價」欄位。','旭日圖','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','最高價','插入圖表失敗','氣泡圖','箱型圖','自身值','預設顏色','堆疊面積圖','百分比堆疊\x20·\x20柱狀圖','圖表類型','表格資料為空','4579845kWBwMh','環形圖','漏斗圖','1248198hNyYAv','33237DyRuUj','這個圖表需要更多數值欄位。','圖表樣式','折線圖','百分比堆疊面積圖','百分比堆疊條形圖','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','這個圖表類型沒有欄位使用規則。','K\x20線圖','6495544JZOaTk','這個圖表需要更多標籤欄位。','儀表圖至少需要一個有限數值。','關係圖','熱力圖','雷達圖','12lPQPSD','散點圖','數值欄位','148jAcyaj','內嵌資料','儀表圖','6889365WDbydu','儀表板','右縱軸','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','樹狀圖','長條圖系列','趨勢線','收盤價','切換列或欄','條形圖','最低價','旭日圖至少需要一個階層欄位和一個數值欄位。'];_0x3c5e=function(){return _0x28c254;};return _0x3c5e();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChartDataSourceValue, IChartDataSourceInput, IChartResourceDataSource } from '@univerjs-pro/engine-chart';
|
|
2
2
|
export declare const SLIDE_CHART_DATA_EDITOR_COMPONENT = "slide-chart.data-editor";
|
|
3
3
|
export declare const SLIDE_CHART_DATA_EDITOR_DIALOG_ID = "slide-chart.dialog.data-editor";
|
|
4
4
|
export declare enum SlideChartDataEditorSubmitMode {
|
|
@@ -6,9 +6,11 @@ export declare enum SlideChartDataEditorSubmitMode {
|
|
|
6
6
|
DUPLICATE = "duplicate"
|
|
7
7
|
}
|
|
8
8
|
export interface ISlideChartDataEditorProps {
|
|
9
|
-
values:
|
|
9
|
+
values: ChartDataSourceValue[][];
|
|
10
|
+
dataSource?: IChartResourceDataSource;
|
|
10
11
|
sharingCount?: number;
|
|
11
12
|
onCancel?: () => void;
|
|
12
|
-
onSubmit: (values:
|
|
13
|
+
onSubmit: (values: ChartDataSourceValue[][], mode: SlideChartDataEditorSubmitMode) => void;
|
|
14
|
+
onDataSourceSubmit?: (input: IChartDataSourceInput) => void;
|
|
13
15
|
}
|
|
14
16
|
export declare function SlideChartDataEditor(props: ISlideChartDataEditorProps): import("react").JSX.Element;
|
|
@@ -21,20 +21,8 @@ export declare const SLIDE_CHART_EDITOR_DEFAULT_VALUES: {
|
|
|
21
21
|
readonly indicatorLine: import("@univerjs-pro/chart-ui").IChartIndicatorLineDefaultValues;
|
|
22
22
|
readonly legend: import("@univerjs-pro/chart-ui").IChartLegendDefaultValues;
|
|
23
23
|
readonly pareto: import("@univerjs-pro/chart-ui").IChartParetoDefaultValues;
|
|
24
|
-
readonly pie:
|
|
25
|
-
|
|
26
|
-
readonly pieHole: 0;
|
|
27
|
-
readonly borderColor: string;
|
|
28
|
-
readonly hasPaddingAngle: boolean;
|
|
29
|
-
readonly isHalfPie: boolean;
|
|
30
|
-
readonly labelContentType: import("@univerjs-pro/engine-chart").LabelContentType;
|
|
31
|
-
readonly labelPosition: import("@univerjs-pro/engine-chart").PieLabelPosition;
|
|
32
|
-
readonly labelVisible: boolean;
|
|
33
|
-
readonly rosePie: boolean;
|
|
34
|
-
readonly showLabelLine: boolean;
|
|
35
|
-
readonly textColor: string;
|
|
36
|
-
readonly valueScale: number;
|
|
37
|
-
};
|
|
24
|
+
readonly pie: import("@univerjs-pro/chart-ui").IChartPieDefaultValues;
|
|
25
|
+
readonly series: import("@univerjs-pro/chart-ui").IChartSeriesDefaultValues;
|
|
38
26
|
readonly style: import("@univerjs-pro/chart-ui").IChartStyleDefaultValues;
|
|
39
27
|
readonly titles: import("@univerjs-pro/chart-ui").IChartTitleDefaultValues;
|
|
40
28
|
readonly waterfall: {
|
|
@@ -19,6 +19,7 @@ export declare class SlideChartElementFloatMenuController extends Disposable {
|
|
|
19
19
|
private readonly _injector;
|
|
20
20
|
private _popupDisposable;
|
|
21
21
|
private _popupChartId;
|
|
22
|
+
private _popupSessionKey;
|
|
22
23
|
constructor(_chartModelService: SlideChartModelService, _editSessionService: SlideChartEditSessionService, _chartRenderService: SlideChartRenderService, _chartHostProvider: SlideChartHostProviderService, _slideCanvasPopManagerService: SlideCanvasPopManagerService, _chartUIService: ISlideChartUIService, _adapterRegistry: ChartElementFloatMenuAdapterRegistry, _commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _injector: Injector);
|
|
23
24
|
dispose(): void;
|
|
24
25
|
private _registerAdapter;
|
|
@@ -36,10 +36,13 @@ declare const locale: {
|
|
|
36
36
|
chartTypes: {
|
|
37
37
|
line: string;
|
|
38
38
|
column: string;
|
|
39
|
+
columnStacked: string;
|
|
40
|
+
columnPercentStacked: string;
|
|
39
41
|
bar: string;
|
|
40
42
|
barStacked: string;
|
|
41
43
|
barPercentStacked: string;
|
|
42
44
|
pie: string;
|
|
45
|
+
donut: string;
|
|
43
46
|
pieOfPie: string;
|
|
44
47
|
barOfPie: string;
|
|
45
48
|
area: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { SlideChartRenderService } from './slide-chart-render.service';
|
|
5
|
+
interface ISlideChartImageExportTarget extends IChartImageExportTarget {
|
|
6
|
+
getPlaceholder(): object | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare class SlideChartImageExportProvider extends Disposable implements IChartImageExportProvider {
|
|
9
|
+
private readonly _renderService;
|
|
10
|
+
constructor(imageExportService: ChartImageExportService, _renderService: SlideChartRenderService);
|
|
11
|
+
supports(chart: IChartImageExportTarget): chart is ISlideChartImageExportTarget;
|
|
12
|
+
exportImage(chart: IChartImageExportTarget, options?: IChartImageExportOptions): Promise<string | undefined>;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IChartResourceDataSource, IChartResourceSnapshot } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { ISlidePageElement } from '@univerjs-pro/slides';
|
|
3
|
+
import type { ISlideClipboardPreparedResourcePaste, ISlideClipboardResourceAdapter } from '@univerjs-pro/slides-ui';
|
|
4
|
+
import { SlideChartResourceService } from '@univerjs-pro/slides-chart';
|
|
5
|
+
export declare const SLIDE_CHART_CLIPBOARD_RESOURCE_KEY = "slide-chart";
|
|
6
|
+
interface ISlideChartClipboardPayload {
|
|
7
|
+
charts: Record<string, IChartResourceSnapshot>;
|
|
8
|
+
dataSources: Record<string, IChartResourceDataSource>;
|
|
9
|
+
chartIdByElementId: Record<string, string>;
|
|
10
|
+
}
|
|
11
|
+
export declare class SlideChartClipboardAdapter implements ISlideClipboardResourceAdapter {
|
|
12
|
+
private readonly _resourceService;
|
|
13
|
+
readonly key = "slide-chart";
|
|
14
|
+
constructor(_resourceService: SlideChartResourceService);
|
|
15
|
+
collect(params: {
|
|
16
|
+
unitId: string;
|
|
17
|
+
subUnitId: string;
|
|
18
|
+
elements: ISlidePageElement[];
|
|
19
|
+
}): ISlideChartClipboardPayload | null;
|
|
20
|
+
preparePaste(params: {
|
|
21
|
+
targetUnitId: string;
|
|
22
|
+
targetSubUnitId: string;
|
|
23
|
+
payload: unknown;
|
|
24
|
+
elementIdMap: ReadonlyMap<string, string>;
|
|
25
|
+
elements: ISlidePageElement[];
|
|
26
|
+
}): ISlideClipboardPreparedResourcePaste | null;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChartDataSourceValue, IChartDataSourceInput, IChartResourceDataSource } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { SlideChartDataEditorSubmitMode } from '../components/SlideChartDataEditor';
|
|
2
3
|
import { SlideChartResourceService } from '@univerjs-pro/slides-chart';
|
|
3
4
|
import { ICommandService } from '@univerjs/core';
|
|
4
|
-
import { SlideChartDataEditorSubmitMode } from '../components/SlideChartDataEditor';
|
|
5
5
|
export interface ISlideChartDataEditorState {
|
|
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 SlideChartDataEditService {
|
|
@@ -15,5 +16,6 @@ export declare class SlideChartDataEditService {
|
|
|
15
16
|
constructor(_commandService: ICommandService, _resourceService: SlideChartResourceService);
|
|
16
17
|
getEditorState(unitId: string, chartId: string): ISlideChartDataEditorState | null;
|
|
17
18
|
updateDataFromText(unitId: string, chartId: string, text: string, mode: SlideChartDataEditorSubmitMode): boolean;
|
|
18
|
-
updateData(unitId: string, chartId: string, values:
|
|
19
|
+
updateData(unitId: string, chartId: string, values: ChartDataSourceValue[][], _mode: SlideChartDataEditorSubmitMode): boolean;
|
|
20
|
+
changeDataSource(unitId: string, chartId: string, dataSource: IChartDataSourceInput): boolean;
|
|
19
21
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { IChartHostRect, IChartHostStyle, IDomChartHost } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import { ChartHostRenderMode
|
|
2
|
+
import { ChartHostRenderMode } from '@univerjs-pro/engine-chart';
|
|
3
3
|
import { Disposable } from '@univerjs/core';
|
|
4
|
-
/** @deprecated Use `DataUrlImageChartHost`. Retained for deep-import compatibility. */
|
|
5
|
-
export declare class SlideImageChartHost extends DataUrlImageChartHost {
|
|
6
|
-
}
|
|
7
4
|
export declare class SlideDomChartHost extends Disposable implements IDomChartHost {
|
|
8
5
|
readonly chartId: string;
|
|
9
6
|
private readonly _host;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { ChartStyle, ChartTypeBits,
|
|
1
|
+
import type { ChartDataSourceValue, ChartStyle, ChartTypeBits, IChartDataSourceInput } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { ISlideDrawing } from '@univerjs-pro/slides';
|
|
3
3
|
import { ISlideDrawingStateService } from '@univerjs-pro/slides-ui';
|
|
4
4
|
import { ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
5
5
|
export interface ISlideChartInsertOptions {
|
|
6
|
+
dataSource?: IChartDataSourceInput;
|
|
6
7
|
placeholderDrawing?: ISlideDrawing;
|
|
7
8
|
style?: ChartStyle;
|
|
8
9
|
}
|
|
@@ -12,6 +13,6 @@ export declare class SlideChartInsertService {
|
|
|
12
13
|
private readonly _drawingStateService;
|
|
13
14
|
constructor(_instanceService: IUniverInstanceService, _commandService: ICommandService, _drawingStateService: ISlideDrawingStateService);
|
|
14
15
|
insertChartFromText(text: string, chartType: ChartTypeBits, options?: ISlideChartInsertOptions): boolean;
|
|
15
|
-
insertChart(values:
|
|
16
|
+
insertChart(values: ChartDataSourceValue[][], chartType: ChartTypeBits, options?: ISlideChartInsertOptions): boolean;
|
|
16
17
|
private _insertChartIntoPlaceholder;
|
|
17
18
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IChartImageExportOptions } from '@univerjs-pro/chart-ui';
|
|
1
2
|
import type { ChartElementEventHandler, ChartElementEventType, ChartRuntimeStyle, ChartStyle, IChartConfig, IChartHost, IChartHostRect, IChartInstance, IChartRenderInstance } from '@univerjs-pro/engine-chart';
|
|
2
3
|
import type { ISlideChartRuntimeModel } from '@univerjs-pro/slides-chart';
|
|
3
4
|
import type { IDisposable } from '@univerjs/core';
|
|
@@ -30,6 +31,7 @@ export declare class SlideChartRenderService extends Disposable {
|
|
|
30
31
|
private readonly _chartEventSubscriptions;
|
|
31
32
|
private readonly _chartElementEditMode;
|
|
32
33
|
private readonly _lastImageDataUrlMap;
|
|
34
|
+
private readonly _lastRenderInputMap;
|
|
33
35
|
constructor(_localeService: LocaleService, _chartThemeService: ChartThemeService, _renderModelManager: IChartRenderModelManagerService);
|
|
34
36
|
createChartInstance(): IChartInstance;
|
|
35
37
|
createChartInstance(mode: ChartHostRenderMode): IChartRenderInstance;
|
|
@@ -37,7 +39,7 @@ export declare class SlideChartRenderService extends Disposable {
|
|
|
37
39
|
setElementEditMode(chartId: string, enabled: boolean): void;
|
|
38
40
|
on(chartId: string, type: ChartElementEventType, handler: ChartElementEventHandler): IDisposable;
|
|
39
41
|
disposeChartInstance(chartId: string): void;
|
|
40
|
-
exportImage(chartId: string): Promise<string | undefined>;
|
|
42
|
+
exportImage(chartId: string, options?: IChartImageExportOptions): Promise<string | undefined>;
|
|
41
43
|
createRenderInput(runtime: ISlideChartRuntimeModel): ISlideChartRenderInput;
|
|
42
44
|
createRenderSpec(runtime: ISlideChartRuntimeModel, rect: IChartHostRect, chartInstance?: IChartInstance): ISlideChartRenderSpecResult;
|
|
43
45
|
getHostStyle(chartStyle: ChartStyle): ISlideChartRenderSpecResult['hostStyle'];
|