Skip to content

Commit

Permalink
Add dataid to annotation update events
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jul 18, 2024
1 parent 4229f9b commit 6609dc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/tools/drawShapeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ export class DrawShapeEditor {
// fire event manually since command is not executed
this.#eventCallback({
type: 'annotationupdate',
data: this.#annotation
data: this.#annotation,
dataid: this.#drawLayer.getDataId()
});
// update original properties
originalProps = {
Expand Down
6 changes: 4 additions & 2 deletions src/tools/drawShapeHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ export class DrawShapeHandler {
// fire event manually since command is not executed
this.#eventCallback({
type: 'annotationupdate',
data: annotation
data: annotation,
dataid: drawLayer.getDataId()
});
// update original shape
originalProps = {
Expand Down Expand Up @@ -465,7 +466,8 @@ export class DrawShapeHandler {
// fire event manually since command is not executed
this.#eventCallback({
type: 'annotationupdate',
data: annotation
data: annotation,
dataid: drawLayer.getDataId()
});
// update original position
originalLabelPosition = newLabelPosition;
Expand Down

0 comments on commit 6609dc8

Please sign in to comment.