刘光辉
11 小时以前 0dfe84494048ce27ba8449831782128412d3eb13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
59
60
61
62
63
64
65
66
import type { IAccessor, ICommand } from '@univerjs/core';
 
import { CommandType } from '@univerjs/core';
 
import { JnpfSheetsFloatEchartService } from '../../services/sheet-float-echart.service';
import { JnpfCommandIds } from '../../utils/define';
 
export const JnpfSheetsInsertedFloatEchartOperation: ICommand = {
  handler: async (_: IAccessor) => {
    return true;
  },
  id: JnpfCommandIds.insertedFloatEchart,
  type: CommandType.OPERATION,
};
 
export const JnpfSheetsInsertFloatBarEchartOperation: ICommand = {
  handler: async (accessor: IAccessor) => {
    const jnpfSheetsFloatEchartService = accessor.get(JnpfSheetsFloatEchartService);
    jnpfSheetsFloatEchartService.insertFloatEchart('JnpfUniverFloatBarEchart');
 
    return true;
  },
  id: JnpfCommandIds.insertFloatBarEchart,
  type: CommandType.OPERATION,
};
 
export const JnpfSheetsInsertFloatLineEchartOperation: ICommand = {
  handler: async (accessor: IAccessor) => {
    const jnpfSheetsFloatEchartService = accessor.get(JnpfSheetsFloatEchartService);
    jnpfSheetsFloatEchartService.insertFloatEchart('JnpfUniverFloatLineEchart');
 
    return true;
  },
  id: JnpfCommandIds.insertFloatLineEchart,
  type: CommandType.OPERATION,
};
 
export const JnpfSheetsInsertFloatPieEchartOperation: ICommand = {
  handler: async (accessor: IAccessor) => {
    const jnpfSheetsFloatEchartService = accessor.get(JnpfSheetsFloatEchartService);
    jnpfSheetsFloatEchartService.insertFloatEchart('JnpfUniverFloatPieEchart');
 
    return true;
  },
  id: JnpfCommandIds.insertFloatPieEchart,
  type: CommandType.OPERATION,
};
 
export const JnpfSheetsInsertFloatRadarEchartOperation: ICommand = {
  handler: async (accessor: IAccessor) => {
    const jnpfSheetsFloatEchartService = accessor.get(JnpfSheetsFloatEchartService);
    jnpfSheetsFloatEchartService.insertFloatEchart('JnpfUniverFloatRadarEchart');
 
    return true;
  },
  id: JnpfCommandIds.insertFloatRadarEchart,
  type: CommandType.OPERATION,
};
 
export const JnpfSheetsFocusEchartOperation: ICommand = {
  handler: async (_: IAccessor) => {
    return true;
  },
  id: JnpfCommandIds.focusFloatEchart,
  type: CommandType.OPERATION,
};