old_sql 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +179 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +814 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +1703 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +755 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +1197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +168 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +187 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +300 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +524 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +420 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +142 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +240 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +508 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +244 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +385 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +384 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +1161 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +447 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +113 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +767 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +1445 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +651 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +1143 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +145 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +258 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +454 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +348 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +128 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +26 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +498 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +895 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +83 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +401 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +10 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +96 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +4 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +95 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +42 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +90 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +189 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +36 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +65 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +483 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +62 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +373 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +5 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +85 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +46 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +11 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +74 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +125 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +59 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +3 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +45 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +119 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +91 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +93 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +64 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +66 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +177 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +339 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +22 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +622 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +70 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +130 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +682 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +1489 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +863 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +1256 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +222 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +793 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +304 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +844 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +315 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +188 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +115 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +236 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +415 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +897 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +589 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +594 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +162 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +2026 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +7829 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +251 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +381 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +159 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +25 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +16 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +577 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +137 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +52 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +89 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +408 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +34 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +84 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +363 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +32 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +295 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +223 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +481 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +406 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +683 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +756 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +2177 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +705 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +348 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +247 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +9 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +723 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/README +1 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +302 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +139 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +172 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +81 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +155 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +50 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +428 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +330 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +368 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +256 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +436 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +299 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +159 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +64 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +334 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +304 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +144 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +62 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +37 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +31 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +25 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +143 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +56 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +133 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +136 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +38 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +43 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +53 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +61 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +6 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +141 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +26 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +147 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +24 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +89 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +66 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +20 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +31 -0
- metadata +264 -2
@@ -0,0 +1,1161 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" />
|
8
|
+
<title>MochiKit.Visual - visual effects</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../../../include/css/documentation.css" type="text/css" />
|
11
|
+
<script type="text/javascript" src="../../../packed/lib/MochiKit/MochiKit.js"></script>
|
12
|
+
<script type="text/javascript" src="../../js/toc.js"></script>
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<a href="http://mochikit.com"><img id="mainlink" src="../../../include/_img/g_logo_doc.gif" alt="MochiKit" /></a>
|
16
|
+
<a class='indexlink' href='index.html'>Back to docs index</a>
|
17
|
+
<div class="document">
|
18
|
+
<div class="section">
|
19
|
+
<h1><a id="name" name="name">Name</a></h1>
|
20
|
+
<p>MochiKit.Visual - visual effects</p>
|
21
|
+
</div>
|
22
|
+
<div class="section">
|
23
|
+
<h1><a id="synopsis" name="synopsis">Synopsis</a></h1>
|
24
|
+
<pre class="literal-block">
|
25
|
+
// round the corners of all h1 elements
|
26
|
+
roundClass("h1", null);
|
27
|
+
|
28
|
+
// round the top left corner of the element with the id "title"
|
29
|
+
roundElement("title", {corners: "tl"});
|
30
|
+
|
31
|
+
// Add an fade effect to an element
|
32
|
+
fade('myelement');
|
33
|
+
</pre>
|
34
|
+
</div>
|
35
|
+
<div class="section">
|
36
|
+
<h1><a id="description" name="description">Description</a></h1>
|
37
|
+
<p>MochiKit.Visual provides visual effects and animations for HTML elements.</p>
|
38
|
+
</div>
|
39
|
+
<div class="section">
|
40
|
+
<h1><a id="dependencies" name="dependencies">Dependencies</a></h1>
|
41
|
+
<ul class="simple">
|
42
|
+
<li><a class="mochiref reference" href="Base.html">MochiKit.Base</a></li>
|
43
|
+
<li><a class="mochiref reference" href="Iter.html">MochiKit.Iter</a></li>
|
44
|
+
<li><a class="mochiref reference" href="DOM.html">MochiKit.DOM</a></li>
|
45
|
+
<li><a class="mochiref reference" href="Color.html">MochiKit.Color</a></li>
|
46
|
+
<li><a class="mochiref reference" href="Position.html">MochiKit.Position</a></li>
|
47
|
+
</ul>
|
48
|
+
</div>
|
49
|
+
<div class="section">
|
50
|
+
<h1><a id="overview" name="overview">Overview</a></h1>
|
51
|
+
<p>MochiKit.Visual provides different visual effects: rounded corners and
|
52
|
+
animations for your HTML elements. Rounded corners are created
|
53
|
+
completely through CSS manipulations and require no external images or
|
54
|
+
style sheets. This implementation was adapted from <a class="reference" href="http://www.openrico.org">Rico</a>. Dynamic
|
55
|
+
effects are ported from <a class="reference" href="http://script.aculo.us">Scriptaculous</a>.</p>
|
56
|
+
<div class="section">
|
57
|
+
<h2><a id="animations-effects" name="animations-effects">Animations & Effects</a></h2>
|
58
|
+
<p>Dynamic or animated effects are managed by a basic looping service (see
|
59
|
+
<a class="mochiref reference" href="#fn-base">Base</a>). The effect looping is controlled by timers that are invoked
|
60
|
+
at regular and short intervals while the effect is executing. The base looping
|
61
|
+
service takes the current system time into consideration, automatically
|
62
|
+
skipping effect steps on execution delays.</p>
|
63
|
+
<p>The effect classes need only handle dynamic updates based on a floating-point
|
64
|
+
number between <tt class="docutils literal"><span class="pre">0.0</span></tt> and <tt class="docutils literal"><span class="pre">1.0</span></tt> (the effect position). This effect position
|
65
|
+
may also be manipulated by <a class="mochiref reference" href="#fn-transitions">Transitions</a> to provide non-linear
|
66
|
+
updates, which may further enhance the visual effect.</p>
|
67
|
+
<p>The effect timer and transitions can be controlled through a set of
|
68
|
+
<a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a> that are available for all effect classes.</p>
|
69
|
+
</div>
|
70
|
+
<div class="section">
|
71
|
+
<h2><a id="the-effects-queue" name="the-effects-queue">The Effects Queue</a></h2>
|
72
|
+
<p>When you create effects based on user input (mouse clicks for example), it can
|
73
|
+
create conflicts between the effects if multiple effects are running at the
|
74
|
+
same time. To manage this problem, the Queue mechanism has been introduced:
|
75
|
+
it's responsible for running the effects as you desired.</p>
|
76
|
+
<p>By default, you have one Queue called <tt class="docutils literal"><span class="pre">'global'</span></tt>, and the effects run in
|
77
|
+
<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. Its value can be a string, thereby using the
|
79
|
+
<tt class="docutils literal"><span class="pre">global</span></tt> scope:</p>
|
80
|
+
<ul class="simple">
|
81
|
+
<li><cite>front</cite>: the effect will be run before any other non-started effect;</li>
|
82
|
+
<li><cite>end</cite>: the effect will be run when all other effects have finished;</li>
|
83
|
+
<li><cite>break</cite>: every other effect is immediately finalized when the the effect start;</li>
|
84
|
+
<li><cite>parallel</cite>: the effect runs in parallel with other effects.</li>
|
85
|
+
</ul>
|
86
|
+
<p>But you have even more control if you use an object with the following
|
87
|
+
property keys:</p>
|
88
|
+
<ul class="simple">
|
89
|
+
<li><cite>position</cite> takes one of the values listed above;</li>
|
90
|
+
<li><cite>scope</cite> contains the queue name. If it's <tt class="docutils literal"><span class="pre">"global"</span></tt> the effect will use the
|
91
|
+
default queue, otherwise you can define your own queue name. For example, if
|
92
|
+
you add an effect on a specified element, you may use the element id as scope;</li>
|
93
|
+
<li><cite>limit</cite> defines how many effects can be stored in the queue at a single time.
|
94
|
+
If an effect is added when the limit has been reached, it will never be run
|
95
|
+
(it's lost).</li>
|
96
|
+
</ul>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
<div class="section">
|
100
|
+
<h1><a id="api-reference" name="api-reference">API Reference</a></h1>
|
101
|
+
<div class="section">
|
102
|
+
<h2><a id="functions" name="functions">Functions</a></h2>
|
103
|
+
<p>
|
104
|
+
<a name="fn-roundclass"></a>
|
105
|
+
<a class="mochidef reference" href="#fn-roundclass">roundClass(tagName[, className[, options]])</a>:</p>
|
106
|
+
<blockquote>
|
107
|
+
<p>Rounds all of the elements that match the <tt class="docutils literal"><span class="pre">tagName</span></tt> and
|
108
|
+
<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>
|
109
|
+
or <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
|
+
Regarding the <tt class="docutils literal"><span class="pre">options</span></tt>, see the <a class="mochiref reference" href="#fn-roundelement">roundElement</a> function.</p>
|
111
|
+
<dl class="docutils">
|
112
|
+
<dt><em>Availability</em>:</dt>
|
113
|
+
<dd>Available in MochiKit 1.3.1+</dd>
|
114
|
+
</dl>
|
115
|
+
</blockquote>
|
116
|
+
<p>
|
117
|
+
<a name="fn-roundelement"></a>
|
118
|
+
<a class="mochidef reference" href="#fn-roundelement">roundElement(element[, options])</a>:</p>
|
119
|
+
<blockquote>
|
120
|
+
<p>Immediately round the corners of the specified <tt class="docutils literal"><span class="pre">element</span></tt>.</p>
|
121
|
+
<dl class="docutils">
|
122
|
+
<dt>element:</dt>
|
123
|
+
<dd>An element ID string or a DOM node (see
|
124
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
125
|
+
<dt>options:</dt>
|
126
|
+
<dd><p class="first">The <tt class="docutils literal"><span class="pre">options</span></tt> mapping has the following defaults:</p>
|
127
|
+
<table border="1" class="last docutils">
|
128
|
+
<colgroup>
|
129
|
+
<col width="35%" />
|
130
|
+
<col width="65%" />
|
131
|
+
</colgroup>
|
132
|
+
<tbody valign="top">
|
133
|
+
<tr><td>corners</td>
|
134
|
+
<td><tt class="docutils literal"><span class="pre">"all"</span></tt></td>
|
135
|
+
</tr>
|
136
|
+
<tr><td>color</td>
|
137
|
+
<td><tt class="docutils literal"><span class="pre">"fromElement"</span></tt></td>
|
138
|
+
</tr>
|
139
|
+
<tr><td>bgColor</td>
|
140
|
+
<td><tt class="docutils literal"><span class="pre">"fromParent"</span></tt></td>
|
141
|
+
</tr>
|
142
|
+
<tr><td>blend</td>
|
143
|
+
<td><tt class="docutils literal"><span class="pre">true</span></tt></td>
|
144
|
+
</tr>
|
145
|
+
<tr><td>border</td>
|
146
|
+
<td><tt class="docutils literal"><span class="pre">false</span></tt></td>
|
147
|
+
</tr>
|
148
|
+
<tr><td>compact</td>
|
149
|
+
<td><tt class="docutils literal"><span class="pre">false</span></tt></td>
|
150
|
+
</tr>
|
151
|
+
</tbody>
|
152
|
+
</table>
|
153
|
+
</dd>
|
154
|
+
</dl>
|
155
|
+
<p>The <tt class="docutils literal"><span class="pre">options</span></tt> parameters can have following values:</p>
|
156
|
+
<dl class="docutils">
|
157
|
+
<dt>corners:</dt>
|
158
|
+
<dd><p class="first">Specifies which corners of the element should be rounded.
|
159
|
+
Choices are:</p>
|
160
|
+
<ul class="simple">
|
161
|
+
<li>all</li>
|
162
|
+
<li>top</li>
|
163
|
+
<li>bottom</li>
|
164
|
+
<li>tl (top left)</li>
|
165
|
+
<li>bl (bottom left)</li>
|
166
|
+
<li>tr (top right)</li>
|
167
|
+
<li>br (bottom right)</li>
|
168
|
+
</ul>
|
169
|
+
<dl class="last docutils">
|
170
|
+
<dt>Example:</dt>
|
171
|
+
<dd><tt class="docutils literal"><span class="pre">"tl</span> <span class="pre">br"</span></tt>: top-left and bottom-right corners are rounded</dd>
|
172
|
+
</dl>
|
173
|
+
</dd>
|
174
|
+
<dt>blend:</dt>
|
175
|
+
<dd>Specifies whether the color and background color should be
|
176
|
+
blended together to produce the border color.</dd>
|
177
|
+
<dt><em>Availability</em>:</dt>
|
178
|
+
<dd>Available in MochiKit 1.3.1+</dd>
|
179
|
+
</dl>
|
180
|
+
</blockquote>
|
181
|
+
<p>
|
182
|
+
<a name="fn-toggle"></a>
|
183
|
+
<a class="mochidef reference" href="#fn-toggle">toggle(element[, effect[, options]])</a>:</p>
|
184
|
+
<blockquote>
|
185
|
+
<p>Toggle an <tt class="docutils literal"><span class="pre">element</span></tt> between visible and invisible state using an
|
186
|
+
effect.</p>
|
187
|
+
<dl class="docutils">
|
188
|
+
<dt>element:</dt>
|
189
|
+
<dd>An element ID string or a DOM node (see
|
190
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
191
|
+
<dt>effect:</dt>
|
192
|
+
<dd><p class="first">One of the visual pairs to use:</p>
|
193
|
+
<table border="1" class="last docutils">
|
194
|
+
<colgroup>
|
195
|
+
<col width="21%" />
|
196
|
+
<col width="79%" />
|
197
|
+
</colgroup>
|
198
|
+
<tbody valign="top">
|
199
|
+
<tr><td><tt class="docutils literal"><span class="pre">"appear"</span></tt></td>
|
200
|
+
<td><a class="mochiref reference" href="#fn-appear">appear</a> and <a class="mochiref reference" href="#fn-fade">fade</a></td>
|
201
|
+
</tr>
|
202
|
+
<tr><td><tt class="docutils literal"><span class="pre">"blind"</span></tt></td>
|
203
|
+
<td><a class="mochiref reference" href="#fn-blindup">blindUp</a> and <a class="mochiref reference" href="#fn-blinddown">blindDown</a></td>
|
204
|
+
</tr>
|
205
|
+
<tr><td><tt class="docutils literal"><span class="pre">"size"</span></tt></td>
|
206
|
+
<td><a class="mochiref reference" href="#fn-grow">grow</a> and <a class="mochiref reference" href="#fn-shrink">shrink</a></td>
|
207
|
+
</tr>
|
208
|
+
<tr><td><tt class="docutils literal"><span class="pre">"slide"</span></tt></td>
|
209
|
+
<td><a class="mochiref reference" href="#fn-slideup">slideUp</a> and <a class="mochiref reference" href="#fn-slidedown">slideDown</a></td>
|
210
|
+
</tr>
|
211
|
+
</tbody>
|
212
|
+
</table>
|
213
|
+
</dd>
|
214
|
+
<dt>options:</dt>
|
215
|
+
<dd>The optional effect options (see the respective effect
|
216
|
+
functions for details).</dd>
|
217
|
+
<dt><em>Availability</em>:</dt>
|
218
|
+
<dd>Available in MochiKit 1.4+</dd>
|
219
|
+
</dl>
|
220
|
+
</blockquote>
|
221
|
+
<p>
|
222
|
+
<a name="fn-tagifytext"></a>
|
223
|
+
<a class="mochidef reference" href="#fn-tagifytext">tagifyText(element[, tagifyStyle])</a>:</p>
|
224
|
+
<blockquote>
|
225
|
+
<p>Transform the node text into <tt class="docutils literal"><span class="pre">SPAN</span></tt> nodes each containing a single
|
226
|
+
letter. Only text nodes that are immediate children will be modified
|
227
|
+
by this function.</p>
|
228
|
+
<dl class="docutils">
|
229
|
+
<dt>element:</dt>
|
230
|
+
<dd>An element ID string or a DOM node (see
|
231
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
232
|
+
<dt>tagifyStyle:</dt>
|
233
|
+
<dd>Style to apply to each new <tt class="docutils literal"><span class="pre">SPAN</span></tt> node, defaults to
|
234
|
+
<tt class="docutils literal"><span class="pre">'position:</span> <span class="pre">relative'</span></tt>.</dd>
|
235
|
+
<dt><em>Availability</em>:</dt>
|
236
|
+
<dd>Available in MochiKit 1.4+</dd>
|
237
|
+
</dl>
|
238
|
+
</blockquote>
|
239
|
+
<p>
|
240
|
+
<a name="fn-multiple"></a>
|
241
|
+
<a class="mochidef reference" href="#fn-multiple">multiple(elements, effect[, options])</a>:</p>
|
242
|
+
<blockquote>
|
243
|
+
<p>Launch the same effect on a list of <tt class="docutils literal"><span class="pre">elements</span></tt>.</p>
|
244
|
+
<dl class="docutils">
|
245
|
+
<dt>elements:</dt>
|
246
|
+
<dd>A list of element ID strings or a DOM nodes (see
|
247
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
248
|
+
<dt>effect:</dt>
|
249
|
+
<dd>An effect class constructor function.</dd>
|
250
|
+
<dt>options:</dt>
|
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
|
253
|
+
additional element in the list. This cause the effects to not run
|
254
|
+
exactly in parallel by default.</p>
|
255
|
+
<table border="1" class="last docutils">
|
256
|
+
<colgroup>
|
257
|
+
<col width="35%" />
|
258
|
+
<col width="65%" />
|
259
|
+
</colgroup>
|
260
|
+
<tbody valign="top">
|
261
|
+
<tr><td>speed</td>
|
262
|
+
<td><tt class="docutils literal"><span class="pre">0.1</span></tt></td>
|
263
|
+
</tr>
|
264
|
+
<tr><td>delay</td>
|
265
|
+
<td><tt class="docutils literal"><span class="pre">0.0</span></tt> (initial)</td>
|
266
|
+
</tr>
|
267
|
+
</tbody>
|
268
|
+
</table>
|
269
|
+
</dd>
|
270
|
+
<dt><em>Availability</em>:</dt>
|
271
|
+
<dd>Available in MochiKit 1.4+</dd>
|
272
|
+
</dl>
|
273
|
+
</blockquote>
|
274
|
+
</div>
|
275
|
+
<div class="section">
|
276
|
+
<h2><a id="combination-effects" name="combination-effects">Combination Effects</a></h2>
|
277
|
+
<p>
|
278
|
+
<a name="fn-fade"></a>
|
279
|
+
<a class="mochidef reference" href="#fn-fade">fade(element[, options])</a>:</p>
|
280
|
+
<blockquote>
|
281
|
+
<p>Fades an <tt class="docutils literal"><span class="pre">element</span></tt> using the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect. Once
|
282
|
+
the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
|
283
|
+
<a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element
|
284
|
+
opacity will be restored.</p>
|
285
|
+
<dl class="docutils">
|
286
|
+
<dt>element:</dt>
|
287
|
+
<dd>An element ID string or a DOM node (see
|
288
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
289
|
+
<dt>options:</dt>
|
290
|
+
<dd><table border="1" class="first last docutils">
|
291
|
+
<colgroup>
|
292
|
+
<col width="12%" />
|
293
|
+
<col width="88%" />
|
294
|
+
</colgroup>
|
295
|
+
<tbody valign="top">
|
296
|
+
<tr><td>from</td>
|
297
|
+
<td><tt class="docutils literal"><span class="pre">element.opacity</span> <span class="pre">||</span> <span class="pre">1.0</span></tt></td>
|
298
|
+
</tr>
|
299
|
+
<tr><td>to</td>
|
300
|
+
<td><tt class="docutils literal"><span class="pre">0.0</span></tt></td>
|
301
|
+
</tr>
|
302
|
+
</tbody>
|
303
|
+
</table>
|
304
|
+
</dd>
|
305
|
+
<dt><em>Availability</em>:</dt>
|
306
|
+
<dd>Available in MochiKit 1.4+</dd>
|
307
|
+
</dl>
|
308
|
+
</blockquote>
|
309
|
+
<p>
|
310
|
+
<a name="fn-appear"></a>
|
311
|
+
<a class="mochidef reference" href="#fn-appear">appear(element [, options])</a>:</p>
|
312
|
+
<blockquote>
|
313
|
+
<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">"display:</span> <span class="pre">none"</span></tt> style, it will be changed
|
315
|
+
to <tt class="docutils literal"><span class="pre">"display:</span> <span class="pre">block"</span></tt> with <a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a>.</p>
|
316
|
+
<dl class="docutils">
|
317
|
+
<dt>element:</dt>
|
318
|
+
<dd>An element ID string or a DOM node (see
|
319
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
320
|
+
<dt>options:</dt>
|
321
|
+
<dd><table border="1" class="first last docutils">
|
322
|
+
<colgroup>
|
323
|
+
<col width="10%" />
|
324
|
+
<col width="90%" />
|
325
|
+
</colgroup>
|
326
|
+
<tbody valign="top">
|
327
|
+
<tr><td>from</td>
|
328
|
+
<td><tt class="docutils literal"><span class="pre">element.opacity</span> <span class="pre">||</span> <span class="pre">0.0</span></tt></td>
|
329
|
+
</tr>
|
330
|
+
<tr><td>to</td>
|
331
|
+
<td><tt class="docutils literal"><span class="pre">1.0</span></tt></td>
|
332
|
+
</tr>
|
333
|
+
</tbody>
|
334
|
+
</table>
|
335
|
+
</dd>
|
336
|
+
<dt><em>Availability</em>:</dt>
|
337
|
+
<dd>Available in MochiKit 1.4+</dd>
|
338
|
+
</dl>
|
339
|
+
</blockquote>
|
340
|
+
<p>
|
341
|
+
<a name="fn-puff"></a>
|
342
|
+
<a class="mochidef reference" href="#fn-puff">puff(element [, options])</a>:</p>
|
343
|
+
<blockquote>
|
344
|
+
<p>Make an <tt class="docutils literal"><span class="pre">element</span></tt> double size while also fading it using the
|
345
|
+
<a class="mochiref reference" href="#fn-scale">Scale</a> and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel.
|
346
|
+
Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
|
347
|
+
<a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element
|
348
|
+
size, position and opacity will be restored.</p>
|
349
|
+
<dl class="docutils">
|
350
|
+
<dt>element:</dt>
|
351
|
+
<dd>An element ID string or a DOM node (see
|
352
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
353
|
+
<dt>options:</dt>
|
354
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
|
355
|
+
<dt><em>Availability</em>:</dt>
|
356
|
+
<dd>Available in MochiKit 1.4+</dd>
|
357
|
+
</dl>
|
358
|
+
</blockquote>
|
359
|
+
<p>
|
360
|
+
<a name="fn-blindup"></a>
|
361
|
+
<a class="mochidef reference" href="#fn-blindup">blindUp(element [, options])</a>:</p>
|
362
|
+
<blockquote>
|
363
|
+
<p>Blind an <tt class="docutils literal"><span class="pre">element</span></tt> up, changing its vertical size to 0 using the
|
364
|
+
<a class="mochiref reference" href="#fn-scale">Scale</a> effect. Once the effect has completed, the
|
365
|
+
<tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
|
366
|
+
<a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element
|
367
|
+
size will be restored.</p>
|
368
|
+
<dl class="docutils">
|
369
|
+
<dt>element:</dt>
|
370
|
+
<dd>An element ID string or a DOM node (see
|
371
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
372
|
+
<dt>options:</dt>
|
373
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
|
374
|
+
<dt><em>Availability</em>:</dt>
|
375
|
+
<dd>Available in MochiKit 1.4+</dd>
|
376
|
+
</dl>
|
377
|
+
</blockquote>
|
378
|
+
<p>
|
379
|
+
<a name="fn-blinddown"></a>
|
380
|
+
<a class="mochidef reference" href="#fn-blinddown">blindDown(element [, options])</a>:</p>
|
381
|
+
<blockquote>
|
382
|
+
<p>Blind an <tt class="docutils literal"><span class="pre">element</span></tt> down, restoring its vertical size using the
|
383
|
+
<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">"display:</span> <span class="pre">none"</span></tt>
|
384
|
+
style, it will be changed to <tt class="docutils literal"><span class="pre">"display:</span> <span class="pre">block"</span></tt> with
|
385
|
+
<a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a>.</p>
|
386
|
+
<dl class="docutils">
|
387
|
+
<dt>element:</dt>
|
388
|
+
<dd>An element ID string or a DOM node (see
|
389
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
390
|
+
<dt>options:</dt>
|
391
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
|
392
|
+
<dt><em>Availability</em>:</dt>
|
393
|
+
<dd>Available in MochiKit 1.4+</dd>
|
394
|
+
</dl>
|
395
|
+
</blockquote>
|
396
|
+
<p>
|
397
|
+
<a name="fn-switchoff"></a>
|
398
|
+
<a class="mochidef reference" href="#fn-switchoff">switchOff(element [, options])</a>:</p>
|
399
|
+
<blockquote>
|
400
|
+
<p>A switch-off like effect, making the <tt class="docutils literal"><span class="pre">element</span></tt> disappear, using
|
401
|
+
the <a class="mochiref reference" href="#fn-opacity">Opacity</a> and <a class="mochiref reference" href="#fn-scale">Scale</a> effects in sequence.
|
402
|
+
The initial <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect uses a flicker (partially
|
403
|
+
random) transformation. Once the effect has completed, the
|
404
|
+
<tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
|
405
|
+
<a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element
|
406
|
+
opacity, size and position will be restored.</p>
|
407
|
+
<dl class="docutils">
|
408
|
+
<dt>element:</dt>
|
409
|
+
<dd>An element ID string or a DOM node (see
|
410
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
411
|
+
<dt>options:</dt>
|
412
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the options will
|
413
|
+
only affect the secondary <a class="mochiref reference" href="#fn-scale">Scale</a> effect.</dd>
|
414
|
+
<dt><em>Availability</em>:</dt>
|
415
|
+
<dd>Available in MochiKit 1.4+</dd>
|
416
|
+
</dl>
|
417
|
+
</blockquote>
|
418
|
+
<p>
|
419
|
+
<a name="fn-dropout"></a>
|
420
|
+
<a class="mochidef reference" href="#fn-dropout">dropOut(element [, options])</a>:</p>
|
421
|
+
<blockquote>
|
422
|
+
<p>Make the element fall and fade using the
|
423
|
+
<a class="mochiref reference" href="#fn-move">Move</a> and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel.
|
424
|
+
Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
|
425
|
+
<a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element
|
426
|
+
position and opacity will be restored.</p>
|
427
|
+
<dl class="docutils">
|
428
|
+
<dt>element:</dt>
|
429
|
+
<dd>An element ID string or a DOM node (see
|
430
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
431
|
+
<dt>options:</dt>
|
432
|
+
<dd><p class="first">The <tt class="docutils literal"><span class="pre">distance</span></tt> option controls the number of pixels that the
|
433
|
+
element will move downwards. See also the
|
434
|
+
<a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
|
435
|
+
<table border="1" class="last docutils">
|
436
|
+
<colgroup>
|
437
|
+
<col width="53%" />
|
438
|
+
<col width="47%" />
|
439
|
+
</colgroup>
|
440
|
+
<tbody valign="top">
|
441
|
+
<tr><td>distance</td>
|
442
|
+
<td><tt class="docutils literal"><span class="pre">100</span></tt></td>
|
443
|
+
</tr>
|
444
|
+
</tbody>
|
445
|
+
</table>
|
446
|
+
</dd>
|
447
|
+
<dt><em>Availability</em>:</dt>
|
448
|
+
<dd>Available in MochiKit 1.4+</dd>
|
449
|
+
</dl>
|
450
|
+
</blockquote>
|
451
|
+
<p>
|
452
|
+
<a name="fn-shake"></a>
|
453
|
+
<a class="mochidef reference" href="#fn-shake">shake(element [, options])</a>:</p>
|
454
|
+
<blockquote>
|
455
|
+
<p>Shake an element from left to right using a sequence of six
|
456
|
+
<a class="mochiref reference" href="#fn-move">Move</a> effects. Once the effect has completed, the
|
457
|
+
original <tt class="docutils literal"><span class="pre">element</span></tt> position will be restored.</p>
|
458
|
+
<dl class="docutils">
|
459
|
+
<dt>element:</dt>
|
460
|
+
<dd>An element ID string or a DOM node (see
|
461
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
462
|
+
<dt>options:</dt>
|
463
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the options will
|
464
|
+
only affect the last <a class="mochiref reference" href="#fn-move">Move</a> effect.</dd>
|
465
|
+
<dt><em>Availability</em>:</dt>
|
466
|
+
<dd>Available in MochiKit 1.4+</dd>
|
467
|
+
</dl>
|
468
|
+
</blockquote>
|
469
|
+
<p>
|
470
|
+
<a name="fn-slidedown"></a>
|
471
|
+
<a class="mochidef reference" href="#fn-slidedown">slideDown(element [, options])</a>:</p>
|
472
|
+
<blockquote>
|
473
|
+
<p>Slide an <tt class="docutils literal"><span class="pre">element</span></tt> down using the <a class="mochiref reference" href="#fn-scale">Scale</a> effect.
|
474
|
+
The <tt class="docutils literal"><span class="pre">element</span></tt> must have a fixed height and contain a single
|
475
|
+
child. If the <tt class="docutils literal"><span class="pre">element</span></tt> has <tt class="docutils literal"><span class="pre">"display:</span> <span class="pre">none"</span></tt> style it
|
476
|
+
will be changed to <tt class="docutils literal"><span class="pre">"display:</span> <span class="pre">block"</span></tt> with
|
477
|
+
<a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a>.</p>
|
478
|
+
<dl class="docutils">
|
479
|
+
<dt>element:</dt>
|
480
|
+
<dd>An element ID string or a DOM node (see
|
481
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
482
|
+
<dt>options:</dt>
|
483
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
|
484
|
+
<dt><em>Availability</em>:</dt>
|
485
|
+
<dd>Available in MochiKit 1.4+</dd>
|
486
|
+
</dl>
|
487
|
+
</blockquote>
|
488
|
+
<p>
|
489
|
+
<a name="fn-slideup"></a>
|
490
|
+
<a class="mochidef reference" href="#fn-slideup">slideUp(element [, options])</a>:</p>
|
491
|
+
<blockquote>
|
492
|
+
<p>Slide an <tt class="docutils literal"><span class="pre">element</span></tt> up using the <a class="mochiref reference" href="#fn-scale">Scale</a> effect.
|
493
|
+
The <tt class="docutils literal"><span class="pre">element</span></tt> must have a fixed height and contain a single
|
494
|
+
child. Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be
|
495
|
+
hidden with <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the
|
496
|
+
original element size will be restored.</p>
|
497
|
+
<dl class="docutils">
|
498
|
+
<dt>element:</dt>
|
499
|
+
<dd>An element ID string or a DOM node (see
|
500
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
501
|
+
<dt>options:</dt>
|
502
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
|
503
|
+
<dt><em>Availability</em>:</dt>
|
504
|
+
<dd>Available in MochiKit 1.4+</dd>
|
505
|
+
</dl>
|
506
|
+
</blockquote>
|
507
|
+
<p>
|
508
|
+
<a name="fn-squish"></a>
|
509
|
+
<a class="mochidef reference" href="#fn-squish">squish(element [, options])</a>:</p>
|
510
|
+
<blockquote>
|
511
|
+
<p>Reduce the horizontal and vertical sizes at the same time using
|
512
|
+
a single <a class="mochiref reference" href="#fn-scale">Scale</a> effect. The result is similar to the
|
513
|
+
<a class="mochiref reference" href="#fn-shrink">shrink</a> effect with a <tt class="docutils literal"><span class="pre">top-left</span></tt> value for the
|
514
|
+
<tt class="docutils literal"><span class="pre">direction</span></tt> option. The <tt class="docutils literal"><span class="pre">element</span></tt> should have fixed width and
|
515
|
+
height. Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be
|
516
|
+
hidden with <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the
|
517
|
+
original element size will be restored.</p>
|
518
|
+
<dl class="docutils">
|
519
|
+
<dt>element:</dt>
|
520
|
+
<dd>An element ID string or a DOM node (see
|
521
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
522
|
+
<dt>options:</dt>
|
523
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
|
524
|
+
<dt><em>Availability</em>:</dt>
|
525
|
+
<dd>Available in MochiKit 1.4+</dd>
|
526
|
+
</dl>
|
527
|
+
</blockquote>
|
528
|
+
<p>
|
529
|
+
<a name="fn-grow"></a>
|
530
|
+
<a class="mochidef reference" href="#fn-grow">grow(element [, options])</a>:</p>
|
531
|
+
<blockquote>
|
532
|
+
<p>Grows an <tt class="docutils literal"><span class="pre">element</span></tt> size using <a class="mochiref reference" href="#fn-scale">Scale</a>, <a class="mochiref reference" href="#fn-move">Move</a>
|
533
|
+
and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel. The <tt class="docutils literal"><span class="pre">element</span></tt> should
|
534
|
+
have fixed width, height and top-left position. Before the effect
|
535
|
+
starts, the <tt class="docutils literal"><span class="pre">element</span></tt> will be shown with
|
536
|
+
<a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a> and the size and position
|
537
|
+
values will be read.</p>
|
538
|
+
<dl class="docutils">
|
539
|
+
<dt>element:</dt>
|
540
|
+
<dd>An element ID string or a DOM node (see
|
541
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
542
|
+
<dt>options:</dt>
|
543
|
+
<dd><p class="first">The following options and default values control this
|
544
|
+
effect. Note that the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect is turned
|
545
|
+
off by default. See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
|
546
|
+
<table border="1" class="last docutils">
|
547
|
+
<colgroup>
|
548
|
+
<col width="30%" />
|
549
|
+
<col width="70%" />
|
550
|
+
</colgroup>
|
551
|
+
<tbody valign="top">
|
552
|
+
<tr><td>direction</td>
|
553
|
+
<td><tt class="docutils literal"><span class="pre">"center"</span></tt></td>
|
554
|
+
</tr>
|
555
|
+
<tr><td>moveTransition</td>
|
556
|
+
<td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td>
|
557
|
+
</tr>
|
558
|
+
<tr><td>scaleTransition</td>
|
559
|
+
<td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td>
|
560
|
+
</tr>
|
561
|
+
<tr><td>opacityTransition</td>
|
562
|
+
<td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.full</span></tt></td>
|
563
|
+
</tr>
|
564
|
+
</tbody>
|
565
|
+
</table>
|
566
|
+
</dd>
|
567
|
+
</dl>
|
568
|
+
<p>The <tt class="docutils literal"><span class="pre">direction</span></tt> option controls the origin point of the effect.
|
569
|
+
The following values are allowed:</p>
|
570
|
+
<blockquote>
|
571
|
+
<table border="1" class="docutils">
|
572
|
+
<colgroup>
|
573
|
+
<col width="34%" />
|
574
|
+
<col width="66%" />
|
575
|
+
</colgroup>
|
576
|
+
<tbody valign="top">
|
577
|
+
<tr><td><tt class="docutils literal"><span class="pre">"center"</span></tt></td>
|
578
|
+
<td>Grows from the center</td>
|
579
|
+
</tr>
|
580
|
+
<tr><td><tt class="docutils literal"><span class="pre">"top-left"</span></tt></td>
|
581
|
+
<td>Grows from the top left corner</td>
|
582
|
+
</tr>
|
583
|
+
<tr><td><tt class="docutils literal"><span class="pre">"top-right"</span></tt></td>
|
584
|
+
<td>Grows from the top right corner</td>
|
585
|
+
</tr>
|
586
|
+
<tr><td><tt class="docutils literal"><span class="pre">"bottom-left"</span></tt></td>
|
587
|
+
<td>Grows from the bottom left corner</td>
|
588
|
+
</tr>
|
589
|
+
<tr><td><tt class="docutils literal"><span class="pre">"bottom-right"</span></tt></td>
|
590
|
+
<td>Grows from the bottom right corner</td>
|
591
|
+
</tr>
|
592
|
+
</tbody>
|
593
|
+
</table>
|
594
|
+
</blockquote>
|
595
|
+
<dl class="docutils">
|
596
|
+
<dt><em>Availability</em>:</dt>
|
597
|
+
<dd>Available in MochiKit 1.4+</dd>
|
598
|
+
</dl>
|
599
|
+
</blockquote>
|
600
|
+
<p>
|
601
|
+
<a name="fn-shrink"></a>
|
602
|
+
<a class="mochidef reference" href="#fn-shrink">shrink(element [, options])</a>:</p>
|
603
|
+
<blockquote>
|
604
|
+
<p>Shrinks an <tt class="docutils literal"><span class="pre">element</span></tt> using <a class="mochiref reference" href="#fn-scale">Scale</a>, <a class="mochiref reference" href="#fn-move">Move</a>
|
605
|
+
and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel. The <tt class="docutils literal"><span class="pre">element</span></tt> should
|
606
|
+
have fixed width, height and top-left position. Once the effect has
|
607
|
+
completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
|
608
|
+
<a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original size and
|
609
|
+
position will be restored.</p>
|
610
|
+
<dl class="docutils">
|
611
|
+
<dt>element:</dt>
|
612
|
+
<dd>An element ID string or a DOM node (see
|
613
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
614
|
+
<dt>options:</dt>
|
615
|
+
<dd><p class="first">The following options and default values control this
|
616
|
+
effect. Note that the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect is turned
|
617
|
+
off by default. See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
|
618
|
+
<table border="1" class="last docutils">
|
619
|
+
<colgroup>
|
620
|
+
<col width="30%" />
|
621
|
+
<col width="70%" />
|
622
|
+
</colgroup>
|
623
|
+
<tbody valign="top">
|
624
|
+
<tr><td>direction</td>
|
625
|
+
<td><tt class="docutils literal"><span class="pre">"center"</span></tt></td>
|
626
|
+
</tr>
|
627
|
+
<tr><td>moveTransition</td>
|
628
|
+
<td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td>
|
629
|
+
</tr>
|
630
|
+
<tr><td>scaleTransition</td>
|
631
|
+
<td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td>
|
632
|
+
</tr>
|
633
|
+
<tr><td>opacityTransition</td>
|
634
|
+
<td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.full</span></tt></td>
|
635
|
+
</tr>
|
636
|
+
</tbody>
|
637
|
+
</table>
|
638
|
+
</dd>
|
639
|
+
</dl>
|
640
|
+
<p>The <tt class="docutils literal"><span class="pre">direction</span></tt> option controls the destination point of the
|
641
|
+
effect. The following values are allowed:</p>
|
642
|
+
<blockquote>
|
643
|
+
<table border="1" class="docutils">
|
644
|
+
<colgroup>
|
645
|
+
<col width="34%" />
|
646
|
+
<col width="66%" />
|
647
|
+
</colgroup>
|
648
|
+
<tbody valign="top">
|
649
|
+
<tr><td><tt class="docutils literal"><span class="pre">"center"</span></tt></td>
|
650
|
+
<td>Grows from the center</td>
|
651
|
+
</tr>
|
652
|
+
<tr><td><tt class="docutils literal"><span class="pre">"top-left"</span></tt></td>
|
653
|
+
<td>Grows from the top left corner</td>
|
654
|
+
</tr>
|
655
|
+
<tr><td><tt class="docutils literal"><span class="pre">"top-right"</span></tt></td>
|
656
|
+
<td>Grows from the top right corner</td>
|
657
|
+
</tr>
|
658
|
+
<tr><td><tt class="docutils literal"><span class="pre">"bottom-left"</span></tt></td>
|
659
|
+
<td>Grows from the bottom left corner</td>
|
660
|
+
</tr>
|
661
|
+
<tr><td><tt class="docutils literal"><span class="pre">"bottom-right"</span></tt></td>
|
662
|
+
<td>Grows from the bottom right corner</td>
|
663
|
+
</tr>
|
664
|
+
</tbody>
|
665
|
+
</table>
|
666
|
+
</blockquote>
|
667
|
+
<dl class="docutils">
|
668
|
+
<dt><em>Availability</em>:</dt>
|
669
|
+
<dd>Available in MochiKit 1.4+</dd>
|
670
|
+
</dl>
|
671
|
+
</blockquote>
|
672
|
+
<p>
|
673
|
+
<a name="fn-pulsate"></a>
|
674
|
+
<a class="mochidef reference" href="#fn-pulsate">pulsate(element [, options])</a>:</p>
|
675
|
+
<blockquote>
|
676
|
+
<p>Switches the <tt class="docutils literal"><span class="pre">element</span></tt> visibility using a pulsating
|
677
|
+
<a class="mochiref reference" href="#fn-opacity">Opacity</a> effect. The effect both starts and
|
678
|
+
ends with a <tt class="docutils literal"><span class="pre">0</span></tt> opacity value.</p>
|
679
|
+
<dl class="docutils">
|
680
|
+
<dt>element:</dt>
|
681
|
+
<dd>An element ID string or a DOM node (see
|
682
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
683
|
+
<dt>options:</dt>
|
684
|
+
<dd><p class="first">The <tt class="docutils literal"><span class="pre">pulses</span></tt> option controls the number of pulses
|
685
|
+
made during the effect. See also the
|
686
|
+
<a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
|
687
|
+
<table border="1" class="last docutils">
|
688
|
+
<colgroup>
|
689
|
+
<col width="43%" />
|
690
|
+
<col width="57%" />
|
691
|
+
</colgroup>
|
692
|
+
<tbody valign="top">
|
693
|
+
<tr><td>pulses</td>
|
694
|
+
<td><tt class="docutils literal"><span class="pre">5</span></tt></td>
|
695
|
+
</tr>
|
696
|
+
</tbody>
|
697
|
+
</table>
|
698
|
+
</dd>
|
699
|
+
<dt><em>Availability</em>:</dt>
|
700
|
+
<dd>Available in MochiKit 1.4+</dd>
|
701
|
+
</dl>
|
702
|
+
</blockquote>
|
703
|
+
<p>
|
704
|
+
<a name="fn-fold"></a>
|
705
|
+
<a class="mochidef reference" href="#fn-fold">fold(element [, options])</a>:</p>
|
706
|
+
<blockquote>
|
707
|
+
<p>Reduce first the <tt class="docutils literal"><span class="pre">element</span></tt> vertical size, and then the
|
708
|
+
horizontal size using two <a class="mochiref reference" href="#fn-scale">Scale</a> effects in sequence.
|
709
|
+
The <tt class="docutils literal"><span class="pre">element</span></tt> should have both fixed width and height. Once
|
710
|
+
the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden
|
711
|
+
with <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original
|
712
|
+
size and position will be restored.</p>
|
713
|
+
<dl class="docutils">
|
714
|
+
<dt>element:</dt>
|
715
|
+
<dd>An element ID string or a DOM node (see
|
716
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
717
|
+
<dt>options:</dt>
|
718
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the options
|
719
|
+
will only affect the first <a class="mochiref reference" href="#fn-scale">Scale</a> effect.</dd>
|
720
|
+
<dt><em>Availability</em>:</dt>
|
721
|
+
<dd>Available in MochiKit 1.4+</dd>
|
722
|
+
</dl>
|
723
|
+
</blockquote>
|
724
|
+
</div>
|
725
|
+
<div class="section">
|
726
|
+
<h2><a id="basic-effects-classes-constants" name="basic-effects-classes-constants">Basic Effects Classes & Constants</a></h2>
|
727
|
+
<p>
|
728
|
+
<a name="fn-transitions"></a>
|
729
|
+
<a class="mochidef reference" href="#fn-transitions">Transitions</a>:</p>
|
730
|
+
<blockquote>
|
731
|
+
<p>Default transition functions available for all effects. A transition
|
732
|
+
function adjusts the current position value between 0 and 1 in order
|
733
|
+
to achieve a non-linear sequence of position values for the effect.</p>
|
734
|
+
<table border="1" class="docutils">
|
735
|
+
<colgroup>
|
736
|
+
<col width="11%" />
|
737
|
+
<col width="89%" />
|
738
|
+
</colgroup>
|
739
|
+
<tbody valign="top">
|
740
|
+
<tr><td>linear</td>
|
741
|
+
<td>A straight linear transition.</td>
|
742
|
+
</tr>
|
743
|
+
<tr><td>sinoidal</td>
|
744
|
+
<td>A smooth sine value transition.</td>
|
745
|
+
</tr>
|
746
|
+
<tr><td>reverse</td>
|
747
|
+
<td>A reverse linear transition.</td>
|
748
|
+
</tr>
|
749
|
+
<tr><td>flicker</td>
|
750
|
+
<td>A sine transition with random additions.</td>
|
751
|
+
</tr>
|
752
|
+
<tr><td>wobble</td>
|
753
|
+
<td>A multi-period sine curve transition with 4.5 wobbles and ending with one (1).</td>
|
754
|
+
</tr>
|
755
|
+
<tr><td>pulse</td>
|
756
|
+
<td>A multi-period triangle curve transition with 5 pulses (by default) and ending with zero (0).</td>
|
757
|
+
</tr>
|
758
|
+
<tr><td>parabolic</td>
|
759
|
+
<td>A smooth parabolic transition.</td>
|
760
|
+
</tr>
|
761
|
+
<tr><td>none</td>
|
762
|
+
<td>A fixed zero (0) value transition.</td>
|
763
|
+
</tr>
|
764
|
+
<tr><td>full</td>
|
765
|
+
<td>A fixed one (1) value transition.</td>
|
766
|
+
</tr>
|
767
|
+
</tbody>
|
768
|
+
</table>
|
769
|
+
<dl class="docutils">
|
770
|
+
<dt><em>Availability</em>:</dt>
|
771
|
+
<dd>Available in MochiKit 1.4+</dd>
|
772
|
+
</dl>
|
773
|
+
</blockquote>
|
774
|
+
<p>
|
775
|
+
<a name="fn-defaultoptions"></a>
|
776
|
+
<a class="mochidef reference" href="#fn-defaultoptions">DefaultOptions</a>:</p>
|
777
|
+
<blockquote>
|
778
|
+
<p>Default options for all effects. Note that all effects inherit
|
779
|
+
the <a class="mochiref reference" href="#fn-base">Base</a> class and thereby also support a number of
|
780
|
+
events that can be specified as callback functions among the
|
781
|
+
effect options.</p>
|
782
|
+
<table border="1" class="docutils">
|
783
|
+
<colgroup>
|
784
|
+
<col width="13%" />
|
785
|
+
<col width="88%" />
|
786
|
+
</colgroup>
|
787
|
+
<tbody valign="top">
|
788
|
+
<tr><td>transition</td>
|
789
|
+
<td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td>
|
790
|
+
</tr>
|
791
|
+
<tr><td>duration</td>
|
792
|
+
<td><tt class="docutils literal"><span class="pre">1.0</span></tt> (seconds)</td>
|
793
|
+
</tr>
|
794
|
+
<tr><td>fps</td>
|
795
|
+
<td><tt class="docutils literal"><span class="pre">25.0</span></tt></td>
|
796
|
+
</tr>
|
797
|
+
<tr><td>sync</td>
|
798
|
+
<td><tt class="docutils literal"><span class="pre">false</span></tt> (only set for <a class="mochiref reference" href="#fn-parallel">Parallel</a> or <a class="mochiref reference" href="#fn-sequence">Sequence</a> effects)</td>
|
799
|
+
</tr>
|
800
|
+
<tr><td>from</td>
|
801
|
+
<td><tt class="docutils literal"><span class="pre">0.0</span></tt></td>
|
802
|
+
</tr>
|
803
|
+
<tr><td>to</td>
|
804
|
+
<td><tt class="docutils literal"><span class="pre">1.0</span></tt></td>
|
805
|
+
</tr>
|
806
|
+
<tr><td>delay</td>
|
807
|
+
<td><tt class="docutils literal"><span class="pre">0.0</span></tt></td>
|
808
|
+
</tr>
|
809
|
+
<tr><td>queue</td>
|
810
|
+
<td><tt class="docutils literal"><span class="pre">'parallel'</span></tt></td>
|
811
|
+
</tr>
|
812
|
+
</tbody>
|
813
|
+
</table>
|
814
|
+
<dl class="docutils">
|
815
|
+
<dt><em>Availability</em>:</dt>
|
816
|
+
<dd>Available in MochiKit 1.4+</dd>
|
817
|
+
</dl>
|
818
|
+
</blockquote>
|
819
|
+
<p>
|
820
|
+
<a name="fn-base"></a>
|
821
|
+
<a class="mochidef reference" href="#fn-base">Base()</a>:</p>
|
822
|
+
<blockquote>
|
823
|
+
<p>Base class to all effects. Define a basic looping service, use it
|
824
|
+
for creating new effects.</p>
|
825
|
+
<p>You can override the methods <tt class="docutils literal"><span class="pre">setup</span></tt>, <tt class="docutils literal"><span class="pre">update</span></tt> and <tt class="docutils literal"><span class="pre">finish</span></tt>.</p>
|
826
|
+
<p>The class defines a number of events that will be called during effect
|
827
|
+
life. The events are:</p>
|
828
|
+
<ul class="simple">
|
829
|
+
<li>beforeStart</li>
|
830
|
+
<li>beforeSetup</li>
|
831
|
+
<li>beforeUpdate</li>
|
832
|
+
<li>afterUpdate</li>
|
833
|
+
<li>beforeFinish</li>
|
834
|
+
<li>afterFinish</li>
|
835
|
+
</ul>
|
836
|
+
<p>If you want to define your own callbacks, define it in the options
|
837
|
+
parameter of the effect. Example:</p>
|
838
|
+
<pre class="literal-block">
|
839
|
+
// I slide it up and then down again
|
840
|
+
slideUp('myelement', {afterFinish: function () {
|
841
|
+
slideDown('myelement');
|
842
|
+
});
|
843
|
+
</pre>
|
844
|
+
<p>Specific <tt class="docutils literal"><span class="pre">internal</span></tt> events are also available: for each one listed above,
|
845
|
+
the same exists with an 'Internal' postfix (e.g. 'beforeStartInternal').
|
846
|
+
Their purpose is mainly for creating your own effect and keep the user
|
847
|
+
access to event callbacks (not overriding the library ones).</p>
|
848
|
+
<dl class="docutils">
|
849
|
+
<dt><em>Availability</em>:</dt>
|
850
|
+
<dd>Available in MochiKit 1.4+</dd>
|
851
|
+
</dl>
|
852
|
+
</blockquote>
|
853
|
+
<p>
|
854
|
+
<a name="fn-parallel"></a>
|
855
|
+
<a class="mochidef reference" href="#fn-parallel">Parallel(effects [, options])</a>:</p>
|
856
|
+
<blockquote>
|
857
|
+
<p>Launch a list of <tt class="docutils literal"><span class="pre">effects</span></tt> in parallel.</p>
|
858
|
+
<dl class="docutils">
|
859
|
+
<dt>effects:</dt>
|
860
|
+
<dd>An array of instantiated effect objects. Note that they <em>must</em>
|
861
|
+
all have <tt class="docutils literal"><span class="pre">sync</span></tt> set to <tt class="docutils literal"><span class="pre">true</span></tt>.</dd>
|
862
|
+
<dt>options:</dt>
|
863
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
|
864
|
+
<dt><em>Availability</em>:</dt>
|
865
|
+
<dd>Available in MochiKit 1.4+</dd>
|
866
|
+
</dl>
|
867
|
+
</blockquote>
|
868
|
+
<p>
|
869
|
+
<a name="fn-sequence"></a>
|
870
|
+
<a class="mochidef reference" href="#fn-sequence">Sequence(effects [, options])</a>:</p>
|
871
|
+
<blockquote>
|
872
|
+
<p>Launch a list of <tt class="docutils literal"><span class="pre">effects</span></tt> in sequence, one after the other.</p>
|
873
|
+
<dl class="docutils">
|
874
|
+
<dt>effects:</dt>
|
875
|
+
<dd>An array of instantiated effect objects. Note that they <em>must</em>
|
876
|
+
all have <tt class="docutils literal"><span class="pre">sync</span></tt> set to <tt class="docutils literal"><span class="pre">true</span></tt>.</dd>
|
877
|
+
<dt>options:</dt>
|
878
|
+
<dd><p class="first">See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the default value
|
879
|
+
for some options is different and that some of the transition
|
880
|
+
and timing options don't make sense to override.</p>
|
881
|
+
<table border="1" class="last docutils">
|
882
|
+
<colgroup>
|
883
|
+
<col width="20%" />
|
884
|
+
<col width="80%" />
|
885
|
+
</colgroup>
|
886
|
+
<tbody valign="top">
|
887
|
+
<tr><td>transition</td>
|
888
|
+
<td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.linear</span></tt></td>
|
889
|
+
</tr>
|
890
|
+
<tr><td>duration</td>
|
891
|
+
<td>Sum of the <tt class="docutils literal"><span class="pre">duration</span></tt> for all <tt class="docutils literal"><span class="pre">effects</span></tt>.</td>
|
892
|
+
</tr>
|
893
|
+
<tr><td>from</td>
|
894
|
+
<td>Only <tt class="docutils literal"><span class="pre">0.0</span></tt> makes sense.</td>
|
895
|
+
</tr>
|
896
|
+
<tr><td>to</td>
|
897
|
+
<td>Only <tt class="docutils literal"><span class="pre">1.0</span></tt> makes sense.</td>
|
898
|
+
</tr>
|
899
|
+
</tbody>
|
900
|
+
</table>
|
901
|
+
</dd>
|
902
|
+
<dt><em>Availability</em>:</dt>
|
903
|
+
<dd>Available in MochiKit 1.4+</dd>
|
904
|
+
</dl>
|
905
|
+
</blockquote>
|
906
|
+
<p>
|
907
|
+
<a name="fn-opacity"></a>
|
908
|
+
<a class="mochidef reference" href="#fn-opacity">Opacity(element [, options])</a>:</p>
|
909
|
+
<blockquote>
|
910
|
+
<p>Change the opacity of an <tt class="docutils literal"><span class="pre">element</span></tt> progressively.</p>
|
911
|
+
<dl class="docutils">
|
912
|
+
<dt>element:</dt>
|
913
|
+
<dd>An element ID string or a DOM node (see
|
914
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
915
|
+
<dt>options:</dt>
|
916
|
+
<dd><p class="first">The following options and default values control this effect.
|
917
|
+
See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
|
918
|
+
<table border="1" class="last docutils">
|
919
|
+
<colgroup>
|
920
|
+
<col width="43%" />
|
921
|
+
<col width="57%" />
|
922
|
+
</colgroup>
|
923
|
+
<tbody valign="top">
|
924
|
+
<tr><td>from</td>
|
925
|
+
<td><tt class="docutils literal"><span class="pre">0.0</span></tt></td>
|
926
|
+
</tr>
|
927
|
+
<tr><td>to</td>
|
928
|
+
<td><tt class="docutils literal"><span class="pre">1.0</span></tt></td>
|
929
|
+
</tr>
|
930
|
+
</tbody>
|
931
|
+
</table>
|
932
|
+
</dd>
|
933
|
+
<dt><em>Availability</em>:</dt>
|
934
|
+
<dd>Available in MochiKit 1.4+</dd>
|
935
|
+
</dl>
|
936
|
+
</blockquote>
|
937
|
+
<p>
|
938
|
+
<a name="fn-move"></a>
|
939
|
+
<a class="mochidef reference" href="#fn-move">Move(element [, options])</a>:</p>
|
940
|
+
<blockquote>
|
941
|
+
<p>Changes the (top left) position of an <tt class="docutils literal"><span class="pre">element</span></tt> in small steps,
|
942
|
+
creating a moving effect.</p>
|
943
|
+
<dl class="docutils">
|
944
|
+
<dt>element:</dt>
|
945
|
+
<dd>An element ID string or a DOM node (see
|
946
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
947
|
+
<dt>options:</dt>
|
948
|
+
<dd><p class="first">The following options and default values control this effect.
|
949
|
+
See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
|
950
|
+
<table border="1" class="last docutils">
|
951
|
+
<colgroup>
|
952
|
+
<col width="36%" />
|
953
|
+
<col width="64%" />
|
954
|
+
</colgroup>
|
955
|
+
<tbody valign="top">
|
956
|
+
<tr><td>x</td>
|
957
|
+
<td><tt class="docutils literal"><span class="pre">0</span></tt></td>
|
958
|
+
</tr>
|
959
|
+
<tr><td>y</td>
|
960
|
+
<td><tt class="docutils literal"><span class="pre">0</span></tt></td>
|
961
|
+
</tr>
|
962
|
+
<tr><td>mode</td>
|
963
|
+
<td><tt class="docutils literal"><span class="pre">'relative'</span></tt></td>
|
964
|
+
</tr>
|
965
|
+
</tbody>
|
966
|
+
</table>
|
967
|
+
</dd>
|
968
|
+
</dl>
|
969
|
+
<p>The <tt class="docutils literal"><span class="pre">mode</span></tt> option controls if the specified <tt class="docutils literal"><span class="pre">x</span></tt> and <tt class="docutils literal"><span class="pre">y</span></tt>
|
970
|
+
coordinates are <tt class="docutils literal"><span class="pre">relative</span></tt> or <tt class="docutils literal"><span class="pre">absolute</span></tt> with respect to the
|
971
|
+
current <tt class="docutils literal"><span class="pre">element</span></tt> position.</p>
|
972
|
+
<dl class="docutils">
|
973
|
+
<dt><em>Availability</em>:</dt>
|
974
|
+
<dd>Available in MochiKit 1.4+</dd>
|
975
|
+
</dl>
|
976
|
+
</blockquote>
|
977
|
+
<p>
|
978
|
+
<a name="fn-scale"></a>
|
979
|
+
<a class="mochidef reference" href="#fn-scale">Scale(element, percent [, options])</a>:</p>
|
980
|
+
<blockquote>
|
981
|
+
<p>Changes the size of an <tt class="docutils literal"><span class="pre">element</span></tt>.</p>
|
982
|
+
<dl class="docutils">
|
983
|
+
<dt>element:</dt>
|
984
|
+
<dd>An element ID string or a DOM node (see
|
985
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
986
|
+
<dt>percent:</dt>
|
987
|
+
<dd>Final wanted size in percent of current size. The size will be
|
988
|
+
reduced if the value is between 0 and 100, and raised if the
|
989
|
+
value is above 100.</dd>
|
990
|
+
<dt>options:</dt>
|
991
|
+
<dd><p class="first">The following options and default values control this effect.
|
992
|
+
See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
|
993
|
+
<table border="1" class="last docutils">
|
994
|
+
<colgroup>
|
995
|
+
<col width="57%" />
|
996
|
+
<col width="43%" />
|
997
|
+
</colgroup>
|
998
|
+
<tbody valign="top">
|
999
|
+
<tr><td>scaleX</td>
|
1000
|
+
<td><tt class="docutils literal"><span class="pre">true</span></tt></td>
|
1001
|
+
</tr>
|
1002
|
+
<tr><td>scaleY</td>
|
1003
|
+
<td><tt class="docutils literal"><span class="pre">true</span></tt></td>
|
1004
|
+
</tr>
|
1005
|
+
<tr><td>scaleContent</td>
|
1006
|
+
<td><tt class="docutils literal"><span class="pre">true</span></tt></td>
|
1007
|
+
</tr>
|
1008
|
+
<tr><td>scaleFromCenter</td>
|
1009
|
+
<td><tt class="docutils literal"><span class="pre">false</span></tt></td>
|
1010
|
+
</tr>
|
1011
|
+
<tr><td>scaleMode</td>
|
1012
|
+
<td><tt class="docutils literal"><span class="pre">"box"</span></tt></td>
|
1013
|
+
</tr>
|
1014
|
+
<tr><td>scaleFrom</td>
|
1015
|
+
<td><tt class="docutils literal"><span class="pre">100.0</span></tt></td>
|
1016
|
+
</tr>
|
1017
|
+
<tr><td>scaleTo</td>
|
1018
|
+
<td><tt class="docutils literal"><span class="pre">percent</span></tt></td>
|
1019
|
+
</tr>
|
1020
|
+
</tbody>
|
1021
|
+
</table>
|
1022
|
+
</dd>
|
1023
|
+
</dl>
|
1024
|
+
<p>The <tt class="docutils literal"><span class="pre">scaleContent</span></tt> option controls if the element <tt class="docutils literal"><span class="pre">font-size</span></tt>
|
1025
|
+
should also be scaled along with the size. The <tt class="docutils literal"><span class="pre">scaleFromCenter</span></tt>
|
1026
|
+
option allows continual adjustment of the <tt class="docutils literal"><span class="pre">element</span></tt> top left
|
1027
|
+
position to keep the element centered during the size change.
|
1028
|
+
The <tt class="docutils literal"><span class="pre">scaleMode</span></tt> option is used to determine the original
|
1029
|
+
<tt class="docutils literal"><span class="pre">element</span></tt> size. It can have one of the following values:</p>
|
1030
|
+
<blockquote>
|
1031
|
+
<table border="1" class="docutils">
|
1032
|
+
<colgroup>
|
1033
|
+
<col width="18%" />
|
1034
|
+
<col width="82%" />
|
1035
|
+
</colgroup>
|
1036
|
+
<tbody valign="top">
|
1037
|
+
<tr><td><tt class="docutils literal"><span class="pre">"box"</span></tt></td>
|
1038
|
+
<td>Uses <tt class="docutils literal"><span class="pre">offsetHeight</span></tt> and <tt class="docutils literal"><span class="pre">offsetWidth</span></tt></td>
|
1039
|
+
</tr>
|
1040
|
+
<tr><td><tt class="docutils literal"><span class="pre">"contents"</span></tt></td>
|
1041
|
+
<td>Uses <tt class="docutils literal"><span class="pre">scrollHeight</span></tt> and <tt class="docutils literal"><span class="pre">scrollWidth</span></tt></td>
|
1042
|
+
</tr>
|
1043
|
+
<tr><td>{...}</td>
|
1044
|
+
<td>Uses <tt class="docutils literal"><span class="pre">originalHeight</span></tt> and <tt class="docutils literal"><span class="pre">originalWidth</span></tt> from the specified object</td>
|
1045
|
+
</tr>
|
1046
|
+
</tbody>
|
1047
|
+
</table>
|
1048
|
+
</blockquote>
|
1049
|
+
<dl class="docutils">
|
1050
|
+
<dt><em>Availability</em>:</dt>
|
1051
|
+
<dd>Available in MochiKit 1.4+</dd>
|
1052
|
+
</dl>
|
1053
|
+
</blockquote>
|
1054
|
+
<p>
|
1055
|
+
<a name="fn-highlight"></a>
|
1056
|
+
<a class="mochidef reference" href="#fn-highlight">Highlight(element [, options])</a>:</p>
|
1057
|
+
<blockquote>
|
1058
|
+
<p>Highlights an <tt class="docutils literal"><span class="pre">element</span></tt> by flashing the background color. The
|
1059
|
+
color is first set to the <tt class="docutils literal"><span class="pre">startcolor</span></tt> and is then slowly
|
1060
|
+
morphed into the <tt class="docutils literal"><span class="pre">endcolor</span></tt>, normally the original background
|
1061
|
+
color of the element.</p>
|
1062
|
+
<dl class="docutils">
|
1063
|
+
<dt>element:</dt>
|
1064
|
+
<dd>An element ID string or a DOM node (see
|
1065
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
1066
|
+
<dt>options:</dt>
|
1067
|
+
<dd><p class="first">The following options and default values control this effect.
|
1068
|
+
See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
|
1069
|
+
<table border="1" class="last docutils">
|
1070
|
+
<colgroup>
|
1071
|
+
<col width="25%" />
|
1072
|
+
<col width="75%" />
|
1073
|
+
</colgroup>
|
1074
|
+
<tbody valign="top">
|
1075
|
+
<tr><td>startcolor</td>
|
1076
|
+
<td><tt class="docutils literal"><span class="pre">'#ffff99'</span></tt></td>
|
1077
|
+
</tr>
|
1078
|
+
<tr><td>endcolor</td>
|
1079
|
+
<td><tt class="docutils literal"><span class="pre">element.style.backgroundColor</span></tt></td>
|
1080
|
+
</tr>
|
1081
|
+
</tbody>
|
1082
|
+
</table>
|
1083
|
+
</dd>
|
1084
|
+
<dt><em>Availability</em>:</dt>
|
1085
|
+
<dd>Available in MochiKit 1.4+</dd>
|
1086
|
+
</dl>
|
1087
|
+
</blockquote>
|
1088
|
+
<p>
|
1089
|
+
<a name="fn-scrollto"></a>
|
1090
|
+
<a class="mochidef reference" href="#fn-scrollto">ScrollTo(element [, options])</a>:</p>
|
1091
|
+
<blockquote>
|
1092
|
+
<p>Scroll the window to the position of the given <tt class="docutils literal"><span class="pre">element</span></tt>. Note
|
1093
|
+
that this effect only scrolls the top window and not any parent
|
1094
|
+
elements with scrollbars due to <tt class="docutils literal"><span class="pre">"overflow:</span> <span class="pre">auto"</span></tt> style.</p>
|
1095
|
+
<dl class="docutils">
|
1096
|
+
<dt>element:</dt>
|
1097
|
+
<dd>An element ID string or a DOM node (see
|
1098
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
1099
|
+
<dt>options:</dt>
|
1100
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
|
1101
|
+
<dt><em>Availability</em>:</dt>
|
1102
|
+
<dd>Available in MochiKit 1.4+</dd>
|
1103
|
+
</dl>
|
1104
|
+
</blockquote>
|
1105
|
+
<p>
|
1106
|
+
<a name="fn-morph"></a>
|
1107
|
+
<a class="mochidef reference" href="#fn-morph">Morph(element [, options])</a>:</p>
|
1108
|
+
<blockquote>
|
1109
|
+
<p>Make a transformation to the given <tt class="docutils literal"><span class="pre">element</span></tt>. It's called with the option
|
1110
|
+
<tt class="docutils literal"><span class="pre">style</span></tt> with an array holding the styles to change. It works with
|
1111
|
+
properties for size (<tt class="docutils literal"><span class="pre">font-size</span></tt>, <tt class="docutils literal"><span class="pre">border-width</span></tt>, ...) and properties
|
1112
|
+
for color (<tt class="docutils literal"><span class="pre">color</span></tt>, <tt class="docutils literal"><span class="pre">background-color</span></tt>, ...).</p>
|
1113
|
+
<p>For size, it's better to have defined the original style. You <em>must</em>
|
1114
|
+
use the same unit in the call to Morph (no translation exists between two
|
1115
|
+
different units).</p>
|
1116
|
+
<p>Parsed length are postfixed with: em, ex, px, in, cm, mm, pt, pc.</p>
|
1117
|
+
<p>Example:</p>
|
1118
|
+
<pre class="literal-block">
|
1119
|
+
<div id="foo" style="font-size: 1em">MyDiv</div>
|
1120
|
+
...
|
1121
|
+
Morph("foo", {"style": {"font-size": "2em"}});
|
1122
|
+
</pre>
|
1123
|
+
<dl class="docutils">
|
1124
|
+
<dt>element:</dt>
|
1125
|
+
<dd>An element ID string or a DOM node (see
|
1126
|
+
<a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
|
1127
|
+
<dt>options:</dt>
|
1128
|
+
<dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
|
1129
|
+
<dt><em>Availability</em>:</dt>
|
1130
|
+
<dd>Available in MochiKit 1.4+</dd>
|
1131
|
+
</dl>
|
1132
|
+
</blockquote>
|
1133
|
+
</div>
|
1134
|
+
</div>
|
1135
|
+
<div class="section">
|
1136
|
+
<h1><a id="authors" name="authors">Authors</a></h1>
|
1137
|
+
<ul class="simple">
|
1138
|
+
<li>Kevin Dangoor <<a class="reference" href="mailto:dangoor@gmail.com">dangoor@gmail.com</a>></li>
|
1139
|
+
<li>Bob Ippolito <<a class="reference" href="mailto:bob@redivi.com">bob@redivi.com</a>></li>
|
1140
|
+
<li>Thomas Herve <<a class="reference" href="mailto:therve@gmail.com">therve@gmail.com</a>></li>
|
1141
|
+
<li>Round corners originally adapted from Rico <<a class="reference" href="http://openrico.org/">http://openrico.org/</a>>
|
1142
|
+
(though little remains)</li>
|
1143
|
+
<li>Effects originally adapted from Script.aculo.us
|
1144
|
+
<<a class="reference" href="http://script.aculo.us/">http://script.aculo.us/</a>></li>
|
1145
|
+
</ul>
|
1146
|
+
</div>
|
1147
|
+
<div class="section">
|
1148
|
+
<h1><a id="copyright" name="copyright">Copyright</a></h1>
|
1149
|
+
<p>Copyright 2005 Bob Ippolito <<a class="reference" href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is
|
1150
|
+
dual-licensed free software; you can redistribute it and/or modify it
|
1151
|
+
under the terms of the <a class="reference" href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <a class="reference" href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License
|
1152
|
+
v2.1</a>.</p>
|
1153
|
+
<p>Portions adapted from <a class="reference" href="http://www.openrico.org">Rico</a> are available under the terms of the
|
1154
|
+
<a class="reference" href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License, Version 2.0</a>.</p>
|
1155
|
+
<p>Portions adapted from <a class="reference" href="http://script.aculo.us">Scriptaculous</a> are available under the terms
|
1156
|
+
of the <a class="reference" href="http://www.opensource.org/licenses/mit-license.php">MIT License</a>.</p>
|
1157
|
+
</div>
|
1158
|
+
</div>
|
1159
|
+
|
1160
|
+
</body>
|
1161
|
+
</html>
|