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

有个疑问 #1

Open
MLH-AIDS opened this issue May 27, 2023 · 0 comments
Open

有个疑问 #1

MLH-AIDS opened this issue May 27, 2023 · 0 comments

Comments

@MLH-AIDS
Copy link

我是用的一个操作canvas的库(matter.js-,你做的这个无法放进我的代码。我尝试做了适配,拖拽移动视野是没问题的,但是滚轮缩放我并没有看懂,所以我没法做的很好……

Render.lookAt(render, { min: { x: number, y: number }, max: { x: number, y: number } });
这是matter.js给出的视角操作办法。

能不能帮我看一下?

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

1 participant