Skip to content

Commit

Permalink
fix: opts 参数为可选
Browse files Browse the repository at this point in the history
  • Loading branch information
xhwgood committed Feb 13, 2023
1 parent 0cf0ec8 commit f83b2d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tmap/map.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ declare namespace TMap {
*/
latLng: LatLng;
/**
* 事件发生时的屏幕位置,返回{x:number, y:number}格式
* 事件发生时的屏幕位置,返回 `{x: number, y: number}` 格式
*/
point: Offset;
/**
Expand Down Expand Up @@ -200,18 +200,18 @@ declare namespace TMap {
setViewMode(viewMode: ViewMode): this;
setBaseMap(baseMap: BaseMap | BaseMap[]): this;
setMapStyleId(mapStyleId: string): this;
panTo(latLng: LatLng, opts: EaseOptions): this;
zoomTo(zoom: number, opts: EaseOptions): this;
rotateTo(rotation: number, opts: EaseOptions): this;
pitchTo(pitch: number, opts: EaseOptions): this;
panTo(latLng: LatLng, opts?: EaseOptions): this;
zoomTo(zoom: number, opts?: EaseOptions): this;
rotateTo(rotation: number, opts?: EaseOptions): this;
pitchTo(pitch: number, opts?: EaseOptions): this;
easeTo(
mapStatus: {
center: LatLng;
zoom: number;
rotation: number;
pitch: number;
},
opts: EaseOptions
opts?: EaseOptions
): this;
fitBounds(bounds: LatLngBounds, options: FitBoundsOptions): this;
getCenter(): LatLng;
Expand Down

0 comments on commit f83b2d4

Please sign in to comment.