Home / Function/ loadLines() — fastapi Function Reference

loadLines() — fastapi Function Reference

Architecture documentation for the loadLines() function in termynal.js from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  05632fa9_03ea_d50b_422c_62967eaa4908["loadLines()"]
  2554c688_6c7a_79bc_47ad_5764d7b35209["constructor()"]
  2554c688_6c7a_79bc_47ad_5764d7b35209 -->|calls| 05632fa9_03ea_d50b_422c_62967eaa4908
  f90d0753_a6ef_b191_5657_3d3af52c4fa9["generateFinish()"]
  05632fa9_03ea_d50b_422c_62967eaa4908 -->|calls| f90d0753_a6ef_b191_5657_3d3af52c4fa9
  1ea704d3_f17b_9ed7_5f8a_a8a58e40c975["generateRestart()"]
  05632fa9_03ea_d50b_422c_62967eaa4908 -->|calls| 1ea704d3_f17b_9ed7_5f8a_a8a58e40c975
  style 05632fa9_03ea_d50b_422c_62967eaa4908 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

docs/en/docs/js/termynal.js lines 52–69

    loadLines() {
        // Load all the lines and create the container so that the size is fixed
        // Otherwise it would be changing and the user viewport would be constantly
        // moving as she/he scrolls
        const finish = this.generateFinish()
        finish.style.visibility = 'hidden'
        this.container.appendChild(finish)
        // Appends dynamically loaded lines to existing line elements.
        this.lines = [...this.container.querySelectorAll(`[${this.pfx}]`)].concat(this.lineData);
        for (let line of this.lines) {
            line.style.visibility = 'hidden'
            this.container.appendChild(line)
        }
        const restart = this.generateRestart()
        restart.style.visibility = 'hidden'
        this.container.appendChild(restart)
        this.container.setAttribute('data-termynal', '');
    }

Subdomains

Called By

Frequently Asked Questions

What does loadLines() do?
loadLines() is a function in the fastapi codebase.
What does loadLines() call?
loadLines() calls 2 function(s): generateFinish, generateRestart.
What calls loadLines()?
loadLines() is called by 1 function(s): constructor.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free