Skip to content

Commit

Permalink
typofix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhw2590582 committed May 9, 2019
1 parent 3f33e98 commit 8806781
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 40 deletions.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug.md
Expand Up @@ -11,10 +11,10 @@ about: Report an issue or unexpected behaviour with Artplayer

### Environment

- Browser:
- Version:
- Operating System:
- Version:
- Browser:
- Version:
- Operating System:
- Version:

### Console errors (if any)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -56,13 +56,13 @@

Install with `npm`

```
```bash
$ npm install artplayer
```

Or install with `yarn`

```
```bash
$ yarn add artplayer
```

Expand Down
2 changes: 1 addition & 1 deletion docs/uncompiled/artplayer-plugin-danmuku.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/uncompiled/artplayer.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/artplayer-plugin-backlight/README.md
Expand Up @@ -10,13 +10,13 @@ Backlight plugin for ArtPlayer

Install with `npm`

```
```bash
$ npm install artplayer-plugin-backlight
```

Or install with `yarn`

```
```bash
$ yarn add artplayer-plugin-backlight
```

Expand Down
4 changes: 2 additions & 2 deletions packages/artplayer-plugin-blur/README.md
Expand Up @@ -10,13 +10,13 @@ Blur plugin for ArtPlayer

Install with `npm`

```
```bash
$ npm install artplayer-plugin-blur
```

Or install with `yarn`

```
```bash
$ yarn add artplayer-plugin-blur
```

Expand Down
4 changes: 2 additions & 2 deletions packages/artplayer-plugin-danmuku/README.md
Expand Up @@ -9,13 +9,13 @@ Danmuku plugin for ArtPlayer

Install with `npm`

```
```bash
$ npm install artplayer-plugin-danmuku
```

Or install with `yarn`

```
```bash
$ yarn add artplayer-plugin-danmuku
```

Expand Down
9 changes: 4 additions & 5 deletions packages/artplayer-plugin-danmuku/src/danmuku.js
Expand Up @@ -151,13 +151,12 @@ export default class Danmuku {
});

this.queue
.filter(danmu => {
return (
.filter(
danmu =>
player.currentTime + 0.1 >= danmu.time &&
danmu.time >= player.currentTime - 0.1 &&
danmu.$state === 'wait'
);
})
danmu.$state === 'wait',
)
.forEach(danmu => {
danmu.$ref = getDanmuRef(this.queue);
this.$danmuku.appendChild(danmu.$ref);
Expand Down
4 changes: 1 addition & 3 deletions packages/artplayer-plugin-danmuku/src/getDanmuTop.js
Expand Up @@ -78,9 +78,7 @@ export default function getDanmuTop(ins, danmu) {
const right = playerData.width - left - width;
return { top, left, height, width, right };
})
.sort((prev, next) => {
return prev.top - next.top;
});
.sort((prev, next) => prev.top - next.top);

if (danmus.length === 0) {
return marginTop;
Expand Down
4 changes: 2 additions & 2 deletions packages/artplayer-plugin-gif/README.md
Expand Up @@ -10,13 +10,13 @@ Gif plugin for ArtPlayer, use [gifshot](https://github.com/yahoo/gifshot) as a d

Install with `npm`

```
```bash
$ npm install artplayer-plugin-gif
```

Or install with `yarn`

```
```bash
$ yarn add artplayer-plugin-gif
```

Expand Down
4 changes: 2 additions & 2 deletions packages/artplayer-plugin-playlist/README.md
Expand Up @@ -10,13 +10,13 @@ Playlist plugin for ArtPlayer

Install with `npm`

```
```bash
$ npm install artplayer-plugin-playlist
```

Or install with `yarn`

```
```bash
$ yarn add artplayer-plugin-playlist
```

Expand Down
4 changes: 2 additions & 2 deletions packages/artplayer-react/README.md
Expand Up @@ -10,13 +10,13 @@ React Component for Artplayer, It is recommended to package itself according to

Install with `npm`

```
```bash
$ npm install artplayer-react
```

Or install with `yarn`

```
```bash
$ yarn add artplayer-react
```

Expand Down
4 changes: 2 additions & 2 deletions packages/artplayer-tool-github/README.md
Expand Up @@ -10,13 +10,13 @@ Danmu plugin for ArtPlayer

Install with `npm`

```
```bash
$ npm install artplayer-plugin-github
```

Or install with `yarn`

```
```bash
$ yarn add artplayer-plugin-github
```

Expand Down
4 changes: 2 additions & 2 deletions packages/artplayer-tool-thumbnail/README.md
Expand Up @@ -10,13 +10,13 @@ thumbnail tool for ArtPlayer

Install with `npm`

```
```bash
$ npm install artplayer-tool-thumbnail
```

Or install with `yarn`

```
```bash
$ yarn add artplayer-tool-thumbnail
```

Expand Down
4 changes: 2 additions & 2 deletions packages/artplayer-vue/README.md
Expand Up @@ -10,13 +10,13 @@ Vue Component for Artplayer, It is recommended to package itself according to ac

Install with `npm`

```
```bash
$ npm install artplayer-vue
```

Or install with `yarn`

```
```bash
$ yarn add artplayer-vue
```

Expand Down
1 change: 0 additions & 1 deletion packages/artplayer/README.md
@@ -1,4 +1,3 @@
# ArtPlayer

[README.md](https://github.com/zhw2590582/ArtPlayer)

7 changes: 3 additions & 4 deletions packages/artplayer/src/player/screenshotMix.js
Expand Up @@ -24,8 +24,8 @@ export default function screenshotMix(art, player) {
});

Object.defineProperty(player, 'getScreenshotBlobUrl', {
value: () => {
return new Promise((resolve, reject) => {
value: () =>
new Promise((resolve, reject) => {
try {
const canvas = document.createElement('canvas');
canvas.width = $video.videoWidth;
Expand All @@ -38,8 +38,7 @@ export default function screenshotMix(art, player) {
notice.show(error);
reject(error);
}
});
},
}),
});

Object.defineProperty(player, 'screenshot', {
Expand Down
2 changes: 1 addition & 1 deletion packages/artplayer/types/artplayer.d.ts
Expand Up @@ -173,7 +173,7 @@ export default class Artplayer {
* Custom icon
*/
icons?: {
[propName: string]: string
[propName: string]: string;
};

/**
Expand Down

0 comments on commit 8806781

Please sign in to comment.