UNPKG

uzb-d3-map

Version:

A flexible, customizable SVG map component for Uzbekistan built with D3 and React

16 lines 709 B
import React from "react"; import type { RegionDatum, LabelNode } from "../types"; import "../map.css"; export interface LabelRendererProps { regionData: RegionDatum; labelNode: LabelNode; customRender?: (regionData: RegionDatum, labelNode: LabelNode) => React.ReactNode; onDimensionsChange?: (width: number, height: number) => void; } /** * LabelRenderer component that handles React element rendering inside foreignObject * with dynamic dimension calculation. This component is rendered inside a foreignObject * that's already created by D3, so it just renders the content. */ export declare const LabelRenderer: React.FC<LabelRendererProps>; //# sourceMappingURL=label-renderer.d.ts.map