bilal-and-haffi / ai-print-shop

https://www.ai-print-shop.com
3 stars 0 forks source link

User should be able to position image by dragging and pinching #331

Open Bilalm354 opened 4 months ago

haffi96 commented 3 months ago

https://developers.printify.com/#image-positioning

I guess we need an edit mode, which allows users to drag and drop.

We'd have to then keep track of the position based on the x - y axis which printify is able to print with

Bilalm354 commented 3 months ago

Yep the way I imagine it is

This could be done by creating our own functionality of all of this or reusing an image editor we can find online. We could also add text etc via the image editor.

We could use something like these for resizing

haffi96 commented 3 months ago

so in the edit mode

we need an empty variant with an overlay image which can be dragged? cause atm the its all one image right?

haffi96 commented 3 months ago

also theres

framer motion and dnd-kit that do drag and drop stuff. Can use any

https://www.framer.com/motion/examples/#drag https://codesandbox.io/s/dndkit-sortable-image-grid-tjy09b?file=/src/App.jsx