MCPcopy Create free account

hub / github.com/TokenRollAI/curl-resume / functions

Functions82 in github.com/TokenRollAI/curl-resume

↓ 39 callersFunctionpush
(text: string)
src/streamHandler.ts:15
↓ 21 callersFunctionsleep
(ms: number)
src/utils.ts:4
↓ 5 callersFunctiongetRandomChar
()
src/utils.ts:10
↓ 4 callersFunctionfetch
( request: Request, env: Env, ctx: ExecutionContext )
src/index.ts:13
↓ 4 callersFunctiongetSpeed
* 获取页面速度配置(应用速度倍率)
src/pageRenderer.ts:47
↓ 3 callersFunctionrenderHalfBlock
* 使用 Half-Block (▀) 技术渲染
src/imageToAscii.ts:122
↓ 2 callersFunctiondetectFormat
* 检测图片格式
src/imageToAscii.ts:199
↓ 2 callersFunctionfetchImageToAscii
( url: string, options: RenderOptions = {} )
src/imageToAscii.ts:302
↓ 2 callersFunctiongenerateAscii
(text: string, style: "simple" | "block" = "block")
src/asciiGenerator.ts:268
↓ 2 callersFunctionisLocalPath
* 判断是否为本地文件路径
scripts/preprocess-images.ts:142
↓ 2 callersFunctionisLocalPath
(src: string)
scripts/preprocess.ts:170
↓ 2 callersFunctionrenderChar
* 标准字符渲染
src/imageToAscii.ts:168
↓ 2 callersFunctionrenderChar
(pixels: Uint8Array, width: number, height: number)
scripts/preprocess-images.ts:114
↓ 2 callersFunctionrenderChar
(pixels: Uint8Array, width: number, height: number)
scripts/preprocess.ts:145
↓ 2 callersFunctionrenderHalfBlock
(pixels: Uint8Array, width: number, height: number)
scripts/preprocess-images.ts:82
↓ 2 callersFunctionrenderHalfBlock
(pixels: Uint8Array, width: number, height: number)
scripts/preprocess.ts:113
↓ 2 callersFunctionrenderRawPage
* 渲染 Raw 页面 (原始文本)
src/pageRenderer.ts:229
↓ 2 callersFunctionresizeImage
* 双线性插值缩放图片
src/imageToAscii.ts:79
↓ 2 callersFunctionrgbToAnsi256
* RGB 转 ANSI 256 色
src/imageToAscii.ts:45
↓ 2 callersFunctionrgbToAnsiTrueColor
* RGB 转 ANSI 真彩色 (24-bit)
src/imageToAscii.ts:36
↓ 2 callersFunctionrgbToAnsiTrueColor
(r: number, g: number, b: number, type: "fg" | "bg" = "fg")
scripts/preprocess-images.ts:63
↓ 2 callersFunctionrgbToAnsiTrueColor
(r: number, g: number, b: number, type: "fg" | "bg" = "fg")
scripts/preprocess.ts:94
↓ 1 callersFunctioncompositeFrame
* 将当前帧合成到画布上(处理透明像素)
scripts/preprocess-images.ts:229
↓ 1 callersFunctioncompositeFrame
( canvas: Buffer, frameData: Uint8Array, width: number, height: number )
scripts/preprocess.ts:246
↓ 1 callersFunctiondecodeImage
* 解码图片数据
src/imageToAscii.ts:243
↓ 1 callersFunctiondecodeJPEG
* 解码 JPEG 图片
src/imageToAscii.ts:231
↓ 1 callersFunctiondecodePNG
* 解码 PNG 图片 (使用 UPNG.js - 纯 JS 实现)
src/imageToAscii.ts:218
↓ 1 callersFunctiondetectFormat
(data: Buffer)
scripts/preprocess-images.ts:177
↓ 1 callersFunctiondetectFormat
(data: Buffer)
scripts/preprocess.ts:199
↓ 1 callersFunctionextractImageConfigs
(configPath: string)
scripts/preprocess-images.ts:318
↓ 1 callersFunctionextractImageConfigs
(configPath: string)
scripts/preprocess.ts:335
↓ 1 callersFunctionextractMarkdownConfigs
(configPath: string)
scripts/preprocess.ts:370
↓ 1 callersFunctionfetchGifToAsciiFrames
( url: string, options: RenderOptions = {} )
src/imageToAscii.ts:324
↓ 1 callersFunctionfetchImageData
* 获取图片数据(支持本地文件和 URL)
scripts/preprocess-images.ts:159
↓ 1 callersFunctionfetchImageData
(src: string)
scripts/preprocess.ts:181
↓ 1 callersFunctiongenerateTestPattern
(width = 40, height = 20)
src/imageToAscii.ts:381
↓ 1 callersFunctiongetSpeedMultiplier
* 获取速度倍率
src/pageRenderer.ts:63
↓ 1 callersFunctiongrayToChar
* 灰度转 ASCII 字符
src/imageToAscii.ts:27
↓ 1 callersFunctiongrayToChar
(gray: number)
scripts/preprocess-images.ts:75
↓ 1 callersFunctiongrayToChar
(gray: number)
scripts/preprocess.ts:106
↓ 1 callersFunctionimageToAsciiResult
* 图片数据转 ASCII
src/imageToAscii.ts:259
↓ 1 callersFunctionmain
()
scripts/preprocess-images.ts:361
↓ 1 callersFunctionmain
()
scripts/preprocess.ts:391
↓ 1 callersFunctionprocessGifAnimation
(data: Buffer, config: ImageConfig)
scripts/preprocess-images.ts:247
↓ 1 callersFunctionprocessGifAnimation
(data: Buffer, config: ImageConfig)
scripts/preprocess.ts:263
↓ 1 callersFunctionprocessImage
(config: ImageConfig)
scripts/preprocess-images.ts:298
↓ 1 callersFunctionprocessImage
(config: ImageConfig)
scripts/preprocess.ts:308
↓ 1 callersFunctionprocessMarkdown
(config: MarkdownConfig)
scripts/preprocess.ts:326
↓ 1 callersFunctionprocessStaticImage
(data: Buffer, config: ImageConfig)
scripts/preprocess-images.ts:195
↓ 1 callersFunctionprocessStaticImage
(data: Buffer, config: ImageConfig)
scripts/preprocess.ts:217
↓ 1 callersFunctionrenderAllPages
( push: PushFunction, config: Config )
src/pageRenderer.ts:253
↓ 1 callersFunctionrenderImagePage
* 渲染 Image 页面 (图片转 ASCII) * 优先使用预处理数据,否则实时处理
src/pageRenderer.ts:153
↓ 1 callersFunctionrenderLogoPage
* 渲染 Logo 页面
src/pageRenderer.ts:70
↓ 1 callersFunctionrenderMarkdown
(markdown: string)
src/markdownRenderer.ts:9
↓ 1 callersFunctionrenderMarkdownPage
* 渲染 Markdown 页面 * 优先使用预处理数据,否则实时渲染
src/pageRenderer.ts:117
↓ 1 callersFunctionrenderMarkdownToTerminal
(markdown: string)
scripts/preprocess.ts:83
↓ 1 callersFunctionresolveImagePath
* 解析图片路径(支持相对路径)
scripts/preprocess-images.ts:149
↓ 1 callersFunctionresolveImagePath
(src: string)
scripts/preprocess.ts:174
↓ 1 callersFunctionrgbToGray
* RGB 转灰度
src/imageToAscii.ts:20
↓ 1 callersFunctionrgbToGray
(r: number, g: number, b: number)
scripts/preprocess-images.ts:71
↓ 1 callersFunctionrgbToGray
(r: number, g: number, b: number)
scripts/preprocess.ts:102
↓ 1 callersFunctionstreamResume
( writer: WritableStreamDefaultWriter )
src/streamHandler.ts:12
FunctionaddBorder
(ascii: string)
src/asciiGenerator.ts:306
FunctionanimatedLine
( push: PushFunction, options: { width?: number; char?: string; speed?: number } = {} )
src/effects.ts:367
FunctioncreatePusher
(writer: WritableStreamDefaultWriter)
src/effects.ts:10
FunctioneffectDecrypt
( push: PushFunction, text: string, options: EffectOptions = {} )
src/effects.ts:130
FunctioneffectGlitch
( push: PushFunction, text: string, options: EffectOptions = {} )
src/effects.ts:174
FunctioneffectMatrix
( push: PushFunction, text: string, options: EffectOptions = {} )
src/effects.ts:213
FunctioneffectNone
( push: PushFunction, text: string, options: EffectOptions = {} )
src/effects.ts:91
FunctioneffectTyping
( push: PushFunction, text: string, options: EffectOptions = {} )
src/effects.ts:103
FunctionendingBlink
( push: PushFunction, times = 3 )
src/effects.ts:384
FunctiongenerateColorTestPattern
(width = 40, height = 20, trueColor = false)
src/imageToAscii.ts:396
FunctiongetEffect
( name: string )
src/effects.ts:268
FunctiongetTransition
( name: string )
src/effects.ts:72
FunctionlightWaveEffect
( push: PushFunction, lines: string[], speed = 40 )
src/effects.ts:292
FunctionplayAsciiAnimation
( push: PushFunction, frames: Array<{ ascii: string; coloredAscii?: string; delay: number }>, options: {
src/effects.ts:399
FunctionscanDisplay
( push: PushFunction, lines: string[], options: { speed?: number; scanChar?: string; color?: string } =
src/effects.ts:344
FunctionstylizeAscii
( ascii: string, style: "full" | "light" | "double" = "full" )
src/asciiGenerator.ts:289
FunctiontransitionFade
(push: PushFunction)
src/effects.ts:28
FunctiontransitionGlitch
(push: PushFunction)
src/effects.ts:36
FunctiontransitionNone
(push: PushFunction)
src/effects.ts:21
FunctiontransitionScanline
(push: PushFunction)
src/effects.ts:58