Skip to content

Commit

Permalink
Changed color
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Jul 21, 2020
1 parent b543c51 commit 39c02ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cvat-canvas/src/typescript/editHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,18 @@ 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 => {
const circle = (e.target as any).instance.remember('_paintHandler').set.last();
if (circle) this.setupTrailingPoint(circle);
});
}

const strokeColor = this.editedShape.attr('stroke');
(this.editLine as any).addClass('cvat_canvas_shape_drawing').style({
'pointer-events': 'none',
'fill-opacity': 0,
'stroke': strokeColor,
}).attr({
'data-origin-client-id': this.editData.state.clientID,
}).on('drawstart drawpoint', (e: CustomEvent): void => {
Expand Down

0 comments on commit 39c02ac

Please sign in to comment.