rotate-component

Canvas rotation with origin support

rotate

Canvas rotation with origin support, expressed in radians or degrees.

$ component install component/rotate
rotate(ctx, { x: 50, y: 50, degrees: 180 });

MIT