Update centering methods docs to mention the need for setCoords

This commit is contained in:
kangax 2013-07-28 19:43:07 +02:00
parent 9df6f6b2d4
commit e6bc08701c
4 changed files with 16 additions and 4 deletions

10
dist/all.js vendored
View file

@ -7061,6 +7061,7 @@ fabric.Shadow = fabric.util.createClass(/** @lends fabric.Shadow.prototype */ {
/**
* Centers object horizontally.
* You might need to call `setCoords` on an object after centering, to update controls area.
* @param {fabric.Object} object Object to center
* @return {fabric.Canvas} thisArg
*/
@ -7072,6 +7073,7 @@ fabric.Shadow = fabric.util.createClass(/** @lends fabric.Shadow.prototype */ {
/**
* Centers object vertically.
* You might need to call `setCoords` on an object after centering, to update controls area.
* @param {fabric.Object} object Object to center
* @return {fabric.Canvas} thisArg
* @chainable
@ -7084,6 +7086,7 @@ fabric.Shadow = fabric.util.createClass(/** @lends fabric.Shadow.prototype */ {
/**
* Centers object vertically and horizontally.
* You might need to call `setCoords` on an object after centering, to update controls area.
* @param {fabric.Object} object Object to center
* @return {fabric.Canvas} thisArg
* @chainable
@ -11028,7 +11031,8 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, /** @lends fabric.Stati
},
/**
* Centers object horizontally on canvas to which it was added last
* Centers object horizontally on canvas to which it was added last.
* You might need to call `setCoords` on an object after centering, to update controls area.
* @return {fabric.Object} thisArg
*/
centerH: function () {
@ -11037,7 +11041,8 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, /** @lends fabric.Stati
},
/**
* Centers object vertically on canvas to which it was added last
* Centers object vertically on canvas to which it was added last.
* You might need to call `setCoords` on an object after centering, to update controls area.
* @return {fabric.Object} thisArg
* @chainable
*/
@ -11048,6 +11053,7 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, /** @lends fabric.Stati
/**
* Centers object vertically and horizontally on canvas to which is was added last
* You might need to call `setCoords` on an object after centering, to update controls area.
* @return {fabric.Object} thisArg
* @chainable
*/

BIN
dist/all.min.js.gz vendored

Binary file not shown.

View file

@ -1004,7 +1004,8 @@
},
/**
* Centers object horizontally on canvas to which it was added last
* Centers object horizontally on canvas to which it was added last.
* You might need to call `setCoords` on an object after centering, to update controls area.
* @return {fabric.Object} thisArg
*/
centerH: function () {
@ -1013,7 +1014,8 @@
},
/**
* Centers object vertically on canvas to which it was added last
* Centers object vertically on canvas to which it was added last.
* You might need to call `setCoords` on an object after centering, to update controls area.
* @return {fabric.Object} thisArg
* @chainable
*/
@ -1024,6 +1026,7 @@
/**
* Centers object vertically and horizontally on canvas to which is was added last
* You might need to call `setCoords` on an object after centering, to update controls area.
* @return {fabric.Object} thisArg
* @chainable
*/

View file

@ -625,6 +625,7 @@
/**
* Centers object horizontally.
* You might need to call `setCoords` on an object after centering, to update controls area.
* @param {fabric.Object} object Object to center
* @return {fabric.Canvas} thisArg
*/
@ -636,6 +637,7 @@
/**
* Centers object vertically.
* You might need to call `setCoords` on an object after centering, to update controls area.
* @param {fabric.Object} object Object to center
* @return {fabric.Canvas} thisArg
* @chainable
@ -648,6 +650,7 @@
/**
* Centers object vertically and horizontally.
* You might need to call `setCoords` on an object after centering, to update controls area.
* @param {fabric.Object} object Object to center
* @return {fabric.Canvas} thisArg
* @chainable