component.d.ts 878 B

12345678910
  1. /**
  2. * @see https://github.com/antvis/G2/discussions/4557
  3. */
  4. import { Coordinate } from '@antv/coord';
  5. import { DisplayObject } from '@antv/g';
  6. import { G2MarkState, G2Theme, GuideComponentPosition as GCP } from './types/common';
  7. import { G2GuideComponentOptions, G2Library, G2Mark, G2ScaleOptions, G2View } from './types/options';
  8. export declare function inferComponent(scales: G2ScaleOptions[], partialOptions: G2View, library: G2Library): G2GuideComponentOptions[];
  9. export declare function renderComponent(component: G2GuideComponentOptions, coordinate: Coordinate, theme: G2Theme, library: G2Library, markState: Map<G2Mark, G2MarkState>): DisplayObject<any, any>;
  10. export declare function computeComponentSize(component: G2GuideComponentOptions, crossSize: number, crossPadding: [number, number], position: GCP, theme: G2Theme, library: G2Library): G2GuideComponentOptions;