|
@@ -1530,7 +1530,9 @@ const changeID = (value: any) => {
|
|
|
};
|
|
|
|
|
|
const changeRectValue = (prop: string) => {
|
|
|
- data.rect[prop] = data.rect[prop]||1;
|
|
|
+ if(['width','height'].includes(prop)){
|
|
|
+ data.rect[prop] = data.rect[prop]||1;
|
|
|
+ }
|
|
|
if(data.pen.parentId){
|
|
|
if(['x','y','width','height'].includes(prop)){
|
|
|
const scale = meta2d.store.data.scale;
|