Skip to content

Conversation

@caohongz
Copy link
Contributor

使用av-canvas时经常会有在外部修改VisibleSprite的rect属性情况,尤其是自定义clip(典型场景是自定义文字clip需要根据绘制情况返回宽高并更新到VisibleSprite),目前这些外部修改不能触发ctrls的调整,考虑到直接监听更新不太合适,所以添加了一个更新方法。

hughfenghen added a commit that referenced this pull request Mar 21, 2025
@hughfenghen
Copy link
Collaborator

hughfenghen commented Mar 21, 2025

感谢贡献。

当 Sprite 支持 propsChange 事件后,实际上只需要改动少量代码就能解决这个问题。

甚至我都忘了,支持新事件后这块代码还可以优化。

有空请 review 这个 commit 8c33b77

@caohongz caohongz closed this Mar 21, 2025
hughfenghen added a commit that referenced this pull request Mar 22, 2025
@github-actions github-actions bot mentioned this pull request Mar 22, 2025
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 this pull request may close these issues.

2 participants