old_sql 1.16.0 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) hide show
  1. data/README.md +24 -13
  2. data/app/controllers/old_sql/report_controller.rb +3 -17
  3. data/app/views/layouts/old_sql/chart.html.erb +11 -0
  4. data/app/views/old_sql/report/chart.html.erb +8 -25
  5. data/lib/generators/old_sql/templates/user_design_template.csv +2 -3
  6. data/lib/generators/old_sql/templates/user_old_sql_demo_chart_design.yml +18 -9
  7. data/lib/old_sql/report_design/chart.rb +2 -2
  8. data/lib/old_sql/report_design/chart_item.rb +4 -4
  9. data/lib/old_sql/report_design/chart_parser.rb +2 -2
  10. data/public/javascripts/old_sql/chart.js +33 -0
  11. metadata +5 -265
  12. data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +0 -362
  13. data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +0 -69
  14. data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +0 -179
  15. data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +0 -17
  16. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +0 -814
  17. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +0 -1703
  18. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +0 -755
  19. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +0 -1197
  20. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +0 -168
  21. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +0 -187
  22. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +0 -300
  23. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +0 -524
  24. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +0 -420
  25. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +0 -142
  26. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +0 -38
  27. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +0 -240
  28. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +0 -508
  29. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +0 -244
  30. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +0 -385
  31. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +0 -384
  32. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +0 -1161
  33. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +0 -447
  34. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +0 -113
  35. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +0 -767
  36. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +0 -1445
  37. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +0 -651
  38. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +0 -1143
  39. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +0 -145
  40. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +0 -197
  41. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +0 -258
  42. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +0 -454
  43. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +0 -348
  44. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +0 -128
  45. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +0 -26
  46. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +0 -203
  47. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +0 -498
  48. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +0 -186
  49. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +0 -353
  50. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +0 -362
  51. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +0 -895
  52. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +0 -83
  53. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +0 -69
  54. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +0 -401
  55. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +0 -10
  56. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +0 -40
  57. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +0 -96
  58. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +0 -4
  59. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +0 -95
  60. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +0 -31
  61. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +0 -23
  62. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
  63. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
  64. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +0 -54
  65. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +0 -150
  66. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +0 -42
  67. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +0 -90
  68. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +0 -29
  69. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +0 -38
  70. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +0 -189
  71. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +0 -28
  72. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +0 -73
  73. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +0 -38
  74. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +0 -36
  75. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +0 -65
  76. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +0 -31
  77. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +0 -18
  78. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +0 -61
  79. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +0 -38
  80. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +0 -67
  81. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +0 -67
  82. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +0 -30
  83. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +0 -483
  84. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +0 -62
  85. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +0 -71
  86. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
  87. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +0 -150
  88. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +0 -88
  89. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +0 -54
  90. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +0 -373
  91. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +0 -78
  92. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +0 -5
  93. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +0 -85
  94. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +0 -46
  95. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +0 -78
  96. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +0 -11
  97. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +0 -74
  98. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +0 -73
  99. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +0 -125
  100. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +0 -88
  101. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +0 -17
  102. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +0 -59
  103. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +0 -28
  104. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +0 -3
  105. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +0 -19
  106. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +0 -45
  107. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +0 -119
  108. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +0 -40
  109. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +0 -43
  110. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +0 -91
  111. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +0 -54
  112. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +0 -93
  113. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +0 -64
  114. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +0 -71
  115. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +0 -66
  116. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +0 -203
  117. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +0 -177
  118. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +0 -339
  119. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +0 -30
  120. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +0 -31
  121. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +0 -22
  122. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +0 -23
  123. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +0 -71
  124. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +0 -40
  125. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +0 -29
  126. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +0 -61
  127. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +0 -622
  128. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +0 -1
  129. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +0 -19
  130. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +0 -70
  131. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
  132. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
  133. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
  134. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +0 -130
  135. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +0 -48
  136. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +0 -682
  137. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +0 -1489
  138. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +0 -863
  139. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +0 -1256
  140. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +0 -222
  141. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +0 -793
  142. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +0 -304
  143. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +0 -844
  144. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +0 -315
  145. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +0 -353
  146. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +0 -188
  147. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +0 -115
  148. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +0 -236
  149. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +0 -415
  150. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +0 -897
  151. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +0 -589
  152. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +0 -594
  153. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +0 -162
  154. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +0 -2026
  155. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +0 -18
  156. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +0 -7829
  157. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +0 -6
  158. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +0 -251
  159. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +0 -40
  160. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +0 -381
  161. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +0 -159
  162. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +0 -28
  163. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +0 -6
  164. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +0 -25
  165. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +0 -16
  166. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +0 -577
  167. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +0 -137
  168. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +0 -52
  169. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +0 -30
  170. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +0 -89
  171. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +0 -186
  172. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +0 -88
  173. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +0 -408
  174. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +0 -1
  175. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +0 -34
  176. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +0 -84
  177. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +0 -48
  178. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +0 -363
  179. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +0 -39
  180. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +0 -54
  181. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +0 -39
  182. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +0 -38
  183. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +0 -32
  184. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +0 -40
  185. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +0 -18
  186. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +0 -295
  187. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +0 -43
  188. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +0 -223
  189. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +0 -197
  190. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +0 -481
  191. data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +0 -28
  192. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +0 -406
  193. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +0 -683
  194. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +0 -161
  195. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +0 -756
  196. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +0 -151
  197. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +0 -2177
  198. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +0 -705
  199. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +0 -348
  200. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +0 -247
  201. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +0 -9
  202. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +0 -723
  203. data/public/javascripts/old_sql/plotkit-0.9.1/README +0 -1
  204. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +0 -2
  205. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +0 -2
  206. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +0 -302
  207. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +0 -139
  208. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +0 -172
  209. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +0 -81
  210. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +0 -155
  211. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +0 -50
  212. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +0 -428
  213. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +0 -330
  214. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +0 -368
  215. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +0 -256
  216. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +0 -436
  217. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +0 -299
  218. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +0 -159
  219. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +0 -64
  220. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +0 -131
  221. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +0 -34
  222. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +0 -131
  223. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +0 -34
  224. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +0 -334
  225. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +0 -151
  226. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +0 -304
  227. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +0 -144
  228. data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
  229. data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
  230. data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
  231. data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
  232. data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +0 -62
  233. data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +0 -37
  234. data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
  235. data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
  236. data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
  237. data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
  238. data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
  239. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
  240. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +0 -58
  241. data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +0 -31
  242. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +0 -25
  243. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +0 -143
  244. data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +0 -56
  245. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +0 -58
  246. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +0 -133
  247. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +0 -57
  248. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +0 -136
  249. data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +0 -161
  250. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
  251. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
  252. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
  253. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
  254. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
  255. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
  256. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +0 -38
  257. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +0 -43
  258. data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +0 -28
  259. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +0 -29
  260. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +0 -53
  261. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +0 -29
  262. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +0 -61
  263. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +0 -57
  264. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +0 -6
  265. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +0 -29
  266. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +0 -141
  267. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +0 -26
  268. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +0 -147
  269. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +0 -24
  270. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +0 -89
  271. data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +0 -66
  272. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +0 -20
  273. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +0 -31
@@ -1,651 +0,0 @@
1
- .. title:: MochiKit.Color - color abstraction with CSS3 support
2
-
3
- Name
4
- ====
5
-
6
- MochiKit.Color - color abstraction with CSS3 support
7
-
8
-
9
- Synopsis
10
- ========
11
-
12
- ::
13
-
14
- // RGB color expressions are supported
15
- assert(
16
- objEqual(Color.whiteColor(), Color.fromString("rgb(255,100%, 255)"))
17
- );
18
-
19
- // So is instantiating directly from HSL or RGB values.
20
- // Note that fromRGB and fromHSL take numbers between 0.0 and 1.0!
21
- assert( objEqual(Color.fromRGB(1.0, 1.0, 1.0), Color.fromHSL(0.0, 0.0, 1.0) );
22
-
23
- // Or even SVG color keyword names, as per CSS3!
24
- assert( Color.fromString("aquamarine"), "#7fffd4" );
25
-
26
- // NSColor-like colors built in
27
- assert( Color.whiteColor().toHexString() == "#ffffff" );
28
-
29
-
30
- Description
31
- ===========
32
-
33
- MochiKit.Color is an abstraction for handling colors and strings that
34
- represent colors.
35
-
36
-
37
- Dependencies
38
- ============
39
-
40
- - :mochiref:`MochiKit.Base`
41
- - :mochiref:`MochiKit.DOM`
42
- - :mochiref:`MochiKit.Style`
43
-
44
-
45
- Overview
46
- ========
47
-
48
- MochiKit.Color provides an abstraction of RGB, HSL and HSV colors with
49
- alpha. It supports parsing and generating of CSS3 colors, and has a
50
- full CSS3 (SVG) color table.
51
-
52
- All of the functionality in this module is exposed through a Color
53
- constructor and its prototype, but a few of its internals are
54
- available for direct use at module level.
55
-
56
-
57
- API Reference
58
- =============
59
-
60
- Constructors
61
- ------------
62
-
63
- :mochidef:`Color()`:
64
-
65
- Represents a color. Component values should be integers between
66
- ``0.0`` and ``1.0``. You should use one of the :mochiref:`Color`
67
- factory functions such as :mochiref:`Color.fromRGB`,
68
- :mochiref:`Color.fromHSL`, etc. instead of constructing
69
- :mochiref:`Color` objects directly.
70
-
71
- :mochiref:`Color` instances can be compared with
72
- :mochiref:`MochiKit.Base.compare` (though ordering is on RGB, so
73
- is not particularly meaningful except for equality), and the
74
- default ``toString`` implementation returns
75
- :mochiref:`Color.prototype.toHexString()`.
76
-
77
- :mochiref:`Color` instances are immutable, and much of the
78
- architecture is inspired by AppKit's NSColor [1]_
79
-
80
- *Availability*:
81
- Available in MochiKit 1.3.1+
82
-
83
-
84
- :mochidef:`Color.fromBackground(elem)`:
85
-
86
- Returns a :mochiref:`Color` object based on the background of the
87
- provided element. Equivalent to::
88
-
89
- c = Color.fromComputedStyle(
90
- elem, "backgroundColor", "background-color") || Color.whiteColor();
91
-
92
- *Availability*:
93
- Available in MochiKit 1.3.1+
94
-
95
-
96
- :mochidef:`Color.fromComputedStyle(elem, style)`:
97
-
98
- Returns a :mochiref:`Color` object based on the result of
99
- :mochiref:`MochiKit.Style.getStyle(elem, style)` or ``null`` if not
100
- found.
101
-
102
- *Availability*:
103
- Available in MochiKit 1.3.1+
104
-
105
-
106
- :mochidef:`Color.fromHexString(hexString)`:
107
-
108
- Returns a :mochiref:`Color` object from the given hexadecimal
109
- color string. For example, ``"#FFFFFF"`` would return a
110
- :mochiref:`Color` with RGB values ``[255/255, 255/255, 255/255]``
111
- (white).
112
-
113
- *Availability*:
114
- Available in MochiKit 1.3.1+
115
-
116
-
117
- :mochidef:`Color.fromHSL(hue, saturation, lightness, alpha=1.0)`:
118
-
119
- Return a :mochiref:`Color` object from the given ``hue``,
120
- ``saturation``, ``lightness`` values. Values should be numbers
121
- between ``0.0`` and ``1.0``.
122
-
123
- If ``alpha`` is not given, then ``1.0`` (completely opaque) will
124
- be used.
125
-
126
- Alternate form:
127
- :mochiref:`Color.fromHSL({h: hue, s: saturation, l: lightness,
128
- a: alpha})`
129
-
130
- *Availability*:
131
- Available in MochiKit 1.3.1+
132
-
133
-
134
- :mochidef:`Color.fromHSLString(hslString)`:
135
-
136
- Returns a :mochiref:`Color` object from the given decimal hsl
137
- color string. For example, ``"hsl(0,0%,100%)"`` would return a
138
- :mochiref:`Color` with HSL values ``[0/360, 0/360, 360/360]``
139
- (white).
140
-
141
- *Availability*:
142
- Available in MochiKit 1.3.1+
143
-
144
-
145
- :mochidef:`Color.fromHSV(hue, saturation, value, alpha=1.0)`:
146
-
147
- Return a :mochiref:`Color` object from the given ``hue``,
148
- ``saturation``, ``value`` values. Values should be numbers between
149
- ``0.0`` and ``1.0``.
150
-
151
- If ``alpha`` is not given, then ``1.0`` (completely opaque) will
152
- be used.
153
-
154
- Alternate form:
155
- :mochiref:`Color.fromHSV({h: hue, s: saturation, v: value, a:
156
- alpha})`
157
-
158
- *Availability*:
159
- Available in MochiKit 1.3.1+
160
-
161
-
162
- :mochidef:`Color.fromName(colorName)`:
163
-
164
- Returns a :mochiref:`Color` object corresponding to the given SVG
165
- 1.0 color keyword name [2]_ as per the W3C CSS3 Color Module
166
- [3]_. ``"transparent"`` is also accepted as a color name, and will
167
- return :mochiref:`Color.transparentColor()`.
168
-
169
- *Availability*:
170
- Available in MochiKit 1.3.1+
171
-
172
-
173
- :mochidef:`Color.fromRGB(red, green, blue, alpha=1.0)`:
174
-
175
- Return a :mochiref:`Color` object from the given ``red``,
176
- ``green``, ``blue``, and ``alpha`` values. Values should be
177
- numbers between ``0`` and ``1.0``.
178
-
179
- If ``alpha`` is not given, then ``1.0`` (completely opaque) will
180
- be used.
181
-
182
- Alternate form:
183
- :mochiref:`Color.fromRGB({r: red, g: green, b: blue, a:
184
- alpha})`
185
-
186
- *Availability*:
187
- Available in MochiKit 1.3.1+
188
-
189
-
190
- :mochidef:`Color.fromRGBString(rgbString)`:
191
-
192
- Returns a :mochiref:`Color` object from the given decimal rgb
193
- color string. For example, ``"rgb(255,255,255)"`` would return a
194
- :mochiref:`Color` with RGB values ``[255/255, 255/255, 255/255]``
195
- (white).
196
-
197
- *Availability*:
198
- Available in MochiKit 1.3.1+
199
-
200
-
201
- :mochidef:`Color.fromText(elem)`:
202
-
203
- Returns a :mochiref:`Color` object based on the text color of the
204
- provided element. Equivalent to::
205
-
206
- c = Color.fromComputedStyle(elem, "color") || Color.whiteColor();
207
-
208
- *Availability*:
209
- Available in MochiKit 1.3.1+
210
-
211
-
212
- :mochidef:`Color.fromString(rgbOrHexString)`:
213
-
214
- Returns a :mochiref:`Color` object from the given RGB, HSL, hex,
215
- or name. Will return ``null`` if the string can not be parsed by
216
- any of these methods.
217
-
218
- See :mochiref:`Color.fromHexString`,
219
- :mochiref:`Color.fromRGBString`, :mochiref:`Color.fromHSLString`
220
- and :mochiref:`Color.fromName` more information.
221
-
222
- *Availability*:
223
- Available in MochiKit 1.3.1+
224
-
225
-
226
- :mochidef:`Color.namedColors()`:
227
-
228
- Returns an object with properties for each SVG 1.0 color keyword
229
- name [2]_ supported by CSS3 [3]_. Property names are the color
230
- keyword name in lowercase, and the value is a string suitable for
231
- :mochiref:`Color.fromString()`.
232
-
233
- *Availability*:
234
- Available in MochiKit 1.3.1+
235
-
236
-
237
- :mochidef:`Color.prototype.colorWithAlpha(alpha)`:
238
-
239
- Return a new :mochiref:`Color` based on this color, but with the
240
- provided ``alpha`` value.
241
-
242
- *Availability*:
243
- Available in MochiKit 1.3.1+
244
-
245
-
246
- :mochidef:`Color.prototype.colorWithHue(hue)`:
247
-
248
- Return a new :mochiref:`Color` based on this color, but with the
249
- provided ``hue`` value.
250
-
251
- *Availability*:
252
- Available in MochiKit 1.3.1+
253
-
254
-
255
- :mochidef:`Color.prototype.colorWithSaturation(saturation)`:
256
-
257
- Return a new :mochiref:`Color` based on this color, but with the
258
- provided ``saturation`` value (using the HSL color model).
259
-
260
- *Availability*:
261
- Available in MochiKit 1.3.1+
262
-
263
-
264
- :mochidef:`Color.prototype.colorWithLightness(lightness)`:
265
-
266
- Return a new :mochiref:`Color` based on this color, but with the
267
- provided ``lightness`` value.
268
-
269
- *Availability*:
270
- Available in MochiKit 1.3.1+
271
-
272
-
273
- :mochidef:`Color.prototype.darkerColorWithLevel(level)`:
274
-
275
- Return a new :mochiref:`Color` based on this color, but darker by
276
- the given ``level`` (between ``0`` and ``1.0``).
277
-
278
- *Availability*:
279
- Available in MochiKit 1.3.1+
280
-
281
-
282
- :mochidef:`Color.prototype.lighterColorWithLevel(level)`:
283
-
284
- Return a new :mochiref:`Color` based on this color, but lighter by
285
- the given ``level`` (between ``0`` and ``1.0``).
286
-
287
- *Availability*:
288
- Available in MochiKit 1.3.1+
289
-
290
-
291
- :mochidef:`Color.prototype.blendedColor(other, fraction=0.5)`:
292
-
293
- Return a new :mochiref:`Color` whose RGBA component values are a
294
- weighted sum of this color and ``other``. Each component of the
295
- returned color is the ``fraction`` of other's value plus ``1 -
296
- fraction`` of this color's.
297
-
298
- *Availability*:
299
- Available in MochiKit 1.3.1+
300
-
301
-
302
- :mochidef:`Color.prototype.isLight()`:
303
-
304
- Return ``true`` if the lightness value of this color is greater
305
- than ``0.5``.
306
-
307
- Note that ``alpha`` is ignored for this calculation (color
308
- components are not premultiplied).
309
-
310
- *Availability*:
311
- Available in MochiKit 1.3.1+
312
-
313
-
314
- :mochidef:`Color.prototype.isDark()`:
315
-
316
- Return ``true`` if the lightness value of this color is less than
317
- or equal to ``0.5``.
318
-
319
- Note that ``alpha`` is ignored for this calculation (color
320
- components are not premultiplied).
321
-
322
- *Availability*:
323
- Available in MochiKit 1.3.1+
324
-
325
-
326
- :mochidef:`Color.prototype.toRGBString()`:
327
-
328
- Return the decimal ``"rgb(red, green, blue)"`` string
329
- representation of this color.
330
-
331
- If the alpha component is not ``1.0`` (fully opaque), the
332
- ``"rgba(red, green, blue, alpha)"`` string representation will be
333
- used.
334
-
335
- For example::
336
-
337
- assert( Color.whiteColor().toRGBString() == "rgb(255,255,255)" );
338
-
339
- *Availability*:
340
- Available in MochiKit 1.3.1+
341
-
342
-
343
- :mochidef:`Color.prototype.toHSLString()`:
344
-
345
- Return the decimal ``"hsl(hue, saturation, lightness)"`` string
346
- representation of this color.
347
-
348
- If the alpha component is not ``1.0`` (fully opaque), the
349
- ``"hsla(hue, saturation, lightness, alpha)"`` string
350
- representation will be used.
351
-
352
- For example::
353
-
354
- assert( Color.whiteColor().toHSLString() == "hsl(0,0,360)" );
355
-
356
- *Availability*:
357
- Available in MochiKit 1.3.1+
358
-
359
-
360
- :mochidef:`Color.prototype.toHexString()`:
361
-
362
- Return the hexadecimal ``"#RRGGBB"`` string representation of this
363
- color.
364
-
365
- Note that the alpha component is completely ignored for
366
- hexadecimal string representations!
367
-
368
- For example::
369
-
370
- assert( Color.whiteColor().toHexString() == "#FFFFFF" );
371
-
372
- *Availability*:
373
- Available in MochiKit 1.3.1+
374
-
375
-
376
- :mochidef:`Color.prototype.asRGB()`:
377
-
378
- Return the RGB (red, green, blue, alpha) components of this color
379
- as an object with ``r``, ``g``, ``b``, and ``a`` properties that
380
- have values between ``0.0`` and ``1.0``.
381
-
382
- *Availability*:
383
- Available in MochiKit 1.3.1+
384
-
385
-
386
- :mochidef:`Color.prototype.asHSL()`:
387
-
388
- Return the HSL (hue, saturation, lightness, alpha) components of
389
- this color as an object with ``h``, ``s``, ``l`` and ``a``
390
- properties that have values between ``0.0`` and ``1.0``.
391
-
392
- *Availability*:
393
- Available in MochiKit 1.3.1+
394
-
395
-
396
- :mochidef:`Color.prototype.asHSV()`:
397
-
398
- Return the HSV (hue, saturation, value, alpha) components of this
399
- color as an object with ``h``, ``s``, ``v`` and ``a`` properties
400
- that have values between ``0.0`` and ``1.0``.
401
-
402
- *Availability*:
403
- Available in MochiKit 1.3.1+
404
-
405
-
406
- :mochidef:`Color.blackColor()`:
407
-
408
- Return a :mochiref:`Color` object whose RGB values are 0, 0, 0
409
- (#000000).
410
-
411
- *Availability*:
412
- Available in MochiKit 1.3.1+
413
-
414
-
415
- :mochidef:`Color.blueColor()`:
416
-
417
- Return a :mochiref:`Color` object whose RGB values are 0, 0, 1
418
- (#0000ff).
419
-
420
- *Availability*:
421
- Available in MochiKit 1.3.1+
422
-
423
-
424
- :mochidef:`Color.brownColor()`:
425
-
426
- Return a :mochiref:`Color` object whose RGB values are 0.6, 0.4,
427
- 0.2 (#996633).
428
-
429
- *Availability*:
430
- Available in MochiKit 1.3.1+
431
-
432
-
433
- :mochidef:`Color.cyanColor()`:
434
-
435
- Return a :mochiref:`Color` object whose RGB values are 0, 1, 1
436
- (#00ffff).
437
-
438
- *Availability*:
439
- Available in MochiKit 1.3.1+
440
-
441
-
442
- :mochidef:`Color.darkGrayColor()`:
443
-
444
- Return a :mochiref:`Color` object whose RGB values are 1/3, 1/3,
445
- 1/3 (#555555).
446
-
447
- *Availability*:
448
- Available in MochiKit 1.3.1+
449
-
450
-
451
- :mochidef:`Color.grayColor()`:
452
-
453
- Return a :mochiref:`Color` object whose RGB values are 0.5, 0.5,
454
- 0.5 (#808080).
455
-
456
- *Availability*:
457
- Available in MochiKit 1.3.1+
458
-
459
-
460
- :mochidef:`Color.greenColor()`:
461
-
462
- Return a :mochiref:`Color` object whose RGB values are 0, 1, 0.
463
- (#00ff00).
464
-
465
- *Availability*:
466
- Available in MochiKit 1.3.1+
467
-
468
-
469
- :mochidef:`Color.lightGrayColor()`:
470
-
471
- Return a :mochiref:`Color` object whose RGB values are 2/3, 2/3,
472
- 2/3 (#aaaaaa).
473
-
474
- *Availability*:
475
- Available in MochiKit 1.3.1+
476
-
477
-
478
- :mochidef:`Color.magentaColor()`:
479
-
480
- Return a :mochiref:`Color` object whose RGB values are 1, 0, 1
481
- (#ff00ff).
482
-
483
- *Availability*:
484
- Available in MochiKit 1.3.1+
485
-
486
-
487
- :mochidef:`Color.orangeColor()`:
488
-
489
- Return a :mochiref:`Color` object whose RGB values are 1, 0.5, 0
490
- (#ff8000).
491
-
492
- *Availability*:
493
- Available in MochiKit 1.3.1+
494
-
495
-
496
- :mochidef:`Color.purpleColor()`:
497
-
498
- Return a :mochiref:`Color` object whose RGB values are 0.5, 0, 0.5
499
- (#800080).
500
-
501
- *Availability*:
502
- Available in MochiKit 1.3.1+
503
-
504
-
505
- :mochidef:`Color.redColor()`:
506
-
507
- Return a :mochiref:`Color` object whose RGB values are 1, 0, 0
508
- (#ff0000).
509
-
510
- *Availability*:
511
- Available in MochiKit 1.3.1+
512
-
513
-
514
- :mochidef:`Color.whiteColor()`:
515
-
516
- Return a :mochiref:`Color` object whose RGB values are 1, 1, 1
517
- (#ffffff).
518
-
519
- *Availability*:
520
- Available in MochiKit 1.3.1+
521
-
522
-
523
- :mochidef:`Color.yellowColor()`:
524
-
525
- Return a :mochiref:`Color` object whose RGB values are 1, 1, 0
526
- (#ffff00).
527
-
528
- *Availability*:
529
- Available in MochiKit 1.3.1+
530
-
531
-
532
- :mochidef:`Color.transparentColor()`:
533
-
534
- Return a :mochiref:`Color` object that is completely transparent
535
- (has alpha component of 0).
536
-
537
- *Availability*:
538
- Available in MochiKit 1.3.1+
539
-
540
-
541
- Functions
542
- ---------
543
-
544
- :mochidef:`clampColorComponent(num, scale)`:
545
-
546
- Returns ``num * scale`` clamped between ``0`` and ``scale``.
547
-
548
- :mochiref:`clampColorComponent` is not exported by default when
549
- using JSAN.
550
-
551
- *Availability*:
552
- Available in MochiKit 1.3.1+
553
-
554
-
555
- :mochidef:`hslToRGB(hue, saturation, lightness, alpha)`:
556
-
557
- Computes RGB values from the provided HSL values. The return value
558
- is a mapping with ``"r"``, ``"g"``, ``"b"`` and ``"a"`` keys.
559
-
560
- Alternate form:
561
- :mochiref:`hslToRGB({h: hue, s: saturation, l: lightness, a:
562
- alpha})`.
563
-
564
- :mochiref:`hslToRGB` is not exported by default when using JSAN.
565
-
566
- *Availability*:
567
- Available in MochiKit 1.3.1+
568
-
569
-
570
- :mochidef:`hsvToRGB(hue, saturation, value, alpha)`:
571
-
572
- Computes RGB values from the provided HSV values. The return value
573
- is a mapping with ``"r"``, ``"g"``, ``"b"`` and ``"a"`` keys.
574
-
575
- Alternate form:
576
- :mochiref:`hsvToRGB({h: hue, s: saturation, v: value, a:
577
- alpha})`.
578
-
579
- :mochiref:`hsvToRGB` is not exported by default when using JSAN.
580
-
581
- *Availability*:
582
- Available in MochiKit 1.3.1+
583
-
584
-
585
- :mochidef:`toColorPart(num)`:
586
-
587
- Convert num to a zero padded hexadecimal digit for use in a
588
- hexadecimal color string. Num should be an integer between ``0``
589
- and ``255``.
590
-
591
- :mochiref:`toColorPart` is not exported by default when using
592
- JSAN.
593
-
594
- *Availability*:
595
- Available in MochiKit 1.3.1+
596
-
597
-
598
- :mochidef:`rgbToHSL(red, green, blue, alpha)`:
599
-
600
- Computes HSL values based on the provided RGB values. The return
601
- value is a mapping with ``"h"``, ``"s"``, ``"l"`` and ``"a"``
602
- keys.
603
-
604
- Alternate form:
605
- :mochiref:`rgbToHSL({r: red, g: green, b: blue, a: alpha})`.
606
-
607
- :mochiref:`rgbToHSL` is not exported by default when using JSAN.
608
-
609
- *Availability*:
610
- Available in MochiKit 1.3.1+
611
-
612
-
613
- :mochidef:`rgbToHSV(red, green, blue, alpha)`:
614
-
615
- Computes HSV values based on the provided RGB values. The return
616
- value is a mapping with ``"h"``, ``"s"``, ``"v"`` and ``"a"``
617
- keys.
618
-
619
- Alternate form:
620
- :mochiref:`rgbToHSV({r: red, g: green, b: blue, a: alpha})`.
621
-
622
- :mochiref:`rgbToHSV` is not exported by default when using JSAN.
623
-
624
- *Availability*:
625
- Available in MochiKit 1.3.1+
626
-
627
-
628
- See Also
629
- ========
630
-
631
- .. [1] Application Kit Reference - NSColor: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/NSColor.html
632
- .. [2] SVG 1.0 color keywords: http://www.w3.org/TR/SVG/types.html#ColorKeywords
633
- .. [3] W3C CSS3 Color Module: http://www.w3.org/TR/css3-color/#svg-color
634
-
635
-
636
- Authors
637
- =======
638
-
639
- - Bob Ippolito <bob@redivi.com>
640
-
641
-
642
- Copyright
643
- =========
644
-
645
- Copyright 2005 Bob Ippolito <bob@redivi.com>. This program is
646
- dual-licensed free software; you can redistribute it and/or modify it
647
- under the terms of the `MIT License`_ or the `Academic Free License
648
- v2.1`_.
649
-
650
- .. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
651
- .. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php