@xpadev-net/niconicomments 0.2.40 → 0.2.41

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 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/LICENSE_JP CHANGED
@@ -1,11 +1,11 @@
1
- The MIT License
2
- ===============
3
-
4
- Copyright (c) 2021 xpadev https://xpadev.net
5
-
6
- 以下に定める条件に従い、本ソフトウェアおよび関連文書のファイル(以下「ソフトウェア」)の複製を取得するすべての人に対し、ソフトウェアを無制限に扱うことを無償で許可します。これには、ソフトウェアの複製を使用、複写、変更、結合、掲載、頒布、サブライセンス、および/または販売する権利、およびソフトウェアを提供する相手に同じことを許可する権利も無制限に含まれます。
7
-
8
- 上記の著作権表示および本許諾表示を、ソフトウェアのすべての複製または重要な部分に記載するものとします。
9
-
10
- ソフトウェアは「現状のまま」で、明示であるか暗黙であるかを問わず、何らの保証もなく提供されます。ここでいう保証とは、商品性、特定の目的への適合性、および権利非侵害についての保証も含みますが、それに限定されるものではありません。
11
- 作者または著作権者は、契約行為、不法行為、またはそれ以外であろうと、ソフトウェアに起因または関連し、あるいはソフトウェアの使用またはその他の扱いによって生じる一切の請求、損害、その他の義務について何らの責任も負わないものとします。
1
+ The MIT License
2
+ ===============
3
+
4
+ Copyright (c) 2021 xpadev https://xpadev.net
5
+
6
+ 以下に定める条件に従い、本ソフトウェアおよび関連文書のファイル(以下「ソフトウェア」)の複製を取得するすべての人に対し、ソフトウェアを無制限に扱うことを無償で許可します。これには、ソフトウェアの複製を使用、複写、変更、結合、掲載、頒布、サブライセンス、および/または販売する権利、およびソフトウェアを提供する相手に同じことを許可する権利も無制限に含まれます。
7
+
8
+ 上記の著作権表示および本許諾表示を、ソフトウェアのすべての複製または重要な部分に記載するものとします。
9
+
10
+ ソフトウェアは「現状のまま」で、明示であるか暗黙であるかを問わず、何らの保証もなく提供されます。ここでいう保証とは、商品性、特定の目的への適合性、および権利非侵害についての保証も含みますが、それに限定されるものではありません。
11
+ 作者または著作権者は、契約行為、不法行為、またはそれ以外であろうと、ソフトウェアに起因または関連し、あるいはソフトウェアの使用またはその他の扱いによって生じる一切の請求、損害、その他の義務について何らの責任も負わないものとします。
package/README.en.md CHANGED
@@ -1,43 +1,43 @@
1
- # [niconicomments](https://xpadev.net/niconicomments/)
2
- [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/xpadev-net/niconicomments/blob/master/LICENSE)
3
- [![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
- [![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
- [[日本語](https://github.com/xpadev-net/niconicomments/blob/develop/README.md)]
7
-
8
- Comment rendering library that is somewhat compatible with the official Nico Nico Douga player
9
- Reference: https://xpadev-net.github.io/niconicomments/
10
- Github: https://github.com/xpadev-net/niconicomments
11
- npm: https://www.npmjs.com/package/@xpadev-net/niconicomments
12
-
13
- ## For users who use this library for domestic use in Japan
14
- This library may infringe on Dwango's patents depending on how it is used
15
- Please carefully review the following applicable patents and case law before using this library with caution.
16
- [JP,2006-333851](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-2006-333851/7294651F33633E1EBF3DEC66FAE0ECAD878D19E1829C378FC81D26BBD0A4263B/10/en)
17
- [JP,2010-267283](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-4734471/9085C128B7ED7D57F6C2F09D9BE4FCB496E638331DB9EC7ADE1E3A44999A3878/15/en)
18
- [JP,2018-202475](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-6526304/D8AF77CFB92D96C785FEECBD690C53E2F9023F1739E7A5BBDAB588E2ECAC5316/15/en)
19
- [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)
21
-
22
- ## Installation
23
- ```html
24
- <script src="https://cdn.jsdelivr.net/npm/@xpadev-net/niconicomments@latest/dist/bundle.min.js"></script>
25
- ```
26
- or
27
- ```
28
- npm i @xpadev-net/niconicomments
29
- ```
30
-
31
- ## Examples
32
- ```javascript
33
- const canvas = document.getElementById("canvas");
34
- const video = document.getElementById("video");
35
- const req = await fetch("sample.json");
36
- const res = await req.json();
37
- const niconiComments = new NiconiComments(canvas, res);
38
- //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);
40
- ```
41
-
42
- ## Sample
43
- [Sample](https://xpadev-net.github.io/niconicomments/sample/)
1
+ # [niconicomments](https://xpadev.net/niconicomments/)
2
+ [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/xpadev-net/niconicomments/blob/master/LICENSE)
3
+ [![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
+ [![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
+ [[日本語](https://github.com/xpadev-net/niconicomments/blob/develop/README.md)]
7
+
8
+ Comment rendering library that is somewhat compatible with the official Nico Nico Douga player
9
+ Reference: https://xpadev-net.github.io/niconicomments/
10
+ Github: https://github.com/xpadev-net/niconicomments
11
+ npm: https://www.npmjs.com/package/@xpadev-net/niconicomments
12
+
13
+ ## For users who use this library for domestic use in Japan
14
+ This library may infringe on Dwango's patents depending on how it is used
15
+ Please carefully review the following applicable patents and case law before using this library with caution.
16
+ [JP,2006-333851](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-2006-333851/7294651F33633E1EBF3DEC66FAE0ECAD878D19E1829C378FC81D26BBD0A4263B/10/en)
17
+ [JP,2010-267283](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-4734471/9085C128B7ED7D57F6C2F09D9BE4FCB496E638331DB9EC7ADE1E3A44999A3878/15/en)
18
+ [JP,2018-202475](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-6526304/D8AF77CFB92D96C785FEECBD690C53E2F9023F1739E7A5BBDAB588E2ECAC5316/15/en)
19
+ [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)
21
+
22
+ ## Installation
23
+ ```html
24
+ <script src="https://cdn.jsdelivr.net/npm/@xpadev-net/niconicomments@latest/dist/bundle.min.js"></script>
25
+ ```
26
+ or
27
+ ```
28
+ npm i @xpadev-net/niconicomments
29
+ ```
30
+
31
+ ## Examples
32
+ ```javascript
33
+ const canvas = document.getElementById("canvas");
34
+ const video = document.getElementById("video");
35
+ const req = await fetch("sample.json");
36
+ const res = await req.json();
37
+ const niconiComments = new NiconiComments(canvas, res);
38
+ //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);
40
+ ```
41
+
42
+ ## Sample
43
+ [Sample](https://xpadev-net.github.io/niconicomments/sample/)
package/README.md CHANGED
@@ -1,43 +1,43 @@
1
- # [niconicomments](https://xpadev.net/niconicomments/)
2
- [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/xpadev-net/niconicomments/blob/master/LICENSE)
3
- [![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
- [![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
- [[English](https://github.com/xpadev-net/niconicomments/blob/develop/README.en.md)]
7
-
8
- ニコニコ動画の公式プレイヤー互換の高パフォーマンスなコメント描画ライブラリ
9
- High peformance High compatibility comment drawing library
10
- Reference: https://xpadev-net.github.io/niconicomments/
11
- Github: https://github.com/xpadev-net/niconicomments
12
- npm: https://www.npmjs.com/package/@xpadev-net/niconicomments
13
-
14
- ## [重要]このライブラリを使用される方へ
15
- ニコニコ運営が画面にコメントを流すアドオンを特許侵害だと騒ぎ立てて潰して回っているようです
16
- このライブラリ本体は描画部分のみのため特許侵害に当たるとは考えていませんが、ニコニコ動画運営(とその近辺の人)に叩かれる可能性があります
17
- (名前は出しませんがすでにいくつかのOSSに被害が出ています)
18
- また、このライブラリを使用するかどうかに関わらず、リアルタイムでコメントを取得、画面を描画、コメントの投稿という一連の流れを実装した場合、ニコニコの特許を侵害する可能性があります
19
- 詳しくはこちら[ニコニコが保有する特許について](https://github.com/xpadev-net/niconicomments/blob/develop/ABOUT_PATENT.md)を参照してください
20
- **※当ライブラリを削除する予定は一切ありません**
21
-
22
- ## Installation
23
- ```html
24
- <script src="https://cdn.jsdelivr.net/npm/@xpadev-net/niconicomments@latest/dist/bundle.min.js"></script>
25
- ```
26
- or
27
- ```
28
- npm i @xpadev-net/niconicomments
29
- ```
30
-
31
- ## Examples
32
- ```javascript
33
- const canvas = document.getElementById("canvas");
34
- const video = document.getElementById("video");
35
- const req = await fetch("sample.json");
36
- const res = await req.json();
37
- const niconiComments = new NiconiComments(canvas, res);
38
- //video.ontimeupdateを使用すると、呼び出し回数の関係でコメントカクつく
39
- setInterval(() => niconiComments.drawCanvas(Math.floor(video.currentTime * 100)), 10);
40
- ```
41
-
42
- ## Sample
43
- [サンプル](https://xpadev-net.github.io/niconicomments/sample/)
1
+ # [niconicomments](https://xpadev.net/niconicomments/)
2
+ [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/xpadev-net/niconicomments/blob/master/LICENSE)
3
+ [![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
+ [![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
+ [[English](https://github.com/xpadev-net/niconicomments/blob/develop/README.en.md)]
7
+
8
+ ニコニコ動画の公式プレイヤー互換の高パフォーマンスなコメント描画ライブラリ
9
+ High peformance High compatibility comment drawing library
10
+ Reference: https://xpadev-net.github.io/niconicomments/
11
+ Github: https://github.com/xpadev-net/niconicomments
12
+ npm: https://www.npmjs.com/package/@xpadev-net/niconicomments
13
+
14
+ ## [重要]このライブラリを使用される方へ
15
+ ニコニコ運営が画面にコメントを流すアドオンを特許侵害だと騒ぎ立てて潰して回っているようです
16
+ このライブラリ本体は描画部分のみのため特許侵害に当たるとは考えていませんが、ニコニコ動画運営(とその近辺の人)に叩かれる可能性があります
17
+ (名前は出しませんがすでにいくつかのOSSに被害が出ています)
18
+ また、このライブラリを使用するかどうかに関わらず、リアルタイムでコメントを取得、画面を描画、コメントの投稿という一連の流れを実装した場合、ニコニコの特許を侵害する可能性があります
19
+ 詳しくはこちら[ニコニコが保有する特許について](https://github.com/xpadev-net/niconicomments/blob/develop/ABOUT_PATENT.md)を参照してください
20
+ **※当ライブラリを削除する予定は一切ありません**
21
+
22
+ ## Installation
23
+ ```html
24
+ <script src="https://cdn.jsdelivr.net/npm/@xpadev-net/niconicomments@latest/dist/bundle.min.js"></script>
25
+ ```
26
+ or
27
+ ```
28
+ npm i @xpadev-net/niconicomments
29
+ ```
30
+
31
+ ## Examples
32
+ ```javascript
33
+ const canvas = document.getElementById("canvas");
34
+ const video = document.getElementById("video");
35
+ const req = await fetch("sample.json");
36
+ const res = await req.json();
37
+ const niconiComments = new NiconiComments(canvas, res);
38
+ //video.ontimeupdateを使用すると、呼び出し回数の関係でコメントカクつく
39
+ setInterval(() => niconiComments.drawCanvas(Math.floor(video.currentTime * 100)), 10);
40
+ ```
41
+
42
+ ## Sample
43
+ [サンプル](https://xpadev-net.github.io/niconicomments/sample/)