Skip to content

Commit

Permalink
completed the list of all orientation property values from 1->8
Browse files Browse the repository at this point in the history
  • Loading branch information
mis94 committed Jan 20, 2018
1 parent a8d609c commit ac16c10
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ class Image extends Component {
case 8:
rotationTransformValue = "rotate(270deg)";
break;
case 2:
rotationTransformValue = "rotateY(180deg)";
break;
case 4:
rotationTransformValue = "rotate(180deg) rotateY(180deg)";
break;
case 5:
rotationTransformValue = "rotate(270deg) rotateY(180deg)";
break;
case 7:
rotationTransformValue = "rotate(90deg) rotateY(180deg)";
break;
}
if (this.props.item.isSelected){
var ratio = (this.props.item.scaletwidth / this.props.height);
Expand Down

0 comments on commit ac16c10

Please sign in to comment.