aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-08-24 14:28:13 -0400
committerbobzel <zzzman@gmail.com>2021-08-24 14:28:13 -0400
commit5867ca16f8a8beaf7daf754ee5c42a5cc249346f (patch)
treed59c42afdbc9f0aa0abc8b8e79772df5c639f4ab /src/Utils.ts
parenta38501569769c00dc1c25fb57d09ca88f3951c3d (diff)
fixed undo for dragging docs. made separate layers for transparent and other annotations on pdfs/webs so that transparency will work better.
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index f251f776c..f90296121 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -115,6 +115,16 @@ export namespace Utils {
return { r: r, g: g, b: b, a: a };
}
+ export function IsTransparentFilter() {
+ // 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:isTransparent(__value__):check"];
+ }
+ export function IsOpaqueFilter() {
+ // 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:isTransparent(__value__):x"];
+ }
+
+
export function toRGBAstr(col: { r: number, g: number, b: number, a?: number }) {
return "rgba(" + col.r + "," + col.g + "," + col.b + (col.a !== undefined ? "," + col.a : "") + ")";
}