Skip to content

Commit

Permalink
feat: remove ICartesianAxisSpec from @visactor/vchart
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Feb 2, 2024
1 parent fe2b3ad commit 4e9d4cb
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions packages/vtable/src/ts-types/component/axis.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import type { ICartesianAxisSpec } from '@visactor/vchart';
// import type { ICartesianAxisSpec } from '@visactor/vchart';

export type ICellAxisOption = Omit<ICartesianAxisSpec, 'type'> &
(
| {
type: 'band';
domain: (number | string)[];
__vtableChartTheme?: any;
}
| {
type: 'linear' | 'time';
range: {
min: number;
max: number;
};
__ticksForVTable?: number[];
__vtableChartTheme?: any;
}
);

export type ITableAxisOption = ICartesianAxisSpec;
// export type ICellAxisOption = Omit<ICartesianAxisSpec, 'type'> &
// (
// | {
// type: 'band';
// domain: (number | string)[];
// __vtableChartTheme?: any;
// }
// | {
// type: 'linear' | 'time';
// range: {
// min: number;
// max: number;
// };
// __ticksForVTable?: number[];
// __vtableChartTheme?: any;
// }
// );
export type ICellAxisOption = any;
export type ITableAxisOption = ICellAxisOption;

0 comments on commit 4e9d4cb

Please sign in to comment.