old_sql 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,26 +0,0 @@
|
|
|
1
|
-
.. title:: MochiKit.Position - DOM Position manipulation API
|
|
2
|
-
|
|
3
|
-
Name
|
|
4
|
-
====
|
|
5
|
-
|
|
6
|
-
MochiKit.Position - DOM Position manipulation API
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Synopsis
|
|
10
|
-
========
|
|
11
|
-
|
|
12
|
-
This module is experimental and is present in MochiKit 1.4+ only. No
|
|
13
|
-
functions are currently exported from this module. Documentation is
|
|
14
|
-
forthcoming.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Copyright
|
|
18
|
-
=========
|
|
19
|
-
|
|
20
|
-
Copyright 2005-2006 Bob Ippolito <bob@redivi.com>, and others.
|
|
21
|
-
This program is dual-licensed free
|
|
22
|
-
software; you can redistribute it and/or modify it under the terms of
|
|
23
|
-
the `MIT License`_ or the `Academic Free License v2.1`_.
|
|
24
|
-
|
|
25
|
-
.. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
|
|
26
|
-
.. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
.. title:: MochiKit.Selector - Selecting elements by CSS selector syntax
|
|
2
|
-
|
|
3
|
-
Name
|
|
4
|
-
====
|
|
5
|
-
|
|
6
|
-
MochiKit.Selector - Selecting elements by CSS selector syntax
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Synopsis
|
|
10
|
-
========
|
|
11
|
-
|
|
12
|
-
::
|
|
13
|
-
|
|
14
|
-
MochiKit.Base.map(MochiKit.Visual.fade, $$('p.fademe'));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Description
|
|
18
|
-
===========
|
|
19
|
-
|
|
20
|
-
MochiKit.Selector provides utilities to select elements by CSS
|
|
21
|
-
selector syntax. In particular it provides the :mochiref:`$$`
|
|
22
|
-
function.
|
|
23
|
-
|
|
24
|
-
Dependencies
|
|
25
|
-
============
|
|
26
|
-
|
|
27
|
-
- :mochiref:`MochiKit.Base`
|
|
28
|
-
- :mochiref:`MochiKit.DOM`
|
|
29
|
-
- :mochiref:`MochiKit.Iter`
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Overview
|
|
33
|
-
========
|
|
34
|
-
|
|
35
|
-
This module provides facilities to select childs of a DOM node by
|
|
36
|
-
using CSS selector syntax. In particular, it provides the
|
|
37
|
-
:mochiref:`$$` function, which performs such a selection on the
|
|
38
|
-
current document.
|
|
39
|
-
|
|
40
|
-
Many of CSS3 [1]_ selectors are supported:
|
|
41
|
-
|
|
42
|
-
- Select by tag name (``A``)
|
|
43
|
-
- Select by class (``.theclass``)
|
|
44
|
-
- Select by id (``#someid``)
|
|
45
|
-
- Combinators
|
|
46
|
-
- Descendant: ``E F``
|
|
47
|
-
- Child: ``E > F``
|
|
48
|
-
- Immediate following sibling: ``E + F``
|
|
49
|
-
- Following sibling: ``E ~ F``
|
|
50
|
-
- Attribute selectors
|
|
51
|
-
- simple "has attribute" (without operator)
|
|
52
|
-
- ``=`` equal
|
|
53
|
-
- ``!=`` not equal (not in CSS std.)
|
|
54
|
-
- ``~=`` word containment
|
|
55
|
-
- ``^=`` starts-with
|
|
56
|
-
- ``$=`` ends-with
|
|
57
|
-
- ``*=`` substring containment
|
|
58
|
-
- ``|=`` first part of hyphen deleimited (eg. lang|="en" matches lang="en-US")
|
|
59
|
-
- Pseudo-classes
|
|
60
|
-
- ``:nth-child``, ``:nth-last-child``, ``:first-child``, ``:last-child``, ``:only-child``, ``:empty``, ``:enabled``, ``:disabled``, ``:checked``, ``:not(<any other selector>)``
|
|
61
|
-
- Deprecated Pseudo-classes (to be removed in 1.5)
|
|
62
|
-
- ``:root``, ``:nth-of-type``, ``:nth-last-of-type``, ``:first-of-type``, ``:last-of-type``, ``:only-of-type``
|
|
63
|
-
|
|
64
|
-
Multiple selectors can be concatenated, like this: ``P.quote[author~='Torvalds']``,
|
|
65
|
-
in which case elements matching *all* the selectors are returned. Furthermore, such
|
|
66
|
-
concatenations can be *combined* by joining them with spaces and combinators.
|
|
67
|
-
This invokes the regular CSS behaviour of matching parts of the combination in
|
|
68
|
-
sequence, starting off each part from the elements returned by the preceeding part.
|
|
69
|
-
|
|
70
|
-
For the ``:nth-*`` pseudoclasses, the ``an+b`` syntax is partially
|
|
71
|
-
supported, specifically a and b must be non-negative and only a is
|
|
72
|
-
optional (this differs from the CSS std.) Also, ``odd`` and ``even``
|
|
73
|
-
are supported, e.g. ``table tr:nth-child(odd)`` gives you every
|
|
74
|
-
other row of table starting with the first one.
|
|
75
|
-
|
|
76
|
-
For further documentation of CSS selectors, refer to the W3C CSS standard. [1]_
|
|
77
|
-
|
|
78
|
-
The original version of this module was ported from Prototype.
|
|
79
|
-
|
|
80
|
-
**Note:** This module is currently experimental and API stability cannot be
|
|
81
|
-
fully guaranteed. The implementation is scheduled to be replaced with a new
|
|
82
|
-
faster version (now in development) during the MochiKit 1.5 development
|
|
83
|
-
cycle.
|
|
84
|
-
|
|
85
|
-
**Note:** Due to how Internet Explorer handles node attributes, some attribute
|
|
86
|
-
selectors may not work as expected. In particular ``a[title]`` will not work
|
|
87
|
-
as all ``A`` elements in the Internet Explorer DOM model have a title attribute
|
|
88
|
-
regardless of whether it's specified in the markup or not.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
API Reference
|
|
92
|
-
=============
|
|
93
|
-
|
|
94
|
-
Functions
|
|
95
|
-
---------
|
|
96
|
-
|
|
97
|
-
:mochidef:`findDocElements(expression[, ...])`:
|
|
98
|
-
|
|
99
|
-
Performs a selection on the active document. Equivalent
|
|
100
|
-
to ``findChildElements(MochiKit.DOM.currentDocument(), [expression, ...])``
|
|
101
|
-
|
|
102
|
-
*Availability*:
|
|
103
|
-
Available in MochiKit 1.4+
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
:mochidef:`findChildElements(element, expressions)`:
|
|
107
|
-
|
|
108
|
-
Traverses the child nodes of ``element`` and returns the subset
|
|
109
|
-
of those that match any of the selector expressions in ``expressions``.
|
|
110
|
-
|
|
111
|
-
Each expression can be a combination of simple expressions, by concatenating
|
|
112
|
-
them with spaces or combinators. In that case, normal CSS rules apply, each
|
|
113
|
-
simple expression is evaluated in turn and the results of that one is used
|
|
114
|
-
as the scope for the succeeding expression (see :mochiref:`Selector.findElements`).
|
|
115
|
-
Finally, the results of the last simple expression is returned as the search result.
|
|
116
|
-
|
|
117
|
-
*Availability*:
|
|
118
|
-
Available in MochiKit 1.4+
|
|
119
|
-
|
|
120
|
-
:mochidef:`$$(expression[, ...])`:
|
|
121
|
-
|
|
122
|
-
An alias to ``findDocElements``.
|
|
123
|
-
|
|
124
|
-
*Availability*:
|
|
125
|
-
Available in MochiKit 1.4+
|
|
126
|
-
|
|
127
|
-
Constructors
|
|
128
|
-
-------------
|
|
129
|
-
|
|
130
|
-
:mochidef:`Selector(simpleExpression)`:
|
|
131
|
-
|
|
132
|
-
An object storing the parsed version of a simple CSS selector expression
|
|
133
|
-
and providing functions for executing searches.
|
|
134
|
-
|
|
135
|
-
*Simple* means that the expression is not a combination of expressions,
|
|
136
|
-
i.e. it does not contain any spaces.
|
|
137
|
-
|
|
138
|
-
Usually the user would not instantiate or use this object directly, but
|
|
139
|
-
heres how::
|
|
140
|
-
|
|
141
|
-
var selector = new MochiKit.Selector.Selector('#someelementid');
|
|
142
|
-
var searchResults = selector.findElements(rootElement);
|
|
143
|
-
|
|
144
|
-
*Deprecated*:
|
|
145
|
-
Use :mochiref:`findChildElements` instead. The Selector class will be
|
|
146
|
-
removed in version 1.5.
|
|
147
|
-
|
|
148
|
-
*Availability*:
|
|
149
|
-
Available in MochiKit 1.4+
|
|
150
|
-
|
|
151
|
-
:mochidef:`Selector.findElements(scope[, axis=""])`:
|
|
152
|
-
|
|
153
|
-
Performs a search on ``scope``. The value of axis controls what relatives
|
|
154
|
-
of ``scope`` are considered.
|
|
155
|
-
|
|
156
|
-
``scope``:
|
|
157
|
-
A DOM node that acts as a starting point for the search.
|
|
158
|
-
|
|
159
|
-
``axis``:
|
|
160
|
-
One of ``">"``, ``"+"``, ``"~"`` or the empty string (default).
|
|
161
|
-
If the empty string, all descendant nodes of ``scope`` are tested against
|
|
162
|
-
the expression. If ``>`` only direct child nodes of ``scope`` are tested,
|
|
163
|
-
if ``+`` only the next sibling (if any) of ``scope`` is tested and if
|
|
164
|
-
``~`` all succeeding siblings of ``scope`` are tested.
|
|
165
|
-
|
|
166
|
-
*Deprecated*:
|
|
167
|
-
Use :mochiref:`findChildElements` instead. The Selector class will be
|
|
168
|
-
removed in version 1.5.
|
|
169
|
-
|
|
170
|
-
*Availability*:
|
|
171
|
-
Available in MochiKit 1.4+
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
See Also
|
|
175
|
-
========
|
|
176
|
-
|
|
177
|
-
.. [1] CSS Selectors Level 3 (Last Call, oct. 2006):
|
|
178
|
-
http://www.w3.org/TR/2005/WD-css3-selectors-20051215/
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
Authors
|
|
182
|
-
=======
|
|
183
|
-
|
|
184
|
-
- Arnar Birgisson <arnarbi@gmail.com>
|
|
185
|
-
- Thomas Herve <therve@gmail.com>
|
|
186
|
-
- Originally ported from Prototype <http://prototype.conio.net/>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
Copyright
|
|
190
|
-
=========
|
|
191
|
-
|
|
192
|
-
Copyright 2005 Bob Ippolito <bob@redivi.com>. This program is
|
|
193
|
-
dual-licensed free software; you can redistribute it and/or modify it
|
|
194
|
-
under the terms of the `MIT License`_ or the `Academic Free License
|
|
195
|
-
v2.1`_.
|
|
196
|
-
|
|
197
|
-
.. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
|
|
198
|
-
.. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
|
|
199
|
-
|
|
200
|
-
Based on Prototype, (c) 2005 Sam Stephenson, available under the `Prototype
|
|
201
|
-
license`_
|
|
202
|
-
|
|
203
|
-
.. _`Prototype license`: http://dev.rubyonrails.org/browser/spinoffs/prototype/LICENSE?rev=3362
|
|
@@ -1,498 +0,0 @@
|
|
|
1
|
-
.. title:: MochiKit.Signal - Simple universal event handling
|
|
2
|
-
.. |---| unicode:: U+2014 .. em dash, trimming surrounding whitespace
|
|
3
|
-
:trim:
|
|
4
|
-
|
|
5
|
-
Name
|
|
6
|
-
====
|
|
7
|
-
|
|
8
|
-
MochiKit.Signal - Simple universal event handling
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Synopsis
|
|
12
|
-
========
|
|
13
|
-
|
|
14
|
-
Signal for DOM events::
|
|
15
|
-
|
|
16
|
-
// DOM events are also signals. Connect freely! The functions will be
|
|
17
|
-
// called with the custom event as a parameter.
|
|
18
|
-
|
|
19
|
-
// calls myClicked.apply(getElement('myID'), [event])
|
|
20
|
-
connect('myID', 'onclick', myClicked);
|
|
21
|
-
|
|
22
|
-
// calls wasClicked.apply(myObject, [event])
|
|
23
|
-
connect('myID', 'onclick', myObject, wasClicked);
|
|
24
|
-
|
|
25
|
-
// calls myObject.wasClicked(event)
|
|
26
|
-
connect('myID', 'onclick', myObject, 'wasClicked');
|
|
27
|
-
|
|
28
|
-
// the event is normalized, no more e = e || window.event!
|
|
29
|
-
myObject.wasClicked = function(e) {
|
|
30
|
-
var crossBrowserCoordinates = e.mouse().page;
|
|
31
|
-
// e.mouse().page is a MochiKit.Style.Coordinates object
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Signal for non-DOM events::
|
|
36
|
-
|
|
37
|
-
// otherObject.gotFlash() will be called when 'flash' signalled.
|
|
38
|
-
connect(myObject, 'flash', otherObject, 'gotFlash');
|
|
39
|
-
|
|
40
|
-
// gotBang.apply(otherObject, [...]) will be called when 'bang' signalled.
|
|
41
|
-
// You can access otherObject from within gotBang as 'this'.
|
|
42
|
-
connect(myObject, 'bang', otherObject, gotBang);
|
|
43
|
-
|
|
44
|
-
// myFunc.apply(myObject, [...]) will be called when 'flash' signalled.
|
|
45
|
-
// You can access myObject from within myFunc as 'this'.
|
|
46
|
-
var ident = connect(myObject, 'flash', myFunc);
|
|
47
|
-
|
|
48
|
-
// You may disconnect with the return value from connect
|
|
49
|
-
disconnect(ident);
|
|
50
|
-
|
|
51
|
-
// Signal can take parameters. These will be passed along to the
|
|
52
|
-
// connected functions.
|
|
53
|
-
signal(myObject, 'flash');
|
|
54
|
-
signal(myObject, 'bang', 'BANG!');
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Description
|
|
58
|
-
===========
|
|
59
|
-
|
|
60
|
-
Event handling was never so easy!
|
|
61
|
-
|
|
62
|
-
This module takes care of all the hard work |---| figuring out which
|
|
63
|
-
event model to use, trying to retrieve the event object, and handling
|
|
64
|
-
your own internal events, as well as cleanup when the page is unloaded
|
|
65
|
-
to clean up IE's nasty memory leakage.
|
|
66
|
-
|
|
67
|
-
This event system is largely based on Qt's signal/slot system. Read
|
|
68
|
-
more on how that is handled and also how it is used in model/view
|
|
69
|
-
programming at: http://doc.trolltech.com/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
Dependencies
|
|
73
|
-
============
|
|
74
|
-
|
|
75
|
-
- :mochiref:`MochiKit.Base`
|
|
76
|
-
- :mochiref:`MochiKit.DOM`
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
Overview
|
|
80
|
-
========
|
|
81
|
-
|
|
82
|
-
Using Signal for DOM Events
|
|
83
|
-
---------------------------
|
|
84
|
-
|
|
85
|
-
When using MochiKit.Signal, do not use the browser's native event
|
|
86
|
-
API. That means, no ``onclick="blah"``, no
|
|
87
|
-
``elem.addEventListener(...)``, and certainly no
|
|
88
|
-
``elem.attachEvent(...)``. This also means that
|
|
89
|
-
:mochiref:`MochiKit.DOM.addToCallStack` and
|
|
90
|
-
:mochiref:`MochiKit.DOM.addLoadEvent` should not be used in
|
|
91
|
-
combination with this module.
|
|
92
|
-
|
|
93
|
-
Signals for DOM objects are named with the ``'on'`` prefix, e.g.:
|
|
94
|
-
``'onclick'``, ``'onkeyup'``, etc.
|
|
95
|
-
|
|
96
|
-
When the signal fires, your slot will be called with one parameter,
|
|
97
|
-
the custom event object.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
Custom Event Objects for DOM events
|
|
101
|
-
-----------------------------------
|
|
102
|
-
|
|
103
|
-
Signals triggered by DOM events are called with a custom event object
|
|
104
|
-
as a parameter. The custom event object presents a consistent view of
|
|
105
|
-
the event across all supported platforms and browsers, and provides
|
|
106
|
-
many conveniences not available even in a correct W3C implementation.
|
|
107
|
-
|
|
108
|
-
See the `DOM Custom Event Object Reference`_ for a detailed API
|
|
109
|
-
description of this object.
|
|
110
|
-
|
|
111
|
-
If you find that you're accessing the native event for any reason,
|
|
112
|
-
create a `new ticket`_ and we'll look into normalizing the behavior
|
|
113
|
-
you're looking for.
|
|
114
|
-
|
|
115
|
-
.. _`new ticket`: http://trac.mochikit.com/newticket
|
|
116
|
-
.. _`Safari bug 6595`: http://bugs.webkit.org/show_bug.cgi?id=6595
|
|
117
|
-
.. _`Safari bug 7790`: http://bugs.webkit.org/show_bug.cgi?id=7790
|
|
118
|
-
.. _`Safari bug 8707`: http://bugs.webkit.org/show_bug.cgi?id=8707
|
|
119
|
-
.. _`stopPropagation()`: http://developer.mozilla.org/en/docs/DOM:event.stopPropagation
|
|
120
|
-
.. _`preventDefault()`: http://developer.mozilla.org/en/docs/DOM:event.preventDefault
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
Memory Usage
|
|
124
|
-
------------
|
|
125
|
-
|
|
126
|
-
Any object that has connected slots (via :mochiref:`connect()`) is
|
|
127
|
-
referenced by the Signal mechanism until it is disconnected via
|
|
128
|
-
:mochiref:`disconnect()` or :mochiref:`disconnectAll()`.
|
|
129
|
-
|
|
130
|
-
Signal does not leak. It registers an ``'onunload'`` event that
|
|
131
|
-
disconnects all objects on the page when the browser leaves the
|
|
132
|
-
page. However, memory usage will grow during the page view for every
|
|
133
|
-
connection made until it is disconnected. Even if the DOM object is
|
|
134
|
-
removed from the document, it will still be referenced by Signal until
|
|
135
|
-
it is explicitly disconnected.
|
|
136
|
-
|
|
137
|
-
In order to conserve memory during the page view,
|
|
138
|
-
:mochiref:`disconnectAll()` any DOM elements that are about to be
|
|
139
|
-
removed from the document.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
Synthesized Events
|
|
143
|
-
------------------
|
|
144
|
-
|
|
145
|
-
Certain events supported by MochiKit are not generated natively by all
|
|
146
|
-
browsers. MochiKit can synthesize these events even for non-supporting
|
|
147
|
-
browsers, however, by watching for related events and triggering the
|
|
148
|
-
appropriate signals at the right times.
|
|
149
|
-
|
|
150
|
-
These events include:
|
|
151
|
-
|
|
152
|
-
``onmouseenter``
|
|
153
|
-
|
|
154
|
-
Similar to ``'onmouseover'``, but does not "bubble" up to parent
|
|
155
|
-
nodes. Such bubbling is often a cause of confusion. On an
|
|
156
|
-
``'onmouseenter'`` event, you can be certain that the mouse has
|
|
157
|
-
left the node attached to the event.
|
|
158
|
-
|
|
159
|
-
*Availability:*
|
|
160
|
-
Available in MochiKit 1.4+
|
|
161
|
-
|
|
162
|
-
``onmouseleave``
|
|
163
|
-
|
|
164
|
-
Similar to ``'onmouseout'``, but does not "bubble" up to parent
|
|
165
|
-
nodes. This is the analog to ``'onmouseenter'``.
|
|
166
|
-
|
|
167
|
-
*Availability:*
|
|
168
|
-
Available in MochiKit 1.4+
|
|
169
|
-
|
|
170
|
-
``onmousewheel``
|
|
171
|
-
|
|
172
|
-
Not strictly synthesized, but named ``'DOMMouseScroll'`` in
|
|
173
|
-
Gecko-based browsers. MochiKit translates ``'onmousewheel'`` to
|
|
174
|
-
the corresponding event in these browsers.
|
|
175
|
-
|
|
176
|
-
*Availability:*
|
|
177
|
-
Available in MochiKit 1.4+
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
Using Signal for non-DOM objects
|
|
181
|
-
--------------------------------
|
|
182
|
-
|
|
183
|
-
Signals are triggered with the :mochiref:`signal(src, 'signal', ...)`
|
|
184
|
-
function. Additional parameters passed to this are passed onto the
|
|
185
|
-
connected slots. Explicit signals are not required for DOM events.
|
|
186
|
-
|
|
187
|
-
Slots that are connected to a signal are called in the following
|
|
188
|
-
manner when that signal is signalled:
|
|
189
|
-
|
|
190
|
-
- If the slot was a single function, then it is called with ``this``
|
|
191
|
-
set to the object originating the signal with whatever parameters
|
|
192
|
-
it was signalled with.
|
|
193
|
-
|
|
194
|
-
- If the slot was an object and a function, then it is called with
|
|
195
|
-
``this`` set to the object, and with whatever parameters it was
|
|
196
|
-
signalled with.
|
|
197
|
-
|
|
198
|
-
- If the slot was an object and a string, then ``object[string]`` is
|
|
199
|
-
called with the parameters to the signal.
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
API Reference
|
|
203
|
-
=============
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
Signal API Reference
|
|
207
|
-
--------------------
|
|
208
|
-
|
|
209
|
-
:mochidef:`connect(src, signal, dest[, func])`:
|
|
210
|
-
|
|
211
|
-
Connects a signal to a slot, and return a unique identifier that
|
|
212
|
-
can be used to disconnect that signal.
|
|
213
|
-
|
|
214
|
-
``src`` is the object that has the signal. You may pass in a
|
|
215
|
-
string, in which case, it is interpreted as an id for an HTML
|
|
216
|
-
element.
|
|
217
|
-
|
|
218
|
-
``signal`` is a string that represents a signal name. If 'src' is
|
|
219
|
-
an HTML Element, ``window``, or the ``document``, then it can be
|
|
220
|
-
one of the 'on-XYZ' events. You must include the 'on' prefix, and
|
|
221
|
-
it must be all lower-case.
|
|
222
|
-
|
|
223
|
-
``dest`` and ``func`` describe the slot, or the action to take
|
|
224
|
-
when the signal is triggered.
|
|
225
|
-
|
|
226
|
-
- If ``dest`` is an object and ``func`` is a string, then
|
|
227
|
-
``dest[func].apply(dest, [...])`` will be called when the
|
|
228
|
-
signal is signalled.
|
|
229
|
-
|
|
230
|
-
- If ``dest`` is an object and ``func`` is a function, then
|
|
231
|
-
``func.apply(dest, [...])`` will be called when the signal
|
|
232
|
-
is signalled.
|
|
233
|
-
|
|
234
|
-
- If ``func`` is undefined and ``dest`` is a function, then
|
|
235
|
-
``dest.apply(src, [...])`` will be called when the signal is
|
|
236
|
-
signalled.
|
|
237
|
-
|
|
238
|
-
No other combinations are allowed and will raise an exception.
|
|
239
|
-
|
|
240
|
-
The return value can be passed to :mochiref:`disconnect` to
|
|
241
|
-
disconnect the signal.
|
|
242
|
-
|
|
243
|
-
In MochiKit 1.4+, if ``src`` is an object that has a ``__connect__``
|
|
244
|
-
method, then ``src.__connect__(ident, signal, objOrFunc, funcOrStr)``
|
|
245
|
-
will be called. The ``__connect__`` method is allowed to disconnect
|
|
246
|
-
the signal. DOM objects can not implement this feature.
|
|
247
|
-
|
|
248
|
-
*Availability*:
|
|
249
|
-
Available in MochiKit 1.3.1+
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
:mochidef:`disconnect(ident)`:
|
|
253
|
-
|
|
254
|
-
To disconnect a signal, pass its ident returned by
|
|
255
|
-
:mochiref:`connect()`. This is similar to how the browser's
|
|
256
|
-
``setTimeout`` and ``clearTimeout`` works.
|
|
257
|
-
|
|
258
|
-
In MochiKit 1.4+, if the signal source is an object that has a
|
|
259
|
-
``__disconnect__`` method, then
|
|
260
|
-
``src.__disconnect__(ident, signal, objOrFunc, funcOrStr)``
|
|
261
|
-
will be called. DOM objects can not implement this feature.
|
|
262
|
-
|
|
263
|
-
*Availability*:
|
|
264
|
-
Available in MochiKit 1.3.1+
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
:mochidef:`disconnectAll(src[, signal, ...])`:
|
|
268
|
-
|
|
269
|
-
Removes a set of signals from ``src``, similar to calling
|
|
270
|
-
:mochiref:`disconnect(ident)` for each one.
|
|
271
|
-
|
|
272
|
-
``disconnectAll(src)`` removes all signals from src.
|
|
273
|
-
|
|
274
|
-
``disconnectAll(src, 'onmousedown', 'mySignal')`` will remove all
|
|
275
|
-
``'onmousedown'`` and ``'mySignal'`` signals from src.
|
|
276
|
-
|
|
277
|
-
*Availability*:
|
|
278
|
-
Available in MochiKit 1.3.1+
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
:mochidef:`disconnectAllTo(dest[, func])`:
|
|
282
|
-
|
|
283
|
-
Removes a set of signals connected to ``dest``, similar to calling
|
|
284
|
-
:mochiref:`disconnect(ident)` for each one.
|
|
285
|
-
|
|
286
|
-
``disconnectAllTo(dest)`` removes all signals connected to dest.
|
|
287
|
-
|
|
288
|
-
``disconnectAllTo(dest, func)`` will remove all
|
|
289
|
-
signals connected to dest using func.
|
|
290
|
-
|
|
291
|
-
*Availability*:
|
|
292
|
-
Available in MochiKit 1.4+
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
:mochidef:`signal(src, signal, ...)`:
|
|
296
|
-
|
|
297
|
-
This will signal a signal, passing whatever additional parameters
|
|
298
|
-
on to the connected slots. ``src`` and ``signal`` are the same as
|
|
299
|
-
for :mochiref:`connect()`.
|
|
300
|
-
|
|
301
|
-
*Availability*:
|
|
302
|
-
Available in MochiKit 1.3.1+
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
DOM Custom Event Object Reference
|
|
306
|
-
---------------------------------
|
|
307
|
-
|
|
308
|
-
:mochidef:`event()`:
|
|
309
|
-
|
|
310
|
-
The native event produced by the browser. You should not need to
|
|
311
|
-
use this.
|
|
312
|
-
|
|
313
|
-
*Availability*:
|
|
314
|
-
Available in MochiKit 1.3.1+
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
:mochidef:`src()`:
|
|
318
|
-
|
|
319
|
-
The element that this signal is connected to.
|
|
320
|
-
|
|
321
|
-
*Availability*:
|
|
322
|
-
Available in MochiKit 1.3.1+
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
:mochidef:`type()`:
|
|
326
|
-
|
|
327
|
-
The event type (``'click'``, ``'mouseover'``, ``'keypress'``,
|
|
328
|
-
etc.) as a string. Does not include the ``'on'`` prefix.
|
|
329
|
-
|
|
330
|
-
*Availability*:
|
|
331
|
-
Available in MochiKit 1.3.1+
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
:mochidef:`target()`:
|
|
335
|
-
|
|
336
|
-
The element that triggered the event. This may be a child of
|
|
337
|
-
:mochiref:`src()`.
|
|
338
|
-
|
|
339
|
-
*Availability*:
|
|
340
|
-
Available in MochiKit 1.3.1+
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
:mochidef:`modifier()`:
|
|
344
|
-
|
|
345
|
-
Returns ``{shift, ctrl, meta, alt, any}``, where each property is
|
|
346
|
-
``true`` if its respective modifier key was pressed, ``false``
|
|
347
|
-
otherwise. ``any`` is ``true`` if any modifier is pressed,
|
|
348
|
-
``false`` otherwise.
|
|
349
|
-
|
|
350
|
-
*Availability*:
|
|
351
|
-
Available in MochiKit 1.3.1+
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
:mochidef:`stopPropagation()`:
|
|
355
|
-
|
|
356
|
-
Works like W3C's `stopPropagation()`_.
|
|
357
|
-
|
|
358
|
-
*Availability*:
|
|
359
|
-
Available in MochiKit 1.3.1+
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
:mochidef:`preventDefault()`:
|
|
363
|
-
|
|
364
|
-
Works like W3C's `preventDefault()`_.
|
|
365
|
-
|
|
366
|
-
*Availability*:
|
|
367
|
-
Available in MochiKit 1.3.1+
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
:mochidef:`stop()`:
|
|
371
|
-
|
|
372
|
-
Shortcut that calls ``stopPropagation()`` and
|
|
373
|
-
``preventDefault()``.
|
|
374
|
-
|
|
375
|
-
*Availability*:
|
|
376
|
-
Available in MochiKit 1.3.1+
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
:mochidef:`key()`:
|
|
380
|
-
|
|
381
|
-
Returns ``{code, string}``.
|
|
382
|
-
|
|
383
|
-
Use ``'onkeydown'`` and ``'onkeyup'`` handlers to detect control
|
|
384
|
-
characters such as ``'KEY_F1'``. Use the ``'onkeypress'``
|
|
385
|
-
handler to detect "printable" characters, such as ``'é'``.
|
|
386
|
-
|
|
387
|
-
When a user presses F1, in ``'onkeydown'`` and ``'onkeyup'`` this
|
|
388
|
-
method returns ``{code: 122, string: 'KEY_F1'}``. In
|
|
389
|
-
``'onkeypress'``, it returns ``{code: 0, string: ''}``.
|
|
390
|
-
|
|
391
|
-
If a user presses Shift+2 on a US keyboard, this method returns
|
|
392
|
-
``{code: 50, string: 'KEY_2'}`` in ``'onkeydown'`` and
|
|
393
|
-
``'onkeyup'``. In ``'onkeypress'``, it returns ``{code: 64,
|
|
394
|
-
string: '@'}``.
|
|
395
|
-
|
|
396
|
-
See ``_specialKeys`` in the source code for a comprehensive list
|
|
397
|
-
of control characters.
|
|
398
|
-
|
|
399
|
-
*Availability*:
|
|
400
|
-
Available in MochiKit 1.3.1+
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
:mochidef:`mouse()`:
|
|
404
|
-
|
|
405
|
-
Properties for ``'onmouse*'``, ``'onclick'``, ``'ondblclick'``,
|
|
406
|
-
and ``'oncontextmenu'``:
|
|
407
|
-
|
|
408
|
-
- ``page`` is a :mochiref:`MochiKit.Style.Coordinates` object
|
|
409
|
-
that represents the cursor position relative to the HTML
|
|
410
|
-
document. Equivalent to ``pageX`` and ``pageY`` in
|
|
411
|
-
Safari, Mozilla, and Opera.
|
|
412
|
-
|
|
413
|
-
- ``client`` is a :mochiref:`MochiKit.Style.Coordinates`
|
|
414
|
-
object that represents the cursor position relative to the
|
|
415
|
-
visible portion of the HTML document. Equivalent to
|
|
416
|
-
``clientX`` and ``clientY`` on all browsers. Current versions of
|
|
417
|
-
Safari incorrectly return clientX as relative to the canvas
|
|
418
|
-
instead of relative to the viewport (`Safari Bug 8707`_).
|
|
419
|
-
|
|
420
|
-
Properties for ``'onmouseup'``, ``'onmousedown'``, ``'onclick'``,
|
|
421
|
-
and ``'ondblclick'``:
|
|
422
|
-
|
|
423
|
-
- ``mouse().button`` returns ``{left, right, middle}`` where
|
|
424
|
-
each property is ``true`` if the mouse button was pressed,
|
|
425
|
-
``false`` otherwise.
|
|
426
|
-
|
|
427
|
-
Properties for ``'onmousewheel'``:
|
|
428
|
-
|
|
429
|
-
- ``mouse().wheel`` is a :mochiref:`MochiKit.Style.Coordinates`
|
|
430
|
-
object containing the scroll wheel offset. The number will be
|
|
431
|
-
positive when scrolling down (or to the right) and negative
|
|
432
|
-
when scrolling up (or to the left). Note that only Safari 3
|
|
433
|
-
currently supports horizontal scrolling. In other browsers,
|
|
434
|
-
the ``'y'`` component will contain the scroll offset for
|
|
435
|
-
both directions.
|
|
436
|
-
|
|
437
|
-
Known browser bugs:
|
|
438
|
-
|
|
439
|
-
- Current versions of Safari won't signal ``'ondblclick'``
|
|
440
|
-
when attached via ``connect()`` (`Safari Bug 7790`_).
|
|
441
|
-
|
|
442
|
-
- In Safari < 2.0.4, calling ``preventDefault()`` or ``stop()``
|
|
443
|
-
in ``'onclick'`` events signalled from ``<a>`` tags does not
|
|
444
|
-
prevent the browser from following those links.
|
|
445
|
-
|
|
446
|
-
- Mac browsers don't report right-click consistently. Firefox
|
|
447
|
-
signals the slot and sets ``modifier().ctrl`` to true,
|
|
448
|
-
Opera signals the slot and sets ``modifier().meta`` to
|
|
449
|
-
``true``, and Safari doesn't signal the slot at all
|
|
450
|
-
(`Safari Bug 6595`_).
|
|
451
|
-
|
|
452
|
-
To find a right-click in Safari, Firefox, and IE, you can
|
|
453
|
-
connect an element to ``'oncontextmenu'``. This doesn't
|
|
454
|
-
work in Opera.
|
|
455
|
-
|
|
456
|
-
*Availability*:
|
|
457
|
-
Available in MochiKit 1.3.1+
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
:mochidef:`relatedTarget()`:
|
|
461
|
-
|
|
462
|
-
Returns the document element that the mouse has moved to. This is
|
|
463
|
-
generated for ``'onmouseover'`` and ``'onmouseout'`` events.
|
|
464
|
-
|
|
465
|
-
*Availability*:
|
|
466
|
-
Available in MochiKit 1.3.1+
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
:mochidef:`confirmUnload(msg)`:
|
|
470
|
-
|
|
471
|
-
In browsers that support the ``'onbeforeunload'`` event (IE and
|
|
472
|
-
Firefox), calling this in the event handler will show a dialog box
|
|
473
|
-
that allows the user to confirm or cancel the navigation away from
|
|
474
|
-
the page.
|
|
475
|
-
|
|
476
|
-
*Availability*:
|
|
477
|
-
Available in MochiKit 1.4+
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
Authors
|
|
481
|
-
=======
|
|
482
|
-
|
|
483
|
-
- Jonathan Gardner <jgardner@jonathangardner.net>
|
|
484
|
-
- Beau Hartshorne <beau@hartshornesoftware.com>
|
|
485
|
-
- Bob Ippolito <bob@redivi.com>
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
Copyright
|
|
489
|
-
=========
|
|
490
|
-
|
|
491
|
-
Copyright 2006 Jonathan Gardner <jgardner@jonathangardner.net>, Beau
|
|
492
|
-
Hartshorne <beau@hartshornesoftware.com>, and Bob Ippolito
|
|
493
|
-
<bob@redivi.com>. This program is dual-licensed free software; you
|
|
494
|
-
can redistribute it and/or modify it under the terms of the `MIT
|
|
495
|
-
License`_ or the `Academic Free License v2.1`_.
|
|
496
|
-
|
|
497
|
-
.. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
|
|
498
|
-
.. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
|