Skip to content

Commit 50f1f3e

Browse files
cleanup
1 parent 900ae6b commit 50f1f3e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/tasks.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
## Tasks
22

3-

src/overlays.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { AbstractPoint, DistanceFromPolylineClasses, Offset } from "..";
22
import { ULabelAnnotation } from "./annotation";
33
import { get_annotation_class_id } from "./annotation_operators";
4+
import { log_message, LogLevel } from "./error_logging";
45
import { ULabelSpatialPayload2D } from "./geometric_utils";
56

67
/**
@@ -160,7 +161,7 @@ export class FilterDistanceOverlay extends ULabelOverlay {
160161
if (scalar === 0) {
161162
// This will happen when point 1 and point 2 are the same point
162163
// In which case the concept of a normal vector doesn't really apply
163-
console.error("claculateNormalVector divide by 0 error");
164+
log_message("calculateNormalVector divide by 0 error", LogLevel.WARNING);
164165
return null;
165166
}
166167

0 commit comments

Comments
 (0)