Detalhes do pacote

rotate-component

tjholowaychuk1.1kMIT1.0.0

Canvas rotation with origin support

canvas, rotate, rotation

readme (leia-me)

rotate

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

Installation

$ component install component/rotate

API

rotate(ctx, options)

rotate(ctx, { x: 50, y: 50, degrees: 180 });

License

MIT