Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1x 1x 1x | /// <reference types="@uiw/react-baidu-map-types" /> import React, { useImperativeHandle } from 'react'; import { OverlayProps } from '@uiw/react-baidu-map-map'; import { usePanoramaControl } from './usePanoramaControl'; export * from './usePanoramaControl'; export interface PanoramaControlProps extends OverlayProps {} export default React.forwardRef<PanoramaControlProps, PanoramaControlProps>((props, ref) => { const { panoramaControl } = usePanoramaControl(props); // eslint-disable-next-line react-hooks/exhaustive-deps useImperativeHandle(ref, () => ({ ...props, panoramaControl }), [panoramaControl]); return null; }); |