Skip to content

Commit

Permalink
Some AAM refactoring #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Sekachev committed Sep 26, 2018
1 parent 6abbdc6 commit d485381
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions cvat/apps/engine/static/engine/js/shapeCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ class ShapeCollectionModel extends Listener {
}

get activeShape() {
return this._activeShape;
return this._activeAAMShape || this._activeShape;
}

get currentShapes() {
Expand Down Expand Up @@ -891,19 +891,19 @@ class ShapeCollectionController {
}

switchActiveOccluded() {
if (!window.cvat.mode) {
if (!window.cvat.mode || window.cvat.mode === 'aam') {
this._model.switchActiveOccluded();
}
}

switchAllLock() {
if (!window.cvat.mode) {
if (!window.cvat.mode || window.cvat.mode === 'aam') {
this._model.switchAllLock();
}
}

switchActiveLock() {
if (!window.cvat.mode) {
if (!window.cvat.mode || window.cvat.mode === 'aam') {
this._model.switchActiveLock();
}
}
Expand Down Expand Up @@ -1291,6 +1291,11 @@ class ShapeCollectionView {
content.append(shape);
}

let mask = $('#outsideRect');
if (mask.length) {
mask.appendTo(mask.parent());
}

let texts = content.find('.shapeText');
for (let text of texts) {
content.append(text);
Expand Down

0 comments on commit d485381

Please sign in to comment.