From f83b2d419ad6385b2b52c2d29e38b8263a53a353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=B9=E9=B8=BF=E4=BC=9F?= <734824565@qq.com> Date: Mon, 13 Feb 2023 16:51:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20opts=20=E5=8F=82=E6=95=B0=E4=B8=BA?= =?UTF-8?q?=E5=8F=AF=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmap/map.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tmap/map.d.ts b/tmap/map.d.ts index 9bfb715..8039e08 100644 --- a/tmap/map.d.ts +++ b/tmap/map.d.ts @@ -172,7 +172,7 @@ declare namespace TMap { */ latLng: LatLng; /** - * 事件发生时的屏幕位置,返回{x:number, y:number}格式 + * 事件发生时的屏幕位置,返回 `{x: number, y: number}` 格式 */ point: Offset; /** @@ -200,10 +200,10 @@ 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; @@ -211,7 +211,7 @@ declare namespace TMap { rotation: number; pitch: number; }, - opts: EaseOptions + opts?: EaseOptions ): this; fitBounds(bounds: LatLngBounds, options: FitBoundsOptions): this; getCenter(): LatLng;