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
15706191711 opened this issue Jul 9, 2024 · 5 comments
Open

求交流 #1

15706191711 opened this issue Jul 9, 2024 · 5 comments

Comments

@15706191711
Copy link

撤销那块打算怎么做? 我只能想到将画布上JSON 的数据 保存恢复。 但是这样感觉消耗太大资源。

@armomu
Copy link
Owner

armomu commented Jul 9, 2024

我也还还没有想到什么好方法,现在能想到的就是每次修改值后diff出修改过的数据前后值存起来,这样就不用直接存json那么大的数据了

@armomu armomu closed this as completed Jul 9, 2024
@armomu armomu reopened this Jul 9, 2024
@15706191711
Copy link
Author

我也还还没有想到什么好方法,现在能想到的就是每次修改值后diff出修改过的数据前后值存起来,这样就不用直接存json那么大的数据了

你这个好, 那请问下如何通知画布JSON 有变化的? 你用的是pixi.js 对吧这还不太熟 有相应的API吗? 我用的那个threejs 好像是没有这种api 只能自己封装所有操作。。

@armomu
Copy link
Owner

armomu commented Jul 9, 2024

我也还还没有想到什么好方法,现在能想到的就是每次修改值后diff出修改过的数据前后值存起来,这样就不用直接存json那么大的数据了

你这个好, 那请问下如何通知画布JSON 有变化的? 你用的是pixi.js 对吧这还不太熟 有相应的API吗? 我用的那个threejs 好像是没有这种api 只能自己封装所有操作。。

不是pixi只是要来画了个尺子,json变化还没有写,现在只是有Vue的数据流而已

@15706191711
Copy link
Author

image
zh 大佬, 这个框是设计这样还是有问题

@armomu
Copy link
Owner

armomu commented Jul 15, 2024

image zh 大佬, 这个框是设计这样还是有问题

就是这样设计的

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

2 participants