mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
18 lines
555 B
TypeScript
18 lines
555 B
TypeScript
import { Parser, type RawNode } from '../index.js';
|
|
import MusicPlayButton from './MusicPlayButton.js';
|
|
import { YTNode } from '../helpers.js';
|
|
|
|
export default class MusicItemThumbnailOverlay extends YTNode {
|
|
static type = 'MusicItemThumbnailOverlay';
|
|
|
|
content: MusicPlayButton | null;
|
|
content_position: string;
|
|
display_style: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.content = Parser.parseItem(data.content, MusicPlayButton);
|
|
this.content_position = data.contentPosition;
|
|
this.display_style = data.displayStyle;
|
|
}
|
|
} |