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

What demo do you want? #190

Closed
daybrush opened this issue Mar 2, 2020 · 36 comments
Closed

What demo do you want? #190

daybrush opened this issue Mar 2, 2020 · 36 comments
Milestone

Comments

@daybrush
Copy link
Owner

daybrush commented Mar 2, 2020

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.

@leeboo
Copy link

leeboo commented Mar 3, 2020

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

@daybrush daybrush added this to the 1.0.0 milestone Mar 4, 2020
@schester44
Copy link

schester44 commented Mar 20, 2020

@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.

@satheshrgs
Copy link

@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

@yojona
Copy link
Contributor

yojona commented May 11, 2020

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

@Naggertooth
Copy link

Demo with more than 1 moveable component :)

spoiler

Resize is working on 2 targets

@happylinks
Copy link

happylinks commented Jun 3, 2020

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.

@atomoc
Copy link

atomoc commented Jul 9, 2020

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

@JayBhuva
Copy link

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

@daybrush
Copy link
Owner Author

@atomoc

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

@daybrush
Copy link
Owner Author

@happylinks

Scroll With Selecto Demo is fixed.

Other demos are in preparation.

@sooryaraj
Copy link

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

@alezzigo
Copy link

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?

@MiiZZo
Copy link

MiiZZo commented Nov 25, 2020

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

@littlee
Copy link

littlee commented Dec 2, 2020

@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.

@daybrush
Copy link
Owner Author

@alezzigo alezzigo mentioned this issue Jan 6, 2021
5 tasks
@GreatAuk
Copy link

GreatAuk commented Jan 7, 2021

need some doc like this😂
image

#311 (comment)

@daybrush
Copy link
Owner Author

daybrush commented Jan 7, 2021

@ItsNotPat
Copy link

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

@iofjuupasli
Copy link

iofjuupasli commented Feb 11, 2021

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

@ItsNotPat
Copy link

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

@daybrush
Copy link
Owner Author

@ItsNotPat

https://github.com/daybrush/scena/tree/master/packages/react-editor/src/Editor

@DavidM42
Copy link

A demo implementing something like this draggable shelf type component

@satheshrgs
Copy link

@daybrush Is it possible to show a border using moveable / selecto when hovering on a selectable target ? Or is there any possible way using CustomAbles ?

Example:
image

@DerrykBoyd
Copy link

@daybrush would it be possible to add customClipPath to the clippable examples? I wasn't able to get that working on my project.

@iCloudys
Copy link

iCloudys commented Dec 6, 2021

There are multiple 'moveable' in a page, which are isolated from each other and can only be active within their own containers

图片

@chwan97
Copy link

chwan97 commented Jan 13, 2022

There are multiple 'moveable' in a page, which are isolated from each other and can only be active within their own containers

图片

hey, Did you achieve the effect in this picture?

@chwan97
Copy link

chwan97 commented Jan 13, 2022

iCloudys

老哥,最后实现这个效果了吗,我这总跳到左上角,然后才正常

@iCloudys
Copy link

iCloudys

老哥,最后实现这个效果了吗,我这总跳到左上角,然后才正常

我自己撸了一个差不多的,核心部分已经弄完,增强功能还在开发,暂时还无法放出来。

@Ain477
Copy link

Ain477 commented Feb 11, 2022

@atomoc

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

How can we add the delete button?

@jeffceriello
Copy link

Hi, is there a react demo which includes drag, resize, rotate and snappable bounds within a parent square container?

I am struggling with the rotate. When I start rotating the target jumps to the top left. Then when I drag or resize after rotate the target loses the rotation.

Any help is hugely appreciated..! Thanks

@iCloudys
Copy link

There are multiple 'moveable' in a page, which are isolated from each other and can only be active within their own containers

图片

QQ20220221-161556.mp4

@daybrush
Copy link
Owner Author

daybrush commented Mar 12, 2022

@iCloudys

Use individualGroupable option to true (default: false)

@daybrush daybrush unpinned this issue Mar 13, 2022
@acabreragnz
Copy link

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?

@daybrush is there a way with the current API to show the non-clipped section with some opacity (like in the leeboo example)?

Something like this:
Screenshot from 2022-03-21 13-31-00

@jtr-dev
Copy link

jtr-dev commented Jun 17, 2022

Hello, thanks so much for maintaining these packages. It's amazing to find such a resource.

I'd like to ask how we could go about creating a demo for dragging at the bottom of a page so that it:

  1. Scrolls down while dragging
  2. Persists that state to moveable and selecto

Thanks!

@RachelBra
Copy link

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

@daybrush how is that possible ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests