Socket
Socket
Sign inDemoInstall

@uiw/react-amap-types

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-amap-types - npm Package Compare versions

Comparing version 2.7.5 to 2.7.6

2

package.json
{
"name": "@uiw/react-amap-types",
"version": "2.7.5",
"version": "2.7.6",
"description": "基于 React 封装的高德地图组件。AMap Component Based On React.",

@@ -5,0 +5,0 @@ "homepage": "https://uiwjs.github.io/react-amap/#/types",

@@ -5,2 +5,75 @@ /// <reference path="./base.d.ts" />

declare namespace AMap {
namespace Overlay {
interface EventMap<I> {
touchstart: MapsEvent<'touchstart', I>;
touchmove: MapsEvent<'touchmove', I>;
touchend: MapsEvent<'touchend', I>;
click: MapsEvent<'click', I>;
rightclick: MapsEvent<'rightclick', I>;
dblclick: MapsEvent<'dblclick', I>;
mousemove: MapsEvent<'mousemove', I>;
mouseover: MapsEvent<'mouseover', I>;
mousedown: MapsEvent<'mousedown', I>;
mouseup: MapsEvent<'mouseup', I>;
}
interface Options<ExtraData = any> {
/**
* 所属地图
*/
map?: Map | undefined;
/**
* 鼠标悬停时的鼠标样式
*/
cursor?: string | undefined;
/**
* 自定义数据
*/
extData?: ExtraData | undefined;
/**
* 事件是否穿透到地图
*/
bubble?: boolean | undefined;
/**
* 是否支持点击
*/
clickable?: boolean | undefined;
/**
* 是否支持拖拽
*/
draggable?: boolean | undefined;
}
}
abstract class Overlay<ExtraData = any> extends EventEmitter {
constructor(options?: Overlay.Options);
/**
* 显示覆盖物
*/
show(): void;
/**
* 隐藏覆盖物
*/
hide(): void;
/**
* 获取所属地图
*/
getMap(): Map | null | undefined;
/**
* 设置所属地图
* @param map 地图
*/
setMap(map: Map | null): void;
/**
* 设置自定义数据
* @param extData 自定义数据
*/
setExtData(extData: ExtraData): void;
/**
* 获取自定义数据
*/
getExtData(): ExtraData | {};
// internal
setHeight(height?: number | string): void;
getHeight(): number | string;
}
/**

@@ -328,7 +401,2 @@ * [点标记](https://a.amap.com/jsapi/static/doc/index.html?v=2#marker)

/**
* 描边线宽度
* @default 2 默认值
*/
borderWeight?: number;
/**
* 是否显示描边,默认 `false`

@@ -749,4 +817,2 @@ * @default false 默认值

strokeWeight?: number;
/** (default 2) 描边线宽度 */
borderWeight?: number;
/** (default false) 是否显示描边,默认false */

@@ -1149,3 +1215,3 @@ isOutline?: boolean;

/** 以指定的时长,点标记沿指定的路径移动,加载 AMap.MoveAnimation 后可以使用 */
moveAlong(path: Array<LngLat> | Array<Vector> | Array<MoveAlongObj>, opts): void;
moveAlong(path: Array<LngLat> | Array<Vector> | Array<MoveAlongObj>, opts?: MoveAlongOptions): void;
/** 暂停点标记动画,加载 AMap.MoveAnimation 后创建的点标记可以使用 */

@@ -1160,3 +1226,3 @@ pauseMove(): void;

/** 以给定时间移动点标记到指定位置,加载 AMap.MoveAnimation 后可以使用 */
moveTo(targetPosition, opts): void;
moveTo(targetPosition: MoveToOptions, opts?: MoveAlongOptions): void;
}

@@ -1163,0 +1229,0 @@ interface MoveAlongObj {}

@@ -262,3 +262,3 @@ /// <reference path="./base.d.ts" />

/** 设置是否强制限制城市 */
search(keyword?: string, callback: (status: 'complete' | 'error' | 'no_data', result: AutoCompleteSearchCallback) => void): void;
search(keyword?: string, callback: (status: 'complete' | 'error' | 'no_data', result?: AutoCompleteSearchCallback) => void): void;
}

@@ -265,0 +265,0 @@ interface AutoCompleteSearchCallback {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc