ShukantPal/pixi-essentials

[Transformer]: Disabling Rotation is broken in v3

Opened this issue · 2 comments

When turning off rotation, the rotation handle is still visible but at the global position [0,0]. I can still rotate the object by click-dragging it.

bug

Can be mitigated by explicitly setting the enabledHandles after the Transformer is constructed:

const transformer = app.stage.addChild(
	new Transformer({
		group: [circle],
		boxScalingEnabled: true,
		rotateEnabled: false,
		enabledHandles: [
			'bottomLeft', 'bottomRight', 'topLeft', 'topRight',
		]
	}),
);

transformer.enabledHandles = [
	'bottomLeft', 'bottomRight', 'topLeft', 'topRight',
];

Same issue