@datagrok/helm 2.3.2 → 2.3.3

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.
Files changed (323) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/package-test.js +1 -1
  3. package/dist/package-test.js.map +1 -1
  4. package/dist/package.js +1 -1
  5. package/dist/package.js.map +1 -1
  6. package/package.json +4 -4
  7. package/src/cell-renderer.ts +5 -4
  8. package/src/helm-helper.ts +6 -6
  9. package/src/helm-monomer-placer.ts +1 -1
  10. package/src/helm-web-editor.ts +5 -5
  11. package/src/package-test.ts +0 -1
  12. package/src/package-utils.ts +228 -69
  13. package/src/package.ts +7 -69
  14. package/src/tests/findMonomers-tests.ts +2 -1
  15. package/src/tests/get-monomer-tests.ts +1 -49
  16. package/src/utils/get-monomer.ts +49 -1
  17. package/src/utils/helm-grid-cell-renderer.ts +8 -9
  18. package/src/utils/index.ts +2 -3
  19. package/src/widgets/helm-input.ts +4 -4
  20. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +63 -0
  21. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +116 -0
  22. package/vendor/dojo-1.10.10/dijit/Destroyable.js +35 -0
  23. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +83 -0
  24. package/vendor/dojo-1.10.10/dijit/Tooltip.js +240 -0
  25. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +612 -0
  26. package/vendor/dojo-1.10.10/dijit/Viewport.js +44 -0
  27. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +87 -0
  28. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +76 -0
  29. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +247 -0
  30. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +94 -0
  31. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +238 -0
  32. package/vendor/dojo-1.10.10/dijit/_Contained.js +17 -0
  33. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +56 -0
  34. package/vendor/dojo-1.10.10/dijit/_Container.js +47 -0
  35. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +108 -0
  36. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +198 -0
  37. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +372 -0
  38. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +11 -0
  39. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +66 -0
  40. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +188 -0
  41. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +472 -0
  42. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +8 -0
  43. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +31 -0
  44. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +90 -0
  45. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +205 -0
  46. package/vendor/dojo-1.10.10/dijit/_Widget.js +66 -0
  47. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +352 -0
  48. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +353 -0
  49. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +1200 -0
  50. package/vendor/dojo-1.10.10/dijit/_base/focus.js +68 -0
  51. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +207 -0
  52. package/vendor/dojo-1.10.10/dijit/_base/manager.js +10 -0
  53. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +35 -0
  54. package/vendor/dojo-1.10.10/dijit/_base/place.js +52 -0
  55. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +131 -0
  56. package/vendor/dojo-1.10.10/dijit/_base/popup.js +23 -0
  57. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +58 -0
  58. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +6 -0
  59. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +22 -0
  60. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +3 -0
  61. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +12 -0
  62. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +3 -0
  63. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +10 -0
  64. package/vendor/dojo-1.10.10/dijit/_base/wai.js +32 -0
  65. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +109 -0
  66. package/vendor/dojo-1.10.10/dijit/_base/window.js +6 -0
  67. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +18 -0
  68. package/vendor/dojo-1.10.10/dijit/_base.js +4 -0
  69. package/vendor/dojo-1.10.10/dijit/a11y.js +109 -0
  70. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +191 -0
  71. package/vendor/dojo-1.10.10/dijit/a11yclick.js +66 -0
  72. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +139 -0
  73. package/vendor/dojo-1.10.10/dijit/focus.js +188 -0
  74. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +371 -0
  75. package/vendor/dojo-1.10.10/dijit/form/Button.js +49 -0
  76. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +130 -0
  77. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +4 -0
  78. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +27 -0
  79. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +21 -0
  80. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +86 -0
  81. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +38 -0
  82. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +102 -0
  83. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +7 -0
  84. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +26 -0
  85. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +50 -0
  86. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +116 -0
  87. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +26 -0
  88. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +81 -0
  89. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +24 -0
  90. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +51 -0
  91. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +22 -0
  92. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +67 -0
  93. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +111 -0
  94. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +254 -0
  95. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +32 -0
  96. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +69 -0
  97. package/vendor/dojo-1.10.10/dijit/hccss.js +9 -0
  98. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +21 -0
  99. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +215 -0
  100. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +550 -0
  101. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +7 -0
  102. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +25 -0
  103. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +235 -0
  104. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +653 -0
  105. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +171 -0
  106. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +411 -0
  107. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +194 -0
  108. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +410 -0
  109. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +99 -0
  110. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +236 -0
  111. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +47 -0
  112. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +190 -0
  113. package/vendor/dojo-1.10.10/dijit/layout/utils.js +77 -0
  114. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +151 -0
  115. package/vendor/dojo-1.10.10/dijit/main.js +4 -0
  116. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +16 -0
  117. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +2 -0
  118. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +21 -0
  119. package/vendor/dojo-1.10.10/dijit/nls/loading.js +2 -0
  120. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +47 -0
  121. package/vendor/dojo-1.10.10/dijit/place.js +142 -0
  122. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +407 -0
  123. package/vendor/dojo-1.10.10/dijit/popup.js +162 -0
  124. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +441 -0
  125. package/vendor/dojo-1.10.10/dijit/registry.js +79 -0
  126. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +159 -0
  127. package/vendor/dojo-1.10.10/dijit/selection.js +364 -0
  128. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +525 -0
  129. package/vendor/dojo-1.10.10/dijit/typematic.js +96 -0
  130. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +211 -0
  131. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +195 -0
  132. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +761 -0
  133. package/vendor/dojo-1.10.10/dojo/Stateful.js +90 -0
  134. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +218 -0
  135. package/vendor/dojo-1.10.10/dojo/_base/url.js +87 -0
  136. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +109 -0
  137. package/vendor/dojo-1.10.10/dojo/cache.js +9 -0
  138. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +7 -0
  139. package/vendor/dojo-1.10.10/dojo/colors.js +74 -0
  140. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +232 -0
  141. package/vendor/dojo-1.10.10/dojo/cookie.js +48 -0
  142. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +98 -0
  143. package/vendor/dojo-1.10.10/dojo/date/stamp.js +82 -0
  144. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +144 -0
  145. package/vendor/dojo-1.10.10/dojo/dojo.js +7 -0
  146. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +18680 -0
  147. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +27 -0
  148. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +101 -0
  149. package/vendor/dojo-1.10.10/dojo/fx/easing.js +165 -0
  150. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +276 -0
  151. package/vendor/dojo-1.10.10/dojo/fx.js +271 -0
  152. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +443 -0
  153. package/vendor/dojo-1.10.10/dojo/hccss.js +26 -0
  154. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +52 -0
  155. package/vendor/dojo-1.10.10/dojo/html.js +161 -0
  156. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +370 -0
  157. package/vendor/dojo-1.10.10/dojo/io/iframe.js +71 -0
  158. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +190 -0
  159. package/vendor/dojo-1.10.10/dojo/io/script.js +112 -0
  160. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +280 -0
  161. package/vendor/dojo-1.10.10/dojo/parser.js +437 -0
  162. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +915 -0
  163. package/vendor/dojo-1.10.10/dojo/promise/all.js +59 -0
  164. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +77 -0
  165. package/vendor/dojo-1.10.10/dojo/regexp.js +32 -0
  166. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +70 -0
  167. package/vendor/dojo-1.10.10/dojo/request/iframe.js +291 -0
  168. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +438 -0
  169. package/vendor/dojo-1.10.10/dojo/request/script.js +129 -0
  170. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +237 -0
  171. package/vendor/dojo-1.10.10/dojo/require.js +11 -0
  172. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +7 -0
  173. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  174. package/vendor/dojo-1.10.10/dojo/string.js +67 -0
  175. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +181 -0
  176. package/vendor/dojo-1.10.10/dojo/touch.js +191 -0
  177. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +468 -0
  178. package/vendor/dojo-1.10.10/dojo/uacss.js +36 -0
  179. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +85 -0
  180. package/vendor/dojo-1.10.10/dojo/window.js +141 -0
  181. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +241 -0
  182. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +626 -0
  183. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +1220 -0
  184. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +5 -0
  185. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +16 -0
  186. package/vendor/dojo-1.10.10/dojox/charting/Element.js +247 -0
  187. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +402 -0
  188. package/vendor/dojo-1.10.10/dojox/charting/Series.js +24 -0
  189. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +58 -0
  190. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +191 -0
  191. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +577 -0
  192. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +42 -0
  193. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +120 -0
  194. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +11 -0
  195. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +36 -0
  196. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +77 -0
  197. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +144 -0
  198. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +58 -0
  199. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +123 -0
  200. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +54 -0
  201. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +124 -0
  202. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +28 -0
  203. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +74 -0
  204. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +116 -0
  205. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +178 -0
  206. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +24 -0
  207. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +83 -0
  208. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +557 -0
  209. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +980 -0
  210. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +65 -0
  211. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +224 -0
  212. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +91 -0
  213. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +164 -0
  214. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +7 -0
  215. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +14 -0
  216. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +168 -0
  217. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +311 -0
  218. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +61 -0
  219. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +161 -0
  220. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +141 -0
  221. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +242 -0
  222. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +126 -0
  223. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +243 -0
  224. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +108 -0
  225. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +290 -0
  226. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +13 -0
  227. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +14 -0
  228. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +13 -0
  229. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +14 -0
  230. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +153 -0
  231. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +249 -0
  232. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +253 -0
  233. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +472 -0
  234. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +182 -0
  235. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +356 -0
  236. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +6 -0
  237. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +12 -0
  238. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +6 -0
  239. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +12 -0
  240. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +7 -0
  241. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +13 -0
  242. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +110 -0
  243. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +208 -0
  244. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +303 -0
  245. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +547 -0
  246. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +134 -0
  247. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +207 -0
  248. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +299 -0
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +537 -0
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +24 -0
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +44 -0
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +7 -0
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +14 -0
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +22 -0
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +33 -0
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +20 -0
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +31 -0
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +6 -0
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +12 -0
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +68 -0
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +120 -0
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +209 -0
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +214 -0
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +76 -0
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +77 -0
  266. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +59 -0
  267. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +70 -0
  268. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +220 -0
  269. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +262 -0
  270. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +23 -0
  271. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +36 -0
  272. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +39 -0
  273. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +106 -0
  274. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +5 -0
  275. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +12 -0
  276. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +4 -0
  277. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +3 -0
  278. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +102 -0
  279. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +165 -0
  280. package/vendor/dojo-1.10.10/dojox/color/Palette.js +163 -0
  281. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +460 -0
  282. package/vendor/dojo-1.10.10/dojox/color/_base.js +174 -0
  283. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +196 -0
  284. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +297 -0
  285. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +350 -0
  286. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +63 -0
  287. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +91 -0
  288. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +170 -0
  289. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +501 -0
  290. package/vendor/dojo-1.10.10/dojox/gfx/path.js +319 -0
  291. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +478 -0
  292. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +459 -0
  293. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +1091 -0
  294. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +662 -0
  295. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +1023 -0
  296. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +199 -0
  297. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +322 -0
  298. package/vendor/dojo-1.10.10/dojox/gfx.js +2 -0
  299. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +1136 -0
  300. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +151 -0
  301. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +169 -0
  302. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +93 -0
  303. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +125 -0
  304. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +81 -0
  305. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +132 -0
  306. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +54 -0
  307. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +78 -0
  308. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +61 -0
  309. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +77 -0
  310. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +87 -0
  311. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +107 -0
  312. package/vendor/dojo-1.10.10/dojox/lang/functional.js +4 -0
  313. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +3 -0
  314. package/vendor/dojo-1.10.10/dojox/lang/utils.js +86 -0
  315. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +121 -0
  316. package/vendor/dojo-1.10.10/dojox/main.js +4 -0
  317. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +14 -0
  318. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +112 -0
  319. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +208 -0
  320. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +62 -0
  321. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +344 -0
  322. package/vendor/dojo-1.10.10/dojox/storage/manager.js +110 -0
  323. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +263 -0
@@ -0,0 +1,460 @@
1
+ define("dojox/color/Palette", ["dojo/_base/lang", "dojo/_base/array", "./_base"],
2
+ function(lang, arr, dxc){
3
+
4
+ /***************************************************************
5
+ * dojox.color.Palette
6
+ *
7
+ * The Palette object is loosely based on the color palettes
8
+ * at Kuler (http://kuler.adobe.com). They are 5 color palettes
9
+ * with the base color considered to be the third color in the
10
+ * palette (for generation purposes).
11
+ *
12
+ * Palettes can be generated from well-known algorithms or they
13
+ * can be manually created by passing an array to the constructor.
14
+ *
15
+ * Palettes can be transformed, using a set of specific params
16
+ * similar to the way shapes can be transformed with dojox.gfx.
17
+ * However, unlike with transformations in dojox.gfx, transforming
18
+ * a palette will return you a new Palette object, in effect
19
+ * a clone of the original.
20
+ ***************************************************************/
21
+
22
+ // ctor ----------------------------------------------------------------------------
23
+ dxc.Palette = function(/* String|Array|dojox.color.Color|dojox.color.Palette */base){
24
+ // summary:
25
+ // An object that represents a palette of colors.
26
+ // description:
27
+ // A Palette is a representation of a set of colors. While the standard
28
+ // number of colors contained in a palette is 5, it can really handle any
29
+ // number of colors.
30
+ //
31
+ // A palette is useful for the ability to transform all the colors in it
32
+ // using a simple object-based approach. In addition, you can generate
33
+ // palettes using dojox.color.Palette.generate; these generated palettes
34
+ // are based on the palette generators at http://kuler.adobe.com.
35
+
36
+ // colors: dojox.color.Color[]
37
+ // The actual color references in this palette.
38
+ this.colors = [];
39
+ if(base instanceof dxc.Palette){
40
+ this.colors = base.colors.slice(0);
41
+ }
42
+ else if(base instanceof dxc.Color){
43
+ this.colors = [ null, null, base, null, null ];
44
+ }
45
+ else if(lang.isArray(base)){
46
+ this.colors = arr.map(base.slice(0), function(item){
47
+ if(lang.isString(item)){ return new dxc.Color(item); }
48
+ return item;
49
+ });
50
+ }
51
+ else if (lang.isString(base)){
52
+ this.colors = [ null, null, new dxc.Color(base), null, null ];
53
+ }
54
+ }
55
+
56
+ // private functions ---------------------------------------------------------------
57
+
58
+ // transformations
59
+ function tRGBA(p, param, val){
60
+ var ret = new dxc.Palette();
61
+ ret.colors = [];
62
+ arr.forEach(p.colors, function(item){
63
+ var r=(param=="dr")?item.r+val:item.r,
64
+ g=(param=="dg")?item.g+val:item.g,
65
+ b=(param=="db")?item.b+val:item.b,
66
+ a=(param=="da")?item.a+val:item.a
67
+ ret.colors.push(new dxc.Color({
68
+ r: Math.min(255, Math.max(0, r)),
69
+ g: Math.min(255, Math.max(0, g)),
70
+ b: Math.min(255, Math.max(0, b)),
71
+ a: Math.min(1, Math.max(0, a))
72
+ }));
73
+ });
74
+ return ret;
75
+ }
76
+
77
+ function tCMY(p, param, val){
78
+ var ret = new dxc.Palette();
79
+ ret.colors = [];
80
+ arr.forEach(p.colors, function(item){
81
+ var o=item.toCmy(),
82
+ c=(param=="dc")?o.c+val:o.c,
83
+ m=(param=="dm")?o.m+val:o.m,
84
+ y=(param=="dy")?o.y+val:o.y;
85
+ ret.colors.push(dxc.fromCmy(
86
+ Math.min(100, Math.max(0, c)),
87
+ Math.min(100, Math.max(0, m)),
88
+ Math.min(100, Math.max(0, y))
89
+ ));
90
+ });
91
+ return ret;
92
+ }
93
+
94
+ function tCMYK(p, param, val){
95
+ var ret = new dxc.Palette();
96
+ ret.colors = [];
97
+ arr.forEach(p.colors, function(item){
98
+ var o=item.toCmyk(),
99
+ c=(param=="dc")?o.c+val:o.c,
100
+ m=(param=="dm")?o.m+val:o.m,
101
+ y=(param=="dy")?o.y+val:o.y,
102
+ k=(param=="dk")?o.b+val:o.b;
103
+ ret.colors.push(dxc.fromCmyk(
104
+ Math.min(100, Math.max(0, c)),
105
+ Math.min(100, Math.max(0, m)),
106
+ Math.min(100, Math.max(0, y)),
107
+ Math.min(100, Math.max(0, k))
108
+ ));
109
+ });
110
+ return ret;
111
+ }
112
+
113
+ function tHSL(p, param, val){
114
+ var ret = new dxc.Palette();
115
+ ret.colors = [];
116
+ arr.forEach(p.colors, function(item){
117
+ var o=item.toHsl(),
118
+ h=(param=="dh")?o.h+val:o.h,
119
+ s=(param=="ds")?o.s+val:o.s,
120
+ l=(param=="dl")?o.l+val:o.l;
121
+ ret.colors.push(dxc.fromHsl(h%360, Math.min(100, Math.max(0, s)), Math.min(100, Math.max(0, l))));
122
+ });
123
+ return ret;
124
+ }
125
+
126
+ function tHSV(p, param, val){
127
+ var ret = new dxc.Palette();
128
+ ret.colors = [];
129
+ arr.forEach(p.colors, function(item){
130
+ var o=item.toHsv(),
131
+ h=(param=="dh")?o.h+val:o.h,
132
+ s=(param=="ds")?o.s+val:o.s,
133
+ v=(param=="dv")?o.v+val:o.v;
134
+ ret.colors.push(dxc.fromHsv(h%360, Math.min(100, Math.max(0, s)), Math.min(100, Math.max(0, v))));
135
+ });
136
+ return ret;
137
+ }
138
+
139
+ // helper functions
140
+ function rangeDiff(val, low, high){
141
+ // given the value in a range from 0 to high, find the equiv
142
+ // using the range low to high.
143
+ return high-((high-val)*((high-low)/high));
144
+ }
145
+
146
+ /*=====
147
+ var __transformArgs = {
148
+ // summary:
149
+ // The keywords argument to be passed to the dojox.color.Palette.transform function. Note that
150
+ // while all arguments are optional, *some* arguments must be passed. The basic concept is that
151
+ // you pass a delta value for a specific aspect of a color model (or multiple aspects of the same
152
+ // color model); for instance, if you wish to transform a palette based on the HSV color model,
153
+ // you would pass one of "dh", "ds", or "dv" as a value.
154
+ // use: String?
155
+ // Specify the color model to use for the transformation. Can be "rgb", "rgba", "hsv", "hsl", "cmy", "cmyk".
156
+ // dr: Number?
157
+ // The delta to be applied to the red aspect of the RGB/RGBA color model.
158
+ // dg: Number?
159
+ // The delta to be applied to the green aspect of the RGB/RGBA color model.
160
+ // db: Number?
161
+ // The delta to be applied to the blue aspect of the RGB/RGBA color model.
162
+ // da: Number?
163
+ // The delta to be applied to the alpha aspect of the RGBA color model.
164
+ // dc: Number?
165
+ // The delta to be applied to the cyan aspect of the CMY/CMYK color model.
166
+ // dm: Number?
167
+ // The delta to be applied to the magenta aspect of the CMY/CMYK color model.
168
+ // dy: Number?
169
+ // The delta to be applied to the yellow aspect of the CMY/CMYK color model.
170
+ // dk: Number?
171
+ // The delta to be applied to the black aspect of the CMYK color model.
172
+ // dh: Number?
173
+ // The delta to be applied to the hue aspect of the HSL/HSV color model.
174
+ // ds: Number?
175
+ // The delta to be applied to the saturation aspect of the HSL/HSV color model.
176
+ // dl: Number?
177
+ // The delta to be applied to the luminosity aspect of the HSL color model.
178
+ // dv: Number?
179
+ // The delta to be applied to the value aspect of the HSV color model.
180
+ };
181
+ var __generatorArgs = {
182
+ // summary:
183
+ // The keyword arguments object used to create a palette based on a base color.
184
+ // base: dojo/_base/Color
185
+ // The base color to be used to generate the palette.
186
+ };
187
+ var __analogousArgs = {
188
+ // summary:
189
+ // The keyword arguments object that is used to create a 5 color palette based on the
190
+ // analogous rules as implemented at http://kuler.adobe.com, using the HSV color model.
191
+ // base: dojo/_base/Color
192
+ // The base color to be used to generate the palette.
193
+ // high: Number?
194
+ // The difference between the hue of the base color and the highest hue. In degrees, default is 60.
195
+ // low: Number?
196
+ // The difference between the hue of the base color and the lowest hue. In degrees, default is 18.
197
+ };
198
+ var __splitComplementaryArgs = {
199
+ // summary:
200
+ // The keyword arguments object used to create a palette based on the split complementary rules
201
+ // as implemented at http://kuler.adobe.com.
202
+ // base: dojo/_base/Color
203
+ // The base color to be used to generate the palette.
204
+ // da: Number?
205
+ // The delta angle to be used to determine where the split for the complementary rules happen.
206
+ // In degrees, the default is 30.
207
+ };
208
+ =====*/
209
+
210
+ // object methods ---------------------------------------------------------------
211
+ lang.extend(dxc.Palette, {
212
+ transform: function(/*__transformArgs*/kwArgs){
213
+ // summary:
214
+ // Transform the palette using a specific transformation function
215
+ // and a set of transformation parameters.
216
+ // description:
217
+ // {palette}.transform is a simple way to uniformly transform
218
+ // all of the colors in a palette using any of 5 formulae:
219
+ // RGBA, HSL, HSV, CMYK or CMY.
220
+ //
221
+ // Once the forumula to be used is determined, you can pass any
222
+ // number of parameters based on the formula "d"[param]; for instance,
223
+ // { use: "rgba", dr: 20, dg: -50 } will take all of the colors in
224
+ // palette, add 20 to the R value and subtract 50 from the G value.
225
+ //
226
+ // Unlike other types of transformations, transform does *not* alter
227
+ // the original palette but will instead return a new one.
228
+ var fn=tRGBA; // the default transform function.
229
+ if(kwArgs.use){
230
+ // we are being specific about the algo we want to use.
231
+ var use=kwArgs.use.toLowerCase();
232
+ if(use.indexOf("hs")==0){
233
+ if(use.charAt(2)=="l"){ fn=tHSL; }
234
+ else { fn=tHSV; }
235
+ }
236
+ else if(use.indexOf("cmy")==0){
237
+ if(use.charAt(3)=="k"){ fn=tCMYK; }
238
+ else { fn=tCMY; }
239
+ }
240
+ }
241
+ // try to guess the best choice.
242
+ else if("dc" in kwArgs || "dm" in kwArgs || "dy" in kwArgs){
243
+ if("dk" in kwArgs){ fn = tCMYK; }
244
+ else { fn = tCMY; }
245
+ }
246
+ else if("dh" in kwArgs || "ds" in kwArgs){
247
+ if("dv" in kwArgs){ fn = tHSV; }
248
+ else { fn = tHSL; }
249
+ }
250
+
251
+ var palette = this;
252
+ for(var p in kwArgs){
253
+ // ignore use
254
+ if(p=="use"){ continue; }
255
+ palette = fn(palette, p, kwArgs[p]);
256
+ }
257
+ return palette; // dojox.color.Palette
258
+ },
259
+ clone: function(){
260
+ // summary:
261
+ // Clones the current palette.
262
+ return new dxc.Palette(this); // dojox.color.Palette
263
+ }
264
+ });
265
+
266
+ lang.mixin(dxc.Palette, {
267
+ generators: {
268
+ analogous:function(/* __analogousArgs */args){
269
+ // summary:
270
+ // Create a 5 color palette based on the analogous rules as implemented at
271
+ // http://kuler.adobe.com.
272
+ var high=args.high||60, // delta between base hue and highest hue (subtracted from base)
273
+ low=args.low||18, // delta between base hue and lowest hue (added to base)
274
+ base = lang.isString(args.base)?new dxc.Color(args.base):args.base,
275
+ hsv=base.toHsv();
276
+
277
+ // generate our hue angle differences
278
+ var h=[
279
+ (hsv.h+low+360)%360,
280
+ (hsv.h+Math.round(low/2)+360)%360,
281
+ hsv.h,
282
+ (hsv.h-Math.round(high/2)+360)%360,
283
+ (hsv.h-high+360)%360
284
+ ];
285
+
286
+ var s1=Math.max(10, (hsv.s<=95)?hsv.s+5:(100-(hsv.s-95))),
287
+ s2=(hsv.s>1)?hsv.s-1:21-hsv.s,
288
+ v1=(hsv.v>=92)?hsv.v-9:Math.max(hsv.v+9, 20),
289
+ v2=(hsv.v<=90)?Math.max(hsv.v+5, 20):(95+Math.ceil((hsv.v-90)/2)),
290
+ s=[ s1, s2, hsv.s, s1, s1 ],
291
+ v=[ v1, v2, hsv.v, v1, v2 ]
292
+
293
+ return new dxc.Palette(arr.map(h, function(hue, i){
294
+ return dxc.fromHsv(hue, s[i], v[i]);
295
+ })); // dojox.color.Palette
296
+ },
297
+
298
+ monochromatic: function(/* __generatorArgs */args){
299
+ // summary:
300
+ // Create a 5 color palette based on the monochromatic rules as implemented at
301
+ // http://kuler.adobe.com.
302
+ var base = lang.isString(args.base)?new dxc.Color(args.base):args.base,
303
+ hsv = base.toHsv();
304
+
305
+ // figure out the saturation and value
306
+ var s1 = (hsv.s-30>9)?hsv.s-30:hsv.s+30,
307
+ s2 = hsv.s,
308
+ v1 = rangeDiff(hsv.v, 20, 100),
309
+ v2 = (hsv.v-20>20)?hsv.v-20:hsv.v+60,
310
+ v3 = (hsv.v-50>20)?hsv.v-50:hsv.v+30;
311
+
312
+ return new dxc.Palette([
313
+ dxc.fromHsv(hsv.h, s1, v1),
314
+ dxc.fromHsv(hsv.h, s2, v3),
315
+ base,
316
+ dxc.fromHsv(hsv.h, s1, v3),
317
+ dxc.fromHsv(hsv.h, s2, v2)
318
+ ]); // dojox.color.Palette
319
+ },
320
+
321
+ triadic: function(/* __generatorArgs */args){
322
+ // summary:
323
+ // Create a 5 color palette based on the triadic rules as implemented at
324
+ // http://kuler.adobe.com.
325
+ var base = lang.isString(args.base)?new dxc.Color(args.base):args.base,
326
+ hsv = base.toHsv();
327
+
328
+ var h1 = (hsv.h+57+360)%360,
329
+ h2 = (hsv.h-157+360)%360,
330
+ s1 = (hsv.s>20)?hsv.s-10:hsv.s+10,
331
+ s2 = (hsv.s>90)?hsv.s-10:hsv.s+10,
332
+ s3 = (hsv.s>95)?hsv.s-5:hsv.s+5,
333
+ v1 = (hsv.v-20>20)?hsv.v-20:hsv.v+20,
334
+ v2 = (hsv.v-30>20)?hsv.v-30:hsv.v+30,
335
+ v3 = (hsv.v-30>70)?hsv.v-30:hsv.v+30;
336
+
337
+ return new dxc.Palette([
338
+ dxc.fromHsv(h1, s1, hsv.v),
339
+ dxc.fromHsv(hsv.h, s2, v2),
340
+ base,
341
+ dxc.fromHsv(h2, s2, v1),
342
+ dxc.fromHsv(h2, s3, v3)
343
+ ]); // dojox.color.Palette
344
+ },
345
+
346
+ complementary: function(/* __generatorArgs */args){
347
+ // summary:
348
+ // Create a 5 color palette based on the complementary rules as implemented at
349
+ // http://kuler.adobe.com.
350
+ var base = lang.isString(args.base)?new dxc.Color(args.base):args.base,
351
+ hsv = base.toHsv();
352
+
353
+ var h1 = ((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,
354
+ s1 = Math.max(hsv.s-10, 0),
355
+ s2 = rangeDiff(hsv.s, 10, 100),
356
+ s3 = Math.min(100, hsv.s+20),
357
+ v1 = Math.min(100, hsv.v+30),
358
+ v2 = (hsv.v>20)?hsv.v-30:hsv.v+30;
359
+
360
+ return new dxc.Palette([
361
+ dxc.fromHsv(hsv.h, s1, v1),
362
+ dxc.fromHsv(hsv.h, s2, v2),
363
+ base,
364
+ dxc.fromHsv(h1, s3, v2),
365
+ dxc.fromHsv(h1, hsv.s, hsv.v)
366
+ ]); // dojox.color.Palette
367
+ },
368
+
369
+ splitComplementary: function(/* __splitComplementaryArgs */args){
370
+ // summary:
371
+ // Create a 5 color palette based on the split complementary rules as implemented at
372
+ // http://kuler.adobe.com.
373
+ var base = lang.isString(args.base)?new dxc.Color(args.base):args.base,
374
+ dangle = args.da || 30,
375
+ hsv = base.toHsv();
376
+
377
+ var baseh = ((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,
378
+ h1 = (baseh-dangle+360)%360,
379
+ h2 = (baseh+dangle)%360,
380
+ s1 = Math.max(hsv.s-10, 0),
381
+ s2 = rangeDiff(hsv.s, 10, 100),
382
+ s3 = Math.min(100, hsv.s+20),
383
+ v1 = Math.min(100, hsv.v+30),
384
+ v2 = (hsv.v>20)?hsv.v-30:hsv.v+30;
385
+
386
+ return new dxc.Palette([
387
+ dxc.fromHsv(h1, s1, v1),
388
+ dxc.fromHsv(h1, s2, v2),
389
+ base,
390
+ dxc.fromHsv(h2, s3, v2),
391
+ dxc.fromHsv(h2, hsv.s, hsv.v)
392
+ ]); // dojox.color.Palette
393
+ },
394
+
395
+ compound: function(/* __generatorArgs */args){
396
+ // summary:
397
+ // Create a 5 color palette based on the compound rules as implemented at
398
+ // http://kuler.adobe.com.
399
+ var base = lang.isString(args.base)?new dxc.Color(args.base):args.base,
400
+ hsv = base.toHsv();
401
+
402
+ var h1 = ((hsv.h*2)+18<360)?(hsv.h*2)+18:Math.floor(hsv.h/2)-18,
403
+ h2 = ((hsv.h*2)+120<360)?(hsv.h*2)+120:Math.floor(hsv.h/2)-120,
404
+ h3 = ((hsv.h*2)+99<360)?(hsv.h*2)+99:Math.floor(hsv.h/2)-99,
405
+ s1 = (hsv.s-40>10)?hsv.s-40:hsv.s+40,
406
+ s2 = (hsv.s-10>80)?hsv.s-10:hsv.s+10,
407
+ s3 = (hsv.s-25>10)?hsv.s-25:hsv.s+25,
408
+ v1 = (hsv.v-40>10)?hsv.v-40:hsv.v+40,
409
+ v2 = (hsv.v-20>80)?hsv.v-20:hsv.v+20,
410
+ v3 = Math.max(hsv.v, 20);
411
+
412
+ return new dxc.Palette([
413
+ dxc.fromHsv(h1, s1, v1),
414
+ dxc.fromHsv(h1, s2, v2),
415
+ base,
416
+ dxc.fromHsv(h2, s3, v3),
417
+ dxc.fromHsv(h3, s2, v2)
418
+ ]); // dojox.color.Palette
419
+ },
420
+
421
+ shades: function(/* __generatorArgs */args){
422
+ // summary:
423
+ // Create a 5 color palette based on the shades rules as implemented at
424
+ // http://kuler.adobe.com.
425
+ var base = lang.isString(args.base)?new dxc.Color(args.base):args.base,
426
+ hsv = base.toHsv();
427
+
428
+ var s = (hsv.s==100 && hsv.v==0)?0:hsv.s,
429
+ v1 = (hsv.v-50>20)?hsv.v-50:hsv.v+30,
430
+ v2 = (hsv.v-25>=20)?hsv.v-25:hsv.v+55,
431
+ v3 = (hsv.v-75>=20)?hsv.v-75:hsv.v+5,
432
+ v4 = Math.max(hsv.v-10, 20);
433
+
434
+ return new dxc.Palette([
435
+ new dxc.fromHsv(hsv.h, s, v1),
436
+ new dxc.fromHsv(hsv.h, s, v2),
437
+ base,
438
+ new dxc.fromHsv(hsv.h, s, v3),
439
+ new dxc.fromHsv(hsv.h, s, v4)
440
+ ]); // dojox.color.Palette
441
+ }
442
+ },
443
+ generate: function(/* String|dojox.color.Color */base, /* Function|String */type){
444
+ // summary:
445
+ // Generate a new Palette using any of the named functions in
446
+ // dojox.color.Palette.generators or an optional function definition. Current
447
+ // generators include "analogous", "monochromatic", "triadic", "complementary",
448
+ // "splitComplementary", and "shades".
449
+ if(lang.isFunction(type)){
450
+ return type({ base: base }); // dojox.color.Palette
451
+ }
452
+ else if(dxc.Palette.generators[type]){
453
+ return dxc.Palette.generators[type]({ base: base }); // dojox.color.Palette
454
+ }
455
+ throw new Error("dojox.color.Palette.generate: the specified generator ('" + type + "') does not exist.");
456
+ }
457
+ });
458
+
459
+ return dxc.Palette;
460
+ });
@@ -0,0 +1,174 @@
1
+ //>>built
2
+ define("dojox/color/_base",["../main","dojo/_base/lang","dojo/_base/Color","dojo/colors"],function(_1,_2,_3,_4){
3
+ var cx=_2.getObject("color",true,_1);
4
+ cx.Color=_3;
5
+ cx.blend=_3.blendColors;
6
+ cx.fromRgb=_3.fromRgb;
7
+ cx.fromHex=_3.fromHex;
8
+ cx.fromArray=_3.fromArray;
9
+ cx.fromString=_3.fromString;
10
+ cx.greyscale=_4.makeGrey;
11
+ _2.mixin(cx,{fromCmy:function(_5,_6,_7){
12
+ if(_2.isArray(_5)){
13
+ _6=_5[1],_7=_5[2],_5=_5[0];
14
+ }else{
15
+ if(_2.isObject(_5)){
16
+ _6=_5.m,_7=_5.y,_5=_5.c;
17
+ }
18
+ }
19
+ _5/=100,_6/=100,_7/=100;
20
+ var r=1-_5,g=1-_6,b=1-_7;
21
+ return new _3({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});
22
+ },fromCmyk:function(_8,_9,_a,_b){
23
+ if(_2.isArray(_8)){
24
+ _9=_8[1],_a=_8[2],_b=_8[3],_8=_8[0];
25
+ }else{
26
+ if(_2.isObject(_8)){
27
+ _9=_8.m,_a=_8.y,_b=_8.b,_8=_8.c;
28
+ }
29
+ }
30
+ _8/=100,_9/=100,_a/=100,_b/=100;
31
+ var r,g,b;
32
+ r=1-Math.min(1,_8*(1-_b)+_b);
33
+ g=1-Math.min(1,_9*(1-_b)+_b);
34
+ b=1-Math.min(1,_a*(1-_b)+_b);
35
+ return new _3({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});
36
+ },fromHsl:function(_c,_d,_e){
37
+ if(_2.isArray(_c)){
38
+ _d=_c[1],_e=_c[2],_c=_c[0];
39
+ }else{
40
+ if(_2.isObject(_c)){
41
+ _d=_c.s,_e=_c.l,_c=_c.h;
42
+ }
43
+ }
44
+ _d/=100;
45
+ _e/=100;
46
+ while(_c<0){
47
+ _c+=360;
48
+ }
49
+ while(_c>=360){
50
+ _c-=360;
51
+ }
52
+ var r,g,b;
53
+ if(_c<120){
54
+ r=(120-_c)/60,g=_c/60,b=0;
55
+ }else{
56
+ if(_c<240){
57
+ r=0,g=(240-_c)/60,b=(_c-120)/60;
58
+ }else{
59
+ r=(_c-240)/60,g=0,b=(360-_c)/60;
60
+ }
61
+ }
62
+ r=2*_d*Math.min(r,1)+(1-_d);
63
+ g=2*_d*Math.min(g,1)+(1-_d);
64
+ b=2*_d*Math.min(b,1)+(1-_d);
65
+ if(_e<0.5){
66
+ r*=_e,g*=_e,b*=_e;
67
+ }else{
68
+ r=(1-_e)*r+2*_e-1;
69
+ g=(1-_e)*g+2*_e-1;
70
+ b=(1-_e)*b+2*_e-1;
71
+ }
72
+ return new _3({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});
73
+ }});
74
+ cx.fromHsv=function(_f,_10,_11){
75
+ if(_2.isArray(_f)){
76
+ _10=_f[1],_11=_f[2],_f=_f[0];
77
+ }else{
78
+ if(_2.isObject(_f)){
79
+ _10=_f.s,_11=_f.v,_f=_f.h;
80
+ }
81
+ }
82
+ if(_f==360){
83
+ _f=0;
84
+ }
85
+ _10/=100;
86
+ _11/=100;
87
+ var r,g,b;
88
+ if(_10==0){
89
+ r=_11,b=_11,g=_11;
90
+ }else{
91
+ var _12=_f/60,i=Math.floor(_12),f=_12-i;
92
+ var p=_11*(1-_10);
93
+ var q=_11*(1-(_10*f));
94
+ var t=_11*(1-(_10*(1-f)));
95
+ switch(i){
96
+ case 0:
97
+ r=_11,g=t,b=p;
98
+ break;
99
+ case 1:
100
+ r=q,g=_11,b=p;
101
+ break;
102
+ case 2:
103
+ r=p,g=_11,b=t;
104
+ break;
105
+ case 3:
106
+ r=p,g=q,b=_11;
107
+ break;
108
+ case 4:
109
+ r=t,g=p,b=_11;
110
+ break;
111
+ case 5:
112
+ r=_11,g=p,b=q;
113
+ break;
114
+ }
115
+ }
116
+ return new _3({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});
117
+ };
118
+ _2.extend(_3,{toCmy:function(){
119
+ var _13=1-(this.r/255),_14=1-(this.g/255),_15=1-(this.b/255);
120
+ return {c:Math.round(_13*100),m:Math.round(_14*100),y:Math.round(_15*100)};
121
+ },toCmyk:function(){
122
+ var _16,_17,_18,_19;
123
+ var r=this.r/255,g=this.g/255,b=this.b/255;
124
+ _19=Math.min(1-r,1-g,1-b);
125
+ _16=(1-r-_19)/(1-_19);
126
+ _17=(1-g-_19)/(1-_19);
127
+ _18=(1-b-_19)/(1-_19);
128
+ return {c:Math.round(_16*100),m:Math.round(_17*100),y:Math.round(_18*100),b:Math.round(_19*100)};
129
+ },toHsl:function(){
130
+ var r=this.r/255,g=this.g/255,b=this.b/255;
131
+ var min=Math.min(r,b,g),max=Math.max(r,g,b);
132
+ var _1a=max-min;
133
+ var h=0,s=0,l=(min+max)/2;
134
+ if(l>0&&l<1){
135
+ s=_1a/((l<0.5)?(2*l):(2-2*l));
136
+ }
137
+ if(_1a>0){
138
+ if(max==r&&max!=g){
139
+ h+=(g-b)/_1a;
140
+ }
141
+ if(max==g&&max!=b){
142
+ h+=(2+(b-r)/_1a);
143
+ }
144
+ if(max==b&&max!=r){
145
+ h+=(4+(r-g)/_1a);
146
+ }
147
+ h*=60;
148
+ }
149
+ return {h:h,s:Math.round(s*100),l:Math.round(l*100)};
150
+ },toHsv:function(){
151
+ var r=this.r/255,g=this.g/255,b=this.b/255;
152
+ var min=Math.min(r,b,g),max=Math.max(r,g,b);
153
+ var _1b=max-min;
154
+ var h=null,s=(max==0)?0:(_1b/max);
155
+ if(s==0){
156
+ h=0;
157
+ }else{
158
+ if(r==max){
159
+ h=60*(g-b)/_1b;
160
+ }else{
161
+ if(g==max){
162
+ h=120+60*(b-r)/_1b;
163
+ }else{
164
+ h=240+60*(r-g)/_1b;
165
+ }
166
+ }
167
+ if(h<0){
168
+ h+=360;
169
+ }
170
+ }
171
+ return {h:h,s:Math.round(s*100),v:Math.round(max*100)};
172
+ }});
173
+ return cx;
174
+ });