index.d.ts 683 B

123456789101112131415161718
  1. import { GUI } from '../../core';
  2. import { Group } from '../../shapes';
  3. import type { FunctionalSymbol, MarkerOptions, MarkerStyleProps } from './types';
  4. export type { MarkerStyleProps, MarkerOptions, FunctionalSymbol };
  5. export declare class Marker extends GUI<MarkerStyleProps> {
  6. render(attributes: Required<MarkerStyleProps>, container: Group): void;
  7. private static MARKER_SYMBOL_MAP;
  8. /**
  9. * 注册 icon 类型
  10. * @param type
  11. * @param path
  12. */
  13. static registerSymbol: (type: string, symbol: FunctionalSymbol) => void;
  14. /**
  15. * 获取已经注册的 icon 的 path
  16. */
  17. static getSymbol: (type: string) => FunctionalSymbol | undefined;
  18. }