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

Expose Offset to DateTime conversion #124

Closed
TruFelix opened this issue Jul 2, 2022 · 2 comments
Closed

Expose Offset to DateTime conversion #124

TruFelix opened this issue Jul 2, 2022 · 2 comments
Assignees
Labels
T: Feature Type: :tada: New Features

Comments

@TruFelix
Copy link

TruFelix commented Jul 2, 2022

At the moment the functionality to convert a Offset to the appropriate DateTime when dragging Events (using PartDayDraggableEvent) is not exposed, _DragInfos is private. It would be beneficial to expose this functionality, to allow for a better customization and handling custom drag'n'drop

Possible Solution:
It would be enough to just expose the _DragInfos class, by doing so, you could just call DragInfos.resolveOffset(...) inside of a custom Draggable. Also it would be great, to have the possibility to specify, which DragInfos instance should be used to be able to call this functionality from another subtree.

@TruFelix TruFelix added the T: Feature Type: :tada: New Features label Jul 2, 2022
@TruFelix TruFelix changed the title Expose Offset to DateTime calculation Expose Offset to DateTime conversion Jul 2, 2022
@JonasWanke JonasWanke self-assigned this Aug 19, 2022
@JonasWanke
Copy link
Owner

JonasWanke commented Aug 19, 2022

I've added this as part of v1.0.0-alpha.9, see the updated README section about Drag and Drop. In addition, you can manually resolve offsets using geometryKey.currentState!.resolveOffset(globalOffset).

@TruFelix
Copy link
Author

Cool! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Feature Type: :tada: New Features
Projects
None yet
Development

No branches or pull requests

2 participants