japan-map-selector
Version:
Interactive Japan map component for selecting prefectures and municipalities
8 lines (7 loc) • 640 B
TypeScript
import { ColorTheme } from '../types';
export declare const themes: Record<string, ColorTheme>;
export declare function getTheme(themeNameOrObject: ColorTheme | string | undefined): ColorTheme;
export declare function applyColorOverrides(theme: ColorTheme, props: any): ColorTheme;
export declare function getPrefectureFillColor(prefectureCode: string, themeName: string): string;
export declare function getMunicipalityFillColor(municipalityCode: string, prefectureCode: string, themeName: string): string;
export declare function getMunicipalityHoverFillColor(municipalityCode: string, prefectureCode: string, themeName: string): string;