marker.d.ts 565 B

12345678910
  1. import { Path } from '@antv/g';
  2. import type { PathArray } from '@antv/util';
  3. export interface SymbolFactor {
  4. (x: number, y: number, r: number): PathArray;
  5. style?: string[];
  6. }
  7. export declare const Symbols: Map<string, SymbolFactor>;
  8. export declare function useMarker(type: string, { d, fill, strokeWidth, path, stroke, lineWidth, color, ...style }: Record<string, any>): (x: number, y: number, r: number) => Path;
  9. export declare function registerSymbol(type: string, marker: SymbolFactor): void;
  10. export declare function unregisterSymbol(type: string): void;