old_sql 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +179 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +814 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +1703 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +755 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +1197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +168 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +187 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +300 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +524 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +420 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +142 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +240 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +508 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +244 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +385 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +384 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +1161 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +447 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +113 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +767 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +1445 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +651 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +1143 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +145 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +258 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +454 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +348 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +128 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +26 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +498 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +895 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +83 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +401 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +10 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +96 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +4 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +95 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +42 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +90 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +189 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +36 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +65 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +483 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +62 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +373 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +5 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +85 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +46 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +11 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +74 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +125 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +59 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +3 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +45 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +119 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +91 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +93 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +64 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +66 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +177 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +339 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +22 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +622 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +70 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +130 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +682 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +1489 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +863 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +1256 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +222 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +793 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +304 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +844 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +315 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +188 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +115 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +236 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +415 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +897 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +589 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +594 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +162 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +2026 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +7829 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +251 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +381 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +159 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +25 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +16 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +577 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +137 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +52 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +89 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +408 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +34 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +84 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +363 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +32 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +295 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +223 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +481 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +406 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +683 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +756 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +2177 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +705 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +348 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +247 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +9 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +723 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/README +1 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +302 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +139 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +172 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +81 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +155 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +50 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +428 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +330 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +368 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +256 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +436 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +299 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +159 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +64 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +334 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +304 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +144 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +62 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +37 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +31 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +25 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +143 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +56 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +133 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +136 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +38 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +43 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +53 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +61 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +6 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +141 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +26 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +147 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +24 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +89 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +66 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +20 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +31 -0
- metadata +264 -2
@@ -0,0 +1,145 @@
|
|
1
|
+
.. title:: MochiKit.DateTime - "what time is it anyway?"
|
2
|
+
|
3
|
+
Name
|
4
|
+
====
|
5
|
+
|
6
|
+
MochiKit.DateTime - "what time is it anyway?"
|
7
|
+
|
8
|
+
|
9
|
+
Synopsis
|
10
|
+
========
|
11
|
+
|
12
|
+
::
|
13
|
+
|
14
|
+
stringDate = toISOTimestamp(new Date());
|
15
|
+
dateObject = isoTimestamp(stringDate);
|
16
|
+
|
17
|
+
|
18
|
+
Description
|
19
|
+
===========
|
20
|
+
|
21
|
+
Remote servers don't give you JavaScript Date objects, and they
|
22
|
+
certainly don't want them from you, so you need to deal with string
|
23
|
+
representations of dates and timestamps. MochiKit.Date does that.
|
24
|
+
|
25
|
+
|
26
|
+
Dependencies
|
27
|
+
============
|
28
|
+
|
29
|
+
None.
|
30
|
+
|
31
|
+
|
32
|
+
API Reference
|
33
|
+
=============
|
34
|
+
|
35
|
+
Functions
|
36
|
+
---------
|
37
|
+
|
38
|
+
:mochidef:`isoDate(str)`:
|
39
|
+
|
40
|
+
Convert an ISO 8601 date (YYYY-MM-DD) to a ``Date`` object.
|
41
|
+
|
42
|
+
*Availability*:
|
43
|
+
Available in MochiKit 1.3.1+
|
44
|
+
|
45
|
+
|
46
|
+
:mochidef:`isoTimestamp(str)`:
|
47
|
+
|
48
|
+
Convert any ISO 8601 [1]_ timestamp (or something reasonably close
|
49
|
+
to it) to a ``Date`` object. Will accept the "de facto" form:
|
50
|
+
|
51
|
+
YYYY-MM-DD hh:mm:ss
|
52
|
+
|
53
|
+
or (the proper form):
|
54
|
+
|
55
|
+
YYYY-MM-DDThh:mm:ssZ
|
56
|
+
|
57
|
+
If a time zone designator ("Z" or "[+-]HH:MM") is not present,
|
58
|
+
then the local timezone is used.
|
59
|
+
|
60
|
+
*Availability*:
|
61
|
+
Available in MochiKit 1.3.1+
|
62
|
+
|
63
|
+
|
64
|
+
:mochidef:`toISOTime(date)`:
|
65
|
+
|
66
|
+
Convert a ``Date`` object to a string in the form of hh:mm:ss
|
67
|
+
|
68
|
+
*Availability*:
|
69
|
+
Available in MochiKit 1.3.1+
|
70
|
+
|
71
|
+
|
72
|
+
:mochidef:`toISOTimestamp(date, realISO=false)`:
|
73
|
+
|
74
|
+
Convert a ``Date`` object to something that's ALMOST but not quite
|
75
|
+
an ISO 8601 [1]_timestamp. If it was a proper ISO timestamp it
|
76
|
+
would be:
|
77
|
+
|
78
|
+
YYYY-MM-DDThh:mm:ssZ
|
79
|
+
|
80
|
+
However, we see junk in SQL and other places that looks like this:
|
81
|
+
|
82
|
+
YYYY-MM-DD hh:mm:ss
|
83
|
+
|
84
|
+
So, this function returns the latter form, despite its name,
|
85
|
+
unless you pass ``true`` for ``realISO``.
|
86
|
+
|
87
|
+
*Availability*:
|
88
|
+
Available in MochiKit 1.3.1+
|
89
|
+
|
90
|
+
|
91
|
+
:mochidef:`toISODate(date)`:
|
92
|
+
|
93
|
+
Convert a ``Date`` object to an ISO 8601 [1]_ date string
|
94
|
+
(YYYY-MM-DD)
|
95
|
+
|
96
|
+
*Availability*:
|
97
|
+
Available in MochiKit 1.3.1+
|
98
|
+
|
99
|
+
|
100
|
+
:mochidef:`americanDate(str)`:
|
101
|
+
|
102
|
+
Converts a MM/DD/YYYY date to a ``Date`` object
|
103
|
+
|
104
|
+
*Availability*:
|
105
|
+
Available in MochiKit 1.3.1+
|
106
|
+
|
107
|
+
|
108
|
+
:mochidef:`toPaddedAmericanDate(date)`:
|
109
|
+
|
110
|
+
Converts a ``Date`` object to an MM/DD/YYYY date, e.g. 01/01/2001
|
111
|
+
|
112
|
+
*Availability*:
|
113
|
+
Available in MochiKit 1.3.1+
|
114
|
+
|
115
|
+
|
116
|
+
:mochidef:`toAmericanDate(date)`:
|
117
|
+
|
118
|
+
Converts a ``Date`` object to an M/D/YYYY date, e.g. 1/1/2001
|
119
|
+
|
120
|
+
*Availability*:
|
121
|
+
Available in MochiKit 1.3.1+
|
122
|
+
|
123
|
+
|
124
|
+
See Also
|
125
|
+
========
|
126
|
+
|
127
|
+
.. [1] W3C profile of ISO 8601: http://www.w3.org/TR/NOTE-datetime
|
128
|
+
|
129
|
+
|
130
|
+
Authors
|
131
|
+
=======
|
132
|
+
|
133
|
+
- Bob Ippolito <bob@redivi.com>
|
134
|
+
|
135
|
+
|
136
|
+
Copyright
|
137
|
+
=========
|
138
|
+
|
139
|
+
Copyright 2005 Bob Ippolito <bob@redivi.com>. This program is
|
140
|
+
dual-licensed free software; you can redistribute it and/or modify it
|
141
|
+
under the terms of the `MIT License`_ or the `Academic Free License
|
142
|
+
v2.1`_.
|
143
|
+
|
144
|
+
.. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
|
145
|
+
.. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
|
@@ -0,0 +1,197 @@
|
|
1
|
+
.. title:: MochiKit.DragAndDrop - drag and drop elements with MochiKit
|
2
|
+
|
3
|
+
Name
|
4
|
+
====
|
5
|
+
|
6
|
+
MochiKit.DragAndDrop - drag and drop elements with MochiKit
|
7
|
+
|
8
|
+
Synopsis
|
9
|
+
========
|
10
|
+
|
11
|
+
::
|
12
|
+
|
13
|
+
// Create a draggable
|
14
|
+
new Draggable('mydrag');
|
15
|
+
|
16
|
+
// Create a corresponding droppable
|
17
|
+
new Droppable('mydrop', {
|
18
|
+
accept: ['drag-class'],
|
19
|
+
ondrop: function (element) {
|
20
|
+
alert('"' + element.id + '" was dropped on me');
|
21
|
+
}
|
22
|
+
});
|
23
|
+
|
24
|
+
Description
|
25
|
+
===========
|
26
|
+
|
27
|
+
MochiKit.DragAndDrop enables you the power of dragging elements
|
28
|
+
through your pages, for richer interfaces.
|
29
|
+
|
30
|
+
Dependencies
|
31
|
+
============
|
32
|
+
|
33
|
+
- :mochiref:`MochiKit.Base`
|
34
|
+
- :mochiref:`MochiKit.Iter`
|
35
|
+
- :mochiref:`MochiKit.DOM`
|
36
|
+
- :mochiref:`MochiKit.Color`
|
37
|
+
- :mochiref:`MochiKit.Visual`
|
38
|
+
- :mochiref:`MochiKit.Signal`
|
39
|
+
|
40
|
+
Overview
|
41
|
+
========
|
42
|
+
|
43
|
+
The implementation was adapted from Scriptaculous_.
|
44
|
+
|
45
|
+
.. _Scriptaculous: http://script.aculo.us
|
46
|
+
|
47
|
+
API Reference
|
48
|
+
=============
|
49
|
+
|
50
|
+
Constructors
|
51
|
+
------------
|
52
|
+
|
53
|
+
:mochidef:`Draggable(element[, options])`:
|
54
|
+
|
55
|
+
A object that can be drag with the mouse.
|
56
|
+
|
57
|
+
You have the following options, with corresponding default values:
|
58
|
+
|
59
|
+
``handle (false)``:
|
60
|
+
Option for giving the element where starting the drag. By
|
61
|
+
default it's the element itself, but you can either put a
|
62
|
+
class of a subelement or the id of another element as handle.
|
63
|
+
|
64
|
+
``starteffect (MochiKit.Visual.Opacity)``:
|
65
|
+
Function called once the drag has begun, taking the dragged
|
66
|
+
element as argument. It's an effect by default but you can
|
67
|
+
define any callback.
|
68
|
+
|
69
|
+
``reverteffect (MochiKit.Visual.Move)``:
|
70
|
+
Effect applied when drag is cancelled. You have to define the
|
71
|
+
``revert`` option to enable the call. By default it brings the
|
72
|
+
element back to its initial position, so you should know what
|
73
|
+
you want when you modify this. The function should return an
|
74
|
+
effect that can be cancelled.
|
75
|
+
|
76
|
+
``endeffect (MochiKit.Visual.Opacity)``:
|
77
|
+
Pending part of starteffect. If you have modified your element
|
78
|
+
during start, you'd usually want to revert it in the function.
|
79
|
+
|
80
|
+
``zindex (1000)``:
|
81
|
+
Zindex of the drag element. By default it brings it to front.
|
82
|
+
|
83
|
+
``revert (false)``:
|
84
|
+
Indicate if the reverteffect function should be called. If you
|
85
|
+
define a function here, this function will be called before
|
86
|
+
reverteffect, with the element as first argument.
|
87
|
+
|
88
|
+
``snap (false)``:
|
89
|
+
Define the behaviour of the drag element when moving. It can
|
90
|
+
either be a function, a value or an array of two values. If
|
91
|
+
it's a function, it should take the (x, y) position of the
|
92
|
+
element as arguments, and return the position draw in the
|
93
|
+
browser. If its a value, it's used as a modulo for each
|
94
|
+
coordinates. If it's an array, each value is applied for the
|
95
|
+
corresponding coordinate.
|
96
|
+
|
97
|
+
``selectclass (null)``:
|
98
|
+
If defined, name of CSS class applied during the drag.
|
99
|
+
|
100
|
+
``ghosting (null)``:
|
101
|
+
Make a ghost from the draggable: clone it at start, then
|
102
|
+
remove the clone at end.
|
103
|
+
|
104
|
+
``onchange (MochiKit.Base.noop)``:
|
105
|
+
Function called when updates are made on the draggable object.
|
106
|
+
|
107
|
+
``scroll (false)``:
|
108
|
+
Element to scroll around, if precised. For example, ``window``
|
109
|
+
will allow the draggable to scroll in the page.
|
110
|
+
|
111
|
+
``scrollSensitivity (20)``:
|
112
|
+
Scroll sensitivity, used when scroll is used.
|
113
|
+
|
114
|
+
``scrollSpeed (15)``:
|
115
|
+
Scroll speed, used when scroll is used.
|
116
|
+
|
117
|
+
A draggable generates some signals during its lifetime: start, drag and
|
118
|
+
end. They are available through the Draggables handler, and are called
|
119
|
+
with a draggable as argument. You can register a callback for these events
|
120
|
+
like this::
|
121
|
+
|
122
|
+
onStart = function (draggable) {
|
123
|
+
// Do some stuff
|
124
|
+
};
|
125
|
+
|
126
|
+
connect(Draggables, 'start', onStart);
|
127
|
+
|
128
|
+
|
129
|
+
*Availability*:
|
130
|
+
Available in MochiKit 1.4+
|
131
|
+
|
132
|
+
|
133
|
+
:mochidef:`Droppable(element[, options])`:
|
134
|
+
|
135
|
+
A object where you can drop a draggable.
|
136
|
+
|
137
|
+
You have the following options, with corresponding default values:
|
138
|
+
|
139
|
+
``greedy (true)``:
|
140
|
+
Stop on this droppable when a draggable drops over it.
|
141
|
+
|
142
|
+
``hoverclass (null)``:
|
143
|
+
If defined, name of CSS class applied when a draggable is
|
144
|
+
hover the droppable element (hover state).
|
145
|
+
|
146
|
+
``hoverfunc (MochiKit.Base.noop)``:
|
147
|
+
Function called on hover state.
|
148
|
+
|
149
|
+
``accept (null)``:
|
150
|
+
Array of CSS classes allowed to drop on this.
|
151
|
+
|
152
|
+
``activeclass (null)``:
|
153
|
+
If defined, name of CSS class applied if a possible draggable
|
154
|
+
begins its start (active state).
|
155
|
+
|
156
|
+
``onactive (MochiKit.Base.noop)``:
|
157
|
+
Function called on active state.
|
158
|
+
|
159
|
+
``containment ([])``:
|
160
|
+
Specify a list of elements to check for active state: only the
|
161
|
+
children of the specified elements can be dropped. Mainly
|
162
|
+
useful for Sortable.
|
163
|
+
|
164
|
+
``onhover (MochiKit.Base.noop)``:
|
165
|
+
Specific hover function, mainly used for Sortable.
|
166
|
+
|
167
|
+
``ondrop (MochiKit.Base.noop)``:
|
168
|
+
Function called when a draggable is dropped. The function
|
169
|
+
takes three arguments: the draggable element, the droppable
|
170
|
+
element, and the event that raised the drop.
|
171
|
+
|
172
|
+
*Availability*:
|
173
|
+
Available in MochiKit 1.4+
|
174
|
+
|
175
|
+
|
176
|
+
Authors
|
177
|
+
=======
|
178
|
+
|
179
|
+
- Thomas Herve <therve@gmail.com>
|
180
|
+
- Bob Ippolito <bob@redivi.com>
|
181
|
+
- Originally adapted from Script.aculo.us <http://script.aculo.us/>
|
182
|
+
|
183
|
+
Copyright
|
184
|
+
=========
|
185
|
+
|
186
|
+
Copyright 2005 Bob Ippolito <bob@redivi.com>. This program is
|
187
|
+
dual-licensed free software; you can redistribute it and/or modify it
|
188
|
+
under the terms of the `MIT License`_ or the `Academic Free License
|
189
|
+
v2.1`_.
|
190
|
+
|
191
|
+
.. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
|
192
|
+
.. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
|
193
|
+
|
194
|
+
Portions adapted from `Scriptaculous`_ are available under the terms
|
195
|
+
of the `MIT License`_.
|
196
|
+
|
197
|
+
|
@@ -0,0 +1,258 @@
|
|
1
|
+
.. title:: MochiKit.Format - string formatting goes here
|
2
|
+
|
3
|
+
Name
|
4
|
+
====
|
5
|
+
|
6
|
+
MochiKit.Format - string formatting goes here
|
7
|
+
|
8
|
+
|
9
|
+
Synopsis
|
10
|
+
========
|
11
|
+
|
12
|
+
::
|
13
|
+
|
14
|
+
assert( truncToFixed(0.12345, 4) == "0.1234" );
|
15
|
+
assert( roundToFixed(0.12345, 4) == "0.1235" );
|
16
|
+
assert( twoDigitAverage(1, 0) == "0" );
|
17
|
+
assert( twoDigitFloat(1.2345) == "1.23" );
|
18
|
+
assert( twoDigitFloat(1) == "1" );
|
19
|
+
assert( percentFormat(1.234567) == "123.46%" );
|
20
|
+
assert( numberFormatter("###,###%")(125) == "12,500%" );
|
21
|
+
assert( numberFormatter("##.000")(1.25) == "1.250" );
|
22
|
+
|
23
|
+
|
24
|
+
Description
|
25
|
+
===========
|
26
|
+
|
27
|
+
Formatting strings and stringifying numbers is boring, so a couple
|
28
|
+
useful functions in that domain live here.
|
29
|
+
|
30
|
+
|
31
|
+
Dependencies
|
32
|
+
============
|
33
|
+
|
34
|
+
None.
|
35
|
+
|
36
|
+
|
37
|
+
Overview
|
38
|
+
========
|
39
|
+
|
40
|
+
Formatting Numbers
|
41
|
+
------------------
|
42
|
+
|
43
|
+
MochiKit provides an extensible number formatting facility, modeled
|
44
|
+
loosely after the Number Format Pattern Syntax [1]_ from Java.
|
45
|
+
:mochiref:`numberFormatter(pattern[, placeholder=""[,
|
46
|
+
locale="default"])` returns a function that converts Number to string
|
47
|
+
using the given information. ``pattern`` is a string consisting of
|
48
|
+
the following symbols:
|
49
|
+
|
50
|
+
+-----------+---------------------------------------------------------------+
|
51
|
+
| Symbol | Meaning |
|
52
|
+
+===========+===============================================================+
|
53
|
+
| ``-`` | If given, used as the position of the minus sign |
|
54
|
+
| | for negative numbers. If not given, the position |
|
55
|
+
| | to the left of the first number placeholder is used. |
|
56
|
+
+-----------+---------------------------------------------------------------+
|
57
|
+
| ``#`` | The placeholder for a number that does not imply zero |
|
58
|
+
| | padding. |
|
59
|
+
+-----------+---------------------------------------------------------------+
|
60
|
+
| ``0`` | The placeholder for a number that implies zero padding. |
|
61
|
+
| | If it is used to the right of a decimal separator, it |
|
62
|
+
| | implies trailing zeros, otherwise leading zeros. |
|
63
|
+
+-----------+---------------------------------------------------------------+
|
64
|
+
| ``,`` | The placeholder for a "thousands separator". May be used |
|
65
|
+
| | at most once, and it must be to the left of a decimal |
|
66
|
+
| | separator. Will be replaced by ``locale.separator`` in the |
|
67
|
+
| | result (the default is also ``,``). |
|
68
|
+
+-----------+---------------------------------------------------------------+
|
69
|
+
| ``.`` | The decimal separator. The quantity of ``#`` or ``0`` |
|
70
|
+
| | after the decimal separator will determine the precision of |
|
71
|
+
| | the result. If no decimal separator is present, the |
|
72
|
+
| | fractional precision is ``0`` -- meaning that it will be |
|
73
|
+
| | rounded to the nearest integer. |
|
74
|
+
+-----------+---------------------------------------------------------------+
|
75
|
+
| ``%`` | If present, the number will be multiplied by ``100`` and |
|
76
|
+
| | the ``%`` will be replaced by ``locale.percent``. |
|
77
|
+
+-----------+---------------------------------------------------------------+
|
78
|
+
|
79
|
+
|
80
|
+
API Reference
|
81
|
+
=============
|
82
|
+
|
83
|
+
Functions
|
84
|
+
---------
|
85
|
+
|
86
|
+
:mochidef:`formatLocale(locale="default")`:
|
87
|
+
|
88
|
+
Return a locale object for the given locale. ``locale`` may be
|
89
|
+
either a string, which is looked up in the
|
90
|
+
``MochiKit.Format.LOCALE`` object, or a locale object. If no
|
91
|
+
locale is given, ``LOCALE.default`` is used (equivalent to
|
92
|
+
``LOCALE.en_US``).
|
93
|
+
|
94
|
+
*Availability*:
|
95
|
+
Available in MochiKit 1.3.1+
|
96
|
+
|
97
|
+
|
98
|
+
:mochidef:`lstrip(str, chars="\\s")`:
|
99
|
+
|
100
|
+
Returns a string based on ``str`` with leading whitespace
|
101
|
+
stripped.
|
102
|
+
|
103
|
+
If ``chars`` is given, then that expression will be used instead
|
104
|
+
of whitespace. ``chars`` should be a string suitable for use in a
|
105
|
+
``RegExp`` ``[character set]``.
|
106
|
+
|
107
|
+
*Availability*:
|
108
|
+
Available in MochiKit 1.3.1+
|
109
|
+
|
110
|
+
|
111
|
+
:mochidef:`numberFormatter(pattern, placeholder="", locale="default")`:
|
112
|
+
|
113
|
+
Return a function ``formatNumber(aNumber)`` that formats numbers
|
114
|
+
as a string according to the given pattern, placeholder and
|
115
|
+
locale.
|
116
|
+
|
117
|
+
``pattern`` is a string that describes how the numbers should be
|
118
|
+
formatted, for more information see `Formatting Numbers`_.
|
119
|
+
|
120
|
+
``locale`` is a string of a known locale (en_US, de_DE, fr_FR,
|
121
|
+
default) or an object with the following fields:
|
122
|
+
|
123
|
+
+-----------+-----------------------------------------------------------+
|
124
|
+
| separator | The "thousands" separator for this locale (en_US is ",") |
|
125
|
+
+-----------+-----------------------------------------------------------+
|
126
|
+
| decimal | The decimal separator for this locale (en_US is ".") |
|
127
|
+
+-----------+-----------------------------------------------------------+
|
128
|
+
| percent | The percent symbol for this locale (en_US is "%") |
|
129
|
+
+-----------+-----------------------------------------------------------+
|
130
|
+
|
131
|
+
*Availability*:
|
132
|
+
Available in MochiKit 1.3.1+
|
133
|
+
|
134
|
+
|
135
|
+
:mochidef:`percentFormat(aNumber)`:
|
136
|
+
|
137
|
+
Return a string representation of ``aNumber * 100``, rounded to a
|
138
|
+
maximum precision of 2 fractional digits. Roughly equivalent to:
|
139
|
+
``sprintf("%.2f%%", aNumber * 100)``
|
140
|
+
|
141
|
+
In new code, you probably want to use:
|
142
|
+
:mochiref:`numberFormatter("#.##%")(aNumber)` instead.
|
143
|
+
|
144
|
+
*Availability*:
|
145
|
+
Available in MochiKit 1.3.1+
|
146
|
+
|
147
|
+
|
148
|
+
:mochidef:`roundToFixed(aNumber, precision)`:
|
149
|
+
|
150
|
+
Return a string representation of ``aNumber``, rounded to
|
151
|
+
``precision`` digits with trailing zeros. This is similar to
|
152
|
+
``Number.toFixed(aNumber, precision)``, but this has
|
153
|
+
implementation consistent rounding behavior (some versions of
|
154
|
+
Safari round 0.5 down!) and also includes preceding ``0`` for
|
155
|
+
numbers less than ``1`` (Safari, again).
|
156
|
+
|
157
|
+
For example, :mochiref:`roundToFixed(0.1357, 2)` returns ``0.14``
|
158
|
+
on every supported platform, where some return ``.13`` for
|
159
|
+
``(0.1357).toFixed(2)``.
|
160
|
+
|
161
|
+
*Availability*:
|
162
|
+
Available in MochiKit 1.3.1+
|
163
|
+
|
164
|
+
|
165
|
+
:mochidef:`rstrip(str, chars="\\s")`:
|
166
|
+
|
167
|
+
Returns a string based on ``str`` with trailing whitespace stripped.
|
168
|
+
|
169
|
+
If ``chars`` is given, then that expression will be used instead
|
170
|
+
of whitespace. ``chars`` should be a string suitable for use in a
|
171
|
+
``RegExp`` ``[character set]``.
|
172
|
+
|
173
|
+
*Availability*:
|
174
|
+
Available in MochiKit 1.3.1+
|
175
|
+
|
176
|
+
|
177
|
+
:mochidef:`strip(str, chars="\\s")`:
|
178
|
+
|
179
|
+
Returns a string based on ``str`` with leading and trailing
|
180
|
+
whitespace stripped (equivalent to :mochiref:`lstrip(rstrip(str,
|
181
|
+
chars), chars)`).
|
182
|
+
|
183
|
+
If ``chars`` is given, then that expression will be used instead
|
184
|
+
of whitespace. ``chars`` should be a string suitable for use in a
|
185
|
+
``RegExp`` ``[character set]``.
|
186
|
+
|
187
|
+
*Availability*:
|
188
|
+
Available in MochiKit 1.3.1+
|
189
|
+
|
190
|
+
|
191
|
+
:mochidef:`truncToFixed(aNumber, precision)`:
|
192
|
+
|
193
|
+
Return a string representation of ``aNumber``, truncated to
|
194
|
+
``precision`` digits with trailing zeros. This is similar to
|
195
|
+
``aNumber.toFixed(precision)``, but this truncates rather than
|
196
|
+
rounds and has implementation consistent behavior for numbers less
|
197
|
+
than 1. Specifically, :mochiref:`truncToFixed(aNumber,
|
198
|
+
precision)` will always have a preceding ``0`` for numbers less
|
199
|
+
than ``1``.
|
200
|
+
|
201
|
+
For example, :mochiref:`truncToFixed(0.1357, 2)` returns ``0.13``.
|
202
|
+
|
203
|
+
*Availability*:
|
204
|
+
Available in MochiKit 1.3.1+
|
205
|
+
|
206
|
+
|
207
|
+
:mochidef:`twoDigitAverage(numerator, denominator)`:
|
208
|
+
|
209
|
+
Calculate an average from a numerator and a denominator and return
|
210
|
+
it as a string rounded to a maximum precision of two fractional
|
211
|
+
digits (e.g. "1.23").
|
212
|
+
|
213
|
+
If the denominator is 0, "0" will be returned instead of ``NaN``.
|
214
|
+
|
215
|
+
*Availability*:
|
216
|
+
Available in MochiKit 1.3.1+
|
217
|
+
|
218
|
+
|
219
|
+
:mochidef:`twoDigitFloat(aNumber)`:
|
220
|
+
|
221
|
+
Return a string representation of ``aNumber``, rounded to a maximum
|
222
|
+
precision of 2 fractional digits. This is a variation of
|
223
|
+
:mochiref:`roundToFixed(aNumber, 2)` that removes trailing zeros from
|
224
|
+
the fractional part.
|
225
|
+
|
226
|
+
For example, ``twoDigitFloat(0.1357)`` returns ``0.14``
|
227
|
+
and ``twoDigitFloat(12.00)`` returns ``12``.
|
228
|
+
|
229
|
+
In new code, you probably want to use:
|
230
|
+
:mochiref:`numberFormatter("#.##")(aNumber)` instead.
|
231
|
+
|
232
|
+
*Availability*:
|
233
|
+
Available in MochiKit 1.3.1+
|
234
|
+
|
235
|
+
|
236
|
+
See Also
|
237
|
+
========
|
238
|
+
|
239
|
+
.. [1] Java Number Format Pattern Syntax:
|
240
|
+
http://java.sun.com/docs/books/tutorial/i18n/format/numberpattern.html
|
241
|
+
|
242
|
+
|
243
|
+
Authors
|
244
|
+
=======
|
245
|
+
|
246
|
+
- Bob Ippolito <bob@redivi.com>
|
247
|
+
|
248
|
+
|
249
|
+
Copyright
|
250
|
+
=========
|
251
|
+
|
252
|
+
Copyright 2005 Bob Ippolito <bob@redivi.com>. This program is
|
253
|
+
dual-licensed free software; you can redistribute it and/or modify it
|
254
|
+
under the terms of the `MIT License`_ or the `Academic Free License
|
255
|
+
v2.1`_.
|
256
|
+
|
257
|
+
.. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
|
258
|
+
.. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
|