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

ElementGuidelines drawn from and to the other elements? #120

Closed
adityakrshnn opened this issue Dec 10, 2019 · 4 comments
Closed

ElementGuidelines drawn from and to the other elements? #120

adityakrshnn opened this issue Dec 10, 2019 · 4 comments

Comments

@adityakrshnn
Copy link

Hi,
Is there any way to draw elementGuidelines from the source / target elements. I have attached desired behaviour below.
ezgif-5-1e40280702f7

@daybrush daybrush added this to the 0.13.0 milestone Dec 10, 2019
@daybrush daybrush added the WIP label Dec 10, 2019
@daybrush
Copy link
Owner

daybrush commented Dec 11, 2019

@adityakrshnn

Maybe it will be released like this.

tell me if it's awkward.

스크린샷 2019-12-11 오전 11 58 33

@adityakrshnn
Copy link
Author

Looks good. You can try to put in specific classes to make them customizable to the user's needs.

@daybrush
Copy link
Owner

daybrush commented Dec 11, 2019

@adityakrshnn

Thank you :). Maybe className is moveable-dashed.
I will release tomorrow.

.moveable-line{
	position: absolute;
	width: 1px;
	height: 1px;
	background: #4af;
	transform-origin: 0px 0.5px;
}
.moveable-line.moveable-dashed{
    box-sizing: border-box;
    background: transparent;
}
.moveable-line.moveable-dashed.moveable-horizontal{
    border-top: 1px dashed #4af;
}
.moveable-line.moveable-dashed.moveable-vertical{
    border-left: 1px dashed #4af;
}

@daybrush daybrush added complete and removed WIP labels Dec 12, 2019
@daybrush
Copy link
Owner

daybrush commented Dec 12, 2019

@adityakrshnn

Moveable is updated. Check it again.

  • moveable 0.13.0
  • react-moveable 0.16.1
  • preact-moveable 0.15.0
  • ngx-moveable 0.9.0
  • svelte-movable 0.4.0

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

2 participants