|
@@ -57,11 +57,7 @@ export const create = async (store, canvas) => {
|
|
},
|
|
},
|
|
};
|
|
};
|
|
const update = (newData) => {
|
|
const update = (newData) => {
|
|
- layer.uiControl.setAttributes(
|
|
|
|
- type,
|
|
|
|
- type === bgImage ? "upload" : "update",
|
|
|
|
- { ...newData, version: 2 }
|
|
|
|
- );
|
|
|
|
|
|
+ layer.uiControl.setAttributes(type, "update", { ...newData, version: 2 });
|
|
};
|
|
};
|
|
refs.bus.emit("selectShape", shape);
|
|
refs.bus.emit("selectShape", shape);
|
|
});
|
|
});
|