UNPKG

@visactor/vgrammar-core

Version:

VGrammar is a visual grammar library

9 lines (8 loc) 601 B
import { debounce, throttle } from '@visactor/vutils'; import type { EventSourceType, ParsedViewEventSpec, ParsedWindowEventSpec, EventCallback, IElement } from '../types'; export declare const generateFilterByMark: (evtSpec: Partial<ParsedViewEventSpec | ParsedWindowEventSpec>) => (el: IElement) => boolean; export declare const parseHandler: (callback: EventCallback, config: { debounce?: number; throttle?: number; }) => (...args: any[]) => any; export declare const parseEventSelector: (selector: string, source?: EventSourceType) => Partial<ParsedViewEventSpec | ParsedWindowEventSpec>;