* chore(deps): Add `meriyah` * feat(utils): Implement AST-based JS extractors * chore(utils): Remove old ast walker code * fix(Player): Migrate js extraction logic * chore(JsExtractor): Fix typo in tsdoc * perf(JsAnalyzer): Simplify main AST analysis logic * fix(JsAnalyzer): Change `break` to `return` in AST matching logic * chore: Update docs * chore: Don't export `PlayerInitializationOptions` * chore(evaluate): Update error message to include doc link * perf: Use a `for-loop` to find iife
4.5 KiB
youtubei.js / Misc / TextRun
Class: TextRun
Implements
Run
Constructors
new TextRun()
new TextRun(
data):TextRun
Parameters
• data: RawNode
Returns
Defined in
src/parser/classes/misc/TextRun.ts:32
Properties
attachment
attachment:
any
Defined in
src/parser/classes/misc/TextRun.ts:30
bold
bold:
boolean
Defined in
src/parser/classes/misc/TextRun.ts:9
bracket
bracket:
boolean
Defined in
src/parser/classes/misc/TextRun.ts:10
dark_mode_text_color?
optionaldark_mode_text_color:number
Defined in
src/parser/classes/misc/TextRun.ts:11
deemphasize
deemphasize:
boolean
Defined in
src/parser/classes/misc/TextRun.ts:12
endpoint?
optionalendpoint:NavigationEndpoint
Defined in
src/parser/classes/misc/TextRun.ts:8
error_underline
error_underline:
boolean
Defined in
src/parser/classes/misc/TextRun.ts:15
font_face?
optionalfont_face:"FONT_FACE_UNKNOWN"|"FONT_FACE_YT_SANS_MEDIUM"|"FONT_FACE_ROBOTO_MEDIUM"|"FONT_FACE_YOUTUBE_SANS_LIGHT"|"FONT_FACE_YOUTUBE_SANS_REGULAR"|"FONT_FACE_YOUTUBE_SANS_MEDIUM"|"FONT_FACE_YOUTUBE_SANS_SEMIBOLD"|"FONT_FACE_YOUTUBE_SANS_BOLD"|"FONT_FACE_YOUTUBE_SANS_EXTRABOLD"|"FONT_FACE_YOUTUBE_SANS_BLACK"|"FONT_FACE_YT_SANS_BOLD"|"FONT_FACE_ROBOTO_REGULAR"
Defined in
src/parser/classes/misc/TextRun.ts:17
italics
italics:
boolean
Defined in
src/parser/classes/misc/TextRun.ts:13
strikethrough
strikethrough:
boolean
Defined in
src/parser/classes/misc/TextRun.ts:14
text
text:
string
Implementation of
Run.text
Defined in
src/parser/classes/misc/TextRun.ts:6
text_color?
optionaltext_color:number
Defined in
src/parser/classes/misc/TextRun.ts:7
underline
underline:
boolean
Defined in
src/parser/classes/misc/TextRun.ts:16
Methods
toHTML()
toHTML():
string
Returns
string
Implementation of
Run.toHTML
Defined in
src/parser/classes/misc/TextRun.ts:65
toString()
toString():
string
Returns
string
Implementation of
Run.toString