Transform

Transform tool allows flipping and vertical/horizontal rotation/skewing of photo.

var pixie = new Pixie({
    onLoad: function() {
        pixie.tools.transform.rotateLeft();
    }
});

Methods

rotateLeft

Rotate canvas left by 90 degrees.

rotateLeft(): void

rotateRight

Rotate canvas right by 90 degrees.

rotateRight(): void

straighten

Straighten canvas by specified number of degrees.

straighten(degrees: number): void

flip

Flip canvas horizontally or vertically.

flip(direction: "horizontal" | "vertical"): void