Skip to content

Commit

Permalink
Fixed indents
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Jul 9, 2019
1 parent 49646c0 commit 40560c3
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions cvatjs/src/annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,8 @@
rightPosition,
targetFrame,
), {
keyframe: false,
});
keyframe: false,
});
}

if (rightPosition) {
Expand Down Expand Up @@ -1145,22 +1145,22 @@
const color = colors[clientID % colors.length];
let shapeModel = null;
switch (type) {
case 'rectangle':
shapeModel = new RectangleShape(shapeData, clientID, color, injection);
break;
case 'polygon':
shapeModel = new PolygonShape(shapeData, clientID, color, injection);
break;
case 'polyline':
shapeModel = new PolylineShape(shapeData, clientID, color, injection);
break;
case 'points':
shapeModel = new PointsShape(shapeData, clientID, color, injection);
break;
default:
throw new window.cvat.exceptions.DataError(
`An unexpected type of shape "${type}"`,
);
case 'rectangle':
shapeModel = new RectangleShape(shapeData, clientID, color, injection);
break;
case 'polygon':
shapeModel = new PolygonShape(shapeData, clientID, color, injection);
break;
case 'polyline':
shapeModel = new PolylineShape(shapeData, clientID, color, injection);
break;
case 'points':
shapeModel = new PointsShape(shapeData, clientID, color, injection);
break;
default:
throw new window.cvat.exceptions.DataError(
`An unexpected type of shape "${type}"`,
);
}

return shapeModel;
Expand All @@ -1175,22 +1175,22 @@

let trackModel = null;
switch (type) {
case 'rectangle':
trackModel = new RectangleTrack(trackData, clientID, color, injection);
break;
case 'polygon':
trackModel = new PolygonTrack(trackData, clientID, color, injection);
break;
case 'polyline':
trackModel = new PolylineTrack(trackData, clientID, color, injection);
break;
case 'points':
trackModel = new PointsTrack(trackData, clientID, color, injection);
break;
default:
throw new window.cvat.exceptions.DataError(
`An unexpected type of track "${type}"`,
);
case 'rectangle':
trackModel = new RectangleTrack(trackData, clientID, color, injection);
break;
case 'polygon':
trackModel = new PolygonTrack(trackData, clientID, color, injection);
break;
case 'polyline':
trackModel = new PolylineTrack(trackData, clientID, color, injection);
break;
case 'points':
trackModel = new PointsTrack(trackData, clientID, color, injection);
break;
default:
throw new window.cvat.exceptions.DataError(
`An unexpected type of track "${type}"`,
);
}

return trackModel;
Expand Down

0 comments on commit 40560c3

Please sign in to comment.