From e2facba9d3c73c34f0341a1ad84bd837ca17ab66 Mon Sep 17 00:00:00 2001 From: Asturur Date: Sun, 23 Apr 2017 13:48:39 +0200 Subject: [PATCH] reinserted deleted method to do not break api --- src/shapes/object.class.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/shapes/object.class.js b/src/shapes/object.class.js index 5ea4746c2f3..ad28136eaa4 100644 --- a/src/shapes/object.class.js +++ b/src/shapes/object.class.js @@ -1104,6 +1104,17 @@ // implemented by sub-classes, as needed. }, + /** + * Sets sourcePath of an object + * @param {String} value Value to set sourcePath to + * @return {fabric.Object} thisArg + * @chainable + */ + setSourcePath: function(value) { + this.sourcePath = value; + return this; + }, + /** * Retrieves viewportTransform from Object's canvas if possible * @method getViewportTransform