Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.2.0 to 2.2.1

2

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

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

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

*/
class PolygonEditor {
class PolygonEditor extends MapEventListener<'end' | 'move' | 'addnode' | 'adjust' | 'add'> {
constructor(map: AMap.Map, polygon: Polygon);

@@ -856,6 +856,11 @@ editable: boolean;

interface PolygonEditorEvents {
/** 调用 close 之后触发该事件,target即为编辑后的覆盖物对象 */
onEnd(data: { target: Polygon}): void;
/** 增加一个节点时触发此事件 */
onAddnode(data: { target: Polygon, lnglat: Lnglat, pixel: Pixel }): void;
onAdjust(data: {target: Polygon, lnglat: Lnglat, pixel: Pixel}): void;
onMove(data: {target: Polygon, lnglat: Lnglat, pixel: Pixel}): void;
/** 调整折线上某个点时触发此事件 */
onAdjust(data: { target: Polygon, lnglat: Lnglat, pixel: Pixel}): void;
/** 移动覆盖物时触发此事件 */
onMove(data: { target: Polygon, lnglat: Lnglat, pixel: Pixel}): void;
/** 创建一个覆盖物之后触发该事件,target即为创建对象。当editor编辑对象为空时,调用open接口,再点击一次屏幕就会创建新的覆盖物对象 */
onAdd(data: { target: Polygon}): void;

@@ -862,0 +867,0 @@ }

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