Merge branch 'develop' into bs/label_selector_refactoring

main
Boris Sekachev 5 years ago
commit 3a51f81e98

@ -40,6 +40,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Projects view layout fix (<https://github.com/openvinotoolkit/cvat/pull/2503>) - Projects view layout fix (<https://github.com/openvinotoolkit/cvat/pull/2503>)
- Fixed the tasks view (infinite loading) when it is impossible to get a preview of the task (<https://github.com/openvinotoolkit/cvat/pull/2504>) - Fixed the tasks view (infinite loading) when it is impossible to get a preview of the task (<https://github.com/openvinotoolkit/cvat/pull/2504>)
- Empty frames navigation (<https://github.com/openvinotoolkit/cvat/pull/2505>) - Empty frames navigation (<https://github.com/openvinotoolkit/cvat/pull/2505>)
- Disabled position editing in AAM (<https://github.com/openvinotoolkit/cvat/pull/2506>)
- TypeError: Cannot read property 'toString' of undefined (<https://github.com/openvinotoolkit/cvat/pull/2517>)
### Security ### Security

@ -1,6 +1,6 @@
{ {
"name": "cvat-canvas", "name": "cvat-canvas",
"version": "2.2.0", "version": "2.2.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

@ -1,6 +1,6 @@
{ {
"name": "cvat-canvas", "name": "cvat-canvas",
"version": "2.2.0", "version": "2.2.1",
"description": "Part of Computer Vision Annotation Tool which presents its canvas library", "description": "Part of Computer Vision Annotation Tool which presents its canvas library",
"main": "src/canvas.ts", "main": "src/canvas.ts",
"scripts": { "scripts": {

@ -1342,8 +1342,7 @@ export class CanvasViewImpl implements CanvasView, Listener {
} }
this.mode = Mode.IDLE; this.mode = Mode.IDLE;
this.canvas.style.cursor = ''; this.canvas.style.cursor = '';
} } else if (reason === UpdateReasons.DATA_FAILED) {
else if (reason === UpdateReasons.DATA_FAILED) {
const event: CustomEvent = new CustomEvent('canvas.error', { const event: CustomEvent = new CustomEvent('canvas.error', {
detail: { detail: {
exception: model.exception, exception: model.exception,

@ -520,13 +520,13 @@ export function removeObjectAsync(sessionInstance: any, objectState: any, force:
}, },
}); });
} else { } else {
throw new Error('Could not remove the object. Is it locked?'); throw new Error('Could not remove the locked object');
} }
} catch (error) { } catch (error) {
dispatch({ dispatch({
type: AnnotationActionTypes.REMOVE_OBJECT_FAILED, type: AnnotationActionTypes.REMOVE_OBJECT_FAILED,
payload: { payload: {
objectState, error,
}, },
}); });
} }

@ -109,7 +109,7 @@ export default class CanvasWrapperComponent extends React.PureComponent<Props> {
autoborders: automaticBordering, autoborders: automaticBordering,
undefinedAttrValue: consts.UNDEFINED_ATTRIBUTE_VALUE, undefinedAttrValue: consts.UNDEFINED_ATTRIBUTE_VALUE,
displayAllText: showObjectsTextAlways, displayAllText: showObjectsTextAlways,
forceDisableEditing: workspace === Workspace.REVIEW_WORKSPACE, forceDisableEditing: [Workspace.ATTRIBUTE_ANNOTATION, Workspace.REVIEW_WORKSPACE].includes(workspace),
}); });
this.initialSetup(); this.initialSetup();
@ -260,11 +260,11 @@ export default class CanvasWrapperComponent extends React.PureComponent<Props> {
} }
if (prevProps.workspace !== workspace) { if (prevProps.workspace !== workspace) {
if (workspace === Workspace.REVIEW_WORKSPACE) { if ([Workspace.ATTRIBUTE_ANNOTATION, Workspace.REVIEW_WORKSPACE].includes(workspace)) {
canvasInstance.configure({ canvasInstance.configure({
forceDisableEditing: true, forceDisableEditing: true,
}); });
} else if (prevProps.workspace === Workspace.REVIEW_WORKSPACE) { } else if ([Workspace.ATTRIBUTE_ANNOTATION, Workspace.REVIEW_WORKSPACE].includes(prevProps.workspace)) {
canvasInstance.configure({ canvasInstance.configure({
forceDisableEditing: false, forceDisableEditing: false,
}); });

Loading…
Cancel
Save