(the author: zhang m, the writing time: on February 11, 2019)
Definition: let the elements according to the origin of object to zoom in,
Three kinds of usage
1. Scale (x, y) elements in the horizontal and vertical direction at the same time scaling,
3. The scale (x) elements in the horizontal direction only scaling,
4. The scale (y) elements in the vertical direction only scaling,
Note: the default value is 1 scale function, narrowing the range of values between 0.01 ~ 0.99, and zoom range is equal to or greater than 1.01 can,
The following code:
CodePudding user response:
CodePudding user response:
Try this: https://bengtian.club/index.php/archives/83.html