From 694b14c04713af5804fb565db0c51482b7b620b1 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 11 Jun 2021 18:03:19 +0200 Subject: [PATCH] XFA - Default fill color for rectangle is transparent --- src/core/xfa/template.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/xfa/template.js b/src/core/xfa/template.js index ef8fa4ab8..86de28ac7 100644 --- a/src/core/xfa/template.js +++ b/src/core/xfa/template.js @@ -2462,14 +2462,17 @@ class Fill extends XFAObject { [$toStyle]() { const parent = this[$getParent](); + const style = Object.create(null); + let propName = "color"; if (parent instanceof Border) { propName = "background"; } - if (parent instanceof Rectangle) { + if (parent instanceof Rectangle || parent instanceof Arc) { propName = "fill"; + style.fill = "transparent"; } - const style = Object.create(null); + for (const name of Object.getOwnPropertyNames(this)) { if (name === "extras" || name === "color") { continue;