aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-10-04 08:20:22 -0400
committerbobzel <zzzman@gmail.com>2023-10-04 08:20:22 -0400
commitbdfde9c6d25d778985e9956692e0d3ad201a335b (patch)
tree6e3c24ab8294da7b8d38cf8dbfdb49f26ad807cf /src/Utils.ts
parenta25c717b7ab09b0cf079d691e89f5a56781f2eeb (diff)
from last -- test font color to determine which blend mode for clippings.
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index 9b969081f..b5ca53a33 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -764,7 +764,7 @@ export function lightOrDark(color: any) {
const col = DashColor(nonAlphaColor).rgb();
const colsum = col.red() + col.green() + col.blue();
if (colsum / col.alpha() > 400 || col.alpha() < 0.25) return Colors.DARK_GRAY;
- else return Colors.WHITE;
+ return Colors.WHITE;
}
export function getWordAtPoint(elem: any, x: number, y: number): string | undefined {