We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题描述 / Describe the bug
node在初次编辑缩放旋转时回退存在异常
复现步骤 / To Reproduce
期望行为 / Expected behavior
nod正常恢复到编辑前的node
The text was updated successfully, but these errors were encountered:
Bug Report / 缺陷报告 问题描述 / Describe the bug node在初次编辑缩放旋转时回退存在异常 复现步骤 / To Reproduce 创建node 编辑node 撤销 nod没有恢复到编辑前的node 期望行为 / Expected behavior nod正常恢复到编辑前的node
找到问题在哪了polyfill/index.ts中的import './node';未在顶部引用,导致圆形和线条的第一次形变时无法获取到默认的scale等值。这是Konva作者为了减少toObject输入内容,所以当一个属性值是默认值时,toObject就会将其省略。
polyfill/index.ts
import './node';
scale
Konva
toObject
Sorry, something went wrong.
JessYan0913
Successfully merging a pull request may close this issue.
Bug Report / 缺陷报告
问题描述 / Describe the bug
node在初次编辑缩放旋转时回退存在异常
复现步骤 / To Reproduce
期望行为 / Expected behavior
nod正常恢复到编辑前的node
The text was updated successfully, but these errors were encountered: