escher.js icon indicating copy to clipboard operation
escher.js copied to clipboard

Helpers.rotateTool doesn't work

Open dongnanyanhai opened this issue 4 years ago • 1 comments

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;"?

dongnanyanhai avatar Aug 26 '20 23:08 dongnanyanhai

Hello

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

Thanks a lor for reporting this issue.

Cheers

tentone avatar Sep 17 '22 13:09 tentone