-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Hello,
I would like to have a rotation on the draggable component, but, so far I can't find a way to do this in a easy way. What I do it was to add rotate css property in the createCSSTransform function, but I think this is not a solution. This is the code modified : ` function createCSSTransform(ref) /: Object_/ {
var x = _ref.x;
var y = _ref.y;
// Replace unitless items with px
return _defineProperty({}, (0, _getPrefix.browserPrefixToKey)('transform', _getPrefix2.default), 'rotate(' + x/50 + 'deg) translate(' + x + 'px,' + y + 'px)');
}`
It can be done in another way or you could add this feature?
Please let me know and sorry if is not clear enough.
Regards!
Metadata
Metadata
Assignees
Labels
No labels