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

How can I use Scena with Moveable? #22

Open
ronny-lark opened this issue Nov 25, 2023 · 1 comment
Open

How can I use Scena with Moveable? #22

ronny-lark opened this issue Nov 25, 2023 · 1 comment
Labels
demo question Further information is requested

Comments

@ronny-lark
Copy link

Hello, I hope this is posted in the correct repo.

We found daybrush to be perfect for a feature in our app with the following requirements:

  • Have an image.
  • Draw interactable square annotation on the image.
  • Retrieve the exact annotation coordinates relative to the image.
  • Have the entire thing be zoomable.

I've reviewed the source code for the demo at daybrush.com/moveable, but it's REALLY BIG and I couldn't find the exact place where you handle drawing new squares. If you could point me in the right direction there, that would be awesome.

It would be even more awesome if you could perhaps give a simple rundown of how I can do what I'm looking for to help me save loads of time; there are so many cool options and it's easy to get lost!

@daybrush daybrush added question Further information is requested demo labels Dec 3, 2023
@daybrush
Copy link
Owner

daybrush commented Dec 3, 2023

@ronny-lark

I haven't done much development yet because I don't have time to develop it.

However, the code that uses moveable in the editor could be as follows.

https://github.com/daybrush/scena/blob/master/packages/react-editor/src/Editor/editorComponents/InfiniteViewerManager.tsx

https://github.com/daybrush/scena/blob/master/packages/react-editor/src/Editor/editorComponents/MoveableManager.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants