chore: Update package.json to set "private" flag to true

This commit is contained in:
Harvey Zack committed 2024-05-26 20:29:25 +08:00
1 parent c08798fb05
commit 12b1c1d347
84 files changed
+1745 -1728

No files matched your search

@@ -359,14 +359,6 @@ class Danmuku {
});
// 弹幕文本为空则直接忽略
if (!danmu.text.trim()) return this;
// 弹幕模式只能是 0, 1, 2
if (![
0,
1,
2
].includes(danmu.mode)) return this;
// 自定义弹幕过滤函数
if (!this.option.filter(danmu)) return this;
// 设置弹幕时间,如果没有则默认为当前时间加 0.5 秒
if (danmu.time) danmu.time = clamp(danmu.time, 0, Infinity);
else danmu.time = this.art.currentTime + 0.5;
@@ -378,6 +370,14 @@ class Danmuku {
if (danmu.escape === undefined) danmu.escape = true;
// 设置弹幕颜色,如果没有则默认为全局配置
if (danmu.color === undefined) danmu.color = this.option.color;
// 弹幕模式只能是 0, 1, 2
if (![
0,
1,
2
].includes(danmu.mode)) return this;
// 自定义弹幕过滤函数
if (!this.option.filter(danmu)) return this;
// 添加到实际弹幕队列
this.queue.push({
...danmu,