start() — fastapi Function Reference
Architecture documentation for the start() function in termynal.js from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 9ac7d251_814a_26a5_a84c_3f2943de3969["start()"] b94743a8_220f_f740_a0b6_593ba25220e3["init()"] b94743a8_220f_f740_a0b6_593ba25220e3 -->|calls| 9ac7d251_814a_26a5_a84c_3f2943de3969 f19888a4_6431_440b_e14c_d5a443cb90ff["addFinish()"] 9ac7d251_814a_26a5_a84c_3f2943de3969 -->|calls| f19888a4_6431_440b_e14c_d5a443cb90ff 8a1fd6e9_44b8_f397_ad64_c702183a7a6e["_wait()"] 9ac7d251_814a_26a5_a84c_3f2943de3969 -->|calls| 8a1fd6e9_44b8_f397_ad64_c702183a7a6e 276453e1_a537_b16c_0d88_4aa91742c2c3["progress()"] 9ac7d251_814a_26a5_a84c_3f2943de3969 -->|calls| 276453e1_a537_b16c_0d88_4aa91742c2c3 85f66c04_f0db_7f5f_e003_e551f9709a94["addRestart()"] 9ac7d251_814a_26a5_a84c_3f2943de3969 -->|calls| 85f66c04_f0db_7f5f_e003_e551f9709a94 style 9ac7d251_814a_26a5_a84c_3f2943de3969 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
docs/en/docs/js/termynal.js lines 96–127
async start() {
this.addFinish()
await this._wait(this.startDelay);
for (let line of this.lines) {
const type = line.getAttribute(this.pfx);
const delay = line.getAttribute(`${this.pfx}-delay`) || this.lineDelay;
if (type == 'input') {
line.setAttribute(`${this.pfx}-cursor`, this.cursor);
await this.type(line);
await this._wait(delay);
}
else if (type == 'progress') {
await this.progress(line);
await this._wait(delay);
}
else {
this.container.appendChild(line);
await this._wait(delay);
}
line.removeAttribute(`${this.pfx}-cursor`);
}
this.addRestart()
this.finishElement.style.visibility = 'hidden'
this.lineDelay = this.originalLineDelay
this.typeDelay = this.originalTypeDelay
this.startDelay = this.originalStartDelay
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does start() do?
start() is a function in the fastapi codebase.
What does start() call?
start() calls 4 function(s): _wait, addFinish, addRestart, progress.
What calls start()?
start() is called by 1 function(s): init.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free