diff options
author | bobzel <zzzman@gmail.com> | 2022-05-12 12:17:12 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-05-12 12:17:12 -0400 |
commit | c31bb0d5d8c4d42fb5cd97b1582de0cae1b16ca0 (patch) | |
tree | 4ba3f42c13095418db18374a5a0537f7da910b88 /src/Utils.ts | |
parent | 37f3c5f1d13bcb8a54d2b0a242df2ee499703dc5 (diff) |
fixed perfromance (flickering, speed) issues with having pointerEvents prop invalidate documents - switched to using a function to avoid flickering on PDFs of annotations in particular.
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts index 205f9379e..c3c13a555 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -440,6 +440,10 @@ export function returnTrue() { return true; } export function returnFalse() { return false; } +export function returnAll() { return "all"; } + +export function returnNone() { return "none"; } + export function returnVal(val1?: number, val2?: number) { return val1 !== undefined ? val1 : val2 !== undefined ? val2 : 0; } export function returnOne() { return 1; } |