You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">name</span></code>: Identifies the layout, so it can be activated/deactivated in the GUI.</p></li>
368
368
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">draw_tree()</span></code>: A function that sets style and decorations for the full tree.</p></li>
369
369
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">draw_node()</span></code>: A function that sets style and decorations for the given nodes.</p></li>
370
-
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">cache_size</span></code>: The number of arguments cached when calling <cite>draw_node</cite> (defaults to all).</p></li>
370
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">cache_size</span></code>: The number of nodes cached when calling <cite>draw_node</cite> (defaults to all).</p></li>
371
371
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">active</span></code>: Whether the layout will be immediately active when exploring (defaults to True).</p></li>
372
372
</ul>
373
373
<p>Let’s look at how to use them. The simplest case is:</p>
@@ -721,35 +721,36 @@ <h2><a class="toc-backref" href="#id29" role="doc-backlink">Combining styles and
721
721
<p>Let’s see an example combining styles and faces, for both the tree
722
722
(with <codeclass="docutils literal notranslate"><spanclass="pre">draw_tree</span></code>) and the nodes (with <codeclass="docutils literal notranslate"><spanclass="pre">draw_node</span></code>):</p>
<spanclass="k">yield</span><spanclass="n">Decoration</span><spanclass="p">(</span><spanclass="n">LegendFace</span><spanclass="p">(</span><spanclass="s1">'Type of letter'</span><spanclass="p">,</span>
<spanclass="k">yield</span><spanclass="n">Decoration</span><spanclass="p">(</span><spanclass="n">TextFace</span><spanclass="p">(</span><spanclass="s1">'yes, a vowel'</span><spanclass="p">,</span><spanclass="n">style</span><spanclass="o">=</span><spanclass="p">{</span><spanclass="s1">'fill'</span><spanclass="p">:</span><spanclass="s1">'red'</span><spanclass="p">}),</span>
<spanclass="k">yield</span><spanclass="n">Decoration</span><spanclass="p">(</span><spanclass="n">TextFace</span><spanclass="p">(</span><spanclass="s1">'not a vowel'</span><spanclass="p">,</span><spanclass="n">style</span><spanclass="o">=</span><spanclass="p">{</span><spanclass="s1">'fill'</span><spanclass="p">:</span><spanclass="s1">'blue'</span><spanclass="p">}),</span>
0 commit comments