Skip to content

Commit d51ffc1

Browse files
author
xueren.dt
committed
fix(ava): fix cr problem
1 parent 966cb75 commit d51ffc1

3 files changed

Lines changed: 30 additions & 30 deletions

File tree

__tests__/mocks/gpt-vis.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ module.exports = {
1818
moduleNameMapper: {
1919
'^@antv/ava': ['<rootDir>/src/index.ts'],
2020
'^@ava/(.*)$': '<rootDir>/src/$1',
21-
'^@antv/gpt-vis$': '<rootDir>/__tests__/mocks/gpt-vis.ts',
2221
},
2322
};

src/ckb/constants.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { ChartType } from '@antv/gpt-vis';
2-
31
/**
42
* Array of standard IDs for each chart type.
53
*
@@ -206,6 +204,36 @@ export const CHANNELS = [
206204
*/
207205
export const RECOMMEND_RATINGS = ['Recommended', 'Use with Caution', 'Not Recommended'] as const;
208206

207+
export enum ChartType {
208+
Pie = 'pie',
209+
Column = 'column',
210+
Line = 'line',
211+
Area = 'area',
212+
Scatter = 'scatter',
213+
Histogram = 'histogram',
214+
Treemap = 'treemap',
215+
Bar = 'bar',
216+
WordCloud = 'word-cloud',
217+
DualAxes = 'dual-axes',
218+
Radar = 'radar',
219+
Liquid = 'liquid',
220+
Boxplot = 'boxplot',
221+
Violin = 'violin',
222+
Venn = 'venn',
223+
Funnel = 'funnel',
224+
Sankey = 'sankey',
225+
PinMap = 'pin-map',
226+
PathMap = 'path-map',
227+
HeatMap = 'heat-map',
228+
MindMap = 'mind-map',
229+
FishboneDiagram = 'fishbone-diagram',
230+
FlowDiagram = 'flow-diagram',
231+
IndentedTree = 'indented-tree',
232+
NetworkGraph = 'network-graph',
233+
OrganizationChart = 'organization-chart',
234+
VisText = 'vis-text',
235+
}
236+
209237
export const CHART_ID_LIST = [
210238
{ chartId: ChartType.Area, code: 'a' },
211239
{ chartId: ChartType.Bar, code: 'b' },

0 commit comments

Comments
 (0)