@xpadev-net/niconicomments 0.2.49 → 0.2.50

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/README.en.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # [niconicomments](https://xpadev.net/niconicomments/)
2
+
2
3
  [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/xpadev-net/niconicomments/blob/master/LICENSE)
3
4
  [![CodeQL](https://github.com/xpadev-net/niconicomments/actions/workflows/codeql-analysis.yml/badge.svg?branch=master)](https://github.com/xpadev-net/niconicomments/actions/workflows/codeql-analysis.yml)
4
5
  [![TypeDoc](https://github.com/xpadev-net/niconicomments/actions/workflows/typedoc.yml/badge.svg?branch=master)](https://github.com/xpadev-net/niconicomments/actions/workflows/typedoc.yml)
@@ -11,24 +12,29 @@ Github: https://github.com/xpadev-net/niconicomments
11
12
  npm: https://www.npmjs.com/package/@xpadev-net/niconicomments
12
13
 
13
14
  ## For users who use this library for domestic use in Japan
15
+
14
16
  This library may infringe on Dwango's patents depending on how it is used
15
17
  Please carefully review the following applicable patents and case law before using this library with caution.
16
18
  [JP,2006-333851](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-2006-333851/7294651F33633E1EBF3DEC66FAE0ECAD878D19E1829C378FC81D26BBD0A4263B/10/en)
17
19
  [JP,2010-267283](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-4734471/9085C128B7ED7D57F6C2F09D9BE4FCB496E638331DB9EC7ADE1E3A44999A3878/15/en)
18
20
  [JP,2018-202475](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-6526304/D8AF77CFB92D96C785FEECBD690C53E2F9023F1739E7A5BBDAB588E2ECAC5316/15/en)
19
21
  [2018: Case No. Heisei 28 (wa) 38565, Patent Infringement Injunction, etc. Patent Right Civil Litigation](https://www.courts.go.jp/app/files/hanrei_jp/073/088073_hanrei.pdf)
20
- [2022: Heisei 30 (ne) 10077 Appeal for Patent Infringement Injunction, etc. Patent Right Civil Litigation](https://www.courts.go.jp/app/files/hanrei_jp/418/091418_hanrei.pdf)
22
+ [2022: Heisei 30 (ne) 10077 Appeal for Patent Infringement Injunction, etc. Patent Right Civil Litigation](https://www.courts.go.jp/app/files/hanrei_jp/418/091418_hanrei.pdf)
21
23
 
22
24
  ## Installation
25
+
23
26
  ```html
24
27
  <script src="https://cdn.jsdelivr.net/npm/@xpadev-net/niconicomments@latest/dist/bundle.min.js"></script>
25
28
  ```
29
+
26
30
  or
31
+
27
32
  ```
28
33
  npm i @xpadev-net/niconicomments
29
34
  ```
30
35
 
31
36
  ## Examples
37
+
32
38
  ```javascript
33
39
  const canvas = document.getElementById("canvas");
34
40
  const video = document.getElementById("video");
@@ -36,8 +42,12 @@ const req = await fetch("sample.json");
36
42
  const res = await req.json();
37
43
  const niconiComments = new NiconiComments(canvas, res);
38
44
  //If video.ontimeupdate is used, the comments will be choppy due to the small number of calls.
39
- setInterval(() => niconiComments.drawCanvas(Math.floor(video.currentTime * 100)), 10);
45
+ setInterval(
46
+ () => niconiComments.drawCanvas(Math.floor(video.currentTime * 100)),
47
+ 10
48
+ );
40
49
  ```
41
50
 
42
51
  ## Sample
43
- [Sample](https://xpadev-net.github.io/niconicomments/sample/)
52
+
53
+ [Sample](https://xpadev-net.github.io/niconicomments/sample/)
package/README.md CHANGED
@@ -1,34 +1,40 @@
1
1
  # [niconicomments](https://xpadev.net/niconicomments/)
2
+
2
3
  [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/xpadev-net/niconicomments/blob/master/LICENSE)
3
4
  [![CodeQL](https://github.com/xpadev-net/niconicomments/actions/workflows/codeql-analysis.yml/badge.svg?branch=master)](https://github.com/xpadev-net/niconicomments/actions/workflows/codeql-analysis.yml)
4
5
  [![TypeDoc](https://github.com/xpadev-net/niconicomments/actions/workflows/typedoc.yml/badge.svg?branch=master)](https://github.com/xpadev-net/niconicomments/actions/workflows/typedoc.yml)
5
6
 
6
7
  [[English](https://github.com/xpadev-net/niconicomments/blob/develop/README.en.md)]
7
8
 
8
- ニコニコ動画の公式プレイヤー互換の高パフォーマンスなコメント描画ライブラリ
9
+ ニコニコ動画の公式プレイヤー互換の高パフォーマンスなコメント描画ライブラリ
9
10
  High peformance High compatibility comment drawing library
10
11
  Reference: https://xpadev-net.github.io/niconicomments/
11
12
  Github: https://github.com/xpadev-net/niconicomments
12
13
  npm: https://www.npmjs.com/package/@xpadev-net/niconicomments
13
14
 
14
15
  ## [重要]このライブラリを使用される方へ
16
+
15
17
  ニコニコ運営が画面にコメントを流すアドオンを特許侵害だと騒ぎ立てて潰して回っているようです
16
18
  このライブラリ本体は描画部分のみのため特許侵害に当たるとは考えていませんが、ニコニコ動画運営(とその近辺の人)に叩かれる可能性があります
17
- (名前は出しませんがすでにいくつかのOSSに被害が出ています)
19
+ (名前は出しませんがすでにいくつかの OSS に被害が出ています)
18
20
  また、このライブラリを使用するかどうかに関わらず、リアルタイムでコメントを取得、画面を描画、コメントの投稿という一連の流れを実装した場合、ニコニコの特許を侵害する可能性があります
19
21
  詳しくはこちら[ニコニコが保有する特許について](https://github.com/xpadev-net/niconicomments/blob/develop/ABOUT_PATENT.md)を参照してください
20
22
  **※当ライブラリを削除する予定は一切ありません**
21
23
 
22
24
  ## Installation
25
+
23
26
  ```html
24
27
  <script src="https://cdn.jsdelivr.net/npm/@xpadev-net/niconicomments@latest/dist/bundle.min.js"></script>
25
28
  ```
29
+
26
30
  or
31
+
27
32
  ```
28
33
  npm i @xpadev-net/niconicomments
29
34
  ```
30
35
 
31
36
  ## Examples
37
+
32
38
  ```javascript
33
39
  const canvas = document.getElementById("canvas");
34
40
  const video = document.getElementById("video");
@@ -36,8 +42,12 @@ const req = await fetch("sample.json");
36
42
  const res = await req.json();
37
43
  const niconiComments = new NiconiComments(canvas, res);
38
44
  //video.ontimeupdateを使用すると、呼び出し回数の関係でコメントカクつく
39
- setInterval(() => niconiComments.drawCanvas(Math.floor(video.currentTime * 100)), 10);
45
+ setInterval(
46
+ () => niconiComments.drawCanvas(Math.floor(video.currentTime * 100)),
47
+ 10
48
+ );
40
49
  ```
41
50
 
42
51
  ## Sample
43
- [サンプル](https://xpadev-net.github.io/niconicomments/sample/)
52
+
53
+ [サンプル](https://xpadev-net.github.io/niconicomments/sample/)