mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 12:31:17 +00:00
18 lines
364 B
TypeScript
18 lines
364 B
TypeScript
import Text from './misc/Text';
|
|
|
|
import { YTNode } from '../helpers';
|
|
|
|
class SimpleTextSection extends YTNode {
|
|
static type = 'SimpleTextSection';
|
|
|
|
lines: Text[];
|
|
style: string;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.lines = data.lines.map((line: any) => new Text(line));
|
|
this.style = data.layoutStyle;
|
|
}
|
|
}
|
|
|
|
export default SimpleTextSection; |