moveable icon indicating copy to clipboard operation
moveable copied to clipboard

What demo do you want?

Open daybrush opened this issue 6 years ago • 36 comments

I'm going to make a demo.

https://github.com/daybrush/moveable/blob/master/storybook/README.md

Like as follows:

https://github.com/naver/egjs-infinitegrid

https://naver.github.io/egjs-infinitegrid/storybook/?path=/story/virtual-scroll--gridlayout

Please let me know if there is a demo you want. Feel free to write a comment. I will consider.

daybrush avatar Mar 02 '20 13:03 daybrush

good jobs and thanks daybrush i want to make this effect, can you give me any idea?

QQ1

now i have problem when use two moveables #187 #189

leeboo avatar Mar 03 '20 01:03 leeboo

@daybrush One issue i'm seeing while using react-moveable is how to initialize a non-targeted element with rotation.

It seems like Moveables rotate value initializes at 0 so the calculations are off for an item that is initially rendered with rotation.

Here is an example: https://codesandbox.io/s/quizzical-kowalevski-qi3xk

Try rotating the def element. onResizeEnd, we update the element's rotate value which causes the transforms to be incorrect.

I need to initialize an element with transforms and after being dragged/resized/rotated, I need to update the same state that was used to initially transform the item.... if that makes sense.

So an example that shows how to use Moveable with elements that were previously altered from another session would be helpful.

schester44 avatar Mar 20 '20 14:03 schester44

@daybrush I need a demo using any of svg elements like rect or circle without using frame from scenejs. I tried a basic example and made it happen..The following are some of my issues i have faced

  1. setting x,y of element in onDrag resets the position of mouse pointer to edge of that element..Is there any proper way to drag svg elements ?
  2. Moveable origin sets to left corner of the page. so unable to rotate properly

here is the sanbox link of what i have tried https://codesandbox.io/s/react-moveable-demo-btg9u?file=/src/index.js

satheshrgs avatar Apr 16 '20 19:04 satheshrgs

I want to resize an image to negative width/height and produce mirroring, is that possible?

yojona avatar May 11 '20 00:05 yojona

Demo with more than 1 moveable component :)

spoiler

Resize is working on 2 targets

Naggertooth avatar Jun 02 '20 22:06 Naggertooth

Hey @daybrush, would you have time to make a demo with "scrollable" for "moveable"? I'm trying to combine these 2 examples: https://daybrush.com/selecto/storybook/?path=/story/selecto-with-moveable--select-moveable-targets-in-real-time https://daybrush.com/selecto/storybook/?path=/story/selecto--select-in-the-scroll-area

But I'm having an issue where the element moves really fast when dragged outside of the view (scrolling) and isn't in sync with the mouse cursor anymore. I'll try to reproduce the error in a codesandbox as well, but maybe there's an example already somewhere?

Edit: I'm trying horizontal + vertical scroll. And also, it seems like onScrollGroup is not triggered.

happylinks avatar Jun 03 '20 14:06 happylinks

Please add a demo that describes all kinds of embellishments, such as changing colors, sizes, and the like.

atomoc avatar Jul 09 '20 11:07 atomoc

Please tell me how can I upload the manipulated image from movable?

JayBhuva avatar Aug 21 '20 04:08 JayBhuva

@atomoc

Main demo https://daybrush.com/moveable/

daybrush avatar Aug 21 '20 04:08 daybrush

@happylinks

Scroll With Selecto Demo is fixed.

Other demos are in preparation.

daybrush avatar Aug 21 '20 19:08 daybrush

@daybrush can you please do this (https://daybrush.com/moveable/) this demo in vanila JS

sooryaraj avatar Oct 04 '20 10:10 sooryaraj

good jobs and thanks daybrush i want to make this effect, can you give me any idea?

QQ1

now i have problem when use two moveables #187 #189

@leeboo can you public source code this effect?

alezzigo avatar Nov 10 '20 09:11 alezzigo

@daybrush can you add to your demo the ability to group items using CTRL + G for example?

MiiZZo avatar Nov 25 '20 17:11 MiiZZo

@daybrush How to implement an "Auto-Select" feature, just like the doc's demo

https://daybrush.com/moveable/

the demo code is too complicated to understand

in my own project, I have to click to set the target to the current layer, then start the drag with another mouse down

https://codesandbox.io/s/gifted-poitras-ubs5v

I have changed onClick to onMouseDown, but it still does not work.

littlee avatar Dec 02 '20 15:12 littlee

@MiiZZo Sorry, but that seems a little difficult.

@littlee

here demo: https://daybrush.com/selecto/storybook/?path=/story/selecto-with-moveable--change-the-moveable-targets-by-selecting-it

daybrush avatar Dec 14 '20 10:12 daybrush

need some doc like this😂 image

https://github.com/daybrush/moveable/issues/311#issuecomment-687127613

GreatAuk avatar Jan 07 '21 10:01 GreatAuk

@happylinks

https://daybrush.com/moveable/storybook/?path=/story/support-scroll--use-scrollable

daybrush avatar Jan 07 '21 19:01 daybrush

Can you make a demo of switching targets while dragging, rotating and scaling are enabled?

I seem to have a problem with the targets. They keep copying that changes applied to the other one

My Video 1

IsThatPat avatar Feb 05 '21 05:02 IsThatPat

https://daybrush.com/moveable/

In this demo selecto is used to create new items. Is it possible to create item immediately and trigger resize? So user will see end result with actual content right while dragging new item. For example when adding circle, to see how it will look, I need to mouseup


I solved it myself. I use drag start/drag/end events from selecto to create/update/save new item

iofjuupasli avatar Feb 11 '21 12:02 iofjuupasli

Hi, @iofjuupasli, Do you have a sample with the demo code? So I can understand it better. Thank you very much. :D

IsThatPat avatar Feb 18 '21 09:02 IsThatPat