Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@forkpath
Copy link

在drawEnd之后,更新brushComponent,以避免第一次选区的外框继续保留

fix #1720

🤔 This is a ...

  • New feature
  • Bug fix
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Update dependency
  • Code style optimization
  • Test Case
  • Branch merge
  • Release
  • Site / documentation update
  • Demo update
  • Workflow
  • Other (about what?)

🔗 Related issue link

#1720

🔗 Related PR link

🐞 Bugserver case id

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough

在drawEnd之后,更新brushComponent,以避免第一次选区的外框继续保留

fix VisActor#1720
this._needEnablePickable = true;
}
if (operateType === IOperateType.drawEnd) {
this._updateBrushComponent(region, componentIndex);
Copy link
Contributor

@skie1997 skie1997 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brush支持绘制多个选框,即brushMode设置为multiple,此时drawEnd之后不应该清除之前的选框(如下图),所以在这里修改逻辑可能并不合适。
20231213220957_rec_

当前case的问题在于:
drawEnd之后进行了spec更新,导致之前的brush选框没有被正确清除

解决方法:
updateSpec后会走brush.release()卸载先前的brush, 所以更好的方法是在这里release()清空brush选框
MR: #1755
image

解决后效果:
20231213221714_rec_

@skie1997 skie1997 mentioned this pull request Dec 13, 2023
20 tasks
@xile611
Copy link
Contributor

xile611 commented Dec 14, 2023

@key7men 感谢你的提交,相关问题已经使用其他方案修复

@xile611 xile611 closed this Dec 14, 2023
@forkpath
Copy link
Author

@key7men 感谢你的提交,相关问题已经使用其他方案修复

OKAY,感谢修改。
目前如果想给你们贡献代码的最大困难是:需要深入理解你们的产品功能点和设计意图,否则很难共享力量。另外想问一下:当初为什么要单独分出一个grammer的包,意图是什么呀?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants