svg2marker.d.ts 610 B

1234567891011121314
  1. /**
  2. * Return function to register a Marker Symbol for give SVG Path
  3. *
  4. * @param svgPath SVG Path string
  5. * @param viewBoxWidth SVG view box width, default to 1024
  6. * @param viewBoxHeight SVG view box height, default to 1024
  7. */
  8. export declare function path2marker(svgPath: string, viewBoxWidth?: number, viewBoxHeight?: number): (x: number, y: number, r: number) => (string | number)[][];
  9. /**
  10. * Return function to register a Marker symbol for give svg file
  11. *
  12. * @param icon SVG file content
  13. */
  14. export declare function svg2marker(icon: string): (x: number, y: number, r: number) => (string | number)[][];