@univerjs-pro/slides-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 +10 -209
- 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/operations/chart-panel.operation.d.ts +1 -1
- package/lib/types/common/slide-chart-frame-style.d.ts +3 -3
- package/lib/types/components/SlideChartDataEditor.d.ts +3 -3
- package/lib/types/components/SlideChartEditPanel.d.ts +51 -14
- package/lib/types/controllers/slide-chart-element-float-menu.controller.d.ts +5 -3
- package/lib/types/index.d.ts +2 -6
- package/lib/types/locale/en-US.d.ts +111 -79
- package/lib/types/menu/contextmenu.menu.d.ts +1 -2
- package/lib/types/services/slide-chart-data-edit.service.d.ts +3 -3
- package/lib/types/services/slide-chart-edit-session.service.d.ts +1 -1
- package/lib/types/services/slide-chart-host-provider.service.d.ts +20 -4
- package/lib/types/services/slide-chart-host.d.ts +4 -13
- package/lib/types/services/slide-chart-insert.service.d.ts +3 -3
- package/lib/types/services/slide-chart-render.service.d.ts +4 -8
- package/lib/types/services/slide-chart-ui.service.d.ts +20 -97
- package/lib/types/views/render/chart-adaptor.d.ts +3 -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 +15 -15
- package/lib/types/components/SlideChartInlineTableEditor.d.ts +0 -11
- package/lib/types/hooks.d.ts +0 -3
- package/lib/types/services/chart-element-selection.d.ts +0 -10
- package/lib/types/services/chart-panel-route.d.ts +0 -22
- package/lib/types/utils/ChartPanelOptions.d.ts +0 -78
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x449a9c=_0x20e4;(function(_0x20ccba,_0x2b7686){const _0x514817=_0x20e4,_0x1af74a=_0x20ccba();while(!![]){try{const _0x318876=-parseInt(_0x514817(0x165))/0x1*(parseInt(_0x514817(0x18e))/0x2)+parseInt(_0x514817(0x159))/0x3+-parseInt(_0x514817(0x179))/0x4*(parseInt(_0x514817(0x16b))/0x5)+-parseInt(_0x514817(0x15e))/0x6+parseInt(_0x514817(0x15c))/0x7+-parseInt(_0x514817(0x16a))/0x8*(-parseInt(_0x514817(0x16d))/0x9)+parseInt(_0x514817(0x157))/0xa*(parseInt(_0x514817(0x187))/0xb);if(_0x318876===_0x2b7686)break;else _0x1af74a['push'](_0x1af74a['shift']());}catch(_0x89acb0){_0x1af74a['push'](_0x1af74a['shift']());}}}(_0xab8a,0xf3435));function _0xab8a(){const _0x373fab=['編輯圖表','旭日圖至少需要一個階層欄位和一個數值欄位。','矩形樹圖至少需要一個階層欄位和一個數值欄位。','直方圖','趨勢線','散點圖','設定圖表','OHLC\x20數列','桑基圖','K\x20線圖資料需要「類別、開盤價、最高價、最低價及收盤價」欄位。','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','柱狀圖','35426798gUNnpI','網格線和刻度線','自訂圖表','指示線','矩形樹圖','關聯值','旭日圖','6542xVOrkH','圖表與座標軸標題','最低價','K\x20線圖','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','堆疊面積圖','右縱軸','漏斗圖','開盤價','表格資料為空','選取的欄位無法構成這個圖表所需的有效資料結構。','這個圖表需要更多標籤欄位。','折線圖','長條圖系列','插入圖表失敗','百分比堆疊面積圖','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','10GKjnAY','弦圖至少需要兩個不同節點之間的一條正權重關係。','2542068tnkzyH','內嵌資料','詞雲圖','2795506XIlARU','編輯資料','10212414gSENGf','複合餅圖','堆疊條形圖','和弦圖','累積占比系列','關係圖','熱力圖','399MAatYt','瀑布圖','自身值','儀表板','這個圖表類型沒有欄位使用規則。','3582416fOGkZG','10345iBBPmq','預設顏色','18AphxRT','關係數','圖表樣式','儀表圖至少需要一個有限數值。','切換列或欄','選取的圖表欄位已無法使用。','雷達圖','圖表類型','面積圖','樹狀圖','箱型圖','折線圖\x20/\x20面積圖','2628BeOYfi','組合圖'];_0xab8a=function(){return _0x373fab;};return _0xab8a();}const e={'slides-chart-ui':{'border':'框線','common':{'insertChartFailed':_0x449a9c(0x19c),'inlineData':_0x449a9c(0x15a),'cancel':'取消','insert':'插入','editData':_0x449a9c(0x15d),'editChart':_0x449a9c(0x17b),'tableDataEmpty':_0x449a9c(0x197),'duplicate':'複製','apply':'套用','data':'資料','series':'系列','horizontalAxis':'橫軸','verticalAxis':'縱軸','setup':_0x449a9c(0x181),'customize':_0x449a9c(0x189),'switchRowColumn':_0x449a9c(0x171),'chartAndAxisTitles':_0x449a9c(0x18f),'chartStyle':_0x449a9c(0x16f),'heatmap':_0x449a9c(0x164),'legend':'圖例','rightVerticalAxis':_0x449a9c(0x194),'trendline':_0x449a9c(0x17f),'category':'類別','label':'標籤','value':'數值','valueField':'數值欄位','chartType':_0x449a9c(0x174)},'editor':{'defaultColor':_0x449a9c(0x16c)},'chartTypes':{'line':_0x449a9c(0x19a),'column':_0x449a9c(0x186),'bar':'條形圖','barStacked':_0x449a9c(0x160),'barPercentStacked':'百分比堆疊條形圖','pie':'餅圖','pieOfPie':'子母餅圖','barOfPie':_0x449a9c(0x15f),'area':_0x449a9c(0x175),'areaStacked':_0x449a9c(0x193),'areaPercentStacked':_0x449a9c(0x19d),'radar':_0x449a9c(0x173),'scatter':_0x449a9c(0x180),'combination':_0x449a9c(0x17a),'wordCloud':_0x449a9c(0x15b),'funnel':'漏斗圖','bubble':'氣泡圖','relation':_0x449a9c(0x163),'waterfall':_0x449a9c(0x166),'pareto':'排列圖','sankey':_0x449a9c(0x183),'heatmap':_0x449a9c(0x164),'boxplot':_0x449a9c(0x177),'candlestick':_0x449a9c(0x191),'histogram':_0x449a9c(0x17e),'treemap':_0x449a9c(0x18b),'sunburst':_0x449a9c(0x18d),'gauge':_0x449a9c(0x168),'chord':'和弦圖'},'section':{'candlestick':'燭台圖','chord':_0x449a9c(0x161),'funnel':_0x449a9c(0x195),'gauge':'儀表圖','gridlinesAndTicks':_0x449a9c(0x188),'histogram':_0x449a9c(0x17e),'indicatorLine':_0x449a9c(0x18a),'lineAndArea':_0x449a9c(0x178),'paretoBar':_0x449a9c(0x19b),'paretoLine':_0x449a9c(0x162),'pie':'餅圖','radar':_0x449a9c(0x173),'relation':_0x449a9c(0x163),'sunburst':_0x449a9c(0x18d),'treemap':_0x449a9c(0x176),'waterfall':_0x449a9c(0x166),'wordCloud':'詞雲'},'candlestick':{'columnsError':_0x449a9c(0x184),'close':'收盤價','high':'最高價','low':_0x449a9c(0x190),'open':_0x449a9c(0x196),'series':_0x449a9c(0x182)},'chord':{'source':'來源','target':'目標','emptyDiagnostic':_0x449a9c(0x158),'mappingDiagnostic':_0x449a9c(0x19e),'configDiagnostic':'弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','count':_0x449a9c(0x16e),'associatedValue':_0x449a9c(0x18c)},'sunburst':{'hierarchy':'階層','ownValue':_0x449a9c(0x167),'children':'子項','diagnostic':_0x449a9c(0x17c)},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':'階層欄位','ownValue':_0x449a9c(0x167),'children':'子項','diagnostic':_0x449a9c(0x17d)},'gauge':{'emptyDiagnostic':_0x449a9c(0x170),'mappingDiagnostic':_0x449a9c(0x192),'configDiagnostic':_0x449a9c(0x185)},'chartField':{'missingCategoryFields':_0x449a9c(0x199),'missingSeriesFields':'這個圖表需要更多數值欄位。','invalidFieldIndex':_0x449a9c(0x172),'invalidValueFieldType':'選取的數值欄位不包含數值資料。','invalidDataStructure':_0x449a9c(0x198),'unsupportedChartType':_0x449a9c(0x169)}}};function _0x20e4(_0x1c318f,_0x330bd8){_0x1c318f=_0x1c318f-0x157;const _0xab8af=_0xab8a();let _0x20e456=_0xab8af[_0x1c318f];return _0x20e456;}export{e as default};
|
|
@@ -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 ISlideChartPanelOperationParams {
|
|
4
4
|
unitId: string;
|
|
5
5
|
subUnitId: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ChartStyle } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type {
|
|
3
|
-
export declare function isVisibleSlideChartStroke(stroke:
|
|
2
|
+
import type { IShapeLineStyle } from '@univerjs-pro/engine-shape';
|
|
3
|
+
export declare function isVisibleSlideChartStroke(stroke: IShapeLineStyle | undefined): stroke is IShapeLineStyle & {
|
|
4
4
|
color: string;
|
|
5
5
|
width: number;
|
|
6
6
|
};
|
|
7
7
|
/** Resolves a non-destructive chart-style override without rewriting the persisted Slide stroke. */
|
|
8
|
-
export declare function resolveSlideChartStroke(chartStyle: ChartStyle | null | undefined, hostStroke?:
|
|
8
|
+
export declare function resolveSlideChartStroke(chartStyle: ChartStyle | null | undefined, hostStroke?: IShapeLineStyle): IShapeLineStyle | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InlineChartCellValue } 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,9 @@ export declare enum SlideChartDataEditorSubmitMode {
|
|
|
6
6
|
DUPLICATE = "duplicate"
|
|
7
7
|
}
|
|
8
8
|
export interface ISlideChartDataEditorProps {
|
|
9
|
-
values:
|
|
9
|
+
values: InlineChartCellValue[][];
|
|
10
10
|
sharingCount?: number;
|
|
11
11
|
onCancel?: () => void;
|
|
12
|
-
onSubmit: (values:
|
|
12
|
+
onSubmit: (values: InlineChartCellValue[][], mode: SlideChartDataEditorSubmitMode) => void;
|
|
13
13
|
}
|
|
14
14
|
export declare function SlideChartDataEditor(props: ISlideChartDataEditorProps): import("react").JSX.Element;
|
|
@@ -1,23 +1,60 @@
|
|
|
1
|
+
import type { IChartEditPanelRoute } from '@univerjs-pro/chart-ui';
|
|
2
|
+
import { ChartEditPanelSection } from '@univerjs-pro/chart-ui';
|
|
1
3
|
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
2
4
|
export declare const SLIDE_CHART_EDIT_PANEL_COMPONENT = "slide-chart.edit-panel";
|
|
5
|
+
export declare const SLIDE_CHART_EDITOR_DEFAULT_VALUES: {
|
|
6
|
+
readonly axis: {
|
|
7
|
+
readonly primaryGridLineVisible: true;
|
|
8
|
+
readonly secondaryGridLineVisible: true;
|
|
9
|
+
readonly color: string;
|
|
10
|
+
readonly dateAxisRotation: number;
|
|
11
|
+
readonly gridlineWidth: number;
|
|
12
|
+
readonly labelFontSize: number;
|
|
13
|
+
readonly labelRotation: number;
|
|
14
|
+
readonly labelVisible: boolean;
|
|
15
|
+
readonly reverse: boolean;
|
|
16
|
+
readonly tickLength: string;
|
|
17
|
+
readonly tickPosition: import("@univerjs-pro/engine-chart").ChartAxisTickPosition;
|
|
18
|
+
readonly tickVisible: boolean;
|
|
19
|
+
readonly tickWidth: string;
|
|
20
|
+
};
|
|
21
|
+
readonly indicatorLine: import("@univerjs-pro/chart-ui").IChartIndicatorLineDefaultValues;
|
|
22
|
+
readonly legend: import("@univerjs-pro/chart-ui").IChartLegendDefaultValues;
|
|
23
|
+
readonly pareto: import("@univerjs-pro/chart-ui").IChartParetoDefaultValues;
|
|
24
|
+
readonly pie: {
|
|
25
|
+
readonly doughnutHole: 0.5;
|
|
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
|
+
};
|
|
38
|
+
readonly style: import("@univerjs-pro/chart-ui").IChartStyleDefaultValues;
|
|
39
|
+
readonly titles: import("@univerjs-pro/chart-ui").IChartTitleDefaultValues;
|
|
40
|
+
readonly waterfall: {
|
|
41
|
+
readonly useSubtotal: true;
|
|
42
|
+
readonly stackType: import("@univerjs-pro/engine-chart").WaterfallStackTypeEnum;
|
|
43
|
+
};
|
|
44
|
+
readonly waterfallStyle: import("@univerjs-pro/chart-ui").IChartWaterfallStyleDefaultValues;
|
|
45
|
+
readonly wordCloud: import("@univerjs-pro/chart-ui").IChartWordCloudDefaultValues;
|
|
46
|
+
};
|
|
3
47
|
export interface ISlideChartEditPanelProps {
|
|
4
48
|
unitId: string;
|
|
5
49
|
subUnitId?: string;
|
|
6
50
|
drawingId?: string;
|
|
7
51
|
chartId: string;
|
|
8
52
|
}
|
|
9
|
-
export declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Legend = "legend",
|
|
17
|
-
HorizontalAxis = "horizontalAxis",
|
|
18
|
-
VerticalAxis = "verticalAxis",
|
|
19
|
-
GridlinesAndTicks = "gridlinesAndTicks",
|
|
20
|
-
IndicatorLine = "indicatorLine"
|
|
21
|
-
}
|
|
22
|
-
export declare function getSlideChartCustomizePanelItemIds(chartType: ChartTypeBits | undefined): SlideChartCustomizePanelItemId[];
|
|
53
|
+
export declare function getSlideStyleSectionIds(chartType: ChartTypeBits, hasRightAxis?: boolean): ChartEditPanelSection[];
|
|
54
|
+
export declare function SlideStylePanel(props: {
|
|
55
|
+
unitId: string;
|
|
56
|
+
subUnitId?: string;
|
|
57
|
+
drawingId?: string;
|
|
58
|
+
route?: IChartEditPanelRoute | null;
|
|
59
|
+
}): import("react").JSX.Element;
|
|
23
60
|
export declare function SlideChartEditPanel(props: ISlideChartEditPanelProps): import("react").JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChartElementFloatMenuAdapterRegistry } from '@univerjs-pro/chart-ui';
|
|
2
2
|
import { SlideChartModelService } from '@univerjs-pro/slides-chart';
|
|
3
3
|
import { SlideCanvasPopManagerService } from '@univerjs-pro/slides-ui';
|
|
4
|
-
import { Disposable, ICommandService } from '@univerjs/core';
|
|
4
|
+
import { Disposable, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
5
5
|
import { SlideChartEditSessionService } from '../services/slide-chart-edit-session.service';
|
|
6
6
|
import { SlideChartHostProviderService } from '../services/slide-chart-host-provider.service';
|
|
7
7
|
import { SlideChartRenderService } from '../services/slide-chart-render.service';
|
|
@@ -12,12 +12,14 @@ export declare class SlideChartElementFloatMenuController extends Disposable {
|
|
|
12
12
|
private readonly _chartRenderService;
|
|
13
13
|
private readonly _chartHostProvider;
|
|
14
14
|
private readonly _slideCanvasPopManagerService;
|
|
15
|
-
private readonly
|
|
15
|
+
private readonly _chartUIService;
|
|
16
16
|
private readonly _adapterRegistry;
|
|
17
17
|
private readonly _commandService;
|
|
18
|
+
private readonly _univerInstanceService;
|
|
19
|
+
private readonly _injector;
|
|
18
20
|
private _popupDisposable;
|
|
19
21
|
private _popupChartId;
|
|
20
|
-
constructor(_chartModelService: SlideChartModelService, _editSessionService: SlideChartEditSessionService, _chartRenderService: SlideChartRenderService, _chartHostProvider: SlideChartHostProviderService, _slideCanvasPopManagerService: SlideCanvasPopManagerService,
|
|
22
|
+
constructor(_chartModelService: SlideChartModelService, _editSessionService: SlideChartEditSessionService, _chartRenderService: SlideChartRenderService, _chartHostProvider: SlideChartHostProviderService, _slideCanvasPopManagerService: SlideCanvasPopManagerService, _chartUIService: ISlideChartUIService, _adapterRegistry: ChartElementFloatMenuAdapterRegistry, _commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _injector: Injector);
|
|
21
23
|
dispose(): void;
|
|
22
24
|
private _registerAdapter;
|
|
23
25
|
private _subscribeChartEvents;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -6,15 +6,12 @@ export type { ISlideChartDataEditorProps } from './components/SlideChartDataEdit
|
|
|
6
6
|
export { SLIDE_CHART_DATA_EDITOR_COMPONENT, SLIDE_CHART_DATA_EDITOR_DIALOG_ID, SlideChartDataEditor, } from './components/SlideChartDataEditor';
|
|
7
7
|
export type { ISlideChartEditPanelProps } from './components/SlideChartEditPanel';
|
|
8
8
|
export { SLIDE_CHART_EDIT_PANEL_COMPONENT, SlideChartEditPanel } from './components/SlideChartEditPanel';
|
|
9
|
-
export type { ISlideChartInlineTableEditorProps } from './components/SlideChartInlineTableEditor';
|
|
10
|
-
export { appendInlineTableColumn, appendInlineTableRow, applyInlineTablePaste, compactInlineTableValues, normalizeInlineTableValues, SlideChartInlineTableEditor, } from './components/SlideChartInlineTableEditor';
|
|
11
9
|
export type { ISlideChartInsertPanelProps } from './components/SlideChartInsertPanel';
|
|
12
10
|
export { SLIDE_CHART_INSERT_PANEL_COMPONENT, SlideChartInsertPanel } from './components/SlideChartInsertPanel';
|
|
13
11
|
export { SLIDES_CHART_UI_PLUGIN_CONFIG_KEY } from './config/config';
|
|
14
12
|
export type { IUniverSlidesChartUIConfig } from './config/config';
|
|
15
13
|
export { SlideChartContextMenuController } from './controllers/slide-chart-contextmenu.controller';
|
|
16
14
|
export { SlideChartUIController } from './controllers/ui.controller';
|
|
17
|
-
export { useSlideChartConfigState } from './hooks';
|
|
18
15
|
export { SlideContextMenuOpenChartPanelFactory } from './menu/contextmenu.menu';
|
|
19
16
|
export { slideChartContextMenuSchema } from './menu/schema';
|
|
20
17
|
export { UniverSlidesChartUIPlugin } from './plugin';
|
|
@@ -22,7 +19,6 @@ export type { ISlideChartDataEditorState } from './services/slide-chart-data-edi
|
|
|
22
19
|
export { SlideChartDataEditService } from './services/slide-chart-data-edit.service';
|
|
23
20
|
export { SlideChartInsertService } from './services/slide-chart-insert.service';
|
|
24
21
|
export type { ISlideChartRenderSpecResult } from './services/slide-chart-render.service';
|
|
25
|
-
export {
|
|
26
|
-
export
|
|
27
|
-
export { ISlideChartUIService, registerSlideChartConfigState, SlideChartUIService } from './services/slide-chart-ui.service';
|
|
22
|
+
export { SlideChartRenderService } from './services/slide-chart-render.service';
|
|
23
|
+
export { ISlideChartUIService, SlideChartUIService } from './services/slide-chart-ui.service';
|
|
28
24
|
export { SlideChartObjectAdaptor } from './views/render/chart-adaptor';
|
|
@@ -1,104 +1,136 @@
|
|
|
1
1
|
declare const locale: {
|
|
2
2
|
'slides-chart-ui': {
|
|
3
|
-
insertChart: string;
|
|
4
|
-
editChart: string;
|
|
5
|
-
openChartPanel: string;
|
|
6
|
-
deleteChart: string;
|
|
7
|
-
hideChartPanel: string;
|
|
8
|
-
setupChart: string;
|
|
9
|
-
customChart: string;
|
|
10
|
-
chartType: string;
|
|
11
|
-
themes: string;
|
|
12
|
-
data: string;
|
|
13
|
-
editData: string;
|
|
14
|
-
inlineData: string;
|
|
15
|
-
cancel: string;
|
|
16
|
-
insert: string;
|
|
17
|
-
apply: string;
|
|
18
|
-
duplicate: string;
|
|
19
|
-
tableDataEmpty: string;
|
|
20
|
-
insertChartFailed: string;
|
|
21
|
-
gradientFill: string;
|
|
22
|
-
stack: string;
|
|
23
|
-
category: string;
|
|
24
|
-
series: string;
|
|
25
|
-
addSeries: string;
|
|
26
|
-
chartStyle: string;
|
|
27
|
-
chartAndAxisTitles: string;
|
|
28
|
-
fill: string;
|
|
29
3
|
border: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
arrangement: string;
|
|
59
|
-
stacked: string;
|
|
60
|
-
showSubtotal: string;
|
|
61
|
-
};
|
|
62
|
-
none: string;
|
|
63
|
-
position: {
|
|
64
|
-
top: string;
|
|
65
|
-
right: string;
|
|
66
|
-
bottom: string;
|
|
67
|
-
left: string;
|
|
68
|
-
none: string;
|
|
69
|
-
};
|
|
70
|
-
stackType: {
|
|
71
|
-
stack: string;
|
|
72
|
-
percent: string;
|
|
4
|
+
common: {
|
|
5
|
+
insertChartFailed: string;
|
|
6
|
+
inlineData: string;
|
|
7
|
+
cancel: string;
|
|
8
|
+
insert: string;
|
|
9
|
+
editData: string;
|
|
10
|
+
editChart: string;
|
|
11
|
+
tableDataEmpty: string;
|
|
12
|
+
duplicate: string;
|
|
13
|
+
apply: string;
|
|
14
|
+
data: string;
|
|
15
|
+
series: string;
|
|
16
|
+
horizontalAxis: string;
|
|
17
|
+
verticalAxis: string;
|
|
18
|
+
setup: string;
|
|
19
|
+
customize: string;
|
|
20
|
+
switchRowColumn: string;
|
|
21
|
+
chartAndAxisTitles: string;
|
|
22
|
+
chartStyle: string;
|
|
23
|
+
heatmap: string;
|
|
24
|
+
legend: string;
|
|
25
|
+
rightVerticalAxis: string;
|
|
26
|
+
trendline: string;
|
|
27
|
+
category: string;
|
|
28
|
+
label: string;
|
|
29
|
+
value: string;
|
|
30
|
+
valueField: string;
|
|
31
|
+
chartType: string;
|
|
73
32
|
};
|
|
74
|
-
|
|
75
|
-
|
|
33
|
+
editor: {
|
|
34
|
+
defaultColor: string;
|
|
76
35
|
};
|
|
77
|
-
seriesDefaultName: string;
|
|
78
|
-
categoryDefaultName: string;
|
|
79
36
|
chartTypes: {
|
|
80
37
|
line: string;
|
|
81
|
-
area: string;
|
|
82
|
-
areaStacked: string;
|
|
83
|
-
areaPercentStacked: string;
|
|
84
38
|
column: string;
|
|
85
39
|
bar: string;
|
|
86
40
|
barStacked: string;
|
|
87
41
|
barPercentStacked: string;
|
|
88
42
|
pie: string;
|
|
89
|
-
|
|
90
|
-
|
|
43
|
+
pieOfPie: string;
|
|
44
|
+
barOfPie: string;
|
|
45
|
+
area: string;
|
|
46
|
+
areaStacked: string;
|
|
47
|
+
areaPercentStacked: string;
|
|
91
48
|
radar: string;
|
|
92
|
-
|
|
49
|
+
scatter: string;
|
|
93
50
|
combination: string;
|
|
94
51
|
wordCloud: string;
|
|
95
52
|
funnel: string;
|
|
53
|
+
bubble: string;
|
|
96
54
|
relation: string;
|
|
97
55
|
waterfall: string;
|
|
98
56
|
pareto: string;
|
|
99
57
|
sankey: string;
|
|
100
58
|
heatmap: string;
|
|
101
59
|
boxplot: string;
|
|
60
|
+
candlestick: string;
|
|
61
|
+
histogram: string;
|
|
62
|
+
treemap: string;
|
|
63
|
+
sunburst: string;
|
|
64
|
+
gauge: string;
|
|
65
|
+
chord: string;
|
|
66
|
+
};
|
|
67
|
+
section: {
|
|
68
|
+
candlestick: string;
|
|
69
|
+
chord: string;
|
|
70
|
+
funnel: string;
|
|
71
|
+
gauge: string;
|
|
72
|
+
gridlinesAndTicks: string;
|
|
73
|
+
histogram: string;
|
|
74
|
+
indicatorLine: string;
|
|
75
|
+
lineAndArea: string;
|
|
76
|
+
paretoBar: string;
|
|
77
|
+
paretoLine: string;
|
|
78
|
+
pie: string;
|
|
79
|
+
radar: string;
|
|
80
|
+
relation: string;
|
|
81
|
+
sunburst: string;
|
|
82
|
+
treemap: string;
|
|
83
|
+
waterfall: string;
|
|
84
|
+
wordCloud: string;
|
|
85
|
+
};
|
|
86
|
+
candlestick: {
|
|
87
|
+
columnsError: string;
|
|
88
|
+
close: string;
|
|
89
|
+
high: string;
|
|
90
|
+
low: string;
|
|
91
|
+
open: string;
|
|
92
|
+
series: string;
|
|
93
|
+
};
|
|
94
|
+
chord: {
|
|
95
|
+
source: string;
|
|
96
|
+
target: string;
|
|
97
|
+
emptyDiagnostic: string;
|
|
98
|
+
mappingDiagnostic: string;
|
|
99
|
+
configDiagnostic: string;
|
|
100
|
+
count: string;
|
|
101
|
+
associatedValue: string;
|
|
102
|
+
};
|
|
103
|
+
sunburst: {
|
|
104
|
+
hierarchy: string;
|
|
105
|
+
ownValue: string;
|
|
106
|
+
children: string;
|
|
107
|
+
diagnostic: string;
|
|
108
|
+
};
|
|
109
|
+
histogram: {
|
|
110
|
+
frequency: string;
|
|
111
|
+
};
|
|
112
|
+
pie: {
|
|
113
|
+
aggregateOther: string;
|
|
114
|
+
aggregateMembers: string;
|
|
115
|
+
};
|
|
116
|
+
treemap: {
|
|
117
|
+
hierarchy: string;
|
|
118
|
+
ownValue: string;
|
|
119
|
+
children: string;
|
|
120
|
+
diagnostic: string;
|
|
121
|
+
};
|
|
122
|
+
gauge: {
|
|
123
|
+
emptyDiagnostic: string;
|
|
124
|
+
mappingDiagnostic: string;
|
|
125
|
+
configDiagnostic: string;
|
|
126
|
+
};
|
|
127
|
+
chartField: {
|
|
128
|
+
missingCategoryFields: string;
|
|
129
|
+
missingSeriesFields: string;
|
|
130
|
+
invalidFieldIndex: string;
|
|
131
|
+
invalidValueFieldType: string;
|
|
132
|
+
invalidDataStructure: string;
|
|
133
|
+
unsupportedChartType: string;
|
|
102
134
|
};
|
|
103
135
|
};
|
|
104
136
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { IAccessor } from '@univerjs/core';
|
|
2
2
|
import type { IMenuButtonItem } from '@univerjs/ui';
|
|
3
|
-
|
|
4
|
-
export declare function SlideContextMenuOpenChartPanelFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey>;
|
|
3
|
+
export declare function SlideContextMenuOpenChartPanelFactory(accessor: IAccessor): IMenuButtonItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InlineChartCellValue } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import { SlideChartResourceService } from '@univerjs-pro/slides-chart';
|
|
3
3
|
import { ICommandService } from '@univerjs/core';
|
|
4
4
|
import { SlideChartDataEditorSubmitMode } from '../components/SlideChartDataEditor';
|
|
@@ -6,7 +6,7 @@ export interface ISlideChartDataEditorState {
|
|
|
6
6
|
unitId: string;
|
|
7
7
|
chartId: string;
|
|
8
8
|
dataSourceId: string;
|
|
9
|
-
values:
|
|
9
|
+
values: InlineChartCellValue[][];
|
|
10
10
|
sharingCount: number;
|
|
11
11
|
}
|
|
12
12
|
export declare class SlideChartDataEditService {
|
|
@@ -15,5 +15,5 @@ export declare class SlideChartDataEditService {
|
|
|
15
15
|
constructor(_commandService: ICommandService, _resourceService: SlideChartResourceService);
|
|
16
16
|
getEditorState(unitId: string, chartId: string): ISlideChartDataEditorState | null;
|
|
17
17
|
updateDataFromText(unitId: string, chartId: string, text: string, mode: SlideChartDataEditorSubmitMode): boolean;
|
|
18
|
-
updateData(unitId: string, chartId: string, values:
|
|
18
|
+
updateData(unitId: string, chartId: string, values: InlineChartCellValue[][], mode: SlideChartDataEditorSubmitMode): boolean;
|
|
19
19
|
}
|
|
@@ -39,7 +39,7 @@ export declare class SlideChartEditSessionService extends Disposable {
|
|
|
39
39
|
unsubscribe(): void;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
}, _renderModeService: SlideChartRenderModeService, _univerInstanceService: Pick<IUniverInstanceService, 'focused$' | 'getUnit'>, _renderManagerService: Pick<IRenderManagerService, '
|
|
42
|
+
}, _renderModeService: SlideChartRenderModeService, _univerInstanceService: Pick<IUniverInstanceService, 'focused$' | 'getUnit'>, _renderManagerService: Pick<IRenderManagerService, 'getRenderUnitById'>);
|
|
43
43
|
getActiveSession(): ISlideChartEditSession | null;
|
|
44
44
|
open(session: ISlideChartEditSession): boolean;
|
|
45
45
|
close(): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { IDomChartHost, IImageChartHost } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IShapeLineStyle } from '@univerjs-pro/engine-shape';
|
|
3
|
+
import type { ISlideDrawing } from '@univerjs-pro/slides';
|
|
3
4
|
import type { IDisposable } from '@univerjs/core';
|
|
4
5
|
import type { IBoundRectNoAngle } from '@univerjs/engine-render';
|
|
5
6
|
import { ChartHostRenderMode } from '@univerjs-pro/engine-chart';
|
|
7
|
+
import { SlideSceneTypeEnum } from '@univerjs-pro/slides';
|
|
6
8
|
import { SlideChartModelService } from '@univerjs-pro/slides-chart';
|
|
7
9
|
import { Disposable, LocaleService } from '@univerjs/core';
|
|
8
10
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
@@ -11,7 +13,7 @@ import { SlideChartRenderService } from './slide-chart-render.service';
|
|
|
11
13
|
interface ISlideChartImageObjectHandle {
|
|
12
14
|
changeChartSource(url: string): void;
|
|
13
15
|
makeDirty(dirty?: boolean): void;
|
|
14
|
-
setChartStroke?(stroke?:
|
|
16
|
+
setChartStroke?(stroke?: IShapeLineStyle): void;
|
|
15
17
|
}
|
|
16
18
|
export interface ISlideChartHostContext {
|
|
17
19
|
unitId: string;
|
|
@@ -21,8 +23,10 @@ export interface ISlideChartHostContext {
|
|
|
21
23
|
width: number;
|
|
22
24
|
height: number;
|
|
23
25
|
drawing: ISlideDrawing;
|
|
24
|
-
stroke?:
|
|
26
|
+
stroke?: IShapeLineStyle;
|
|
25
27
|
imageObject?: ISlideChartImageObjectHandle;
|
|
28
|
+
sceneType?: SlideSceneTypeEnum;
|
|
29
|
+
requestRender?: () => void;
|
|
26
30
|
}
|
|
27
31
|
export declare class SlideChartHostProviderService extends Disposable {
|
|
28
32
|
private readonly _renderManagerService;
|
|
@@ -31,10 +35,12 @@ export declare class SlideChartHostProviderService extends Disposable {
|
|
|
31
35
|
private readonly _renderService;
|
|
32
36
|
private readonly _renderModeService;
|
|
33
37
|
private readonly _hostContextMap;
|
|
34
|
-
private readonly
|
|
38
|
+
private readonly _hostContextRegistrationMap;
|
|
35
39
|
private readonly _domHostMap;
|
|
36
40
|
private readonly _hostLayoutSubscriptions;
|
|
37
41
|
private readonly _runtimeRenderSubscriptions;
|
|
42
|
+
private readonly _renderQueueMap;
|
|
43
|
+
private readonly _renderRequestTokenMap;
|
|
38
44
|
private readonly _domReadyChartIds;
|
|
39
45
|
private readonly _lastImageDataUrlMap;
|
|
40
46
|
private readonly _removeHost$;
|
|
@@ -54,6 +60,10 @@ export declare class SlideChartHostProviderService extends Disposable {
|
|
|
54
60
|
getImageDataUrl(chartId: string): string | undefined;
|
|
55
61
|
commitImageHost(chartId: string, host: IImageChartHost): void;
|
|
56
62
|
renderChart(chartId: string): Promise<void>;
|
|
63
|
+
private _drainRenderQueue;
|
|
64
|
+
private _renderChartOnce;
|
|
65
|
+
private _renderImageChart;
|
|
66
|
+
private _renderDomChart;
|
|
57
67
|
removeHost(chartId: string): void;
|
|
58
68
|
private _removeDomHost;
|
|
59
69
|
syncHostLayout(chartId: string): void;
|
|
@@ -72,12 +82,18 @@ export declare class SlideChartHostProviderService extends Disposable {
|
|
|
72
82
|
private _bindHostLayoutListeners;
|
|
73
83
|
private _disposeHostLayoutListeners;
|
|
74
84
|
private _bindRuntimeRenderListener;
|
|
85
|
+
private _waitForCurrentChartConfig;
|
|
75
86
|
private _disposeRuntimeRenderListener;
|
|
76
87
|
private _applyDomHostLayout;
|
|
88
|
+
private _getSlideDomWorldLayer;
|
|
77
89
|
private _getCanvasClientScale;
|
|
78
90
|
private _transformCanvasBoundToClientBound;
|
|
79
91
|
private _getChartRenderObject;
|
|
80
92
|
private _requestChartCanvasRender;
|
|
93
|
+
private _forEachHostContext;
|
|
94
|
+
private _selectHostContext;
|
|
95
|
+
private _getHostRegistrationKey;
|
|
96
|
+
private _commitImageDataUrl;
|
|
81
97
|
dispose(): void;
|
|
82
98
|
}
|
|
83
99
|
export {};
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { ChartHostRenderMode,
|
|
1
|
+
import type { IChartHostRect, IChartHostStyle, IDomChartHost } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { ChartHostRenderMode, DataUrlImageChartHost } from '@univerjs-pro/engine-chart';
|
|
3
3
|
import { Disposable } from '@univerjs/core';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
private _dataUrl;
|
|
7
|
-
constructor(chartId: string, _rect: IChartHostRect);
|
|
8
|
-
getRect(): IChartHostRect;
|
|
9
|
-
setStyle(_style: IChartHostStyle): void;
|
|
10
|
-
nextVersion(): number;
|
|
11
|
-
commitSnapshot(image: ChartImageSource, _version: number): boolean;
|
|
12
|
-
requestPaint(): void;
|
|
13
|
-
invalidateSnapshot(): void;
|
|
14
|
-
getDataUrl(): string | undefined;
|
|
4
|
+
/** @deprecated Use `DataUrlImageChartHost`. Retained for deep-import compatibility. */
|
|
5
|
+
export declare class SlideImageChartHost extends DataUrlImageChartHost {
|
|
15
6
|
}
|
|
16
7
|
export declare class SlideDomChartHost extends Disposable implements IDomChartHost {
|
|
17
8
|
readonly chartId: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
1
|
+
import type { ChartStyle, ChartTypeBits, InlineChartCellValue } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { ISlideDrawing } from '@univerjs-pro/slides';
|
|
3
|
-
import type { SlideChartCellValue } from '@univerjs-pro/slides-chart';
|
|
4
3
|
import { ISlideDrawingStateService } from '@univerjs-pro/slides-ui';
|
|
5
4
|
import { ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
6
5
|
export interface ISlideChartInsertOptions {
|
|
7
6
|
placeholderDrawing?: ISlideDrawing;
|
|
7
|
+
style?: ChartStyle;
|
|
8
8
|
}
|
|
9
9
|
export declare class SlideChartInsertService {
|
|
10
10
|
private readonly _instanceService;
|
|
@@ -12,6 +12,6 @@ export declare class SlideChartInsertService {
|
|
|
12
12
|
private readonly _drawingStateService;
|
|
13
13
|
constructor(_instanceService: IUniverInstanceService, _commandService: ICommandService, _drawingStateService: ISlideDrawingStateService);
|
|
14
14
|
insertChartFromText(text: string, chartType: ChartTypeBits, options?: ISlideChartInsertOptions): boolean;
|
|
15
|
-
insertChart(values:
|
|
15
|
+
insertChart(values: InlineChartCellValue[][], chartType: ChartTypeBits, options?: ISlideChartInsertOptions): boolean;
|
|
16
16
|
private _insertChartIntoPlaceholder;
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartElementEventHandler, ChartElementEventType, ChartStyle, IChartConfig, IChartHost, IChartHostRect, IChartInstance, IChartRenderInstance
|
|
1
|
+
import type { ChartElementEventHandler, ChartElementEventType, ChartRuntimeStyle, ChartStyle, IChartConfig, IChartHost, IChartHostRect, IChartInstance, IChartRenderInstance } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { ISlideChartRuntimeModel } from '@univerjs-pro/slides-chart';
|
|
3
3
|
import type { IDisposable } from '@univerjs/core';
|
|
4
4
|
import { ChartHostRenderMode, ChartThemeService, IChartRenderModelManagerService } from '@univerjs-pro/engine-chart';
|
|
@@ -6,7 +6,7 @@ import { Disposable, LocaleService } from '@univerjs/core';
|
|
|
6
6
|
export interface ISlideChartRenderSpecResult {
|
|
7
7
|
spec: Record<string, unknown>;
|
|
8
8
|
chartConfig: IChartConfig;
|
|
9
|
-
chartStyle:
|
|
9
|
+
chartStyle: ChartRuntimeStyle;
|
|
10
10
|
hostStyle: {
|
|
11
11
|
fill?: string;
|
|
12
12
|
stroke?: string;
|
|
@@ -19,9 +19,8 @@ export interface ISlideChartRenderSpecResult {
|
|
|
19
19
|
}
|
|
20
20
|
export interface ISlideChartRenderInput {
|
|
21
21
|
chartConfig: IChartConfig;
|
|
22
|
-
chartStyle:
|
|
22
|
+
chartStyle: ChartRuntimeStyle;
|
|
23
23
|
}
|
|
24
|
-
export declare const ISlideChartRenderModelService: import("@wendellhu/redi").IdentifierDecorator<IChartRenderModel<Record<string, any>>>;
|
|
25
24
|
export declare class SlideChartRenderService extends Disposable {
|
|
26
25
|
private readonly _localeService;
|
|
27
26
|
private readonly _chartThemeService;
|
|
@@ -31,10 +30,7 @@ export declare class SlideChartRenderService extends Disposable {
|
|
|
31
30
|
private readonly _chartEventSubscriptions;
|
|
32
31
|
private readonly _chartElementEditMode;
|
|
33
32
|
private readonly _lastImageDataUrlMap;
|
|
34
|
-
constructor(_localeService: LocaleService, _chartThemeService: ChartThemeService,
|
|
35
|
-
registerRenderModel(name: string, renderModel: IChartRenderModel): void;
|
|
36
|
-
setRenderModel(name: string): void;
|
|
37
|
-
getRenderModel(name?: string): IChartRenderModel | undefined;
|
|
33
|
+
constructor(_localeService: LocaleService, _chartThemeService: ChartThemeService, _renderModelManager: IChartRenderModelManagerService);
|
|
38
34
|
createChartInstance(): IChartInstance;
|
|
39
35
|
createChartInstance(mode: ChartHostRenderMode): IChartRenderInstance;
|
|
40
36
|
render(runtime: ISlideChartRuntimeModel, host: IChartHost): Promise<void>;
|