XFA - Default fill color for rectangle is transparent
This commit is contained in:
parent
2dc22394e7
commit
694b14c047
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user