Skip to content

Commit

Permalink
Merge 3a46bd2 into 17aa199
Browse files Browse the repository at this point in the history
  • Loading branch information
KristerL committed May 4, 2021
2 parents 17aa199 + 3a46bd2 commit dcb0231
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/edit-modes/src/lib/resize-circle-mode.ts
Original file line number Diff line number Diff line change
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "nebula.gl",
"description": "A suite of 3D-enabled data editing layers for deck.gl",
"license": "MIT",
"private": true,
Expand Down

0 comments on commit dcb0231

Please sign in to comment.