|
@@ -864,11 +864,21 @@ const visible = (v: boolean) => {
|
|
};
|
|
};
|
|
|
|
|
|
const align = (align: string) => {
|
|
const align = (align: string) => {
|
|
- meta2d.alignNodes(align, meta2d.store.active);
|
|
|
|
|
|
+ if (align === 'h-distribute') {
|
|
|
|
+ meta2d.spaceBetween(meta2d.store.active);
|
|
|
|
+ } else if (align === 'v-distribute') {
|
|
|
|
+ meta2d.spaceBetweenColumn(meta2d.store.active);
|
|
|
|
+ } else {
|
|
|
|
+ meta2d.alignNodes(align, meta2d.store.active);
|
|
|
|
+ }
|
|
};
|
|
};
|
|
|
|
|
|
const align2 = (align: string) => {
|
|
const align2 = (align: string) => {
|
|
- meta2d.alignNodes(align, meta2d.store.active);
|
|
|
|
|
|
+ if (align === 'same-size') {
|
|
|
|
+ meta2d.beSameByLast(meta2d.store.active);
|
|
|
|
+ } else {
|
|
|
|
+ meta2d.alignNodesByLast(align, meta2d.store.active);
|
|
|
|
+ }
|
|
};
|
|
};
|
|
|
|
|
|
const changeValue = (prop: string) => {
|
|
const changeValue = (prop: string) => {
|