yeungmy-adaption

1.0.1 • Public • Published

This is the relevant processing for screen adaptation

remHandle

explain

  • @description The page uses REM processing
  • @date 2022/9/30 11:15
  • @param win {any} window object
  • @param base_size {number} set body font-size
  • @param options
    • options: {
      • max_width: number, // The maximum width of the adaptation
      • zoom_in_width: number, //The base width of the design, Beyond this boundary, amplification occurs
      • zoom_out_width: number,//Beyond this boundary, shrinkage occurs
      • min_width: number//Minimum width for adaptation
      • }
  • ps: Keep base_size between zoom_in_width and zoom_out_width
  • Greater than max_width or less than min_width will not change

remToPx

explain

  • @description Rem to PX in current body font-size
  • @date 2022/9/30 15:19
  • @param remNum {number} rem value

Dependents (0)

Package Sidebar

Install

npm i yeungmy-adaption

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

2.88 kB

Total Files

3

Last publish

Collaborators

  • yeungmy_id_007