In the rotate method, the width and height will be smaller then 1, so the _fit method is called.
After this method, the scale will be set to 10.
When the rotate method is done, the _zoom method is called.
In this method: the factor will be multiplied by 10 again.
This will result in a scale of 100.
This leads to unexpected results.
I expect the scale to be 10, as specified.
When the guillotine is initialized with the init which contains 'scale' and 'angle', it is possible that te scale is multiplied:
Example init data:
Wrapper size: 750px * 750px Width: 0.1 Height: 0.1
In the rotate method, the width and height will be smaller then 1, so the _fit method is called. After this method, the scale will be set to 10.
When the rotate method is done, the _zoom method is called. In this method: the factor will be multiplied by 10 again. This will result in a scale of 100.
This leads to unexpected results. I expect the scale to be 10, as specified.