Skip to content

Commit

Permalink
Merge 6204b2a into 17aa199
Browse files Browse the repository at this point in the history
  • Loading branch information
KristerL committed May 4, 2021
2 parents 17aa199 + 6204b2a commit 5a7fe5f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/edit-modes/src/lib/resize-circle-mode.ts
Expand Up @@ -152,7 +152,7 @@ export class ResizeCircleMode extends GeoJsonEditMode {

props.onEdit({
updatedData,
editType: 'unionGeometry',
editType: 'circleResize',
editContext: {
featureIndexes: [editHandleProperties.featureIndex],
},
Expand Down Expand Up @@ -181,6 +181,14 @@ export class ResizeCircleMode extends GeoJsonEditMode {

handleStopDragging(event: StopDraggingEvent, props: ModeProps<FeatureCollection>) {
if (this._isResizing) {
props.onEdit({
updatedData: props.data,
editType: 'circleResizeEnd',
editContext: {
featureIndexes: props.selectedIndexes,
},
});

this._selectedEditHandle = null;
this._isResizing = false;
}
Expand Down
2 changes: 2 additions & 0 deletions package.json
@@ -1,4 +1,6 @@
{
"name": "nebula.gl",
"version": "0.22.3-dev",
"description": "A suite of 3D-enabled data editing layers for deck.gl",
"license": "MIT",
"private": true,
Expand Down

0 comments on commit 5a7fe5f

Please sign in to comment.