When we are trying to rotate single page using setCustomImageRotationAngle() method, it is working fine but after when we trying to get current angle, it is not giving correct angle value (it is giving us 0 value always but it suppose to give us 90 value)
Below is the code
Code: Select all
let FocusedIndexvalue; // Type: number
FocusedIndexvalue = imageViewer.get_FocusedIndex();
let ImageRotationAngle = imageViewer.get_ImageRotationAngle();
console.log(ImageRotationAngle); // This suppose to be latest value (eg : 90)
let test = ImageRotationAngle + 90;
console.log(test);
imageViewer.setCustomImageRotationAngle(FocusedIndexvalue, test);
imageViewer.set_FocusedIndex(FocusedIndexvalue);
Thanks
Jwalit Katira