diff options
author | bobzel <zzzman@gmail.com> | 2021-08-25 11:53:49 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-08-25 11:53:49 -0400 |
commit | fe818efd80e649b841009b69841b176cee4c5c8c (patch) | |
tree | a71a3f320532bf359176bd5c4ae863eaae637bd3 /src/fields/Doc.ts | |
parent | e221001a24e8615aa6113dd3f25b8c6e10c74999 (diff) |
cleaned up and fixed tests for nonrecursive doc filters as used in PDF/Web to separate transparent from non-transparent docs into layers.
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index f6efefdf9..17f41fac8 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1088,7 +1088,7 @@ export namespace Doc { } export function matchFieldValue(doc: Doc, key: string, value: any): boolean { - if (value === "isTransparent(__value__)") { + if (Utils.HasTransparencyFilter(value)) { const isTransparent = (color: string) => color !== "" && (Color(color).alpha() !== 1); return isTransparent(StrCast(doc[key])); } |