Socket
Socket
Sign inDemoInstall

@react-google-maps/api

Package Overview
Dependencies
14
Maintainers
2
Versions
135
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.12.2 to 2.13.0

dist/components/dom/Overlay.d.ts

4

CHANGELOG.md
# Changelog
## 2.13.0 OverlayViewF component
## 2.12.2 Fix onCloseClick of InfoWindowF not triggering, update @googlemaps/markerclusterer@2.0.10

@@ -28,2 +30,3 @@

- CircleF
- OverlayViewF

@@ -42,3 +45,2 @@ This components currently for tests only - I've planned to replace PureComponent class based components in 3.0.0 version.

- DistanceMatrixServiceF
- OverlayViewF
- HeatmapLayerF

@@ -45,0 +47,0 @@ - KmlLayerF

@@ -9,3 +9,3 @@ /// <reference types="google.maps" />

y: number;
} | {};
};
export declare function getLayoutStyles(mapCanvasProjection: google.maps.MapCanvasProjection, offset: {

@@ -12,0 +12,0 @@ x: number;

/// <reference types="google.maps" />
import { ReactNode, CSSProperties, PureComponent, RefObject, ReactPortal } from 'react';
import { PureComponent, type ReactNode, type RefObject, type ReactPortal, type CSSProperties } from 'react';
interface OverlayViewState {

@@ -11,2 +11,3 @@ paneEl: Element | null;

mapPaneName: PaneNames;
position: google.maps.LatLng | google.maps.LatLngLiteral;
getPixelPositionOffset?: ((offsetWidth: number, offsetHeight: number) => {

@@ -17,6 +18,13 @@ x: number;

bounds?: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral | undefined;
position?: google.maps.LatLng | google.maps.LatLngLiteral | undefined;
zIndex?: number;
onLoad?: ((overlayView: google.maps.OverlayView) => void) | undefined;
onUnmount?: ((overlayView: google.maps.OverlayView) => void) | undefined;
}
export declare const FLOAT_PANE: PaneNames;
export declare const MAP_PANE: PaneNames;
export declare const MARKER_LAYER: PaneNames;
export declare const OVERLAY_LAYER: PaneNames;
export declare const OVERLAY_MOUSE_TARGET: PaneNames;
declare function OverlayViewFunctional({ position, mapPaneName, zIndex, onLoad, onUnmount, getPixelPositionOffset, children, }: OverlayViewProps): ReactPortal;
export declare const OverlayViewF: import("react").MemoExoticComponent<typeof OverlayViewFunctional>;
export declare class OverlayView extends PureComponent<OverlayViewProps, OverlayViewState> {

@@ -23,0 +31,0 @@ static FLOAT_PANE: PaneNames;

{
"name": "@react-google-maps/api",
"sideEffects": false,
"version": "2.12.2",
"version": "2.13.0",
"description": "React.js Google Maps API integration",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -6,6 +6,9 @@ import { PositionDrawProps } from "../../types"

getPixelPositionOffset?:( (offsetWidth: number, offsetHeight: number) => { x: number; y: number }) | undefined
): { x: number; y: number } | {} {
): { x: number; y: number } {
return typeof getPixelPositionOffset === 'function'
? getPixelPositionOffset(containerElement.offsetWidth, containerElement.offsetHeight)
: {}
: {
x: 0,
y: 0,
}
}

@@ -12,0 +15,0 @@

@@ -44,3 +44,3 @@ export { default as GoogleMap, type GoogleMapProps } from './GoogleMap'

export { default as OverlayView, type OverlayViewProps } from './components/dom/OverlayView'
export { default as OverlayView, OverlayViewF, type OverlayViewProps } from './components/dom/OverlayView'

@@ -47,0 +47,0 @@ export { default as GroundOverlay, type GroundOverlayProps } from './components/overlays/GroundOverlay'

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc