From 4fc6fe2cf6cde091eeadfebad3f995485233e9b0 Mon Sep 17 00:00:00 2001 From: Simon Soriano Date: Tue, 14 Jan 2020 19:56:35 +0100 Subject: [PATCH] fix(artboard): allow to set background color (#83) Artboard object needs to have hasBackgroundColor set to true in order to allow a background color. --- models/Artboard/Artboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/models/Artboard/Artboard.js b/models/Artboard/Artboard.js index ca66ee0..365494b 100644 --- a/models/Artboard/Artboard.js +++ b/models/Artboard/Artboard.js @@ -77,6 +77,7 @@ class Artboard extends Group { style: new Style(args.style), layers: args.layers || [], backgroundColor: new Color(args.backgroundColor || '#fff'), + hasBackgroundColor: args.backgroundColor != null, horizontalRulerData: new RulerData(args.horizontalRulerData), verticalRulerData: new RulerData(args.verticalRulerData), });