init() — fastapi Function Reference
Architecture documentation for the init() function in termynal.js from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD b94743a8_220f_f740_a0b6_593ba25220e3["init()"] 2554c688_6c7a_79bc_47ad_5764d7b35209["constructor()"] 2554c688_6c7a_79bc_47ad_5764d7b35209 -->|calls| b94743a8_220f_f740_a0b6_593ba25220e3 1ea704d3_f17b_9ed7_5f8a_a8a58e40c975["generateRestart()"] 1ea704d3_f17b_9ed7_5f8a_a8a58e40c975 -->|calls| b94743a8_220f_f740_a0b6_593ba25220e3 9ac7d251_814a_26a5_a84c_3f2943de3969["start()"] b94743a8_220f_f740_a0b6_593ba25220e3 -->|calls| 9ac7d251_814a_26a5_a84c_3f2943de3969 style b94743a8_220f_f740_a0b6_593ba25220e3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
docs/en/docs/js/termynal.js lines 74–91
init() {
/**
* Calculates width and height of Termynal container.
* If container is empty and lines are dynamically loaded, defaults to browser `auto` or CSS.
*/
const containerStyle = getComputedStyle(this.container);
this.container.style.width = containerStyle.width !== '0px' ?
containerStyle.width : undefined;
this.container.style.minHeight = containerStyle.height !== '0px' ?
containerStyle.height : undefined;
this.container.setAttribute('data-termynal', '');
this.container.innerHTML = '';
for (let line of this.lines) {
line.style.visibility = 'visible'
}
this.start();
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does init() do?
init() is a function in the fastapi codebase.
What does init() call?
init() calls 1 function(s): start.
What calls init()?
init() is called by 2 function(s): constructor, generateRestart.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free