1.0.6 • Published 2 years ago

nami-adaptor v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago