add align option

This commit is contained in:
kekee000
2016-10-19 16:50:45 +08:00
parent 6e9ff39ea9
commit 81e2699fdc

View File

@@ -19,7 +19,7 @@ define(
* @return {boolean} `false`或者`undefined`
*/
alignshapes: function (shapes, align) {
shapes = shapes || (this.currentGroup && this.currentGroup.shapes);
if (!shapes || !shapes.length) {
return false;
}
@@ -75,7 +75,7 @@ define(
* @return {boolean} `false`或者`undefined`
*/
verticalalignshapes: function (shapes, align) {
shapes = shapes || (this.currentGroup && this.currentGroup.shapes);
if (!shapes || !shapes.length) {
return false;
}
@@ -123,7 +123,7 @@ define(
* @return {boolean} `false`或者`undefined`
*/
horizontalalignshapes: function (shapes, align) {
shapes = shapes || (this.currentGroup && this.currentGroup.shapes);
if (!shapes || !shapes.length) {
return false;
}