@uiw/react-amap-types
Advanced tools
Comparing version 2.2.0 to 2.2.1
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132111
3374