Skip to content

Commit

Permalink
Merge branch 'main' into fix/dir-service-route
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulthink authored Oct 16, 2023
2 parents c52fb74 + 0e5e341 commit ff83461
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 35 deletions.
210 changes: 177 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@googlemaps/jest-mocks",
"version": "2.20.0",
"version": "2.20.1",
"keywords": [
"google",
"maps",
Expand Down
7 changes: 6 additions & 1 deletion src/drawing/advanced-marker-element/pin-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
import { MapsEventListener } from "../../maps/event/event";
import { __registerMockInstance } from "../../registry";

export class PinElement implements google.maps.marker.PinElement {
export class PinElement
extends HTMLElement
implements google.maps.marker.PinElement
{
public background?: string;
public borderColor?: string;
public element: HTMLElement;
Expand All @@ -37,6 +40,8 @@ export class PinElement implements google.maps.marker.PinElement {
);

constructor(options?: google.maps.marker.PinElementOptions) {
super();
__registerMockInstance(this.constructor, this);
}
}
customElements.define("gmp-pin", PinElement);

0 comments on commit ff83461

Please sign in to comment.