@xpadev-net/niconicomments 0.2.17 → 0.2.20

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/dist/bundle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- niconicomments.js v0.2.17
2
+ niconicomments.js v0.2.20
3
3
  (c) 2021 xpadev-net https://xpadev.net
4
4
  Released under the MIT License.
5
5
  */
@@ -27,8 +27,8 @@
27
27
 
28
28
  var isDebug = false;
29
29
  var NiconiComments = (function () {
30
- function NiconiComments(canvas, data, options) {
31
- if (options === void 0) { options = {
30
+ function NiconiComments(canvas, data, initOptions) {
31
+ if (initOptions === void 0) { initOptions = {
32
32
  useLegacy: false,
33
33
  formatted: false,
34
34
  video: null,
@@ -37,9 +37,22 @@
37
37
  showCommentCount: false,
38
38
  drawAllImageOnLoad: false,
39
39
  debug: false,
40
- enableLegacyPiP: false
40
+ enableLegacyPiP: false,
41
+ keepCA: false
41
42
  }; }
42
43
  var _this = this;
44
+ var options = Object.assign({
45
+ useLegacy: false,
46
+ formatted: false,
47
+ video: null,
48
+ showCollision: false,
49
+ showFPS: false,
50
+ showCommentCount: false,
51
+ drawAllImageOnLoad: false,
52
+ debug: false,
53
+ enableLegacyPiP: false,
54
+ keepCA: true
55
+ }, initOptions);
43
56
  isDebug = options.debug;
44
57
  var constructorStart = performance.now();
45
58
  this.canvas = canvas;
@@ -84,11 +97,11 @@
84
97
  this.doubleResizeMaxWidth = {
85
98
  full: {
86
99
  legacy: 3020,
87
- default: 3220
100
+ default: 3550
88
101
  },
89
102
  normal: {
90
103
  legacy: 2540,
91
- default: 2740
104
+ default: 2650
92
105
  }
93
106
  };
94
107
  var parsedData = options.formatted ? data : this.parseData(data);
@@ -97,6 +110,7 @@
97
110
  this.showFPS = options.showFPS;
98
111
  this.showCommentCount = options.showCommentCount;
99
112
  this.enableLegacyPiP = options.enableLegacyPiP;
113
+ this.keepCA = options.keepCA;
100
114
  this.timeline = {};
101
115
  this.nicoScripts = { reverse: [], default: [], replace: [], ban: [] };
102
116
  this.collision_right = {};
@@ -117,7 +131,7 @@
117
131
  }
118
132
  NiconiComments.prototype.parseData = function (data) {
119
133
  var parseDataStart = performance.now();
120
- var data_ = [];
134
+ var data_ = [], userList = [];
121
135
  for (var i = 0; i < data.length; i++) {
122
136
  var val = data[i];
123
137
  if (!val)
@@ -133,7 +147,9 @@
133
147
  "date_usec": value["date_usec"],
134
148
  "owner": !value["user_id"],
135
149
  "premium": value["premium"] === 1,
136
- "mail": []
150
+ "mail": [],
151
+ "user_id": -1,
152
+ "layer": -1
137
153
  };
138
154
  if (value["mail"]) {
139
155
  tmpParam["mail"] = value["mail"].split(/[\s ]/g);
@@ -141,6 +157,14 @@
141
157
  if (value["content"].startsWith("/") && !value["user_id"]) {
142
158
  tmpParam["mail"].push("invisible");
143
159
  }
160
+ var isUserExist = userList.indexOf(value["user_id"]);
161
+ if (isUserExist === -1) {
162
+ tmpParam.user_id = userList.length;
163
+ userList.push(value.user_id);
164
+ }
165
+ else {
166
+ tmpParam.user_id = isUserExist;
167
+ }
144
168
  data_.push(tmpParam);
145
169
  }
146
170
  }
@@ -165,11 +189,14 @@
165
189
  };
166
190
  NiconiComments.prototype.preRendering = function (rawData, drawAll) {
167
191
  var preRenderingStart = performance.now();
192
+ if (this.keepCA) {
193
+ rawData = changeCALayer(rawData);
194
+ }
168
195
  var parsedData = this.getCommentPos(this.getCommentSize(this.getFont(rawData)));
169
196
  this.data = this.sortComment(parsedData);
170
197
  if (drawAll) {
171
198
  for (var i in parsedData) {
172
- this.getTextImage(Number(i));
199
+ this.getTextImage(Number(i), true);
173
200
  }
174
201
  }
175
202
  logger("preRendering complete: ".concat(performance.now() - preRenderingStart, "ms"));
@@ -225,7 +252,7 @@
225
252
  if (!comment || comment.invisible) {
226
253
  continue;
227
254
  }
228
- for (var j = 0; j < 500; j++) {
255
+ for (var j = 0; j < comment.long * 4 / 3 + 100; j++) {
229
256
  if (!this.timeline[comment.vpos + j]) {
230
257
  this.timeline[comment.vpos + j] = [];
231
258
  }
@@ -243,9 +270,7 @@
243
270
  }
244
271
  }
245
272
  if (comment.loc === "naka") {
246
- comment.vpos -= 70;
247
- parsedData[i].vpos -= 70;
248
- var posY = 0, is_break = false, is_change = true, count = 0;
273
+ var posY = 0, is_break = false, is_change = true, count = 0, beforeVpos = Math.round(-240 / ((1680 + comment.width_max) / (comment.long + 125))) - 100;
249
274
  if (1080 < comment.height) {
250
275
  posY = (comment.height - 1080) / -2;
251
276
  }
@@ -253,13 +278,13 @@
253
278
  while (is_change && count < 10) {
254
279
  is_change = false;
255
280
  count++;
256
- for (var j = 0; j < 500; j++) {
281
+ for (var j = beforeVpos; j < comment.long; j++) {
257
282
  var vpos = comment.vpos + j;
258
- var left_pos = 1920 - ((1920 + comment.width_max) * j / 500);
283
+ var left_pos = 1680 - (1680 + comment.width_max) / (comment.long + 125) * j;
259
284
  if (left_pos + comment.width_max >= 1880) {
260
285
  for (var k in this.collision_right[vpos]) {
261
286
  var l = this.collision_right[vpos][k];
262
- if ((posY < data[l].posY + data[l].height && posY + comment.height > data[l].posY) && data[l].owner === comment.owner) {
287
+ if ((posY < data[l].posY + data[l].height && posY + comment.height > data[l].posY) && data[l].owner === comment.owner && data[l].layer === comment.layer) {
263
288
  if (data[l].posY + data[l].height > posY) {
264
289
  posY = data[l].posY + data[l].height;
265
290
  is_change = true;
@@ -283,7 +308,7 @@
283
308
  if (left_pos <= 40) {
284
309
  for (var k in this.collision_left[vpos]) {
285
310
  var l = this.collision_left[vpos][k];
286
- if ((posY < data[l].posY + data[l].height && posY + comment.height > data[l].posY) && data[l].owner === comment.owner) {
311
+ if ((posY < data[l].posY + data[l].height && posY + comment.height > data[l].posY) && data[l].owner === comment.owner && data[l].layer === comment.layer) {
287
312
  if (data[l].posY + data[l].height > posY) {
288
313
  posY = data[l].posY + data[l].height;
289
314
  is_change = true;
@@ -310,9 +335,9 @@
310
335
  }
311
336
  }
312
337
  }
313
- for (var j = 0; j < 500; j++) {
338
+ for (var j = beforeVpos; j < comment.long + 125; j++) {
314
339
  var vpos = comment.vpos + j;
315
- var left_pos = 1920 - ((1920 + comment.width_max) * j / 500);
340
+ var left_pos = 1680 - (1680 + comment.width_max) / (comment.long + 125) * j;
316
341
  arrayPush(this.timeline, vpos, i);
317
342
  if (left_pos + comment.width_max >= 1880) {
318
343
  arrayPush(this.collision_right, vpos, i);
@@ -334,11 +359,11 @@
334
359
  while (is_change && count < 10) {
335
360
  is_change = false;
336
361
  count++;
337
- for (var j = 0; j < 300; j++) {
362
+ for (var j = 0; j < comment.long; j++) {
338
363
  var vpos = comment.vpos + j;
339
364
  for (var k in collision[vpos]) {
340
365
  var l = collision[vpos][k];
341
- if ((posY < data[l].posY + data[l].height && posY + comment.height > data[l].posY) && data[l].owner === comment.owner) {
366
+ if ((posY < data[l].posY + data[l].height && posY + comment.height > data[l].posY) && data[l].owner === comment.owner && data[l].layer === comment.layer) {
342
367
  if (data[l].posY + data[l].height > posY) {
343
368
  posY = data[l].posY + data[l].height;
344
369
  is_change = true;
@@ -449,6 +474,7 @@
449
474
  }
450
475
  else if (comment.loc !== "naka" && comment.tateresized && (comment.full && width_max > 2120 || !comment.full && width_max > 1440) && !comment.yokoResized) {
451
476
  comment.fontSize = this.fontSize[comment.size].default;
477
+ comment.lineHeight = this.lineHeight[comment.size].default * 1.05;
452
478
  comment.resized = true;
453
479
  comment.yokoResized = true;
454
480
  this.context.font = parseFont(comment.font, comment.fontSize, this.useLegacy);
@@ -496,10 +522,10 @@
496
522
  var posX = (1920 - comment.width_max) / 2, posY = comment.posY;
497
523
  if (comment.loc === "naka") {
498
524
  if (reverse) {
499
- posX = ((1920 + comment.width_max) * (vpos - comment.vpos) / 500) - comment.width_max;
525
+ posX = 240 + (1680 + comment.width_max) / (comment.long + 125) * (vpos - comment.vpos + 100) - comment.width_max;
500
526
  }
501
527
  else {
502
- posX = 1920 - ((1920 + comment.width_max) * (vpos - comment.vpos) / 500);
528
+ posX = 1680 - (1680 + comment.width_max) / (comment.long + 125) * (vpos - comment.vpos + 100);
503
529
  }
504
530
  }
505
531
  else if (comment.loc === "shita") {
@@ -519,8 +545,9 @@
519
545
  }
520
546
  }
521
547
  };
522
- NiconiComments.prototype.getTextImage = function (i) {
548
+ NiconiComments.prototype.getTextImage = function (i, preRendering) {
523
549
  var _this = this;
550
+ if (preRendering === void 0) { preRendering = false; }
524
551
  var value = this.data[i];
525
552
  if (!value || value.invisible)
526
553
  return;
@@ -553,6 +580,8 @@
553
580
  context.fillText(line, 0, posY);
554
581
  }
555
582
  this.data[i].image = image;
583
+ if (preRendering)
584
+ return;
556
585
  setTimeout(function () {
557
586
  if (_this.data[i].image)
558
587
  delete _this.data[i].image;
@@ -838,13 +867,11 @@
838
867
  if (!data.font) {
839
868
  data.font = font;
840
869
  }
841
- if (data.loc !== "naka") {
842
- if (!data.long) {
843
- data.long = 300;
844
- }
845
- else {
846
- data.long = Math.floor(data.long * 100);
847
- }
870
+ if (!data.long) {
871
+ data.long = 300;
872
+ }
873
+ else {
874
+ data.long = Math.floor(Number(data.long) * 100);
848
875
  }
849
876
  return _assign(_assign({}, comment), data);
850
877
  };
@@ -974,6 +1001,35 @@
974
1001
  if (isDebug)
975
1002
  console.debug(msg);
976
1003
  };
1004
+ var changeCALayer = function (rawData) {
1005
+ var userList = {};
1006
+ var data = [], index = [];
1007
+ for (var i in rawData) {
1008
+ var value = rawData[i];
1009
+ if (value.user_id === undefined || value.user_id === -1)
1010
+ continue;
1011
+ if (userList[value.user_id] === undefined)
1012
+ userList[value.user_id] = 0;
1013
+ if (value.mail.indexOf("ca") > -1 || value.mail.indexOf("patissier") > -1 || value.mail.indexOf("ender") > -1) {
1014
+ userList[value.user_id] += 5;
1015
+ }
1016
+ if ((value.content.match(/\r\n|\n|\r/g) || []).length > 2) {
1017
+ userList[value.user_id] += 1;
1018
+ }
1019
+ var key = "".concat(value.content, "@@").concat(Array.from(new Set(value.mail.sort())).filter(function (e) { return !e.match(/@[\d.]+|184|device:.+|patissier|ca/); }).join(""), "@@").concat(Math.floor(value.vpos * 10));
1020
+ if (index.indexOf(key) === -1) {
1021
+ index.push(key);
1022
+ data.push(value);
1023
+ }
1024
+ }
1025
+ for (var i in data) {
1026
+ var value = data[i];
1027
+ if (userList[value.user_id] !== undefined && userList[value.user_id] >= 10) {
1028
+ value.layer = value.user_id;
1029
+ }
1030
+ }
1031
+ return data;
1032
+ };
977
1033
 
978
1034
  return NiconiComments;
979
1035
 
@@ -1,13 +1,14 @@
1
1
  declare type InitOptions = {
2
- useLegacy: boolean;
3
- formatted: boolean;
4
- video: HTMLVideoElement | null;
5
- showCollision: boolean;
6
- showFPS: boolean;
7
- showCommentCount: boolean;
8
- drawAllImageOnLoad: boolean;
9
- debug: boolean;
10
- enableLegacyPiP: boolean;
2
+ useLegacy?: boolean;
3
+ formatted?: boolean;
4
+ video?: HTMLVideoElement | null;
5
+ showCollision?: boolean;
6
+ showFPS?: boolean;
7
+ showCommentCount?: boolean;
8
+ drawAllImageOnLoad?: boolean;
9
+ debug?: boolean;
10
+ enableLegacyPiP?: boolean;
11
+ keepCA?: boolean;
11
12
  };
12
13
  declare type rawApiResponse = {
13
14
  [key: string]: apiPing | apiThread | apiLeaf | apiGlobalNumRes | apiChat;
@@ -53,6 +54,8 @@ declare type formattedComment = {
53
54
  "owner": boolean;
54
55
  "premium": boolean;
55
56
  "mail": string[];
57
+ "user_id": number;
58
+ "layer": number;
56
59
  };
57
60
  declare type formattedCommentWithFont = formattedComment & {
58
61
  "loc": string;
@@ -99,6 +102,7 @@ declare class NiconiComments {
99
102
  showFPS: boolean;
100
103
  showCommentCount: boolean;
101
104
  enableLegacyPiP: boolean;
105
+ private keepCA;
102
106
  private data;
103
107
  private timeline;
104
108
  private nicoScripts;
@@ -110,7 +114,7 @@ declare class NiconiComments {
110
114
  private useLegacy;
111
115
  private fpsCount;
112
116
  private fps;
113
- constructor(canvas: HTMLCanvasElement, data: (rawApiResponse | formattedComment)[], options?: InitOptions);
117
+ constructor(canvas: HTMLCanvasElement, data: (rawApiResponse | formattedComment)[], initOptions?: InitOptions);
114
118
  parseData(data: rawApiResponse[]): formattedComment[];
115
119
  preRendering(rawData: formattedComment[], drawAll: boolean): void;
116
120
  getFont(parsedData: formattedComment[]): formattedCommentWithFont[];
@@ -131,7 +135,7 @@ declare class NiconiComments {
131
135
  lineHeight: number | undefined;
132
136
  }): measureTextResult;
133
137
  drawText(comment: parsedComment, vpos: number): void;
134
- getTextImage(i: number): void;
138
+ getTextImage(i: number, preRendering?: boolean): void;
135
139
  parseCommand(comment: any): {
136
140
  loc: string | null;
137
141
  size: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,aAAK,WAAW,GAAG;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,eAAe,EAAE,OAAO,CAAA;CAC3B,CAAA;AACD,aAAK,cAAc,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,eAAe,GAAG,OAAO,CAAA;CAC3E,CAAA;AACD,aAAK,OAAO,GAAG;IACX,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AACD,aAAK,SAAS,GAAG;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AACD,aAAK,OAAO,GAAG;IACX,QAAQ,EA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gGD,SAAS,CAAC,IAAI,EAAE,cAAc,EAAE;IAyDhC,YAAY,CAAC,OAAO,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,OAAO;IAkB1D,OAAO,CAAC,UAAU,EAAE,gBAAgB,EAAE,GAAG,wBAAwB,EAAE;IAgBnE,cAAc,CAAC,UAAU,EAAE,wBAAwB,EAAE,GAAG,wBAAwB,EAAE;IAkClF,aAAa,CAAC,UAAU,EAAE,aAAa,EAAE;IA4JzC,WAAW,CAAC,UAAU,EAAE,aAAa,EAAE;IAwBvC,WAAW,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,GAAG,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,CAAC;QAAC,WAAW,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;KAAE,GAAG,iBAAiB;IAiF1O,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM;IA+C7C,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,YAAY,GAAE,OAAe;IAyCrD,YAAY,CAAC,OAAO,EAAE,GAAG;;;;;;;;;;;;IAiJzB,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,GAAG,wBAAwB;IA8J9E,UAAU,CAAC,IAAI,EAAE,MAAM;IA4DvB,KAAK;CAGR;AAuHD,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpadev-net/niconicomments",
3
- "version": "0.2.17",
3
+ "version": "0.2.20",
4
4
  "description": "NiconiComments is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/dts/main.d.ts",