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

这个meta2d.js是数据驱动视图可以和vue.js集合使用吗? #227

Closed
WREQI opened this issue Dec 29, 2023 · 3 comments

Comments

@WREQI
Copy link

WREQI commented Dec 29, 2023

vue也是数据驱动视图,它们相互之间不会冲突重复而影响性能吗?

@Grnetsky
Copy link
Contributor

不会,两个数据驱动的原理不同,vue是数据劫持后进行页面刷新,meta2d依赖canvas,通过requestAnimationFrame在每一个动画循环中进行界面更新,两者互不影响

@WREQI
Copy link
Author

WREQI commented Jan 2, 2024

不会,两个数据驱动的原理不同,vue是数据劫持后进行页面刷新,meta2d依赖canvas,通过requestAnimationFrame在每一个动画循环中进行界面更新,两者互不影响

相当于这里的数据驱动视图,指的是更新canvas视图,而不是ui界面是吗?

@Grnetsky
Copy link
Contributor

Grnetsky commented Jan 3, 2024

不会,两个数据驱动的原理不同,vue是数据劫持后进行页面刷新,meta2d依赖canvas,通过requestAnimationFrame在每一个动画循环中进行界面更新,两者互不影响

相当于这里的数据驱动视图,指的是更新canvas视图,而不是ui界面是吗?

对的,meta2d的数据驱动只与canvas有关,并不会在vue上视图更新。

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

No branches or pull requests

3 participants