diff options
author | bobzel <zzzman@gmail.com> | 2024-09-27 14:19:40 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-09-27 14:19:40 -0400 |
commit | 42419cd85b7dc2aec0695f2b29b2f707ae7e36e2 (patch) | |
tree | 6afabe7f8f1d602dfe3ca313694b22f4e5b7ed25 /src/Utils.ts | |
parent | 186442fed4215b2de499cc9943229fd4856cc74b (diff) |
fixed linting. cleaned up scribble erase code and fixed several issues with determining if cusp intersections amounted to a scribble. also fixed recognition of lines to not recognize scribbles.
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Utils.ts b/src/Utils.ts index 0590c6930..724725c23 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-namespace */ import * as uuid from 'uuid'; export function clamp(n: number, lower: number, upper: number) { @@ -205,7 +204,6 @@ export function intersectRect(r1: { left: number; top: number; width: number; he } export function stringHash(s?: string) { - // eslint-disable-next-line no-bitwise return !s ? undefined : Math.abs(s.split('').reduce((a, b) => (n => n & n)((a << 5) - a + b.charCodeAt(0)), 0)); } @@ -254,6 +252,7 @@ export namespace JSONUtils { try { results = JSON.parse(source); } catch (e) { + console.log('JSONparse error: ', e); results = source; } return results; |