diff --git a/src/shapes/object.class.js b/src/shapes/object.class.js index 5ea4746c..ad28136e 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