facetRect.d.ts 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. import { CompositionComponent as CC, G2ViewTree } from '../runtime';
  2. import { FacetRectComposition } from '../spec';
  3. export type SubLayout = (data?: any) => number[];
  4. /**
  5. * BFS view tree and using the last discovered color encode
  6. * as the top-level encode for this plot. This is useful when
  7. * color encode and color scale is specified in mark node.
  8. * It makes sense because the whole facet should shared the same
  9. * color encoding, but it also can be override with explicity
  10. * encode and scale specification.
  11. */
  12. export declare const inferColor: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
  13. export declare const setAnimation: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
  14. export declare const setStyle: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
  15. export declare const toCell: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
  16. /**
  17. * Do not set cell data directly, the children will get wrong do if do
  18. * so. Use transform to set new data.
  19. **/
  20. export declare const setData: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
  21. /**
  22. * @todo Move some options assignment to runtime.
  23. */
  24. export declare const setChildren: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
  25. /**
  26. * Inner guide not show title, tickLine, label and subTickLine,
  27. * if data is empty, do not show guide.
  28. */
  29. export declare function createInnerGuide(guide: any, data: any): any;
  30. export type FacetRectOptions = Omit<FacetRectComposition, 'type'>;
  31. export declare const FacetRect: CC<FacetRectOptions>;