UNPKG

google-maps-js-api-react

Version:

Fast, tree-shakable, and light-weight React components and hooks for integrating Google Maps API functionality

1 lines 1.4 kB
{"version":3,"sources":["../../src/Circle/index.ts"],"names":["handleComponent_default","MAPS"],"mappings":";;;;;;AAOA,IAAM,MAAA,GAASA,0CA4Bb,CAACC,sBAAA,EAAM,QAAQ,CAAG,EAAA,CAAC,QAAU,EAAA,QAAQ,CAAC,CAAA;AAExC,IAAO,cAAQ,GAAA","file":"chunk-DBHSIRES.cjs","sourcesContent":["import type { ComponentProps } from 'react';\nimport type { GetValue, MouseHandlers } from '../types';\nimport handleComponent from '../utils/handleComponent';\nimport { MAPS } from '../utils/constants';\n\nexport type CircleProps = ComponentProps<typeof Circle>;\n\nconst Circle = handleComponent<\n google.maps.Circle,\n {\n onCenterChanged: [center: GetValue<google.maps.Circle, 'center'>];\n onRadiusChanged: [radius: GetValue<google.maps.Circle, 'radius'>];\n } & MouseHandlers,\n {\n /**\n * The center of the Circle.\n */\n center: true;\n /**\n * If set to `true`, the user can drag this circle over the map.\n */\n draggable: true;\n /**\n * If set to `true`, the user can edit this circle by dragging the control points shown at the center and around the circumference of the circle.\n */\n editable: true;\n /**\n * The radius in meters on the Earth's surface.\n */\n radius: true;\n /**\n * Whether this circle is visible on the map.\n */\n visible: true;\n }\n>([MAPS, 'Circle'], ['center', 'radius']);\n\nexport default Circle;\n"]}