xy 3 years ago
parent 50c6034ba1
commit 19347664af

@ -8,7 +8,7 @@ const scale = {
// * 设计稿尺寸(px) // * 设计稿尺寸(px)
const baseWidth = 1920 const baseWidth = 1920
const baseHeight = 1440 const baseHeight = 1080
// * 需保持的比例(默认1.77778) // * 需保持的比例(默认1.77778)
const baseProportion = parseFloat((baseWidth / baseHeight).toFixed(5)) const baseProportion = parseFloat((baseWidth / baseHeight).toFixed(5))

Loading…
Cancel
Save