From 81e2699fdcf38b4ca88e60bb484d8eb432bef9d1 Mon Sep 17 00:00:00 2001 From: kekee000 Date: Wed, 19 Oct 2016 16:50:45 +0800 Subject: [PATCH] add align option --- src/editor/command/align.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor/command/align.js b/src/editor/command/align.js index ada6579..4189314 100644 --- a/src/editor/command/align.js +++ b/src/editor/command/align.js @@ -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; }