@antv/g2plot
Version:
G2 Plot, a market of plots built with the Grammar of Graphics'
24 lines (23 loc) • 614 B
TypeScript
import { View } from '@antv/g2';
import { Group, Shape, Canvas } from '@antv/g';
export interface MarkerConfig {
view: View;
canvas: Canvas;
progressSize: number;
value: number;
style?: any;
}
export default class Marker<T extends MarkerConfig = MarkerConfig> {
canvas: Canvas;
view: View;
progressSize: number;
value: number;
style: any;
protected coord: any;
protected container: Group;
protected shape: Shape;
constructor(cfg: any);
destroy(): void;
update(cfg: MarkerConfig, duration: number, easing: string): void;
protected init(): void;
}