Skip to content

Commit

Permalink
Geometry edit fire handledremove event when control vertext remove (#…
Browse files Browse the repository at this point in the history
…2382)

* Geometry edit fire handledremove event when control vertext remove

* fix typo

* fix typo
  • Loading branch information
deyihu authored Jul 24, 2024
1 parent d037ea0 commit f55b0f4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/geometry/editor/GeometryEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,16 @@ class GeometryEditor extends Eventable(Class) {
}
onVertexAddOrRemove();
me._updating = false;

/**
* changed geometry shape event, fired when edit control vertex remove
*
* @event Geometry#handleremove
* @type {Object}
* @property {String} type - handleremove
* @property {Geometry} target - the geometry fires the event
*/
me._geometry.fire('handleremove', Object.assign({}, param, { coordinate: map.containerPointToCoordinate(param.containerPoint), vertex: param.target }));
}

function moveVertexHandle(handleConatainerPoint: any, index: number, ringIndex: number = 0): void {
Expand Down

0 comments on commit f55b0f4

Please sign in to comment.