@xpadev-net/niconicomments 0.2.3 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +32 -32
- package/dist/bundle.js +793 -901
- package/package.json +37 -37
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 xpadev-net
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 xpadev-net
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
# [niconicomments](https://xpadev.net/niconicomments/)
|
|
2
|
-
[](https://github.com/xpadev-net/niconicomments/blob/master/LICENSE)
|
|
3
|
-
ニコニコ動画の公式プレイヤーに多少の互換性を持つコメント描画ライブラリです
|
|
4
|
-
This is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.
|
|
5
|
-
Reference: https://xpadev-net.github.io/niconicomments/
|
|
6
|
-
Github: https://github.com/xpadev-net/niconicomments
|
|
7
|
-
npm: https://www.npmjs.com/package/@xpadev-net/niconicomments
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
```html
|
|
11
|
-
<script src="https://cdn.jsdelivr.net/npm/@xpadev-net/niconicomments@latest/dist/bundle.min.js"></script>
|
|
12
|
-
```
|
|
13
|
-
or
|
|
14
|
-
```
|
|
15
|
-
npm i @xpadev-net/niconicomments
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Examples
|
|
19
|
-
```javascript
|
|
20
|
-
const canvas = document.getElementById("canvas");
|
|
21
|
-
const video = document.getElementById("video");
|
|
22
|
-
const req = await fetch("sample.json");
|
|
23
|
-
const res = await req.json();
|
|
24
|
-
const niconiComments = new NiconiComments(canvas, res);
|
|
25
|
-
//video.ontimeupdateを使用すると、呼び出し回数の関係でコメントカクつく
|
|
26
|
-
setInterval(() => niconiComments.drawCanvas(Math.floor(video.currentTime * 100)), 10);
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Sample
|
|
30
|
-
[レッツゴー!陰陽師](https://xpadev.net/niconicomments/sample.html)
|
|
31
|
-
[レッツゴー!陰陽師(CodePen)](https://codepen.io/xpadev-net/pen/mdBdQmX)
|
|
32
|
-
[ニコニコ動画流星群](https://xpadev.net/niconicomments/ryuuseigun.html)
|
|
1
|
+
# [niconicomments](https://xpadev.net/niconicomments/)
|
|
2
|
+
[](https://github.com/xpadev-net/niconicomments/blob/master/LICENSE)
|
|
3
|
+
ニコニコ動画の公式プレイヤーに多少の互換性を持つコメント描画ライブラリです
|
|
4
|
+
This is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.
|
|
5
|
+
Reference: https://xpadev-net.github.io/niconicomments/
|
|
6
|
+
Github: https://github.com/xpadev-net/niconicomments
|
|
7
|
+
npm: https://www.npmjs.com/package/@xpadev-net/niconicomments
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
```html
|
|
11
|
+
<script src="https://cdn.jsdelivr.net/npm/@xpadev-net/niconicomments@latest/dist/bundle.min.js"></script>
|
|
12
|
+
```
|
|
13
|
+
or
|
|
14
|
+
```
|
|
15
|
+
npm i @xpadev-net/niconicomments
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
```javascript
|
|
20
|
+
const canvas = document.getElementById("canvas");
|
|
21
|
+
const video = document.getElementById("video");
|
|
22
|
+
const req = await fetch("sample.json");
|
|
23
|
+
const res = await req.json();
|
|
24
|
+
const niconiComments = new NiconiComments(canvas, res);
|
|
25
|
+
//video.ontimeupdateを使用すると、呼び出し回数の関係でコメントカクつく
|
|
26
|
+
setInterval(() => niconiComments.drawCanvas(Math.floor(video.currentTime * 100)), 10);
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Sample
|
|
30
|
+
[レッツゴー!陰陽師](https://xpadev.net/niconicomments/sample.html)
|
|
31
|
+
[レッツゴー!陰陽師(CodePen)](https://codepen.io/xpadev-net/pen/mdBdQmX)
|
|
32
|
+
[ニコニコ動画流星群](https://xpadev.net/niconicomments/ryuuseigun.html)
|