diff options
Diffstat (limited to 'node_modules/pigeon-maps/lib/map/Map.d.ts')
-rw-r--r-- | node_modules/pigeon-maps/lib/map/Map.d.ts | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/node_modules/pigeon-maps/lib/map/Map.d.ts b/node_modules/pigeon-maps/lib/map/Map.d.ts new file mode 100644 index 0000000..b0588aa --- /dev/null +++ b/node_modules/pigeon-maps/lib/map/Map.d.ts @@ -0,0 +1,119 @@ +import { Component } from 'react';
+import { Bounds, MapProps, MapReactState, MinMaxBounds, MoveEvent, Point, TileComponent, TileValues, WAdd, WarningType, WRem } from '../types';
+export declare class Map extends Component<MapProps, MapReactState> {
+ static defaultProps: {
+ animate: boolean;
+ metaWheelZoom: boolean;
+ metaWheelZoomWarning: string;
+ twoFingerDrag: boolean;
+ twoFingerDragWarning: string;
+ zoomSnap: boolean;
+ mouseEvents: boolean;
+ touchEvents: boolean;
+ warningZIndex: number;
+ animateMaxScreens: number;
+ minZoom: number;
+ maxZoom: number;
+ limitBounds: string;
+ dprs: any[];
+ tileComponent: TileComponent;
+ };
+ _containerRef?: HTMLDivElement;
+ _mousePosition?: Point;
+ _loadTracker?: {
+ [key: string]: boolean;
+ };
+ _dragStart: Point | null;
+ _mouseDown: boolean;
+ _moveEvents: MoveEvent[];
+ _lastClick: number | null;
+ _lastTap: number | null;
+ _lastWheel: number | null;
+ _touchStartPixel: Point[] | null;
+ _touchStartMidPoint: Point | null;
+ _touchStartDistance: number | null;
+ _secondTouchEnd: number | null;
+ _warningClearTimeout: number | null;
+ _isAnimating: boolean;
+ _animationStart: number | null;
+ _animationEnd: number | null;
+ _zoomStart: number | null;
+ _centerTarget: Point | null;
+ _zoomTarget: number | null;
+ _zoomAround: Point | null;
+ _animFrame: number | null;
+ _boundsSynced: boolean;
+ _minMaxCache: [number, number, number, MinMaxBounds] | null;
+ _lastZoom: number;
+ _lastCenter: Point;
+ _centerStart?: Point;
+ _resizeObserver: any;
+ constructor(props: MapProps);
+ componentDidMount(): void;
+ componentWillUnmount(): void;
+ updateWidthHeight: () => boolean;
+ wa: WAdd;
+ wr: WRem;
+ bindMouseEvents: () => void;
+ bindTouchEvents: () => void;
+ unbindMouseEvents: () => void;
+ unbindTouchEvents: () => void;
+ bindResizeEvent: () => void;
+ unbindResizeEvent: () => void;
+ bindWheelEvent: () => void;
+ unbindWheelEvent: () => void;
+ componentDidUpdate(prevProps: MapProps): void;
+ setCenterZoomTarget: (center: Point | null, zoom: number, fromProps?: boolean, zoomAround?: Point | null, animationDuration?: number) => void;
+ setCenterZoomForChildren: (center: Point | null, zoom: number) => void;
+ distanceInScreens: (centerTarget: Point, zoomTarget: number, center: Point, zoom: number) => number;
+ animationStep: (timestamp: number) => {
+ centerStep: Point;
+ zoomStep: number;
+ };
+ animate: (timestamp: number) => void;
+ stopAnimating: () => void;
+ limitCenterAtZoom: (center?: Point | null, zoom?: number | null) => Point;
+ onAnimationStart: () => void;
+ onAnimationStop: () => void;
+ setCenterZoom: (center?: Point | null, zoom?: number | null, animationEnded?: boolean) => void;
+ getBoundsMinMax: (zoom: number) => MinMaxBounds;
+ tileLoaded: (key: string) => void;
+ coordsInside(pixel: Point): boolean;
+ handleTouchStart: (event: TouchEvent) => void;
+ handleTouchMove: (event: TouchEvent) => void;
+ handleTouchEnd: (event: TouchEvent) => void;
+ handleMouseDown: (event: MouseEvent) => void;
+ handleMouseMove: (event: MouseEvent) => void;
+ handleMouseUp: (event: MouseEvent) => void;
+ stopTrackingMoveEvents: () => void;
+ trackMoveEvents: (coords: Point) => void;
+ throwAfterMoving: (coords: Point, center: Point, zoom: number) => void;
+ sendDeltaChange: () => {
+ center: Point;
+ zoom: number;
+ };
+ getBounds: (center?: Point, zoom?: number) => Bounds;
+ syncToProps: (center?: Point, zoom?: number) => void;
+ handleWheel: (event: WheelEvent) => void;
+ showWarning: (warningType: WarningType) => void;
+ clearWarning: () => void;
+ zoomAroundMouse: (zoomDiff: number, event: MouseEvent) => void;
+ zoomPlusDelta: () => number;
+ pixelToLatLng: (pixel: Point, center?: Point, zoom?: number) => Point;
+ latLngToPixel: (latLng: Point, center?: Point, zoom?: number) => Point;
+ calculateZoomCenter: (center: Point, coords: Point, oldZoom: number, newZoom: number) => Point;
+ setRef: (dom: HTMLDivElement) => void;
+ tileValues({ center, zoom, pixelDelta, zoomDelta, width, height, }: {
+ center: Point;
+ zoom: number;
+ pixelDelta?: Point;
+ zoomDelta?: number;
+ width: number;
+ height: number;
+ }): TileValues;
+ renderTiles(): JSX.Element;
+ renderOverlays(): JSX.Element;
+ renderAttribution(): JSX.Element | null;
+ renderWarning(): JSX.Element | null;
+ render(): JSX.Element;
+}
|