From 8792d836797f81ad132fb18ed3ec0792aadbf2a9 Mon Sep 17 00:00:00 2001 From: DangerD256 Date: Wed, 17 Jan 2018 13:46:59 +0200 Subject: [PATCH] Add patternTransform toObject saving (#4626) * Add patternTransform toObject saving * Update pattern.class.js --- src/pattern.class.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pattern.class.js b/src/pattern.class.js index 11c19323..ea4b4cf5 100644 --- a/src/pattern.class.js +++ b/src/pattern.class.js @@ -95,6 +95,7 @@ repeat: this.repeat, offsetX: toFixed(this.offsetX, NUM_FRACTION_DIGITS), offsetY: toFixed(this.offsetY, NUM_FRACTION_DIGITS), + patternTransform: this.patternTransform ? this.patternTransform.concat() : null }; fabric.util.populateWithProperties(this, object, propertiesToInclude);