tentone / escher.js

2D graphics canvas framework for easier interactive web graphics.
https://tentone.github.io/escher.js/
MIT License
19 stars 6 forks source link

Helpers.rotateTool doesn't work #2

Open dongnanyanhai opened 4 years ago

dongnanyanhai commented 4 years ago
Helpers.rotateTool = function(object)
{
    var tool = new Circle();
    tool.radius = 4;
    tool.layer = object.layer + 1;
    tool.onPointerDrag = function(pointer, viewport, delta)
    {
        object.rotation += delta.x * 1e-3;
    };
    object.add(tool);
};

Does is need to add one line of "tool.draggable = true;"?

tentone commented 2 years ago

Hello

Sorry for the late response. The rotate tools should be draggable yes.

Thanks a lor for reporting this issue.

Cheers