open-index/open-npm huggingface dataset:
npm package: @sl-theia/full-screen
Description: full-screen
Latest version: 1.1.3

# fullScreen

根据 style mode 用于缩放屏幕比例

## 安装

```sh
npm install @sl-theia/full-screen
```

## 基本用法

```tsx
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, 会进行重新计算缩放比例

```js
setSyle({ width: 800, height: 600 })
```