data-region.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import { IGroup } from '@antv/g-base';
  2. import GroupComponent from '../abstract/group-component';
  3. import { ILocation } from '../interfaces';
  4. import { DataRegionAnnotationCfg, PointsLocationCfg } from '../types';
  5. declare class DataRegionAnnotation extends GroupComponent<DataRegionAnnotationCfg> implements ILocation<PointsLocationCfg> {
  6. /**
  7. * 默认的配置项
  8. * @returns {object} 默认的配置项
  9. */
  10. getDefaultCfg(): {
  11. name: string;
  12. type: string;
  13. locationType: string;
  14. points: any[];
  15. lineLength: number;
  16. region: {};
  17. text: {};
  18. defaultCfg: {
  19. region: {
  20. style: {
  21. lineWidth: number;
  22. fill: string;
  23. opacity: number;
  24. };
  25. };
  26. text: {
  27. content: string;
  28. style: {
  29. textAlign: string;
  30. textBaseline: string;
  31. fontSize: number;
  32. fill: string;
  33. fontFamily: string;
  34. };
  35. };
  36. };
  37. container: any;
  38. shapesMap: {};
  39. group: any;
  40. capture: boolean;
  41. isRegister: boolean;
  42. isUpdating: boolean;
  43. isInit: boolean;
  44. id: string;
  45. offsetX: number;
  46. offsetY: number;
  47. animate: boolean;
  48. updateAutoRender: boolean;
  49. animateOption: {
  50. appear: any;
  51. update: {
  52. duration: number;
  53. easing: string;
  54. };
  55. enter: {
  56. duration: number;
  57. easing: string;
  58. };
  59. leave: {
  60. duration: number;
  61. easing: string;
  62. };
  63. };
  64. events: any;
  65. visible: boolean;
  66. };
  67. protected renderInner(group: IGroup): void;
  68. }
  69. export default DataRegionAnnotation;