1.1.3 • Published 5 months ago

@sl-theia/full-screen v1.1.3

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

fullScreen

根据 style mode 用于缩放屏幕比例

安装

npm install @sl-theia/full-screen

基本用法

import React from "react";
import fullScreen from "@sl-theia/full-screen";
const style = {
  width: 1960,
  height: 1080,
};
export default fullScreen({ style })(() => <div>testPage</div>);

Props

setStyle

重新设置style, 会进行重新计算缩放比例

setSyle({ width: 800, height: 600 })
1.1.3

5 months ago

1.1.2

5 months ago

1.1.1

4 years ago

1.1.0

4 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