mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 18:41:20 -08:00
update danmuku.js
This commit is contained in:
1 parent
3fe822253a
commit
b53deb5ad8
3 files changed
+7
-3
No files matched your search
@@ -275,6 +275,7 @@ export default class Danmuku {
|
||||
danmu.$state = 'wait';
|
||||
danmu.$ref.dataset.state = 'wait';
|
||||
danmu.$ref.style.border = 'none';
|
||||
danmu.$ref.style.visibility = 'hidden';
|
||||
danmu.$ref.style.left = `${playerWidth}px`;
|
||||
danmu.$ref.style.marginLeft = '0px';
|
||||
danmu.$ref.style.transform = 'translateX(0px) translateY(0px) translateZ(0px)';
|
||||
@@ -291,8 +292,9 @@ export default class Danmuku {
|
||||
)
|
||||
.forEach((danmu) => {
|
||||
danmu.$ref = this.getDanmuRef(this.queue);
|
||||
danmu.$ref.__danmu__ = danmu;
|
||||
this.$danmuku.appendChild(danmu.$ref);
|
||||
danmu.$ref.__danmu__ = danmu;
|
||||
danmu.$ref.style.visibility = 'visible';
|
||||
danmu.$ref.style.opacity = this.option.opacity;
|
||||
danmu.$ref.style.fontSize = `${this.option.fontSize}px`;
|
||||
danmu.$ref.innerText = danmu.text;
|
||||
|
||||
Reference in new issue
Block a user