UNPKG

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