mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +00:00
16 lines
389 B
TypeScript
16 lines
389 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
import Text from './misc/Text.js';
|
|
|
|
export default class DynamicTextView extends YTNode {
|
|
static type = 'DynamicTextView';
|
|
|
|
text: Text;
|
|
max_lines: number;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.text = Text.fromAttributed(data.text);
|
|
this.max_lines = parseInt(data.maxLines);
|
|
}
|
|
} |