From 9f4b1c328d316f61b693f849f56840206a2bca06 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 13 Mar 2017 01:51:59 +0100 Subject: [PATCH] Use new 'requiredProperties' option --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 978cf4c..5f14ed4 100644 --- a/src/index.js +++ b/src/index.js @@ -3,12 +3,11 @@ const canvassed = require("canvassed"); module.exports = function createRectangle(options = {}) { - canvassed.requireProperties(options, ["width", "height"]); - let rectangle = canvassed.createObject(Object.assign({ type: "rectangle", cacheBustingProperties: ["fillColor", "strokeColor", "strokeWidth"], sizeBustingProperties: ["width", "height"], + requiredProperties: ["width", "height"], fillColor: "black", strokeColor: "red", strokeWidth: 0,