|
@@ -6,23 +6,23 @@ export const LayoutToolbars = createToolbars({
|
|
|
xLeft: {
|
|
|
component: TipIcons.AlignXLeft,
|
|
|
getVisible(comp) { return this.store.selected.length > 0 },
|
|
|
- onClick(comp) {
|
|
|
- this.actions.setAlignX(0);
|
|
|
+ onClick(comp, isGroup= false) {
|
|
|
+ this.actions.setAlignX(0, isGroup);
|
|
|
},
|
|
|
},
|
|
|
xCenter: {
|
|
|
component: TipIcons.AlignXCenter,
|
|
|
getVisible(comp) { return this.store.selected.length > 0 },
|
|
|
- onClick(comp) {
|
|
|
- this.actions.setAlignX(1);
|
|
|
+ onClick(comp, isGroup= false) {
|
|
|
+ this.actions.setAlignX(1, isGroup);
|
|
|
},
|
|
|
},
|
|
|
xRight: {
|
|
|
component: TipIcons.AlignXRight,
|
|
|
|
|
|
getVisible(comp) { return this.store.selected.length > 0 },
|
|
|
- onClick(comp) {
|
|
|
- this.actions.setAlignX(2);
|
|
|
+ onClick(comp, isGroup= false) {
|
|
|
+ this.actions.setAlignX(2, isGroup);
|
|
|
},
|
|
|
},
|
|
|
xBetween: {
|
|
@@ -37,8 +37,8 @@ export const LayoutToolbars = createToolbars({
|
|
|
yBetween: {
|
|
|
component: TipIcons.AlignYBetween,
|
|
|
getVisible(comp) { return this.store.selected.length > 2 },
|
|
|
- onClick(comp) {
|
|
|
- this.actions.setAlignY(3);
|
|
|
+ onClick(comp, isGroup= false) {
|
|
|
+ this.actions.setAlignY(3, isGroup);
|
|
|
},
|
|
|
},
|
|
|
|
|
@@ -46,23 +46,23 @@ export const LayoutToolbars = createToolbars({
|
|
|
component: TipIcons.AlignYTop,
|
|
|
|
|
|
getVisible(comp) { return this.store.selected.length > 0 },
|
|
|
- onClick(comp) {
|
|
|
- this.actions.setAlignY(0);
|
|
|
+ onClick(comp, isGroup= false) {
|
|
|
+ this.actions.setAlignY(0, isGroup);
|
|
|
},
|
|
|
},
|
|
|
YCenter: {
|
|
|
component: TipIcons.AlignYCenter,
|
|
|
|
|
|
getVisible(comp) { return this.store.selected.length > 0 },
|
|
|
- onClick(comp) {
|
|
|
- this.actions.setAlignY(1);
|
|
|
+ onClick(comp, isGroup= false) {
|
|
|
+ this.actions.setAlignY(1, isGroup);
|
|
|
},
|
|
|
},
|
|
|
YBottom: {
|
|
|
component: TipIcons.AlignYBottom,
|
|
|
getVisible(comp) { return this.store.selected.length > 0 },
|
|
|
- onClick(comp) {
|
|
|
- this.actions.setAlignY(2);
|
|
|
+ onClick(comp, isGroup= false) {
|
|
|
+ this.actions.setAlignY(2, isGroup);
|
|
|
},
|
|
|
},
|
|
|
|