Skip to content

Commit

Permalink
fix: bullet types
Browse files Browse the repository at this point in the history
  • Loading branch information
paleface001 committed Mar 27, 2020
1 parent 0cb8f7b commit ded949f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/plots/bullet/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { LayerConfig } from '../../base/layer';
import { registerPlotType } from '../../base/global';
import BulletRect from './component/bulletRect';
import BulletTarget from './component/bulletTarget';
import { TextStyle, LineStyle } from '../../interface/config';
import './theme';

const G2_GEOM_MAP = {
Expand All @@ -22,19 +23,16 @@ export const STACK_FIELD = '$$stackField$$';
export const X_FIELD = '$$xField$$';
export const Y_FIELD = '$$yField$$';

interface BulletAxisTickLine extends LineStyle {
visible?: boolean;
}

export interface BulletAxis {
visible: boolean;
position?: 'before' | 'after';
style?: {
fontSize?: number;
lineHeight?: number;
};
style?: TextStyle;
tickCount?: number;
tickLine?: {
visible: boolean;
lineWidth?: number;
lineDash?: number[];
};
tickLine?: BulletAxisTickLine;
formatter?: (text: string, idx: number) => string;
}

Expand Down

0 comments on commit ded949f

Please sign in to comment.