All files / lib/models DOC_ORIENTATION.ts

100% Statements 12/12
100% Branches 2/2
100% Functions 1/1
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                                  1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x    
/**
 * EXIF tag standard reference
 *
 * Tag Name: Orientation
 * Tag ID: 0x0112
 * Writable: int16u
 * Group: IFD0
 * Values:
 1 = Horizontal (normal)
 2 = Mirror horizontal
 3 = Rotate 180
 4 = Mirror vertical
 5 = Mirror horizontal and rotate 270 CW
 6 = Rotate 90 CW
 7 = Mirror horizontal and rotate 90 CW
 8 = Rotate 270 CW
 */
export enum DOC_ORIENTATION {
    Up = 1, //Horizontal (normal)
    Down = 3, //Rotate 180
    Right = 6, //Rotate 90 CW
    Left = 8, //Rotate 270 CW
    UpMirrored = 2, //Mirror horizontal
    DownMirrored = 4, //Mirror vertical
    LeftMirrored = 5, //Mirror horizontal and rotate 270 CW
    RightMirrored = 7, //Mirror horizontal and rotate 90 CW
    Default = 0,
    NotJpeg = -1,
    NotDefined = -2,
}