Skip to content

Commit 8c05234

Browse files
committed
Deployed 5cb6cd0 with MkDocs version: 1.6.1
1 parent eb90364 commit 8c05234

File tree

10 files changed

+1546
-1395
lines changed

10 files changed

+1546
-1395
lines changed

blog/2024/12/12/algorithms-for-high-performance-terminal-apps/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7288,7 +7288,7 @@ <h3 id="search-the-grid">Search the grid<a class="headerlink" href="#search-the-
72887288
We can confidently conclude that the widgets <em>not</em> ion that list are hidden from view.
72897289
If we need to know precisely which widgets are visible we can check their regions individually.</p>
72907290
<p>The useful property of this algorithm is that as the number of widgets increases, the time it takes to figure out which are visible stays relatively constant. Scrolling a view of 8 widgets, takes much the same time as a view of 1000 widgets or more.</p>
7291-
<p>The code for our <code>SpatialMap</code> isn't part of the public API and therefore not in the docs, but if you are interested you can check it out here: <a href="https://github.com/Textualize/textual/blob/main/src/textual/_spatial_map.py">_spacial_map.py</a>.</p>
7291+
<p>The code for our <code>SpatialMap</code> isn't part of the public API and therefore not in the docs, but if you are interested you can check it out here: <a href="https://github.com/Textualize/textual/blob/main/src/textual/_spatial_map.py">_spatial_map.py</a>.</p>
72927292
<h2 id="wrapping-up">Wrapping up<a class="headerlink" href="#wrapping-up" title="Permanent link">&para;</a></h2>
72937293
<p>If any of the code discussed here interests you, you have my blessing to <a href="../../../../2022/11/20/stealing-open-source-code-from-textual/">steal the code</a>!</p>
72947294
<p>As always, if you want to discuss this or Textual in general, we can be found on our <a href="https://discord.gg/Enf6Z3qhVr">Discord server</a>.</p>

feed_json_updated.json

+1-1
Large diffs are not rendered by default.

feed_rss_created.xml

+1-1
Large diffs are not rendered by default.

feed_rss_updated.xml

+1-1
Large diffs are not rendered by default.

guide/reactivity/index.html

+282-282
Large diffs are not rendered by default.

guide/widgets/index.html

+63-62
Large diffs are not rendered by default.

how-to/render-and-compose/index.html

+879-729
Large diffs are not rendered by default.

search/search_index.json

+1-1
Large diffs are not rendered by default.

tutorial/index.html

+263-263
Large diffs are not rendered by default.

widgets/digits/index.html

+54-54
Original file line numberDiff line numberDiff line change
@@ -7011,131 +7011,131 @@ <h2 id="example">Example<a class="headerlink" href="#example" title="Permanent l
70117011
font-weight: 700;
70127012
}
70137013

7014-
.terminal-2141056223-matrix {
7014+
.terminal-2077417279-matrix {
70157015
font-family: Fira Code, monospace;
70167016
font-size: 20px;
70177017
line-height: 24.4px;
70187018
font-variant-east-asian: full-width;
70197019
}
70207020

7021-
.terminal-2141056223-title {
7021+
.terminal-2077417279-title {
70227022
font-size: 18px;
70237023
font-weight: bold;
70247024
font-family: arial;
70257025
}
70267026

7027-
.terminal-2141056223-r1 { fill: #e0e0e0 }
7028-
.terminal-2141056223-r2 { fill: #c5c8c6 }
7027+
.terminal-2077417279-r1 { fill: #e0e0e0 }
7028+
.terminal-2077417279-r2 { fill: #c5c8c6 }
70297029
</style>
70307030

70317031
<defs>
7032-
<clipPath id="terminal-2141056223-clip-terminal">
7032+
<clipPath id="terminal-2077417279-clip-terminal">
70337033
<rect x="0" y="0" width="975.0" height="584.5999999999999" />
70347034
</clipPath>
7035-
<clipPath id="terminal-2141056223-line-0">
7035+
<clipPath id="terminal-2077417279-line-0">
70367036
<rect x="0" y="1.5" width="976" height="24.65"/>
70377037
</clipPath>
7038-
<clipPath id="terminal-2141056223-line-1">
7038+
<clipPath id="terminal-2077417279-line-1">
70397039
<rect x="0" y="25.9" width="976" height="24.65"/>
70407040
</clipPath>
7041-
<clipPath id="terminal-2141056223-line-2">
7041+
<clipPath id="terminal-2077417279-line-2">
70427042
<rect x="0" y="50.3" width="976" height="24.65"/>
70437043
</clipPath>
7044-
<clipPath id="terminal-2141056223-line-3">
7044+
<clipPath id="terminal-2077417279-line-3">
70457045
<rect x="0" y="74.7" width="976" height="24.65"/>
70467046
</clipPath>
7047-
<clipPath id="terminal-2141056223-line-4">
7047+
<clipPath id="terminal-2077417279-line-4">
70487048
<rect x="0" y="99.1" width="976" height="24.65"/>
70497049
</clipPath>
7050-
<clipPath id="terminal-2141056223-line-5">
7050+
<clipPath id="terminal-2077417279-line-5">
70517051
<rect x="0" y="123.5" width="976" height="24.65"/>
70527052
</clipPath>
7053-
<clipPath id="terminal-2141056223-line-6">
7053+
<clipPath id="terminal-2077417279-line-6">
70547054
<rect x="0" y="147.9" width="976" height="24.65"/>
70557055
</clipPath>
7056-
<clipPath id="terminal-2141056223-line-7">
7056+
<clipPath id="terminal-2077417279-line-7">
70577057
<rect x="0" y="172.3" width="976" height="24.65"/>
70587058
</clipPath>
7059-
<clipPath id="terminal-2141056223-line-8">
7059+
<clipPath id="terminal-2077417279-line-8">
70607060
<rect x="0" y="196.7" width="976" height="24.65"/>
70617061
</clipPath>
7062-
<clipPath id="terminal-2141056223-line-9">
7062+
<clipPath id="terminal-2077417279-line-9">
70637063
<rect x="0" y="221.1" width="976" height="24.65"/>
70647064
</clipPath>
7065-
<clipPath id="terminal-2141056223-line-10">
7065+
<clipPath id="terminal-2077417279-line-10">
70667066
<rect x="0" y="245.5" width="976" height="24.65"/>
70677067
</clipPath>
7068-
<clipPath id="terminal-2141056223-line-11">
7068+
<clipPath id="terminal-2077417279-line-11">
70697069
<rect x="0" y="269.9" width="976" height="24.65"/>
70707070
</clipPath>
7071-
<clipPath id="terminal-2141056223-line-12">
7071+
<clipPath id="terminal-2077417279-line-12">
70727072
<rect x="0" y="294.3" width="976" height="24.65"/>
70737073
</clipPath>
7074-
<clipPath id="terminal-2141056223-line-13">
7074+
<clipPath id="terminal-2077417279-line-13">
70757075
<rect x="0" y="318.7" width="976" height="24.65"/>
70767076
</clipPath>
7077-
<clipPath id="terminal-2141056223-line-14">
7077+
<clipPath id="terminal-2077417279-line-14">
70787078
<rect x="0" y="343.1" width="976" height="24.65"/>
70797079
</clipPath>
7080-
<clipPath id="terminal-2141056223-line-15">
7080+
<clipPath id="terminal-2077417279-line-15">
70817081
<rect x="0" y="367.5" width="976" height="24.65"/>
70827082
</clipPath>
7083-
<clipPath id="terminal-2141056223-line-16">
7083+
<clipPath id="terminal-2077417279-line-16">
70847084
<rect x="0" y="391.9" width="976" height="24.65"/>
70857085
</clipPath>
7086-
<clipPath id="terminal-2141056223-line-17">
7086+
<clipPath id="terminal-2077417279-line-17">
70877087
<rect x="0" y="416.3" width="976" height="24.65"/>
70887088
</clipPath>
7089-
<clipPath id="terminal-2141056223-line-18">
7089+
<clipPath id="terminal-2077417279-line-18">
70907090
<rect x="0" y="440.7" width="976" height="24.65"/>
70917091
</clipPath>
7092-
<clipPath id="terminal-2141056223-line-19">
7092+
<clipPath id="terminal-2077417279-line-19">
70937093
<rect x="0" y="465.1" width="976" height="24.65"/>
70947094
</clipPath>
7095-
<clipPath id="terminal-2141056223-line-20">
7095+
<clipPath id="terminal-2077417279-line-20">
70967096
<rect x="0" y="489.5" width="976" height="24.65"/>
70977097
</clipPath>
7098-
<clipPath id="terminal-2141056223-line-21">
7098+
<clipPath id="terminal-2077417279-line-21">
70997099
<rect x="0" y="513.9" width="976" height="24.65"/>
71007100
</clipPath>
7101-
<clipPath id="terminal-2141056223-line-22">
7101+
<clipPath id="terminal-2077417279-line-22">
71027102
<rect x="0" y="538.3" width="976" height="24.65"/>
71037103
</clipPath>
71047104
</defs>
71057105

7106-
<rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="992" height="633.6" rx="8"/><text class="terminal-2141056223-title" fill="#c5c8c6" text-anchor="middle" x="496" y="27">ClockApp</text>
7106+
<rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="992" height="633.6" rx="8"/><text class="terminal-2077417279-title" fill="#c5c8c6" text-anchor="middle" x="496" y="27">ClockApp</text>
71077107
<g transform="translate(26,22)">
71087108
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
71097109
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
71107110
<circle cx="44" cy="0" r="7" fill="#28c840"/>
71117111
</g>
71127112

7113-
<g transform="translate(9, 41)" clip-path="url(#terminal-2141056223-clip-terminal)">
7113+
<g transform="translate(9, 41)" clip-path="url(#terminal-2077417279-clip-terminal)">
71147114
<rect fill="#121212" x="0" y="1.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="25.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="50.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="74.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="99.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="123.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="147.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="172.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="196.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="221.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="245.5" width="341.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="341.6" y="245.5" width="292.8" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="634.4" y="245.5" width="341.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="269.9" width="341.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="341.6" y="269.9" width="292.8" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="634.4" y="269.9" width="341.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="294.3" width="341.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="341.6" y="294.3" width="292.8" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="634.4" y="294.3" width="341.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="318.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="343.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="367.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="391.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="416.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="440.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="465.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="489.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="513.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="538.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#121212" x="0" y="562.7" width="976" height="24.65" shape-rendering="crispEdges"/>
7115-
<g class="terminal-2141056223-matrix">
7116-
<text class="terminal-2141056223-r2" x="976" y="20" textLength="12.2" clip-path="url(#terminal-2141056223-line-0)">
7117-
</text><text class="terminal-2141056223-r2" x="976" y="44.4" textLength="12.2" clip-path="url(#terminal-2141056223-line-1)">
7118-
</text><text class="terminal-2141056223-r2" x="976" y="68.8" textLength="12.2" clip-path="url(#terminal-2141056223-line-2)">
7119-
</text><text class="terminal-2141056223-r2" x="976" y="93.2" textLength="12.2" clip-path="url(#terminal-2141056223-line-3)">
7120-
</text><text class="terminal-2141056223-r2" x="976" y="117.6" textLength="12.2" clip-path="url(#terminal-2141056223-line-4)">
7121-
</text><text class="terminal-2141056223-r2" x="976" y="142" textLength="12.2" clip-path="url(#terminal-2141056223-line-5)">
7122-
</text><text class="terminal-2141056223-r2" x="976" y="166.4" textLength="12.2" clip-path="url(#terminal-2141056223-line-6)">
7123-
</text><text class="terminal-2141056223-r2" x="976" y="190.8" textLength="12.2" clip-path="url(#terminal-2141056223-line-7)">
7124-
</text><text class="terminal-2141056223-r2" x="976" y="215.2" textLength="12.2" clip-path="url(#terminal-2141056223-line-8)">
7125-
</text><text class="terminal-2141056223-r2" x="976" y="239.6" textLength="12.2" clip-path="url(#terminal-2141056223-line-9)">
7126-
</text><text class="terminal-2141056223-r1" x="341.6" y="264" textLength="292.8" clip-path="url(#terminal-2141056223-line-10)">╶╮&#160;╭─╴&#160;&#160;&#160;╶╮&#160;╭─╮&#160;&#160;&#160;╭─╴╭─╮</text><text class="terminal-2141056223-r2" x="976" y="264" textLength="12.2" clip-path="url(#terminal-2141056223-line-10)">
7127-
</text><text class="terminal-2141056223-r1" x="341.6" y="288.4" textLength="292.8" clip-path="url(#terminal-2141056223-line-11)">&#160;│&#160;╰─╮&#160;:&#160;&#160;&#160;├─┤&#160;:&#160;╰─╮│&#160;</text><text class="terminal-2141056223-r2" x="976" y="288.4" textLength="12.2" clip-path="url(#terminal-2141056223-line-11)">
7128-
</text><text class="terminal-2141056223-r1" x="341.6" y="312.8" textLength="292.8" clip-path="url(#terminal-2141056223-line-12)">╶┴╴╶─╯&#160;&#160;&#160;╶┴╴╰─╯&#160;&#160;&#160;╶─╯╰─</text><text class="terminal-2141056223-r2" x="976" y="312.8" textLength="12.2" clip-path="url(#terminal-2141056223-line-12)">
7129-
</text><text class="terminal-2141056223-r2" x="976" y="337.2" textLength="12.2" clip-path="url(#terminal-2141056223-line-13)">
7130-
</text><text class="terminal-2141056223-r2" x="976" y="361.6" textLength="12.2" clip-path="url(#terminal-2141056223-line-14)">
7131-
</text><text class="terminal-2141056223-r2" x="976" y="386" textLength="12.2" clip-path="url(#terminal-2141056223-line-15)">
7132-
</text><text class="terminal-2141056223-r2" x="976" y="410.4" textLength="12.2" clip-path="url(#terminal-2141056223-line-16)">
7133-
</text><text class="terminal-2141056223-r2" x="976" y="434.8" textLength="12.2" clip-path="url(#terminal-2141056223-line-17)">
7134-
</text><text class="terminal-2141056223-r2" x="976" y="459.2" textLength="12.2" clip-path="url(#terminal-2141056223-line-18)">
7135-
</text><text class="terminal-2141056223-r2" x="976" y="483.6" textLength="12.2" clip-path="url(#terminal-2141056223-line-19)">
7136-
</text><text class="terminal-2141056223-r2" x="976" y="508" textLength="12.2" clip-path="url(#terminal-2141056223-line-20)">
7137-
</text><text class="terminal-2141056223-r2" x="976" y="532.4" textLength="12.2" clip-path="url(#terminal-2141056223-line-21)">
7138-
</text><text class="terminal-2141056223-r2" x="976" y="556.8" textLength="12.2" clip-path="url(#terminal-2141056223-line-22)">
7115+
<g class="terminal-2077417279-matrix">
7116+
<text class="terminal-2077417279-r2" x="976" y="20" textLength="12.2" clip-path="url(#terminal-2077417279-line-0)">
7117+
</text><text class="terminal-2077417279-r2" x="976" y="44.4" textLength="12.2" clip-path="url(#terminal-2077417279-line-1)">
7118+
</text><text class="terminal-2077417279-r2" x="976" y="68.8" textLength="12.2" clip-path="url(#terminal-2077417279-line-2)">
7119+
</text><text class="terminal-2077417279-r2" x="976" y="93.2" textLength="12.2" clip-path="url(#terminal-2077417279-line-3)">
7120+
</text><text class="terminal-2077417279-r2" x="976" y="117.6" textLength="12.2" clip-path="url(#terminal-2077417279-line-4)">
7121+
</text><text class="terminal-2077417279-r2" x="976" y="142" textLength="12.2" clip-path="url(#terminal-2077417279-line-5)">
7122+
</text><text class="terminal-2077417279-r2" x="976" y="166.4" textLength="12.2" clip-path="url(#terminal-2077417279-line-6)">
7123+
</text><text class="terminal-2077417279-r2" x="976" y="190.8" textLength="12.2" clip-path="url(#terminal-2077417279-line-7)">
7124+
</text><text class="terminal-2077417279-r2" x="976" y="215.2" textLength="12.2" clip-path="url(#terminal-2077417279-line-8)">
7125+
</text><text class="terminal-2077417279-r2" x="976" y="239.6" textLength="12.2" clip-path="url(#terminal-2077417279-line-9)">
7126+
</text><text class="terminal-2077417279-r1" x="341.6" y="264" textLength="292.8" clip-path="url(#terminal-2077417279-line-10)">╶╮&#160;╶─┐&#160;&#160;&#160;&#160;╷╷&#160;&#160;&#160;&#160;╶─╮╶─╮</text><text class="terminal-2077417279-r2" x="976" y="264" textLength="12.2" clip-path="url(#terminal-2077417279-line-10)">
7127+
</text><text class="terminal-2077417279-r1" x="341.6" y="288.4" textLength="292.8" clip-path="url(#terminal-2077417279-line-11)">&#160;│&#160;&#160;&#160;&#160;:&#160;╰─┤╰─┤&#160;:&#160;&#160;─┤┌─┘</text><text class="terminal-2077417279-r2" x="976" y="288.4" textLength="12.2" clip-path="url(#terminal-2077417279-line-11)">
7128+
</text><text class="terminal-2077417279-r1" x="341.6" y="312.8" textLength="292.8" clip-path="url(#terminal-2077417279-line-12)">╶┴╴&#160;&#160;&#160;&#160;&#160;&#160;&#160;╵&#160;&#160;╵&#160;&#160;&#160;╶─╯╰─</text><text class="terminal-2077417279-r2" x="976" y="312.8" textLength="12.2" clip-path="url(#terminal-2077417279-line-12)">
7129+
</text><text class="terminal-2077417279-r2" x="976" y="337.2" textLength="12.2" clip-path="url(#terminal-2077417279-line-13)">
7130+
</text><text class="terminal-2077417279-r2" x="976" y="361.6" textLength="12.2" clip-path="url(#terminal-2077417279-line-14)">
7131+
</text><text class="terminal-2077417279-r2" x="976" y="386" textLength="12.2" clip-path="url(#terminal-2077417279-line-15)">
7132+
</text><text class="terminal-2077417279-r2" x="976" y="410.4" textLength="12.2" clip-path="url(#terminal-2077417279-line-16)">
7133+
</text><text class="terminal-2077417279-r2" x="976" y="434.8" textLength="12.2" clip-path="url(#terminal-2077417279-line-17)">
7134+
</text><text class="terminal-2077417279-r2" x="976" y="459.2" textLength="12.2" clip-path="url(#terminal-2077417279-line-18)">
7135+
</text><text class="terminal-2077417279-r2" x="976" y="483.6" textLength="12.2" clip-path="url(#terminal-2077417279-line-19)">
7136+
</text><text class="terminal-2077417279-r2" x="976" y="508" textLength="12.2" clip-path="url(#terminal-2077417279-line-20)">
7137+
</text><text class="terminal-2077417279-r2" x="976" y="532.4" textLength="12.2" clip-path="url(#terminal-2077417279-line-21)">
7138+
</text><text class="terminal-2077417279-r2" x="976" y="556.8" textLength="12.2" clip-path="url(#terminal-2077417279-line-22)">
71397139
</text>
71407140
</g>
71417141
</g>

0 commit comments

Comments
 (0)