From 2f5f5542fd365d905f4ccae61e37df453215ef7d Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 6 Sep 2018 15:08:51 +0100 Subject: [PATCH] Added more global properties --- src/gameobjects/shape/Shape.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gameobjects/shape/Shape.js b/src/gameobjects/shape/Shape.js index 59557ac60..000e96e66 100644 --- a/src/gameobjects/shape/Shape.js +++ b/src/gameobjects/shape/Shape.js @@ -7,6 +7,7 @@ var Class = require('../../utils/Class'); var Components = require('../components'); var GameObject = require('../GameObject'); +var Line = require('../../geom/line/Line'); /** * @classdesc @@ -66,11 +67,20 @@ var Shape = new Class({ this.data = data; + this.pathData = []; + this.pathIndexes = []; + this.fillColor = 0xffffff; this.fillAlpha = 1; + this.lineWidth = 1; + this.strokeColor = 0xffffff; + this.strokeAlpha = 1; + + this.isFilled = false; this.isStroked = false; - this.isFilled = true; + + this._tempLine = new Line(); this.initPipeline(); },