Skip to content

Commit

Permalink
fix:修复缩放后部分配置异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Grnetsky committed Dec 22, 2023
1 parent aed60f0 commit c596518
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/data/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
export function mergeProps(target,resource) {
for(const i in target){
if(['width','height','x','y'].includes(i)){

This comment has been minimized.

Copy link
@Grnetsky

Grnetsky Dec 28, 2023

Author Owner

属性过滤

let rect = meta2d.getPenRect(resource)
target[i] = rect[i]
continue
}
if(resource[i]){
target[i] = resource[i]
}else {
Expand Down

0 comments on commit c596518

Please sign in to comment.