aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-08-17 12:31:26 -0400
committerbobzel <zzzman@gmail.com>2022-08-17 12:31:26 -0400
commit0178de4ab9ffd11630b700f9c02468b74beabd14 (patch)
tree52aff11f9cb82d3545ac640de40005721c253160 /src/Utils.ts
parent0b43c12bf9394f8561de57299c733734082f9f0a (diff)
fixed dragging docs on web and pdf to work better by temporarily adding transparent docs to the opaque layer so they can get drop events. cleaned eraser and pen interaction code and made erasing strokes work faster and avoid hanging by not intersecting strokes that are already partially deleted.
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index 528a429d0..9e002ebd4 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -111,6 +111,7 @@ export namespace Utils {
const isTransparentFunctionHack = 'isTransparent(__value__)';
export const noRecursionHack = '__noRecursion';
+ export const noDragsDocFilter = 'noDragDocs:any:check';
export function IsRecursiveFilter(val: string) {
return !val.includes(noRecursionHack);
}
@@ -125,7 +126,7 @@ export namespace Utils {
// bcz: isTransparent(__value__) is a hack. it would be nice to have acual functions be parsed, but now Doc.matchFieldValue is hardwired to recognize just this one
return `backgroundColor:${isTransparentFunctionHack},${noRecursionHack}:x`; // bcz: hack. noRecursion should probably be either another ':' delimited field, or it should be a modifier to the comparision (eg., check, x, etc) field
}
- export function PropUnsetFilter(prop: string) {
+ export function IsPropUnsetFilter(prop: string) {
return `${prop}:any,${noRecursionHack}:unset`;
}