Skip to content

Rotate image #196

@DanFlavius

Description

@DanFlavius

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions