UNPKG

@antv/g2plot

Version:

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

45 lines (44 loc) 1.15 kB
import BaseInteraction from '../../../interaction/base'; import { BBox } from '@antv/g'; interface IStartNode { name?: string; } interface IDrillDownInteractionConfig { x?: number; y?: number; startNode?: IStartNode; itemWidth?: number; itemHeight?: number; padding?: number[]; [key: string]: any; } export default class DrillDownInteraction extends BaseInteraction { static getInteractionRange(layerRange: BBox, interaction: IDrillDownInteractionConfig): BBox; private container; private breadcrumb; private plot; private startNode; private parentNode; private currentNode; private currentDepth; private startNodeName; private cache; private mapping; private originMapping; private y; private geometry; start(ev: any): void; protected update(data: any): void; protected render(): void; protected clear(): void; private layout; private getItems; private findParent; private onInteraction; private getRootItem; private saveOriginMapping; private adjustScale; private initGeometry; private updateRoot; } export {};