diff --git a/src/Annotator/reducer.js b/src/Annotator/reducer.js index fd016695..51570880 100644 --- a/src/Annotator/reducer.js +++ b/src/Annotator/reducer.js @@ -331,8 +331,6 @@ export default (state: MainLayoutState, action: Action) => { state, ["images", currentImageIndex, "regions", regionIndex], { ...region, xr: action.x, yr: action.y } - // region.radius+1 - // Math.sqrt(Math.pow(region.x - x,2) + Math.pow(region.y - y,2)) ) } case "DRAW_POLYGON": { diff --git a/src/ImageCanvas/index.js b/src/ImageCanvas/index.js index 5ee3c5df..a9d43e2e 100644 --- a/src/ImageCanvas/index.js +++ b/src/ImageCanvas/index.js @@ -235,7 +235,6 @@ export default ({ switch (region.type) { case "point": { context.save() - // debugger; context.beginPath() context.strokeStyle = region.color @@ -615,8 +614,6 @@ export default ({ style={{ left: proj.x - 4, top: proj.y - 4, - // top: pbox.y - 4 - 2 + pbox.h * py, - // cursor: boxCursorMap[py * 2][px * 2], borderRadius: px === r.x && py === r.y ? 4 : undefined }} />