index.d.ts 659 B

123456789
  1. declare function parsePadding(padding: number | number[]): number[];
  2. type pxstr = `${number}px`;
  3. declare function batch2hd(px2hd: any): (value: pxstr | pxstr[] | number | number[] | string | string[] | any) => any;
  4. declare function extendMap(arr: any, fn: Function): any;
  5. declare function toTimeStamp(value: any): any;
  6. declare function isInBBox(bbox: any, point: any): boolean;
  7. declare function getElementsByClassName(className: string, element: any): any[];
  8. declare const px2hd: (value: pxstr | pxstr[] | number | number[] | string | string[] | any) => any;
  9. export { px2hd, batch2hd, extendMap, parsePadding, toTimeStamp, isInBBox, getElementsByClassName };