From f0170611ec29ed98d4b36edd18facba2603ab55b Mon Sep 17 00:00:00 2001 From: Gavin McDonald Date: Thu, 31 Jan 2019 22:32:06 -0500 Subject: [PATCH] no wrap if no width and height --- src/cartographer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cartographer.js b/src/cartographer.js index 2c7139f..85fe6e5 100644 --- a/src/cartographer.js +++ b/src/cartographer.js @@ -38,6 +38,8 @@ export default class Cartographer { 'wrap', ])); + if (!this.width || !this.height) delete this.wrap; + this.checkScale(this.settings.canvasHeight, this.settings.canvasWidth); this.setOriginX(this.settings.canvasWidth, this.settings.centerX);