Skip to content

Commit 438f7e4

Browse files
crisbetojelbourn
authored andcommitted
build: set up API golden for google-maps package (#17565)
Now that the `google-maps` package is released, we should have an API golden for it.
1 parent 09fe82f commit 438f7e4

File tree

2 files changed

+115
-2
lines changed

2 files changed

+115
-2
lines changed

tools/public_api_guard/generate-guard-tests.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ def generate_test_targets(golden_files):
3131
],
3232
golden = "angular_material/tools/public_api_guard/%s" % golden_file,
3333
use_angular_tag_rules = False,
34-
# Required for the `youtube-player` package.
35-
allow_module_identifiers = ["YT"],
34+
# Required for the `youtube-player` and `google-maps` packages.
35+
allow_module_identifiers = ["YT", "google"],
3636
)
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
export declare class GoogleMap implements OnChanges, OnInit, OnDestroy {
2+
_googleMap: UpdatedGoogleMap;
3+
boundsChanged: EventEmitter<void>;
4+
center: google.maps.LatLngLiteral | google.maps.LatLng;
5+
centerChanged: EventEmitter<void>;
6+
readonly controls: Array<google.maps.MVCArray<Node>>;
7+
readonly data: google.maps.Data;
8+
headingChanged: EventEmitter<void>;
9+
height: string;
10+
idle: EventEmitter<void>;
11+
mapClick: EventEmitter<google.maps.MouseEvent | google.maps.IconMouseEvent>;
12+
mapDblclick: EventEmitter<google.maps.MouseEvent>;
13+
mapDrag: EventEmitter<void>;
14+
mapDragend: EventEmitter<void>;
15+
mapDragstart: EventEmitter<void>;
16+
mapMousemove: EventEmitter<google.maps.MouseEvent>;
17+
mapMouseout: EventEmitter<google.maps.MouseEvent>;
18+
mapMouseover: EventEmitter<google.maps.MouseEvent>;
19+
mapRightclick: EventEmitter<google.maps.MouseEvent>;
20+
readonly mapTypes: google.maps.MapTypeRegistry;
21+
maptypeidChanged: EventEmitter<void>;
22+
options: google.maps.MapOptions;
23+
readonly overlayMapTypes: google.maps.MVCArray<google.maps.MapType>;
24+
projectionChanged: EventEmitter<void>;
25+
tilesloaded: EventEmitter<void>;
26+
tiltChanged: EventEmitter<void>;
27+
width: string;
28+
zoom: number;
29+
zoomChanged: EventEmitter<void>;
30+
constructor(_elementRef: ElementRef);
31+
fitBounds(bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding): void;
32+
getBounds(): google.maps.LatLngBounds | null;
33+
getCenter(): google.maps.LatLng;
34+
getClickableIcons(): boolean;
35+
getHeading(): number;
36+
getMapTypeId(): google.maps.MapTypeId | string;
37+
getProjection(): google.maps.Projection | null;
38+
getStreetView(): google.maps.StreetViewPanorama;
39+
getTilt(): number;
40+
getZoom(): number;
41+
ngOnChanges(): void;
42+
ngOnDestroy(): void;
43+
ngOnInit(): void;
44+
panBy(x: number, y: number): void;
45+
panTo(latLng: google.maps.LatLng | google.maps.LatLngLiteral): void;
46+
panToBounds(latLngBounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding): void;
47+
}
48+
49+
export declare class GoogleMapsModule {
50+
}
51+
52+
export declare class MapInfoWindow implements OnInit, OnDestroy {
53+
closeclick: EventEmitter<void>;
54+
contentChanged: EventEmitter<void>;
55+
domready: EventEmitter<void>;
56+
options: google.maps.InfoWindowOptions;
57+
position: google.maps.LatLngLiteral | google.maps.LatLng;
58+
positionChanged: EventEmitter<void>;
59+
zindexChanged: EventEmitter<void>;
60+
constructor(googleMap: GoogleMap, _elementRef: ElementRef<HTMLElement>);
61+
close(): void;
62+
getContent(): string | Node;
63+
getPosition(): google.maps.LatLng | null;
64+
getZIndex(): number;
65+
ngOnDestroy(): void;
66+
ngOnInit(): void;
67+
open(anchor?: MapMarker): void;
68+
}
69+
70+
export declare class MapMarker implements OnInit, OnDestroy {
71+
_marker?: google.maps.Marker;
72+
animationChanged: EventEmitter<void>;
73+
clickable: boolean;
74+
clickableChanged: EventEmitter<void>;
75+
cursorChanged: EventEmitter<void>;
76+
draggableChanged: EventEmitter<void>;
77+
flatChanged: EventEmitter<void>;
78+
iconChanged: EventEmitter<void>;
79+
label: string | google.maps.MarkerLabel;
80+
mapClick: EventEmitter<google.maps.MouseEvent>;
81+
mapDblclick: EventEmitter<google.maps.MouseEvent>;
82+
mapDrag: EventEmitter<google.maps.MouseEvent>;
83+
mapDragend: EventEmitter<google.maps.MouseEvent>;
84+
mapDragstart: EventEmitter<google.maps.MouseEvent>;
85+
mapMousedown: EventEmitter<google.maps.MouseEvent>;
86+
mapMouseout: EventEmitter<google.maps.MouseEvent>;
87+
mapMouseover: EventEmitter<google.maps.MouseEvent>;
88+
mapMouseup: EventEmitter<google.maps.MouseEvent>;
89+
mapRightclick: EventEmitter<google.maps.MouseEvent>;
90+
options: google.maps.MarkerOptions;
91+
position: google.maps.LatLngLiteral | google.maps.LatLng;
92+
positionChanged: EventEmitter<void>;
93+
shapeChanged: EventEmitter<void>;
94+
title: string;
95+
titleChanged: EventEmitter<void>;
96+
visibleChanged: EventEmitter<void>;
97+
zindexChanged: EventEmitter<void>;
98+
constructor(googleMap: GoogleMap);
99+
getAnimation(): google.maps.Animation | null;
100+
getClickable(): boolean;
101+
getCursor(): string | null;
102+
getDraggable(): boolean;
103+
getIcon(): string | google.maps.Icon | google.maps.Symbol | null;
104+
getLabel(): google.maps.MarkerLabel | null;
105+
getOpacity(): number | null;
106+
getPosition(): google.maps.LatLng | null;
107+
getShape(): google.maps.MarkerShape | null;
108+
getTitle(): string | null;
109+
getVisible(): boolean;
110+
getZIndex(): number | null;
111+
ngOnDestroy(): void;
112+
ngOnInit(): void;
113+
}

0 commit comments

Comments
 (0)