old_sql 1.16.0 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +24 -13
- data/app/controllers/old_sql/report_controller.rb +3 -17
- data/app/views/layouts/old_sql/chart.html.erb +11 -0
- data/app/views/old_sql/report/chart.html.erb +8 -25
- data/lib/generators/old_sql/templates/user_design_template.csv +2 -3
- data/lib/generators/old_sql/templates/user_old_sql_demo_chart_design.yml +18 -9
- data/lib/old_sql/report_design/chart.rb +2 -2
- data/lib/old_sql/report_design/chart_item.rb +4 -4
- data/lib/old_sql/report_design/chart_parser.rb +2 -2
- data/public/javascripts/old_sql/chart.js +33 -0
- metadata +5 -265
- data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +0 -362
- data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +0 -69
- data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +0 -179
- data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +0 -17
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +0 -814
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +0 -1703
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +0 -755
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +0 -1197
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +0 -168
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +0 -187
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +0 -300
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +0 -524
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +0 -420
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +0 -142
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +0 -240
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +0 -508
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +0 -244
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +0 -385
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +0 -384
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +0 -1161
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +0 -447
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +0 -113
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +0 -767
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +0 -1445
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +0 -651
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +0 -1143
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +0 -145
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +0 -197
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +0 -258
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +0 -454
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +0 -348
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +0 -128
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +0 -26
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +0 -203
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +0 -498
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +0 -186
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +0 -353
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +0 -362
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +0 -895
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +0 -83
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +0 -69
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +0 -401
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +0 -10
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +0 -96
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +0 -4
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +0 -95
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +0 -23
- 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 +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +0 -150
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +0 -42
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +0 -90
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +0 -29
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +0 -189
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +0 -73
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +0 -36
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +0 -65
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +0 -61
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +0 -67
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +0 -67
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +0 -483
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +0 -62
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +0 -71
- 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 +0 -150
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +0 -373
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +0 -78
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +0 -5
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +0 -85
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +0 -46
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +0 -78
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +0 -11
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +0 -74
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +0 -73
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +0 -125
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +0 -17
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +0 -59
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +0 -3
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +0 -19
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +0 -45
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +0 -119
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +0 -43
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +0 -91
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +0 -93
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +0 -64
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +0 -66
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +0 -203
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +0 -177
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +0 -339
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +0 -22
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +0 -23
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +0 -29
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +0 -61
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +0 -622
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +0 -1
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +0 -19
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +0 -70
- 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 +0 -130
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +0 -48
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +0 -682
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +0 -1489
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +0 -863
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +0 -1256
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +0 -222
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +0 -793
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +0 -304
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +0 -844
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +0 -315
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +0 -353
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +0 -188
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +0 -115
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +0 -236
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +0 -415
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +0 -897
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +0 -589
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +0 -594
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +0 -162
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +0 -2026
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +0 -7829
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +0 -6
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +0 -251
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +0 -381
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +0 -159
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +0 -6
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +0 -25
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +0 -16
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +0 -577
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +0 -137
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +0 -52
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +0 -89
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +0 -186
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +0 -408
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +0 -1
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +0 -34
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +0 -84
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +0 -48
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +0 -363
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +0 -39
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +0 -39
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +0 -32
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +0 -295
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +0 -43
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +0 -223
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +0 -197
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +0 -481
- data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +0 -28
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +0 -406
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +0 -683
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +0 -161
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +0 -756
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +0 -151
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +0 -2177
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +0 -705
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +0 -348
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +0 -247
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +0 -9
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +0 -723
- data/public/javascripts/old_sql/plotkit-0.9.1/README +0 -1
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +0 -2
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +0 -2
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +0 -302
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +0 -139
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +0 -172
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +0 -81
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +0 -155
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +0 -50
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +0 -428
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +0 -330
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +0 -368
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +0 -256
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +0 -436
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +0 -299
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +0 -159
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +0 -64
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +0 -131
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +0 -34
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +0 -131
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +0 -34
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +0 -334
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +0 -151
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +0 -304
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +0 -144
- 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 +0 -62
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +0 -37
- 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 +0 -58
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +0 -31
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +0 -25
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +0 -143
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +0 -56
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +0 -58
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +0 -133
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +0 -57
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +0 -136
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +0 -161
- 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 +0 -38
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +0 -43
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +0 -28
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +0 -53
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +0 -61
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +0 -57
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +0 -6
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +0 -141
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +0 -26
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +0 -147
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +0 -24
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +0 -89
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +0 -66
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +0 -20
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +0 -31
@@ -1,362 +0,0 @@
|
|
1
|
-
2008-11-27 v1.4.2 (bug fix release)
|
2
|
-
|
3
|
-
- Changed default packed version to contain all modules (since easy
|
4
|
-
customization is now available).
|
5
|
-
- More fixes in MochiKit.Style.getElementDimensions for IE and hidden
|
6
|
-
elements (#325).
|
7
|
-
- Fixed issue in MochiKit.Style.getViewportDimensions when called within the
|
8
|
-
document HEAD.
|
9
|
-
- Fixed MochiKit.DOM.coerceToDOM() handling of arrays when MochiKit.Iter
|
10
|
-
is not loaded (#328).
|
11
|
-
|
12
|
-
2008-11-02 v1.4.1 (bug fix release)
|
13
|
-
|
14
|
-
- Added export of deprecated MochiKit.DOM.computedStyle function (#324).
|
15
|
-
- Fixed issue in MochiKit.Style.getElementDimensions when elements are
|
16
|
-
hidden due to CSS class definitions (#325).
|
17
|
-
- Moved makePositioned, undoPositioned, makeClipping and undoClipping
|
18
|
-
from MochiKit.DOM to MochiKit.Style due to circular dependency (#327).
|
19
|
-
- Fixed makeClipping and undoClipping to handle overflow-x and overflow-y
|
20
|
-
styles correctly (#326).
|
21
|
-
- Fixed issue with Event.relatedTarget() sometimes returning XUL elements
|
22
|
-
in Mozilla-based browsers (#322).
|
23
|
-
|
24
|
-
2008-10-21 v1.4
|
25
|
-
|
26
|
-
- Added pt_BR to MochiKit.Format.LOCALE.
|
27
|
-
- MochiKit.Async now sets the "X-Requested-With: XMLHttpRequest" header,
|
28
|
-
a de facto standard (Prototype, jQuery, Mootools).
|
29
|
-
- MochiKit.Signal custom handlers no longer cause callbacks to get re-bound to
|
30
|
-
the source if they were previously bound.
|
31
|
-
- Fixed MochiKit.Signal.signal re-entrancy bug that could cause recently
|
32
|
-
disconnected slots to get signaled.
|
33
|
-
- MochiKit.Base.evalJSON will now evaluate JSON that is wrapped in a
|
34
|
-
``/* comment block */``.
|
35
|
-
- MochiKit.Color's HSV to RGB conversion code fixed to return the correct
|
36
|
-
value (hsv.v for RGB values) in cases where saturation === 0.
|
37
|
-
- doXHR workaround for a Mozilla bug when calling XMLHttpRequest in certain
|
38
|
-
situations. Always wraps call in a callLater(0, doXHR, url, opts).
|
39
|
-
- parseQueryString will now parse values with embedded "="
|
40
|
-
- Workaround for a Safari DOM crash when using MochiKit.Iter.list.
|
41
|
-
http://bugs.webkit.org/show_bug.cgi?id=12191
|
42
|
-
- New removeNodeAttribute function in MochiKit.DOM.
|
43
|
-
- MochiKit.Async.doXHR and dependent functions now accept 201 CREATED and
|
44
|
-
204 NO CONTENT as valid.
|
45
|
-
- MochiKit.DOM.formContents now treats option tags the same way that
|
46
|
-
form posts do in the case of missing and empty string value attributes,
|
47
|
-
even in IE.
|
48
|
-
- MochiKit.Base.queryString now accepts third queryString([names, values])
|
49
|
-
form.
|
50
|
-
- MochiKit.DOM.formContents now defaults to document.body if no element is
|
51
|
-
given.
|
52
|
-
- New MochiKit.Selector module (still somewhat experimental)
|
53
|
-
- MochiKit.LoggingPane fixes for Internet Explorer
|
54
|
-
- MochiKit.DOM now creates XHTML nodes in XUL documents.
|
55
|
-
- MochiKit.LoggingPane now works on pages with '#' in the URL on IE
|
56
|
-
- New MochiKit.Async.doXHR as a convenient method for doing custom
|
57
|
-
XMLHttpRequests (e.g. extra headers, overrideMimeType, etc.)
|
58
|
-
- New __connect__ protocol for MochiKit.Signal.connect source notifications
|
59
|
-
- Added colSpan, bgColor to the list of DOM renames for Internet Explorer
|
60
|
-
- New MochiKit.Signal.disconnectAllTo function
|
61
|
-
- MochiKit.Base.parseQueryString now accepts leading question mark
|
62
|
-
- New MochiKit.Base.values function
|
63
|
-
- Fixed MochiKit.Signal.disconnect when called from a signal handler invoked
|
64
|
-
by MochiKit.Signal.signal
|
65
|
-
- parseQueryString now splits on HTML entities equivalent to ampersand as well
|
66
|
-
- Better XHTML compatibility (removed obvious cases where uppercase tagName or
|
67
|
-
nodeName was assumed)
|
68
|
-
- MochiKit.Base.queryString now handles array values in the same way HTML
|
69
|
-
forms handle multiple elements of the same name.
|
70
|
-
- MochiKit.Base.parseQueryString now returns {} for empty query string instead
|
71
|
-
of {"": "undefined"}
|
72
|
-
- MochiKit.DOM.formContents now handles option value="" correctly.
|
73
|
-
- MochiKit.DOM now checks for undefined className.
|
74
|
-
- MochiKit.Iter.groupby() now uses compare() to group rather than == and !=
|
75
|
-
- serializeJSON no longer serializes undefined, as per the JSON spec
|
76
|
-
- Fixed an infinite recursion bug in serializeJSON if an adapter
|
77
|
-
returns the object itself.
|
78
|
-
- Fixed vertical tab and control char encoding in serializeJSON (#313).
|
79
|
-
- New MochiKit.Base.operator.seq and sne to support strict comparison
|
80
|
-
- MochiKit.Base.isArrayLike no longer returns true for DOM text nodes
|
81
|
-
- Added readonly-readOnly to the list of DOM renames for Internet Explorer
|
82
|
-
- New MochiKit.Signal event method: confirmUnload (sets returnValue for
|
83
|
-
onbeforeunload)
|
84
|
-
- Fix interpreter help() function for Firefox and IE
|
85
|
-
- API version compatibility notes added
|
86
|
-
- New MochiKit.Base functions methodcaller and compose
|
87
|
-
- Support IE-based native console logging (Debugger, Atlas)
|
88
|
-
- Refactored style functions from MochiKit.DOM to MochiKit.Style
|
89
|
-
- MochiKit.Async.DeferredList is now a proper Deferred
|
90
|
-
- MochiKit.DOM.formContents now supports SELECT multiple tags
|
91
|
-
- Re-use StopIteration Error if the browser already has it
|
92
|
-
- Workaround IE type="" bug for INPUT elements
|
93
|
-
- Allow LoggingPane to work in IE with hyphen-containing URLs
|
94
|
-
- Replace percents for Safari native logging to avoid crashing
|
95
|
-
- New MochiKit.DOM.coerceToDOM .dom(node) / .__dom__(node) protocol
|
96
|
-
- MochiKit.DOM's MochiKit.Iter dependency is now optional
|
97
|
-
- Added expand all link to the documentation index
|
98
|
-
- Added MochiKit.DOM.isChildNode function.
|
99
|
-
- Added synthesizing for onmouseenter/onmouseleave
|
100
|
-
- Added animation functions and classes to MochiKit.Visual.
|
101
|
-
- Added MochiKit.Style.getElementDimensions support for calculating the
|
102
|
-
actual content size (without padding and borders).
|
103
|
-
- Added MochiKit.DOM.insertSiblingNodesBefore, getFirstElementByTagAndClassName,
|
104
|
-
getFirstParentByTagAndClassName, makeClipping, makePositioned,
|
105
|
-
undoClipping, undoPositioned and removeEmptyTextNodes functions.
|
106
|
-
- Added MochiKit.Base.bindLate, camelize, flattenArray, mean, median and
|
107
|
-
noop functions.
|
108
|
-
- New MochiKit.DragAndDrop module for drag and drop handling.
|
109
|
-
- New MochiKit.Sortable module for lists sortable with drag and drop.
|
110
|
-
- Changed MochiKit.Signal.connect to use late function binding also
|
111
|
-
for non-DOM signals (#307).
|
112
|
-
- Fixed MochiKit.Color.isColor when symbols not exported (#296).
|
113
|
-
- Added support for inclusion in SVG files (#290).
|
114
|
-
- Fixed rounding errors in MochiKit.Format.twoDigitFloat (#275).
|
115
|
-
- Fixed MochiKit.Logging to convert log levels to strings (#273).
|
116
|
-
- Fixed MochiKit.Iter.forEach and iextend for array-like objects with
|
117
|
-
and iter function (#268).
|
118
|
-
|
119
|
-
2006-04-29 v1.3.1 (bug fix release)
|
120
|
-
|
121
|
-
- Fix sendXMLHttpRequest sendContent regression
|
122
|
-
- Internet Explorer fix in MochiKit.Logging (printfire exception)
|
123
|
-
- Internet Explorer XMLHttpRequest object leak fixed in MochiKit.Async
|
124
|
-
|
125
|
-
2006-04-26 v1.3 "warp zone"
|
126
|
-
|
127
|
-
- IMPORTANT: Renamed MochiKit.Base.forward to forwardCall (for export)
|
128
|
-
- IMPORTANT: Renamed MochiKit.Base.find to findValue (for export)
|
129
|
-
- New MochiKit.Base.method as a convenience form of bind that takes the
|
130
|
-
object before the method
|
131
|
-
- New MochiKit.Base.flattenArguments for flattening a list of arguments to
|
132
|
-
a single Array
|
133
|
-
- Refactored MochiRegExp example to use MochiKit.Signal
|
134
|
-
- New key_events example demonstrating use of MochiKit.Signal's key handling
|
135
|
-
capabilities.
|
136
|
-
- MochiKit.DOM.createDOM API change for convenience: if attrs is a string,
|
137
|
-
null is used and the string will be considered the first node. This
|
138
|
-
allows for the more natural P("foo") rather than P(null, "foo").
|
139
|
-
- MochiKit Interpreter example refactored to use MochiKit.Signal and now
|
140
|
-
provides multi-line input and a help() function to get MochiKit function
|
141
|
-
signature from the documentation.
|
142
|
-
- Native Console Logging for the default MochiKit.Logging logger
|
143
|
-
- New MochiKit.Async.DeferredList, gatherResults, maybeDeferred
|
144
|
-
- New MochiKit.Signal example: draggable
|
145
|
-
- Added sanity checking to Deferred to ensure that errors happen when chaining
|
146
|
-
is used incorrectly
|
147
|
-
- Opera sendXMLHttpRequest fix (sends empty string instead of null by default)
|
148
|
-
- Fix a bug in MochiKit.Color that incorrectly generated hex colors for
|
149
|
-
component values smaller than 16/255.
|
150
|
-
- Fix a bug in MochiKit.Logging that prevented logs from being capped at a
|
151
|
-
maximum size
|
152
|
-
- MochiKit.Async.Deferred will now wrap thrown objects that are not instanceof
|
153
|
-
Error, so that the errback chain is used instead of the callback chain.
|
154
|
-
- MochiKit.DOM.appendChildNodes and associated functions now append iterables
|
155
|
-
in the correct order.
|
156
|
-
- New MochiKit-based SimpleTest test runner as a replacement for Test.Simple
|
157
|
-
- MochiKit.Base.isNull no longer matches undefined
|
158
|
-
- example doctypes changed to HTML4
|
159
|
-
- isDateLike no longer throws error on null
|
160
|
-
- New MochiKit.Signal module, modeled after the slot/signal mechanism in Qt
|
161
|
-
- updated elementDimensions to calculate width from offsetWidth instead
|
162
|
-
of clientWidth
|
163
|
-
- formContents now works with FORM tags that have a name attribute
|
164
|
-
- Documentation now uses MochiKit to generate a function index
|
165
|
-
|
166
|
-
2006-01-26 v1.2 "the ocho"
|
167
|
-
|
168
|
-
- Fixed MochiKit.Color.Color.lighterColorWithLevel
|
169
|
-
- Added new MochiKit.Base.findIdentical function to find the index of an
|
170
|
-
element in an Array-like object. Uses === for identity comparison.
|
171
|
-
- Added new MochiKit.Base.find function to find the index of an element in
|
172
|
-
an Array-like object. Uses compare for rich comparison.
|
173
|
-
- MochiKit.Base.bind will accept a string for func, which will be immediately
|
174
|
-
looked up as self[func].
|
175
|
-
- MochiKit.DOM.formContents no longer skips empty form elements for Zope
|
176
|
-
compatibility
|
177
|
-
- MochiKit.Iter.forEach will now catch StopIteration to break
|
178
|
-
- New MochiKit.DOM.elementDimensions(element) for determining the width and
|
179
|
-
height of an element in the document
|
180
|
-
- MochiKit.DOM's initialization is now compatible with
|
181
|
-
HTMLUnit + JWebUnit + Rhino
|
182
|
-
- MochiKit.LoggingPane will now re-use a ``_MochiKit_LoggingPane`` DIV element
|
183
|
-
currently in the document instead of always creating one.
|
184
|
-
- MochiKit.Base now has operator.mul
|
185
|
-
- MochiKit.DOM.formContents correctly handles unchecked checkboxes that have
|
186
|
-
a custom value attribute
|
187
|
-
- Added new MochiKit.Color constructors fromComputedStyle and fromText
|
188
|
-
- MochiKit.DOM.setNodeAttribute should work now
|
189
|
-
- MochiKit.DOM now has a workaround for an IE bug when setting the style
|
190
|
-
property to a string
|
191
|
-
- MochiKit.DOM.createDOM now has workarounds for IE bugs when setting the
|
192
|
-
name and for properties
|
193
|
-
- MochiKit.DOM.scrapeText now walks the DOM tree in-order
|
194
|
-
- MochiKit.LoggingPane now sanitizes the window name to work around IE bug
|
195
|
-
- MochiKit.DOM now translates usemap to useMap to work around IE bug
|
196
|
-
- MochiKit.Logging is now resistant to Prototype's dumb Object.prototype hacks
|
197
|
-
- Added new MochiKit.DOM documentation on element visibility
|
198
|
-
- New MochiKit.DOM.elementPosition(element[, relativeTo={x: 0, y: 0}])
|
199
|
-
for determining the position of an element in the document
|
200
|
-
- Added new MochiKit.DOM createDOMFunc aliases: CANVAS, STRONG
|
201
|
-
|
202
|
-
2005-11-14 v1.1
|
203
|
-
|
204
|
-
- Fixed a bug in numberFormatter with large numbers
|
205
|
-
- Massively overhauled documentation
|
206
|
-
- Fast-path for primitives in MochiKit.Base.compare
|
207
|
-
- New groupby and groupby_as_array in MochiKit.Iter
|
208
|
-
- Added iterator factory adapter for objects that implement iterateNext()
|
209
|
-
- Fixed isoTimestamp to handle timestamps with time zone correctly
|
210
|
-
- Added new MochiKit.DOM createDOMFunc aliases: SELECT, OPTION, OPTGROUP,
|
211
|
-
LEGEND, FIELDSET
|
212
|
-
- New MochiKit.DOM formContents and enhancement to queryString to support it
|
213
|
-
- Updated view_source example to use dp.SyntaxHighlighter 1.3.0
|
214
|
-
- MochiKit.LoggingPane now uses named windows based on the URL so that
|
215
|
-
a given URL will get the same LoggingPane window after a reload
|
216
|
-
(at the same position, etc.)
|
217
|
-
- MochiKit.DOM now has currentWindow() and currentDocument() context
|
218
|
-
variables that are set with withWindow() and withDocument(). These
|
219
|
-
context variables affect all MochiKit.DOM functionality (getElement,
|
220
|
-
createDOM, etc.)
|
221
|
-
- MochiKit.Base.items will now catch and ignore exceptions for properties
|
222
|
-
that are enumerable but not accessible (e.g. permission denied)
|
223
|
-
- MochiKit.Async.Deferred's addCallback/addErrback/addBoth
|
224
|
-
now accept additional arguments that are used to create a partially
|
225
|
-
applied function. This differs from Twisted in that the callback/errback
|
226
|
-
result becomes the *last* argument, not the first when this feature
|
227
|
-
is used.
|
228
|
-
- MochiKit.Async's doSimpleXMLHttpRequest will now accept additional
|
229
|
-
arguments which are used to create a GET query string
|
230
|
-
- Did some refactoring to reduce the footprint of MochiKit by a few
|
231
|
-
kilobytes
|
232
|
-
- escapeHTML to longer escapes ' (apos) and now uses
|
233
|
-
String.replace instead of iterating over every char.
|
234
|
-
- Added DeferredLock to Async
|
235
|
-
- Renamed getElementsComputedStyle to computedStyle and moved
|
236
|
-
it from MochiKit.Visual to MochiKit.DOM
|
237
|
-
- Moved all color support out of MochiKit.Visual and into MochiKit.Color
|
238
|
-
- Fixed range() to accept a negative step
|
239
|
-
- New alias to MochiKit.swapDOM called removeElement
|
240
|
-
- New MochiKit.DOM.setNodeAttribute(node, attr, value) which sets
|
241
|
-
an attribute on a node without raising, roughly equivalent to:
|
242
|
-
updateNodeAttributes(node, {attr: value})
|
243
|
-
- New MochiKit.DOM.getNodeAttribute(node, attr) which gets the value of
|
244
|
-
a node's attribute or returns null without raising
|
245
|
-
- Fixed a potential IE memory leak if using MochiKit.DOM.addToCallStack
|
246
|
-
directly (addLoadEvent did not leak, since it clears the handler)
|
247
|
-
|
248
|
-
2005-10-24 v1.0
|
249
|
-
|
250
|
-
- New interpreter example that shows usage of MochiKit.DOM to make
|
251
|
-
an interactive JavaScript interpreter
|
252
|
-
- New MochiKit.LoggingPane for use with the MochiKit.Logging
|
253
|
-
debuggingBookmarklet, with logging_pane example to show its usage
|
254
|
-
- New mochiregexp example that demonstrates MochiKit.DOM and MochiKit.Async
|
255
|
-
in order to provide a live regular expression matching tool
|
256
|
-
- Added advanced number formatting capabilities to MochiKit.Format:
|
257
|
-
numberFormatter(pattern, placeholder="", locale="default") and
|
258
|
-
formatLocale(locale="default")
|
259
|
-
- Added updatetree(self, obj[, ...]) to MochiKit.Base, and changed
|
260
|
-
MochiKit.DOM's updateNodeAttributes(node, attrs) to use it when appropiate.
|
261
|
-
- Added new MochiKit.DOM createDOMFunc aliases: BUTTON, TT, PRE
|
262
|
-
- Added truncToFixed(aNumber, precision) and roundToFixed(aNumber, precision)
|
263
|
-
to MochiKit.Format
|
264
|
-
- MochiKit.DateTime can now handle full ISO 8601 timestamps, specifically
|
265
|
-
isoTimestamp(isoString) will convert them to Date objects, and
|
266
|
-
toISOTimestamp(date, true) will return an ISO 8601 timestamp in UTC
|
267
|
-
- Fixed missing errback for sendXMLHttpRequest when the server does not
|
268
|
-
respond
|
269
|
-
- Fixed infinite recusion bug when using roundClass("DIV", ...)
|
270
|
-
- Fixed a bug in MochiKit.Async wait (and callLater) that prevented them
|
271
|
-
from being cancelled properly
|
272
|
-
- Workaround in MochiKit.Base bind (and partial) for functions that don't
|
273
|
-
have an apply method, such as alert
|
274
|
-
- Reliably return null from the string parsing/manipulation functions if
|
275
|
-
the input can't be coerced to a string (s + "") or the input makes no sense;
|
276
|
-
e.g. isoTimestamp(null) and isoTimestamp("") return null
|
277
|
-
|
278
|
-
2005-10-08 v0.90
|
279
|
-
|
280
|
-
- Fixed ISO compliance with toISODate
|
281
|
-
- Added missing operator.sub
|
282
|
-
- Placated Mozilla's strict warnings a bit
|
283
|
-
- Added JSON serialization and unserialization support to MochiKit.Base:
|
284
|
-
serializeJSON, evalJSON, registerJSON. This is very similar to the repr
|
285
|
-
API.
|
286
|
-
- Fixed a bug in the script loader that failed in some scenarios when a script
|
287
|
-
tag did not have a "src" attribute (thanks Ian!)
|
288
|
-
- Added new MochiKit.DOM createDOMFunc aliases: H1, H2, H3, BR, HR, TEXTAREA,
|
289
|
-
P, FORM
|
290
|
-
- Use encodeURIComponent / decodeURIComponent for MochiKit.Base urlEncode
|
291
|
-
and parseQueryString, when available.
|
292
|
-
|
293
|
-
2005-08-12 v0.80
|
294
|
-
|
295
|
-
- Source highlighting in all examples, moved to a view-source example
|
296
|
-
- Added some experimental syntax highlighting for the Rounded Corners example,
|
297
|
-
via the LGPL dp.SyntaxHighlighter 1.2.0 now included in examples/common/lib
|
298
|
-
- Use an indirect binding for the logger conveniences, so that the global
|
299
|
-
logger could be replaced by setting MochiKit.Logger.logger to something else
|
300
|
-
(though an observer is probably a better choice).
|
301
|
-
- Allow MochiKit.DOM.getElementsByTagAndClassName to take a string for parent,
|
302
|
-
which will be looked up with getElement
|
303
|
-
- Fixed bug in MochiKit.Color.fromBackground (was using node.parent instead of
|
304
|
-
node.parentNode)
|
305
|
-
- Consider a 304 (NOT_MODIFIED) response from XMLHttpRequest to be success
|
306
|
-
- Disabled Mozilla map(...) fast-path due to Deer Park compatibility issues
|
307
|
-
- Possible workaround for Safari issue with swapDOM, where it would get
|
308
|
-
confused because two elements were in the DOM at the same time with the
|
309
|
-
same id
|
310
|
-
- Added missing THEAD convenience function to MochiKit.DOM
|
311
|
-
- Added lstrip, rstrip, strip to MochiKit.Format
|
312
|
-
- Added updateNodeAttributes, appendChildNodes, replaceChildNodes to
|
313
|
-
MochiKit.DOM
|
314
|
-
- MochiKit.Iter.iextend now has a fast-path for array-like objects
|
315
|
-
- Added HSV color space support to MochiKit.Visual
|
316
|
-
- Fixed a bug in the sortable_tables example, it now converts types
|
317
|
-
correctly
|
318
|
-
- Fixed a bug where MochiKit.DOM referenced MochiKit.Iter.next from global
|
319
|
-
scope
|
320
|
-
|
321
|
-
2005-08-04 v0.70
|
322
|
-
|
323
|
-
- New ajax_tables example, which shows off XMLHttpRequest, ajax, json, and
|
324
|
-
a little TAL-ish DOM templating attribute language.
|
325
|
-
- sendXMLHttpRequest and functions that use it (loadJSONDoc, etc.) no longer
|
326
|
-
ignore requests with status == 0, which seems to happen for cached or local
|
327
|
-
requests
|
328
|
-
- Added sendXMLHttpRequest to MochiKit.Async.EXPORT, d'oh.
|
329
|
-
- Changed scrapeText API to return a string by default. This is API-breaking!
|
330
|
-
It was dumb to have the default return value be the form you almost never
|
331
|
-
want. Sorry.
|
332
|
-
- Added special form to swapDOM(dest, src). If src is null, dest is removed
|
333
|
-
(where previously you'd likely get a DOM exception).
|
334
|
-
- Added three new functions to MochiKit.Base for dealing with URL query
|
335
|
-
strings: urlEncode, queryString, parseQueryString
|
336
|
-
- MochiKit.DOM.createDOM will now use attr[k] = v for all browsers if the name
|
337
|
-
starts with "on" (e.g. "onclick"). If v is a string, it will set it to
|
338
|
-
new Function(v).
|
339
|
-
- Another workaround for Internet "worst browser ever" Explorer's setAttribute
|
340
|
-
usage in MochiKit.DOM.createDOM (checked -> defaultChecked).
|
341
|
-
- Added UL, OL, LI convenience createDOM aliases to MochiKit.DOM
|
342
|
-
- Packing is now done by Dojo's custom Rhino interpreter, so it's much smaller
|
343
|
-
now!
|
344
|
-
|
345
|
-
2005-07-29 v0.60
|
346
|
-
|
347
|
-
- Beefed up the MochiKit.DOM test suite
|
348
|
-
- Fixed return value for MochiKit.DOM.swapElementClass, could return
|
349
|
-
false unexpectedly before
|
350
|
-
- Added an optional "parent" argument to
|
351
|
-
MochiKit.DOM.getElementsByTagAndClassName
|
352
|
-
- Added a "packed" version in packed/MochiKit/MochiKit.js
|
353
|
-
- Changed build script to rewrite the URLs in tests to account for the
|
354
|
-
JSAN-required reorganization
|
355
|
-
- MochiKit.Compat to potentially work around IE 5.5 issues
|
356
|
-
(5.0 still not supported). Test.Simple doesn't seem to work there,
|
357
|
-
though.
|
358
|
-
- Several minor documentation corrections
|
359
|
-
|
360
|
-
2005-07-27 v0.50
|
361
|
-
|
362
|
-
- Initial Release
|
@@ -1,895 +0,0 @@
|
|
1
|
-
.. title:: MochiKit.Visual - visual effects
|
2
|
-
|
3
|
-
Name
|
4
|
-
====
|
5
|
-
|
6
|
-
MochiKit.Visual - visual effects
|
7
|
-
|
8
|
-
|
9
|
-
Synopsis
|
10
|
-
========
|
11
|
-
|
12
|
-
::
|
13
|
-
|
14
|
-
// round the corners of all h1 elements
|
15
|
-
roundClass("h1", null);
|
16
|
-
|
17
|
-
// round the top left corner of the element with the id "title"
|
18
|
-
roundElement("title", {corners: "tl"});
|
19
|
-
|
20
|
-
// Add an fade effect to an element
|
21
|
-
fade('myelement');
|
22
|
-
|
23
|
-
|
24
|
-
Description
|
25
|
-
===========
|
26
|
-
|
27
|
-
MochiKit.Visual provides visual effects and animations for HTML elements.
|
28
|
-
|
29
|
-
|
30
|
-
Dependencies
|
31
|
-
============
|
32
|
-
|
33
|
-
- :mochiref:`MochiKit.Base`
|
34
|
-
- :mochiref:`MochiKit.Iter`
|
35
|
-
- :mochiref:`MochiKit.DOM`
|
36
|
-
- :mochiref:`MochiKit.Color`
|
37
|
-
- :mochiref:`MochiKit.Position`
|
38
|
-
|
39
|
-
|
40
|
-
Overview
|
41
|
-
========
|
42
|
-
|
43
|
-
MochiKit.Visual provides different visual effects: rounded corners and
|
44
|
-
animations for your HTML elements. Rounded corners are created
|
45
|
-
completely through CSS manipulations and require no external images or
|
46
|
-
style sheets. This implementation was adapted from Rico_. Dynamic
|
47
|
-
effects are ported from Scriptaculous_.
|
48
|
-
|
49
|
-
.. _Rico: http://www.openrico.org
|
50
|
-
|
51
|
-
.. _Scriptaculous: http://script.aculo.us
|
52
|
-
|
53
|
-
|
54
|
-
Animations & Effects
|
55
|
-
--------------------
|
56
|
-
|
57
|
-
Dynamic or animated effects are managed by a basic looping service (see
|
58
|
-
:mochiref:`Base`). The effect looping is controlled by timers that are invoked
|
59
|
-
at regular and short intervals while the effect is executing. The base looping
|
60
|
-
service takes the current system time into consideration, automatically
|
61
|
-
skipping effect steps on execution delays.
|
62
|
-
|
63
|
-
The effect classes need only handle dynamic updates based on a floating-point
|
64
|
-
number between ``0.0`` and ``1.0`` (the effect position). This effect position
|
65
|
-
may also be manipulated by :mochiref:`Transitions` to provide non-linear
|
66
|
-
updates, which may further enhance the visual effect.
|
67
|
-
|
68
|
-
The effect timer and transitions can be controlled through a set of
|
69
|
-
:mochiref:`DefaultOptions` that are available for all effect classes.
|
70
|
-
|
71
|
-
|
72
|
-
The Effects Queue
|
73
|
-
-----------------
|
74
|
-
|
75
|
-
When you create effects based on user input (mouse clicks for example), it can
|
76
|
-
create conflicts between the effects if multiple effects are running at the
|
77
|
-
same time. To manage this problem, the Queue mechanism has been introduced:
|
78
|
-
it's responsible for running the effects as you desired.
|
79
|
-
|
80
|
-
By default, you have one Queue called ``'global'``, and the effects run in
|
81
|
-
``'parallel'`` (see :mochiref:`DefaultOptions`). Every effect has a ``queue``
|
82
|
-
option to customize this. Its value can be a string, thereby using the
|
83
|
-
``global`` scope:
|
84
|
-
|
85
|
-
- `front`: the effect will be run before any other non-started effect;
|
86
|
-
- `end`: the effect will be run when all other effects have finished;
|
87
|
-
- `break`: every other effect is immediately finalized when the the effect start;
|
88
|
-
- `parallel`: the effect runs in parallel with other effects.
|
89
|
-
|
90
|
-
But you have even more control if you use an object with the following
|
91
|
-
property keys:
|
92
|
-
|
93
|
-
- `position` takes one of the values listed above;
|
94
|
-
- `scope` contains the queue name. If it's ``"global"`` the effect will use the
|
95
|
-
default queue, otherwise you can define your own queue name. For example, if
|
96
|
-
you add an effect on a specified element, you may use the element id as scope;
|
97
|
-
- `limit` defines how many effects can be stored in the queue at a single time.
|
98
|
-
If an effect is added when the limit has been reached, it will never be run
|
99
|
-
(it's lost).
|
100
|
-
|
101
|
-
|
102
|
-
API Reference
|
103
|
-
=============
|
104
|
-
|
105
|
-
Functions
|
106
|
-
---------
|
107
|
-
|
108
|
-
:mochidef:`roundClass(tagName[, className[, options]])`:
|
109
|
-
|
110
|
-
Rounds all of the elements that match the ``tagName`` and
|
111
|
-
``className`` specifiers, using the options provided. ``tagName``
|
112
|
-
or ``className`` can be ``null`` to match all tags or classes.
|
113
|
-
Regarding the ``options``, see the :mochiref:`roundElement` function.
|
114
|
-
|
115
|
-
*Availability*:
|
116
|
-
Available in MochiKit 1.3.1+
|
117
|
-
|
118
|
-
|
119
|
-
:mochidef:`roundElement(element[, options])`:
|
120
|
-
|
121
|
-
Immediately round the corners of the specified ``element``.
|
122
|
-
|
123
|
-
element:
|
124
|
-
An element ID string or a DOM node (see
|
125
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
126
|
-
|
127
|
-
options:
|
128
|
-
The ``options`` mapping has the following defaults:
|
129
|
-
|
130
|
-
========= =================
|
131
|
-
corners ``"all"``
|
132
|
-
color ``"fromElement"``
|
133
|
-
bgColor ``"fromParent"``
|
134
|
-
blend ``true``
|
135
|
-
border ``false``
|
136
|
-
compact ``false``
|
137
|
-
========= =================
|
138
|
-
|
139
|
-
The ``options`` parameters can have following values:
|
140
|
-
|
141
|
-
corners:
|
142
|
-
Specifies which corners of the element should be rounded.
|
143
|
-
Choices are:
|
144
|
-
|
145
|
-
- all
|
146
|
-
- top
|
147
|
-
- bottom
|
148
|
-
- tl (top left)
|
149
|
-
- bl (bottom left)
|
150
|
-
- tr (top right)
|
151
|
-
- br (bottom right)
|
152
|
-
|
153
|
-
Example:
|
154
|
-
``"tl br"``: top-left and bottom-right corners are rounded
|
155
|
-
|
156
|
-
blend:
|
157
|
-
Specifies whether the color and background color should be
|
158
|
-
blended together to produce the border color.
|
159
|
-
|
160
|
-
*Availability*:
|
161
|
-
Available in MochiKit 1.3.1+
|
162
|
-
|
163
|
-
|
164
|
-
:mochidef:`toggle(element[, effect[, options]])`:
|
165
|
-
|
166
|
-
Toggle an ``element`` between visible and invisible state using an
|
167
|
-
effect.
|
168
|
-
|
169
|
-
element:
|
170
|
-
An element ID string or a DOM node (see
|
171
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
172
|
-
|
173
|
-
effect:
|
174
|
-
One of the visual pairs to use:
|
175
|
-
|
176
|
-
============ =========================================
|
177
|
-
``"appear"`` :mochiref:`appear` and :mochiref:`fade`
|
178
|
-
``"blind"`` :mochiref:`blindUp` and :mochiref:`blindDown`
|
179
|
-
``"size"`` :mochiref:`grow` and :mochiref:`shrink`
|
180
|
-
``"slide"`` :mochiref:`slideUp` and :mochiref:`slideDown`
|
181
|
-
============ =========================================
|
182
|
-
|
183
|
-
options:
|
184
|
-
The optional effect options (see the respective effect
|
185
|
-
functions for details).
|
186
|
-
|
187
|
-
*Availability*:
|
188
|
-
Available in MochiKit 1.4+
|
189
|
-
|
190
|
-
|
191
|
-
:mochidef:`tagifyText(element[, tagifyStyle])`:
|
192
|
-
|
193
|
-
Transform the node text into ``SPAN`` nodes each containing a single
|
194
|
-
letter. Only text nodes that are immediate children will be modified
|
195
|
-
by this function.
|
196
|
-
|
197
|
-
element:
|
198
|
-
An element ID string or a DOM node (see
|
199
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
200
|
-
|
201
|
-
tagifyStyle:
|
202
|
-
Style to apply to each new ``SPAN`` node, defaults to
|
203
|
-
``'position: relative'``.
|
204
|
-
|
205
|
-
*Availability*:
|
206
|
-
Available in MochiKit 1.4+
|
207
|
-
|
208
|
-
|
209
|
-
:mochidef:`multiple(elements, effect[, options])`:
|
210
|
-
|
211
|
-
Launch the same effect on a list of ``elements``.
|
212
|
-
|
213
|
-
elements:
|
214
|
-
A list of element ID strings or a DOM nodes (see
|
215
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
216
|
-
|
217
|
-
effect:
|
218
|
-
An effect class constructor function.
|
219
|
-
|
220
|
-
options:
|
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.
|
225
|
-
|
226
|
-
========= =================
|
227
|
-
speed ``0.1``
|
228
|
-
delay ``0.0`` (initial)
|
229
|
-
========= =================
|
230
|
-
|
231
|
-
*Availability*:
|
232
|
-
Available in MochiKit 1.4+
|
233
|
-
|
234
|
-
|
235
|
-
Combination Effects
|
236
|
-
-------------------
|
237
|
-
|
238
|
-
:mochidef:`fade(element[, options])`:
|
239
|
-
|
240
|
-
Fades an ``element`` using the :mochiref:`Opacity` effect. Once
|
241
|
-
the effect has completed, the ``element`` will be hidden with
|
242
|
-
:mochiref:`MochiKit.Style.hideElement` and the original element
|
243
|
-
opacity will be restored.
|
244
|
-
|
245
|
-
element:
|
246
|
-
An element ID string or a DOM node (see
|
247
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
248
|
-
|
249
|
-
options:
|
250
|
-
====== =============================================
|
251
|
-
from ``element.opacity || 1.0``
|
252
|
-
to ``0.0``
|
253
|
-
====== =============================================
|
254
|
-
|
255
|
-
*Availability*:
|
256
|
-
Available in MochiKit 1.4+
|
257
|
-
|
258
|
-
|
259
|
-
:mochidef:`appear(element [, options])`:
|
260
|
-
|
261
|
-
Slowly shows an ``element`` using the :mochiref:`Opacity` effect.
|
262
|
-
If the ``element`` has ``"display: none"`` style, it will be changed
|
263
|
-
to ``"display: block"`` with :mochiref:`MochiKit.Style.showElement`.
|
264
|
-
|
265
|
-
element:
|
266
|
-
An element ID string or a DOM node (see
|
267
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
268
|
-
|
269
|
-
options:
|
270
|
-
===== =============================================
|
271
|
-
from ``element.opacity || 0.0``
|
272
|
-
to ``1.0``
|
273
|
-
===== =============================================
|
274
|
-
|
275
|
-
*Availability*:
|
276
|
-
Available in MochiKit 1.4+
|
277
|
-
|
278
|
-
|
279
|
-
:mochidef:`puff(element [, options])`:
|
280
|
-
|
281
|
-
Make an ``element`` double size while also fading it using the
|
282
|
-
:mochiref:`Scale` and :mochiref:`Opacity` effects in parallel.
|
283
|
-
Once the effect has completed, the ``element`` will be hidden with
|
284
|
-
:mochiref:`MochiKit.Style.hideElement` and the original element
|
285
|
-
size, position and opacity will be restored.
|
286
|
-
|
287
|
-
element:
|
288
|
-
An element ID string or a DOM node (see
|
289
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
290
|
-
|
291
|
-
options:
|
292
|
-
See :mochiref:`DefaultOptions`.
|
293
|
-
|
294
|
-
*Availability*:
|
295
|
-
Available in MochiKit 1.4+
|
296
|
-
|
297
|
-
|
298
|
-
:mochidef:`blindUp(element [, options])`:
|
299
|
-
|
300
|
-
Blind an ``element`` up, changing its vertical size to 0 using the
|
301
|
-
:mochiref:`Scale` effect. Once the effect has completed, the
|
302
|
-
``element`` will be hidden with
|
303
|
-
:mochiref:`MochiKit.Style.hideElement` and the original element
|
304
|
-
size will be restored.
|
305
|
-
|
306
|
-
element:
|
307
|
-
An element ID string or a DOM node (see
|
308
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
309
|
-
|
310
|
-
options:
|
311
|
-
See :mochiref:`DefaultOptions`.
|
312
|
-
|
313
|
-
*Availability*:
|
314
|
-
Available in MochiKit 1.4+
|
315
|
-
|
316
|
-
|
317
|
-
:mochidef:`blindDown(element [, options])`:
|
318
|
-
|
319
|
-
Blind an ``element`` down, restoring its vertical size using the
|
320
|
-
:mochiref:`Scale` effect. If the ``element`` has ``"display: none"``
|
321
|
-
style, it will be changed to ``"display: block"`` with
|
322
|
-
:mochiref:`MochiKit.Style.showElement`.
|
323
|
-
|
324
|
-
element:
|
325
|
-
An element ID string or a DOM node (see
|
326
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
327
|
-
|
328
|
-
options:
|
329
|
-
See :mochiref:`DefaultOptions`.
|
330
|
-
|
331
|
-
*Availability*:
|
332
|
-
Available in MochiKit 1.4+
|
333
|
-
|
334
|
-
|
335
|
-
:mochidef:`switchOff(element [, options])`:
|
336
|
-
|
337
|
-
A switch-off like effect, making the ``element`` disappear, using
|
338
|
-
the :mochiref:`Opacity` and :mochiref:`Scale` effects in sequence.
|
339
|
-
The initial :mochiref:`Opacity` effect uses a flicker (partially
|
340
|
-
random) transformation. Once the effect has completed, the
|
341
|
-
``element`` will be hidden with
|
342
|
-
:mochiref:`MochiKit.Style.hideElement` and the original element
|
343
|
-
opacity, size and position will be restored.
|
344
|
-
|
345
|
-
element:
|
346
|
-
An element ID string or a DOM node (see
|
347
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
348
|
-
|
349
|
-
options:
|
350
|
-
See :mochiref:`DefaultOptions`. Note that the options will
|
351
|
-
only affect the secondary :mochiref:`Scale` effect.
|
352
|
-
|
353
|
-
*Availability*:
|
354
|
-
Available in MochiKit 1.4+
|
355
|
-
|
356
|
-
|
357
|
-
:mochidef:`dropOut(element [, options])`:
|
358
|
-
|
359
|
-
Make the element fall and fade using the
|
360
|
-
:mochiref:`Move` and :mochiref:`Opacity` effects in parallel.
|
361
|
-
Once the effect has completed, the ``element`` will be hidden with
|
362
|
-
:mochiref:`MochiKit.Style.hideElement` and the original element
|
363
|
-
position and opacity will be restored.
|
364
|
-
|
365
|
-
element:
|
366
|
-
An element ID string or a DOM node (see
|
367
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
368
|
-
|
369
|
-
options:
|
370
|
-
The ``distance`` option controls the number of pixels that the
|
371
|
-
element will move downwards. See also the
|
372
|
-
:mochiref:`DefaultOptions`.
|
373
|
-
|
374
|
-
======== =======
|
375
|
-
distance ``100``
|
376
|
-
======== =======
|
377
|
-
|
378
|
-
*Availability*:
|
379
|
-
Available in MochiKit 1.4+
|
380
|
-
|
381
|
-
|
382
|
-
:mochidef:`shake(element [, options])`:
|
383
|
-
|
384
|
-
Shake an element from left to right using a sequence of six
|
385
|
-
:mochiref:`Move` effects. Once the effect has completed, the
|
386
|
-
original ``element`` position will be restored.
|
387
|
-
|
388
|
-
element:
|
389
|
-
An element ID string or a DOM node (see
|
390
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
391
|
-
|
392
|
-
options:
|
393
|
-
See :mochiref:`DefaultOptions`. Note that the options will
|
394
|
-
only affect the last :mochiref:`Move` effect.
|
395
|
-
|
396
|
-
*Availability*:
|
397
|
-
Available in MochiKit 1.4+
|
398
|
-
|
399
|
-
|
400
|
-
:mochidef:`slideDown(element [, options])`:
|
401
|
-
|
402
|
-
Slide an ``element`` down using the :mochiref:`Scale` effect.
|
403
|
-
The ``element`` must have a fixed height and contain a single
|
404
|
-
child. If the ``element`` has ``"display: none"`` style it
|
405
|
-
will be changed to ``"display: block"`` with
|
406
|
-
:mochiref:`MochiKit.Style.showElement`.
|
407
|
-
|
408
|
-
element:
|
409
|
-
An element ID string or a DOM node (see
|
410
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
411
|
-
|
412
|
-
options:
|
413
|
-
See :mochiref:`DefaultOptions`.
|
414
|
-
|
415
|
-
*Availability*:
|
416
|
-
Available in MochiKit 1.4+
|
417
|
-
|
418
|
-
|
419
|
-
:mochidef:`slideUp(element [, options])`:
|
420
|
-
|
421
|
-
Slide an ``element`` up using the :mochiref:`Scale` effect.
|
422
|
-
The ``element`` must have a fixed height and contain a single
|
423
|
-
child. Once the effect has completed, the ``element`` will be
|
424
|
-
hidden with :mochiref:`MochiKit.Style.hideElement` and the
|
425
|
-
original element size will be restored.
|
426
|
-
|
427
|
-
element:
|
428
|
-
An element ID string or a DOM node (see
|
429
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
430
|
-
|
431
|
-
options:
|
432
|
-
See :mochiref:`DefaultOptions`.
|
433
|
-
|
434
|
-
*Availability*:
|
435
|
-
Available in MochiKit 1.4+
|
436
|
-
|
437
|
-
|
438
|
-
:mochidef:`squish(element [, options])`:
|
439
|
-
|
440
|
-
Reduce the horizontal and vertical sizes at the same time using
|
441
|
-
a single :mochiref:`Scale` effect. The result is similar to the
|
442
|
-
:mochiref:`shrink` effect with a ``top-left`` value for the
|
443
|
-
``direction`` option. The ``element`` should have fixed width and
|
444
|
-
height. Once the effect has completed, the ``element`` will be
|
445
|
-
hidden with :mochiref:`MochiKit.Style.hideElement` and the
|
446
|
-
original element size will be restored.
|
447
|
-
|
448
|
-
element:
|
449
|
-
An element ID string or a DOM node (see
|
450
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
451
|
-
|
452
|
-
options:
|
453
|
-
See :mochiref:`DefaultOptions`.
|
454
|
-
|
455
|
-
*Availability*:
|
456
|
-
Available in MochiKit 1.4+
|
457
|
-
|
458
|
-
|
459
|
-
:mochidef:`grow(element [, options])`:
|
460
|
-
|
461
|
-
Grows an ``element`` size using :mochiref:`Scale`, :mochiref:`Move`
|
462
|
-
and :mochiref:`Opacity` effects in parallel. The ``element`` should
|
463
|
-
have fixed width, height and top-left position. Before the effect
|
464
|
-
starts, the ``element`` will be shown with
|
465
|
-
:mochiref:`MochiKit.Style.showElement` and the size and position
|
466
|
-
values will be read.
|
467
|
-
|
468
|
-
element:
|
469
|
-
An element ID string or a DOM node (see
|
470
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
471
|
-
|
472
|
-
options:
|
473
|
-
The following options and default values control this
|
474
|
-
effect. Note that the :mochiref:`Opacity` effect is turned
|
475
|
-
off by default. See also the :mochiref:`DefaultOptions`.
|
476
|
-
|
477
|
-
================= ========================================
|
478
|
-
direction ``"center"``
|
479
|
-
moveTransition ``MochiKit.Visual.Transitions.sinoidal``
|
480
|
-
scaleTransition ``MochiKit.Visual.Transitions.sinoidal``
|
481
|
-
opacityTransition ``MochiKit.Visual.Transitions.full``
|
482
|
-
================= ========================================
|
483
|
-
|
484
|
-
The ``direction`` option controls the origin point of the effect.
|
485
|
-
The following values are allowed:
|
486
|
-
|
487
|
-
===================== ========================================
|
488
|
-
``"center"`` Grows from the center
|
489
|
-
``"top-left"`` Grows from the top left corner
|
490
|
-
``"top-right"`` Grows from the top right corner
|
491
|
-
``"bottom-left"`` Grows from the bottom left corner
|
492
|
-
``"bottom-right"`` Grows from the bottom right corner
|
493
|
-
===================== ========================================
|
494
|
-
|
495
|
-
*Availability*:
|
496
|
-
Available in MochiKit 1.4+
|
497
|
-
|
498
|
-
|
499
|
-
:mochidef:`shrink(element [, options])`:
|
500
|
-
|
501
|
-
Shrinks an ``element`` using :mochiref:`Scale`, :mochiref:`Move`
|
502
|
-
and :mochiref:`Opacity` effects in parallel. The ``element`` should
|
503
|
-
have fixed width, height and top-left position. Once the effect has
|
504
|
-
completed, the ``element`` will be hidden with
|
505
|
-
:mochiref:`MochiKit.Style.hideElement` and the original size and
|
506
|
-
position will be restored.
|
507
|
-
|
508
|
-
element:
|
509
|
-
An element ID string or a DOM node (see
|
510
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
511
|
-
|
512
|
-
options:
|
513
|
-
The following options and default values control this
|
514
|
-
effect. Note that the :mochiref:`Opacity` effect is turned
|
515
|
-
off by default. See also the :mochiref:`DefaultOptions`.
|
516
|
-
|
517
|
-
================= ========================================
|
518
|
-
direction ``"center"``
|
519
|
-
moveTransition ``MochiKit.Visual.Transitions.sinoidal``
|
520
|
-
scaleTransition ``MochiKit.Visual.Transitions.sinoidal``
|
521
|
-
opacityTransition ``MochiKit.Visual.Transitions.full``
|
522
|
-
================= ========================================
|
523
|
-
|
524
|
-
The ``direction`` option controls the destination point of the
|
525
|
-
effect. The following values are allowed:
|
526
|
-
|
527
|
-
===================== ========================================
|
528
|
-
``"center"`` Grows from the center
|
529
|
-
``"top-left"`` Grows from the top left corner
|
530
|
-
``"top-right"`` Grows from the top right corner
|
531
|
-
``"bottom-left"`` Grows from the bottom left corner
|
532
|
-
``"bottom-right"`` Grows from the bottom right corner
|
533
|
-
===================== ========================================
|
534
|
-
|
535
|
-
*Availability*:
|
536
|
-
Available in MochiKit 1.4+
|
537
|
-
|
538
|
-
|
539
|
-
:mochidef:`pulsate(element [, options])`:
|
540
|
-
|
541
|
-
Switches the ``element`` visibility using a pulsating
|
542
|
-
:mochiref:`Opacity` effect. The effect both starts and
|
543
|
-
ends with a ``0`` opacity value.
|
544
|
-
|
545
|
-
element:
|
546
|
-
An element ID string or a DOM node (see
|
547
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
548
|
-
|
549
|
-
options:
|
550
|
-
The ``pulses`` option controls the number of pulses
|
551
|
-
made during the effect. See also the
|
552
|
-
:mochiref:`DefaultOptions`.
|
553
|
-
|
554
|
-
====== ========
|
555
|
-
pulses ``5``
|
556
|
-
====== ========
|
557
|
-
|
558
|
-
*Availability*:
|
559
|
-
Available in MochiKit 1.4+
|
560
|
-
|
561
|
-
|
562
|
-
:mochidef:`fold(element [, options])`:
|
563
|
-
|
564
|
-
Reduce first the ``element`` vertical size, and then the
|
565
|
-
horizontal size using two :mochiref:`Scale` effects in sequence.
|
566
|
-
The ``element`` should have both fixed width and height. Once
|
567
|
-
the effect has completed, the ``element`` will be hidden
|
568
|
-
with :mochiref:`MochiKit.Style.hideElement` and the original
|
569
|
-
size and position will be restored.
|
570
|
-
|
571
|
-
element:
|
572
|
-
An element ID string or a DOM node (see
|
573
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
574
|
-
|
575
|
-
options:
|
576
|
-
See :mochiref:`DefaultOptions`. Note that the options
|
577
|
-
will only affect the first :mochiref:`Scale` effect.
|
578
|
-
|
579
|
-
*Availability*:
|
580
|
-
Available in MochiKit 1.4+
|
581
|
-
|
582
|
-
|
583
|
-
Basic Effects Classes & Constants
|
584
|
-
---------------------------------
|
585
|
-
|
586
|
-
:mochidef:`Transitions`:
|
587
|
-
|
588
|
-
Default transition functions available for all effects. A transition
|
589
|
-
function adjusts the current position value between 0 and 1 in order
|
590
|
-
to achieve a non-linear sequence of position values for the effect.
|
591
|
-
|
592
|
-
=========== ========================================
|
593
|
-
linear A straight linear transition.
|
594
|
-
sinoidal A smooth sine value transition.
|
595
|
-
reverse A reverse linear transition.
|
596
|
-
flicker A sine transition with random additions.
|
597
|
-
wobble A multi-period sine curve transition with 4.5 wobbles and ending with one (1).
|
598
|
-
pulse A multi-period triangle curve transition with 5 pulses (by default) and ending with zero (0).
|
599
|
-
parabolic A smooth parabolic transition.
|
600
|
-
none A fixed zero (0) value transition.
|
601
|
-
full A fixed one (1) value transition.
|
602
|
-
=========== ========================================
|
603
|
-
|
604
|
-
*Availability*:
|
605
|
-
Available in MochiKit 1.4+
|
606
|
-
|
607
|
-
|
608
|
-
:mochidef:`DefaultOptions`:
|
609
|
-
|
610
|
-
Default options for all effects. Note that all effects inherit
|
611
|
-
the :mochiref:`Base` class and thereby also support a number of
|
612
|
-
events that can be specified as callback functions among the
|
613
|
-
effect options.
|
614
|
-
|
615
|
-
=========== ========================================
|
616
|
-
transition ``MochiKit.Visual.Transitions.sinoidal``
|
617
|
-
duration ``1.0`` (seconds)
|
618
|
-
fps ``25.0``
|
619
|
-
sync ``false`` (only set for :mochiref:`Parallel` or :mochiref:`Sequence` effects)
|
620
|
-
from ``0.0``
|
621
|
-
to ``1.0``
|
622
|
-
delay ``0.0``
|
623
|
-
queue ``'parallel'``
|
624
|
-
=========== ========================================
|
625
|
-
|
626
|
-
*Availability*:
|
627
|
-
Available in MochiKit 1.4+
|
628
|
-
|
629
|
-
|
630
|
-
:mochidef:`Base()`:
|
631
|
-
|
632
|
-
Base class to all effects. Define a basic looping service, use it
|
633
|
-
for creating new effects.
|
634
|
-
|
635
|
-
You can override the methods ``setup``, ``update`` and ``finish``.
|
636
|
-
|
637
|
-
The class defines a number of events that will be called during effect
|
638
|
-
life. The events are:
|
639
|
-
|
640
|
-
- beforeStart
|
641
|
-
- beforeSetup
|
642
|
-
- beforeUpdate
|
643
|
-
- afterUpdate
|
644
|
-
- beforeFinish
|
645
|
-
- afterFinish
|
646
|
-
|
647
|
-
If you want to define your own callbacks, define it in the options
|
648
|
-
parameter of the effect. Example::
|
649
|
-
|
650
|
-
// I slide it up and then down again
|
651
|
-
slideUp('myelement', {afterFinish: function () {
|
652
|
-
slideDown('myelement');
|
653
|
-
});
|
654
|
-
|
655
|
-
Specific ``internal`` events are also available: for each one listed above,
|
656
|
-
the same exists with an 'Internal' postfix (e.g. 'beforeStartInternal').
|
657
|
-
Their purpose is mainly for creating your own effect and keep the user
|
658
|
-
access to event callbacks (not overriding the library ones).
|
659
|
-
|
660
|
-
*Availability*:
|
661
|
-
Available in MochiKit 1.4+
|
662
|
-
|
663
|
-
|
664
|
-
:mochidef:`Parallel(effects [, options])`:
|
665
|
-
|
666
|
-
Launch a list of ``effects`` in parallel.
|
667
|
-
|
668
|
-
effects:
|
669
|
-
An array of instantiated effect objects. Note that they *must*
|
670
|
-
all have ``sync`` set to ``true``.
|
671
|
-
|
672
|
-
options:
|
673
|
-
See :mochiref:`DefaultOptions`.
|
674
|
-
|
675
|
-
*Availability*:
|
676
|
-
Available in MochiKit 1.4+
|
677
|
-
|
678
|
-
|
679
|
-
:mochidef:`Sequence(effects [, options])`:
|
680
|
-
|
681
|
-
Launch a list of ``effects`` in sequence, one after the other.
|
682
|
-
|
683
|
-
effects:
|
684
|
-
An array of instantiated effect objects. Note that they *must*
|
685
|
-
all have ``sync`` set to ``true``.
|
686
|
-
|
687
|
-
options:
|
688
|
-
See :mochiref:`DefaultOptions`. Note that the default value
|
689
|
-
for some options is different and that some of the transition
|
690
|
-
and timing options don't make sense to override.
|
691
|
-
|
692
|
-
=========== ========================================
|
693
|
-
transition ``MochiKit.Visual.Transitions.linear``
|
694
|
-
duration Sum of the ``duration`` for all ``effects``.
|
695
|
-
from Only ``0.0`` makes sense.
|
696
|
-
to Only ``1.0`` makes sense.
|
697
|
-
=========== ========================================
|
698
|
-
|
699
|
-
*Availability*:
|
700
|
-
Available in MochiKit 1.4+
|
701
|
-
|
702
|
-
|
703
|
-
:mochidef:`Opacity(element [, options])`:
|
704
|
-
|
705
|
-
Change the opacity of an ``element`` progressively.
|
706
|
-
|
707
|
-
element:
|
708
|
-
An element ID string or a DOM node (see
|
709
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
710
|
-
|
711
|
-
options:
|
712
|
-
The following options and default values control this effect.
|
713
|
-
See also the :mochiref:`DefaultOptions`.
|
714
|
-
|
715
|
-
====== ========
|
716
|
-
from ``0.0``
|
717
|
-
to ``1.0``
|
718
|
-
====== ========
|
719
|
-
|
720
|
-
*Availability*:
|
721
|
-
Available in MochiKit 1.4+
|
722
|
-
|
723
|
-
|
724
|
-
:mochidef:`Move(element [, options])`:
|
725
|
-
|
726
|
-
Changes the (top left) position of an ``element`` in small steps,
|
727
|
-
creating a moving effect.
|
728
|
-
|
729
|
-
element:
|
730
|
-
An element ID string or a DOM node (see
|
731
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
732
|
-
|
733
|
-
options:
|
734
|
-
The following options and default values control this effect.
|
735
|
-
See also the :mochiref:`DefaultOptions`.
|
736
|
-
|
737
|
-
========= ================
|
738
|
-
x ``0``
|
739
|
-
y ``0``
|
740
|
-
mode ``'relative'``
|
741
|
-
========= ================
|
742
|
-
|
743
|
-
The ``mode`` option controls if the specified ``x`` and ``y``
|
744
|
-
coordinates are ``relative`` or ``absolute`` with respect to the
|
745
|
-
current ``element`` position.
|
746
|
-
|
747
|
-
*Availability*:
|
748
|
-
Available in MochiKit 1.4+
|
749
|
-
|
750
|
-
|
751
|
-
:mochidef:`Scale(element, percent [, options])`:
|
752
|
-
|
753
|
-
Changes the size of an ``element``.
|
754
|
-
|
755
|
-
element:
|
756
|
-
An element ID string or a DOM node (see
|
757
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
758
|
-
|
759
|
-
percent:
|
760
|
-
Final wanted size in percent of current size. The size will be
|
761
|
-
reduced if the value is between 0 and 100, and raised if the
|
762
|
-
value is above 100.
|
763
|
-
|
764
|
-
options:
|
765
|
-
The following options and default values control this effect.
|
766
|
-
See also the :mochiref:`DefaultOptions`.
|
767
|
-
|
768
|
-
================ ============
|
769
|
-
scaleX ``true``
|
770
|
-
scaleY ``true``
|
771
|
-
scaleContent ``true``
|
772
|
-
scaleFromCenter ``false``
|
773
|
-
scaleMode ``"box"``
|
774
|
-
scaleFrom ``100.0``
|
775
|
-
scaleTo ``percent``
|
776
|
-
================ ============
|
777
|
-
|
778
|
-
The ``scaleContent`` option controls if the element ``font-size``
|
779
|
-
should also be scaled along with the size. The ``scaleFromCenter``
|
780
|
-
option allows continual adjustment of the ``element`` top left
|
781
|
-
position to keep the element centered during the size change.
|
782
|
-
The ``scaleMode`` option is used to determine the original
|
783
|
-
``element`` size. It can have one of the following values:
|
784
|
-
|
785
|
-
================ =========================================
|
786
|
-
``"box"`` Uses ``offsetHeight`` and ``offsetWidth``
|
787
|
-
``"contents"`` Uses ``scrollHeight`` and ``scrollWidth``
|
788
|
-
{...} Uses ``originalHeight`` and ``originalWidth`` from the specified object
|
789
|
-
================ =========================================
|
790
|
-
|
791
|
-
*Availability*:
|
792
|
-
Available in MochiKit 1.4+
|
793
|
-
|
794
|
-
|
795
|
-
:mochidef:`Highlight(element [, options])`:
|
796
|
-
|
797
|
-
Highlights an ``element`` by flashing the background color. The
|
798
|
-
color is first set to the ``startcolor`` and is then slowly
|
799
|
-
morphed into the ``endcolor``, normally the original background
|
800
|
-
color of the element.
|
801
|
-
|
802
|
-
element:
|
803
|
-
An element ID string or a DOM node (see
|
804
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
805
|
-
|
806
|
-
options:
|
807
|
-
The following options and default values control this effect.
|
808
|
-
See also the :mochiref:`DefaultOptions`.
|
809
|
-
|
810
|
-
=========== ==============
|
811
|
-
startcolor ``'#ffff99'``
|
812
|
-
endcolor ``element.style.backgroundColor``
|
813
|
-
=========== ==============
|
814
|
-
|
815
|
-
*Availability*:
|
816
|
-
Available in MochiKit 1.4+
|
817
|
-
|
818
|
-
|
819
|
-
:mochidef:`ScrollTo(element [, options])`:
|
820
|
-
|
821
|
-
Scroll the window to the position of the given ``element``. Note
|
822
|
-
that this effect only scrolls the top window and not any parent
|
823
|
-
elements with scrollbars due to ``"overflow: auto"`` style.
|
824
|
-
|
825
|
-
element:
|
826
|
-
An element ID string or a DOM node (see
|
827
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
828
|
-
|
829
|
-
options:
|
830
|
-
See :mochiref:`DefaultOptions`.
|
831
|
-
|
832
|
-
*Availability*:
|
833
|
-
Available in MochiKit 1.4+
|
834
|
-
|
835
|
-
|
836
|
-
:mochidef:`Morph(element [, options])`:
|
837
|
-
|
838
|
-
Make a transformation to the given ``element``. It's called with the option
|
839
|
-
``style`` with an array holding the styles to change. It works with
|
840
|
-
properties for size (``font-size``, ``border-width``, ...) and properties
|
841
|
-
for color (``color``, ``background-color``, ...).
|
842
|
-
|
843
|
-
For size, it's better to have defined the original style. You *must*
|
844
|
-
use the same unit in the call to Morph (no translation exists between two
|
845
|
-
different units).
|
846
|
-
|
847
|
-
Parsed length are postfixed with: em, ex, px, in, cm, mm, pt, pc.
|
848
|
-
|
849
|
-
Example::
|
850
|
-
|
851
|
-
<div id="foo" style="font-size: 1em">MyDiv</div>
|
852
|
-
...
|
853
|
-
Morph("foo", {"style": {"font-size": "2em"}});
|
854
|
-
|
855
|
-
element:
|
856
|
-
An element ID string or a DOM node (see
|
857
|
-
:mochiref:`MochiKit.DOM.getElement`).
|
858
|
-
|
859
|
-
options:
|
860
|
-
See :mochiref:`DefaultOptions`.
|
861
|
-
|
862
|
-
*Availability*:
|
863
|
-
Available in MochiKit 1.4+
|
864
|
-
|
865
|
-
|
866
|
-
Authors
|
867
|
-
=======
|
868
|
-
|
869
|
-
- Kevin Dangoor <dangoor@gmail.com>
|
870
|
-
- Bob Ippolito <bob@redivi.com>
|
871
|
-
- Thomas Herve <therve@gmail.com>
|
872
|
-
- Round corners originally adapted from Rico <http://openrico.org/>
|
873
|
-
(though little remains)
|
874
|
-
- Effects originally adapted from Script.aculo.us
|
875
|
-
<http://script.aculo.us/>
|
876
|
-
|
877
|
-
|
878
|
-
Copyright
|
879
|
-
=========
|
880
|
-
|
881
|
-
Copyright 2005 Bob Ippolito <bob@redivi.com>. This program is
|
882
|
-
dual-licensed free software; you can redistribute it and/or modify it
|
883
|
-
under the terms of the `MIT License`_ or the `Academic Free License
|
884
|
-
v2.1`_.
|
885
|
-
|
886
|
-
.. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
|
887
|
-
.. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
|
888
|
-
|
889
|
-
Portions adapted from `Rico`_ are available under the terms of the
|
890
|
-
`Apache License, Version 2.0`_.
|
891
|
-
|
892
|
-
Portions adapted from `Scriptaculous`_ are available under the terms
|
893
|
-
of the `MIT License`_.
|
894
|
-
|
895
|
-
.. _`Apache License, Version 2.0`: http://www.apache.org/licenses/LICENSE-2.0.html
|