Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node在初次编辑缩放旋转时回退存在异常 #55

Closed
Symbol-ZJJ opened this issue Mar 7, 2024 · 1 comment · Fixed by #57
Closed

node在初次编辑缩放旋转时回退存在异常 #55

Symbol-ZJJ opened this issue Mar 7, 2024 · 1 comment · Fixed by #57
Assignees

Comments

@Symbol-ZJJ
Copy link

Bug Report / 缺陷报告

问题描述 / Describe the bug

node在初次编辑缩放旋转时回退存在异常

复现步骤 / To Reproduce

  1. 创建node
  2. 编辑node
  3. 撤销
  4. nod没有恢复到编辑前的node

期望行为 / Expected behavior

nod正常恢复到编辑前的node

@JessYan0913
Copy link
Owner

Bug Report / 缺陷报告

问题描述 / Describe the bug

node在初次编辑缩放旋转时回退存在异常

复现步骤 / To Reproduce

  1. 创建node
  2. 编辑node
  3. 撤销
  4. nod没有恢复到编辑前的node

期望行为 / Expected behavior

nod正常恢复到编辑前的node

找到问题在哪了polyfill/index.ts中的import './node';未在顶部引用,导致圆形和线条的第一次形变时无法获取到默认的scale等值。这是Konva作者为了减少toObject输入内容,所以当一个属性值是默认值时,toObject就会将其省略。

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants