From 27c6f2529c791546566456065d5da56499f4c8db Mon Sep 17 00:00:00 2001 From: kangax Date: Fri, 29 Mar 2013 12:43:55 +0100 Subject: [PATCH] Mention that `set` doesn't update border/control and that `setCoords` should be called for that. Closes #518. --- src/object.class.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/object.class.js b/src/object.class.js index fab0be4e..cc377531 100644 --- a/src/object.class.js +++ b/src/object.class.js @@ -547,7 +547,7 @@ }, /** - * Sets property to a given value + * Sets property to a given value. When changing position/dimension -related properties (left, top, scale, angle, etc.) `set` does not update position of object's borders/controls. If you need to update those, call `setCoords()`. * @method set * @param {String} name * @param {Object|Function} value (if function, the value is passed into it and its return value is used as a new one) @@ -1147,6 +1147,7 @@ extend(fabric.Object.prototype, fabric.Observable); /** + * Defines the number of fraction digits when serializing object values. You can use it to increase/decrease precision of such values like left, top, scaleX, scaleY, etc. * @static * @constant * @type Number