|
|
|
@ -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,
|
|
|
|
|