UNPKG

@antv/g2plot

Version:

G2 Plot, a market of plots built with the Grammar of Graphics'

30 lines (29 loc) 785 B
import { Group } from '@antv/g'; import { View } from '@antv/g2'; import EventEmitter from '@antv/event-emitter'; export interface HeatmapBackgroundConfig { type?: string; value?: any; src?: string; callback?: Function; } export interface IHeatmapBackground extends HeatmapBackgroundConfig { view: View; plot: any; } export default class HeatmapBackground extends EventEmitter { options: IHeatmapBackground; container: Group; protected view: View; protected x: number; protected y: number; protected width: number; protected height: number; constructor(cfg: IHeatmapBackground); init(): void; render(): void; renderColorBackground(): void; renderImageBackground(): void; clear(): void; destroy(): void; }