Merge pull request #13548 from calixteman/default_fill
XFA - Default fill color for rectangle is transparent
This commit is contained in:
commit
96c103462a
@ -2480,14 +2480,17 @@ class Fill extends XFAObject {
|
|||||||
|
|
||||||
[$toStyle]() {
|
[$toStyle]() {
|
||||||
const parent = this[$getParent]();
|
const parent = this[$getParent]();
|
||||||
|
const style = Object.create(null);
|
||||||
|
|
||||||
let propName = "color";
|
let propName = "color";
|
||||||
if (parent instanceof Border) {
|
if (parent instanceof Border) {
|
||||||
propName = "background";
|
propName = "background";
|
||||||
}
|
}
|
||||||
if (parent instanceof Rectangle) {
|
if (parent instanceof Rectangle || parent instanceof Arc) {
|
||||||
propName = "fill";
|
propName = "fill";
|
||||||
|
style.fill = "transparent";
|
||||||
}
|
}
|
||||||
const style = Object.create(null);
|
|
||||||
for (const name of Object.getOwnPropertyNames(this)) {
|
for (const name of Object.getOwnPropertyNames(this)) {
|
||||||
if (name === "extras" || name === "color") {
|
if (name === "extras" || name === "color") {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user