init() — fastapi Function Reference
Architecture documentation for the init() function in termynal.js from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 760e745f_41df_15c2_5b93_4b6ef98e12a2["init()"] 000471a9_ef7a_d9dc_ef48_af16a8d6655c["Termynal"] 760e745f_41df_15c2_5b93_4b6ef98e12a2 -->|defined in| 000471a9_ef7a_d9dc_ef48_af16a8d6655c 6b7d2aeb_22cc_6860_d344_4483dcb2feb2["constructor()"] 6b7d2aeb_22cc_6860_d344_4483dcb2feb2 -->|calls| 760e745f_41df_15c2_5b93_4b6ef98e12a2 3a23ab59_5309_03ee_a500_a744548a0496["generateRestart()"] 3a23ab59_5309_03ee_a500_a744548a0496 -->|calls| 760e745f_41df_15c2_5b93_4b6ef98e12a2 f693669c_751b_13db_a04c_e34d87d400df["start()"] 760e745f_41df_15c2_5b93_4b6ef98e12a2 -->|calls| f693669c_751b_13db_a04c_e34d87d400df style 760e745f_41df_15c2_5b93_4b6ef98e12a2 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
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does init() do?
init() is a function in the fastapi codebase, defined in docs/en/docs/js/termynal.js.
Where is init() defined?
init() is defined in docs/en/docs/js/termynal.js at line 74.
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