edit #181

Merged
lyc merged 1 commits from lyc-dev into main 2024-12-25 17:25:13 +08:00
1 changed files with 7 additions and 3 deletions
Showing only changes of commit 0d6767170d - Show all commits

View File

@ -507,6 +507,11 @@ const backToCenter = () => {
app.scrollToCenter()
}
const cancelActiveElement = () =>{
app.cancelActiveElement()
}
//
const showFit = () => {
let elementList = app.elements.elementList
@ -700,8 +705,6 @@ const getCanvasBlob = async () =>{
})
}
watch(() => props.data, (newVal) => {
if (newVal) {
setCanvasData(newVal)
@ -791,7 +794,8 @@ defineExpose({
getCanvasJson,
getCanvasBase64,
setCanvasData,
getCanvasBlob
getCanvasBlob,
cancelActiveElement
})
</script>