first commit
This commit is contained in:
16
frontend/node_modules/rc-image/es/getFixScaleEleTransPosition.d.ts
generated
vendored
Normal file
16
frontend/node_modules/rc-image/es/getFixScaleEleTransPosition.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Fix positon x,y point when
|
||||
*
|
||||
* Ele width && height < client
|
||||
* - Back origin
|
||||
*
|
||||
* - Ele width | height > clientWidth | clientHeight
|
||||
* - left | top > 0 -> Back 0
|
||||
* - left | top + width | height < clientWidth | clientHeight -> Back left | top + width | height === clientWidth | clientHeight
|
||||
*
|
||||
* Regardless of other
|
||||
*/
|
||||
export default function getFixScaleEleTransPosition(width: number, height: number, left: number, top: number): null | {
|
||||
x: number;
|
||||
y: number;
|
||||
};
|
||||
Reference in New Issue
Block a user