1.0.6 • Published 2 years ago

bigscreen-js v1.0.6

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

bigscreen-js

Description

Large screen adaptation scheme

Install

npm install bigscreen-js

Usage

  • import
import BigScreen from "bigscreen-js";
const bs = new BigScreen({
    el: "#app",
    baseWidth: 1920,
    baseHeight: 1080,
});
  • require
let BigScreen = require("bigscreen-js").default;
const bs = new BigScreen({
    el: "#app",
    baseWidth: 1920,
    baseHeight: 1080
});

options

{
    el: "#app", // dom节点
    baseWidth: 1920, // 设计稿宽度
    baseHeight: 1080, // 设计稿高度
    useZoom: false, // 使用zoom模式缩放
}
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago