Skip to content

Commit

Permalink
feat(polygon-tool): Support multiple selection
Browse files Browse the repository at this point in the history
Support update attributes, delete, move after multiple selection
  • Loading branch information
lijingchi committed Feb 27, 2023
1 parent 32d9297 commit 170d303
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 130 deletions.
4 changes: 4 additions & 0 deletions packages/lb-annotation/src/core/toolOperation/Selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ class Selection {
return this._selectedIDs;
}

get selectedID() {
return this._selectedIDs.length === 1 ? this._selectedIDs[0] : undefined;
}

set selectedIDs(selectedIDs: SelectedIDs) {
this._selectedIDs = selectedIDs;
this.toolInstance.render();
Expand Down
Loading

0 comments on commit 170d303

Please sign in to comment.