-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed polygon editing #2808
Fixed polygon editing #2808
Conversation
@@ -103,7 +105,7 @@ export class EditHandlerImpl implements EditHandler { | |||
|
|||
this.editLine = (this.canvas as any).polyline(); | |||
if (this.editData.state.shapeType === 'polyline') { | |||
(this.editLine as any).on('drawpoint', (e: CustomEvent): void => { | |||
(this.editLine as any).on('drawupdate', (e: CustomEvent): void => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only actual change in the PR. Others are to fix linter issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an extremely useful comment.
Sure. The test will be written. |
* Fixed polygon editing * Updated version & changelog * Try to restart codacy
Resolved #2807
The bug appeared with this PR #2276 because of changing in implementation of svg.draw.js
@dvkruchinin Could you please write a test? Steps are described in the issue
Motivation and context
How has this been tested?
Manual testing
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.