UNPKG

@pansy/react-mapbox-gl

Version:

🌍 基于 Mapbox GL ε°θ£…ηš„ React η»„δ»ΆεΊ“

29 lines (23 loc) β€’ 576 B
import type { PropKey } from './types'; import { toLngLat } from '../../utils/toLngLat'; /** ι™ζ€ε±žζ€§ */ export const StaticProps: PropKey[] = [ 'closeButton', 'closeOnClick', 'closeOnMove', 'focusAfterOpen', 'anchor', 'className', ]; /** εŠ¨ζ€ε±žζ€§ */ export const NativeDynamicProps: PropKey[] = [ 'offset', 'maxWidth', 'altitude', 'lngLat', ]; export const allProps = NativeDynamicProps.concat(StaticProps); export const setterMap = {}; export const converterMap: Partial<Record<PropKey, (...value: any[]) => any>> = { lngLat: toLngLat, };