refactor: 画布优化

This commit is contained in:
wangjiahao 2021-10-10 19:38:44 +08:00
parent 0bb8ccaea8
commit 99a08ba789

View File

@ -21,7 +21,7 @@
@mouseenter="enter"
@mouseleave="leave"
>
<edit-bar v-if="active||linkageSettingStatus" style="transform: translateZ(10px)" :active-model="'edit'" :element="element" @showViewDetails="showViewDetails" @amRemoveItem="amRemoveItem" @amAddItem="amAddItem"/>
<edit-bar v-if="active||linkageSettingStatus" style="transform: translateZ(10px)" :active-model="'edit'" :element="element" @showViewDetails="showViewDetails" @amRemoveItem="amRemoveItem" @amAddItem="amAddItem" />
<div v-if="resizing" style="transform: translateZ(11px);position: absolute; z-index: 3" :style="resizeShadowStyle" />
<div
v-for="(handlei, indexi) in actualHandles"
@ -1252,7 +1252,9 @@ export default {
//
if (this.element.auxiliaryMatrix) {
// this.recordMatrixCurStyle()
this.recordMatrixCurShadowStyle()
setTimeout(() => {
this.recordMatrixCurShadowStyle()
}, 50)
}
this.hasMove && this.$store.commit('recordSnapshot', 'handleUp')
// snapshot false