Changeset 1356

Show
Ignore:
Timestamp:
04/19/08 02:39:27 (3 months ago)
Author:
cederberg@gmail.com
Message:

Minor doc fixes to MochiKit.Visual (patch from Christoph Zwerschke).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mochikit/trunk/doc/html/MochiKit/Visual.html

    r1344 r1356  
    7676<p>By default, you have one Queue called <tt class="docutils literal"><span class="pre">'global'</span></tt>, and the effects run in 
    7777<tt class="docutils literal"><span class="pre">'parallel'</span></tt> (see <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>). Every effect has a <tt class="docutils literal"><span class="pre">queue</span></tt> 
    78 option to customize this. It's value can be a string, thereby using the 
     78option to customize this. Its value can be a string, thereby using the 
    7979<tt class="docutils literal"><span class="pre">global</span></tt> scope:</p> 
    8080<ul class="simple"> 
     
    108108<tt class="docutils literal"><span class="pre">className</span></tt> specifiers, using the options provided.  <tt class="docutils literal"><span class="pre">tagName</span></tt> 
    109109or <tt class="docutils literal"><span class="pre">className</span></tt> can be <tt class="docutils literal"><span class="pre">null</span></tt> to match all tags or classes. 
    110 For more information about the <tt class="docutils literal"><span class="pre">options</span></tt>, see the 
    111 <a class="mochiref reference" href="#fn-roundelement">roundElement</a> function.</p> 
     110Regarding the <tt class="docutils literal"><span class="pre">options</span></tt>, see the <a class="mochiref reference" href="#fn-roundelement">roundElement</a> function.</p> 
    112111<dl class="docutils"> 
    113112<dt><em>Availability</em>:</dt> 
     
    214213</dd> 
    215214<dt>options:</dt> 
    216 <dd>The optional effect options (see effect functions for details).</dd> 
     215<dd>The optional effect options (see the respective effect 
     216functions for details).</dd> 
    217217<dt><em>Availability</em>:</dt> 
    218218<dd>Available in MochiKit 1.4+</dd> 
     
    249249<dd>An effect class constructor function.</dd> 
    250250<dt>options:</dt> 
    251 <dd><p class="first">The effect options (see the effect classes). A special <tt class="docutils literal"><span class="pre">speed</span></tt> 
    252 value will be added to the effect <tt class="docutils literal"><span class="pre">delay</span></tt> for each additional 
    253 element in the list. This cause the effects to not run exactly 
    254 in parallel by default.</p> 
     251<dd><p class="first">The effect options (see the respective effect class). A special 
     252<tt class="docutils literal"><span class="pre">speed</span></tt> value will be added to the effect <tt class="docutils literal"><span class="pre">delay</span></tt> for each 
     253additional element in the list. This cause the effects to not run 
     254exactly in parallel by default.</p> 
    255255<table border="1" class="last docutils"> 
    256256<colgroup> 
     
    312312<blockquote> 
    313313<p>Slowly shows an <tt class="docutils literal"><span class="pre">element</span></tt> using the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect. 
    314 If the <tt class="docutils literal"><span class="pre">element</span></tt> has <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">none&quot;</span></tt> style it will be changed 
     314If the <tt class="docutils literal"><span class="pre">element</span></tt> has <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">none&quot;</span></tt> style, it will be changed 
    315315to <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">block&quot;</span></tt> with <a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a>.</p> 
    316316<dl class="docutils"> 
     
    382382<p>Blind an <tt class="docutils literal"><span class="pre">element</span></tt> down, restoring its vertical size using the 
    383383<a class="mochiref reference" href="#fn-scale">Scale</a> effect. If the <tt class="docutils literal"><span class="pre">element</span></tt> has <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">none&quot;</span></tt> 
    384 style it will be changed to <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">block&quot;</span></tt> with 
     384style, it will be changed to <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">block&quot;</span></tt> with 
    385385<a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a>.</p> 
    386386<dl class="docutils"> 
     
    775775<p>Default options for all effects. Note that all effects inherit 
    776776the <a class="mochiref reference" href="#fn-base">Base</a> class and thereby also support a number of 
    777 events, that can be specified as callback functions among the 
     777events that can be specified as callback functions among the 
    778778effect options.</p> 
    779779<table border="1" class="docutils"> 
     
    839839}); 
    840840</pre> 
    841 <p>Specific <tt class="docutils literal"><span class="pre">internal</span></tt> events are also available: for each one abone the 
    842 same exists with 'Internal' (example: 'beforeStartInternal'). Their purpose 
    843 is mainly for creating your own effect and keep the user access to event 
    844 callbacks (not overriding the library ones).</p> 
     841<p>Specific <tt class="docutils literal"><span class="pre">internal</span></tt> events are also available: for each one listed above, 
     842the same exists with an 'Internal' postfix (e.g. 'beforeStartInternal'). 
     843Their purpose is mainly for creating your own effect and keep the user 
     844access to event callbacks (not overriding the library ones).</p> 
    845845<dl class="docutils"> 
    846846<dt><em>Availability</em>:</dt> 
  • mochikit/trunk/doc/rst/MochiKit/Visual.rst

    r1344 r1356  
    8080By default, you have one Queue called ``'global'``, and the effects run in 
    8181``'parallel'`` (see :mochiref:`DefaultOptions`). Every effect has a ``queue`` 
    82 option to customize this. It's value can be a string, thereby using the 
     82option to customize this. Its value can be a string, thereby using the 
    8383``global`` scope: 
    8484 
     
    111111    ``className`` specifiers, using the options provided.  ``tagName`` 
    112112    or ``className`` can be ``null`` to match all tags or classes. 
    113     For more information about the ``options``, see the 
    114     :mochiref:`roundElement` function. 
     113    Regarding the ``options``, see the :mochiref:`roundElement` function. 
    115114 
    116115    *Availability*: 
     
    126125        :mochiref:`MochiKit.DOM.getElement`). 
    127126 
    128     options:  
     127    options: 
    129128        The ``options`` mapping has the following defaults: 
    130129 
     
    183182 
    184183    options: 
    185         The optional effect options (see effect functions for details). 
     184        The optional effect options (see the respective effect 
     185        functions for details). 
    186186 
    187187    *Availability*: 
     
    219219 
    220220    options: 
    221         The effect options (see the effect classes). A special ``speed`` 
    222         value will be added to the effect ``delay`` for each additional 
    223         element in the list. This cause the effects to not run exactly 
    224         in parallel by default. 
     221        The effect options (see the respective effect class). A special 
     222        ``speed`` value will be added to the effect ``delay`` for each 
     223        additional element in the list. This cause the effects to not run 
     224        exactly in parallel by default. 
    225225 
    226226        ========= ================= 
     
    260260 
    261261    Slowly shows an ``element`` using the :mochiref:`Opacity` effect. 
    262     If the ``element`` has ``"display: none"`` style it will be changed 
     262    If the ``element`` has ``"display: none"`` style, it will be changed 
    263263    to ``"display: block"`` with :mochiref:`MochiKit.Style.showElement`. 
    264264 
     
    319319    Blind an ``element`` down, restoring its vertical size using the 
    320320    :mochiref:`Scale` effect. If the ``element`` has ``"display: none"`` 
    321     style it will be changed to ``"display: block"`` with 
     321    style, it will be changed to ``"display: block"`` with 
    322322    :mochiref:`MochiKit.Style.showElement`. 
    323323 
     
    477477        ================= ======================================== 
    478478        direction         ``"center"`` 
    479         moveTransition    ``MochiKit.Visual.Transitions.sinoidal``     
    480         scaleTransition   ``MochiKit.Visual.Transitions.sinoidal``     
    481         opacityTransition ``MochiKit.Visual.Transitions.full``     
     479        moveTransition    ``MochiKit.Visual.Transitions.sinoidal`` 
     480        scaleTransition   ``MochiKit.Visual.Transitions.sinoidal`` 
     481        opacityTransition ``MochiKit.Visual.Transitions.full`` 
    482482        ================= ======================================== 
    483483 
     
    517517        ================= ======================================== 
    518518        direction         ``"center"`` 
    519         moveTransition    ``MochiKit.Visual.Transitions.sinoidal``     
    520         scaleTransition   ``MochiKit.Visual.Transitions.sinoidal``     
    521         opacityTransition ``MochiKit.Visual.Transitions.full``     
     519        moveTransition    ``MochiKit.Visual.Transitions.sinoidal`` 
     520        scaleTransition   ``MochiKit.Visual.Transitions.sinoidal`` 
     521        opacityTransition ``MochiKit.Visual.Transitions.full`` 
    522522        ================= ======================================== 
    523523 
     
    609609    Default options for all effects. Note that all effects inherit 
    610610    the :mochiref:`Base` class and thereby also support a number of 
    611     events, that can be specified as callback functions among the 
     611    events that can be specified as callback functions among the 
    612612    effect options. 
    613613 
     
    651651            slideDown('myelement'); 
    652652        }); 
    653   
    654     Specific ``internal`` events are also available: for each one abone the 
    655     same exists with 'Internal' (example: 'beforeStartInternal'). Their purpose 
    656     is mainly for creating your own effect and keep the user access to event 
    657     callbacks (not overriding the library ones). 
     653 
     654    Specific ``internal`` events are also available: for each one listed above, 
     655    the same exists with an 'Internal' postfix (e.g. 'beforeStartInternal'). 
     656    Their purpose is mainly for creating your own effect and keep the user 
     657    access to event callbacks (not overriding the library ones). 
    658658 
    659659    *Availability*: 
     
    762762        ``"contents"``   Uses ``scrollHeight`` and ``scrollWidth`` 
    763763        {...}            Uses ``originalHeight`` and ``originalWidth`` from the specified object 
    764         ================ =========================================         
     764        ================ ========================================= 
    765765 
    766766    *Availability*: 
     
    814814    ``style`` with an array holding the styles to change. It works with 
    815815    properties for size (``font-size``, ``border-width``, ...) and properties 
    816     for color (``color``, ``background-color``, ...).  
     816    for color (``color``, ``background-color``, ...). 
    817817 
    818818    For size, it's better to have defined the original style. You *must* 
    819819    use the same unit in the call to Morph (no translation exists between two 
    820820    different units). 
    821      
     821 
    822822    Parsed length are postfixed with: em, ex, px, in, cm, mm, pt, pc. 
    823      
     823 
    824824    Example:: 
    825          
     825 
    826826        <div id="foo" style="font-size: 1em">MyDiv</div> 
    827827        ...