@datagrok/helm 2.13.7 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/CREDITS.md +164 -0
  2. package/dist/489.js +2 -0
  3. package/dist/489.js.map +1 -0
  4. package/dist/package-test.js +1 -1
  5. package/dist/package-test.js.map +1 -1
  6. package/dist/package.js +1 -1
  7. package/dist/package.js.map +1 -1
  8. package/files/samples/helm-showcase.csv +56 -0
  9. package/package.json +6 -10
  10. package/src/helm-helper.ts +61 -413
  11. package/src/package-api.ts +14 -11
  12. package/src/package-test.ts +0 -2
  13. package/src/package-utils.ts +8 -298
  14. package/src/package.g.ts +2 -8
  15. package/src/package.ts +11 -31
  16. package/src/tests/helm-activity-cliffs.ts +2 -2
  17. package/src/tests/helm-input-tests.ts +83 -0
  18. package/src/tests/parse-helm-tests.ts +7 -57
  19. package/src/tests/properties-widget-tests.ts +21 -11
  20. package/src/utils/helm-grid-cell-renderer.ts +141 -151
  21. package/src/utils/index.ts +3 -7
  22. package/src/widgets/helm-input.ts +42 -12
  23. package/src/widgets/properties-widget.ts +18 -11
  24. package/test-console-output-1.log +103 -706
  25. package/test-record-1.mp4 +0 -0
  26. package/webpack.config.js +1 -12
  27. package/dist/455.js +0 -2
  28. package/dist/455.js.map +0 -1
  29. package/dist/package-dojo.js +0 -2
  30. package/dist/package-dojo.js.map +0 -1
  31. package/helm/JSDraw/Pistoia.HELM-uncompressed.js +0 -9694
  32. package/helm/JSDraw/ReadMe.txt +0 -8
  33. package/helm/JSDraw/Scilligence.JSDraw2.Lite-uncompressed.js +0 -31126
  34. package/helm/dojo/package.ts +0 -41
  35. package/helm/dojo/types.ts +0 -12
  36. package/src/helm-web-editor.ts +0 -68
  37. package/src/tests/get-monomer-tests.ts +0 -214
  38. package/src/tests/helm-service-tests.ts +0 -98
  39. package/src/types/dojo.ts +0 -3
  40. package/src/types/index.ts +0 -5
  41. package/src/utils/get-monomer.ts +0 -90
  42. package/src/utils/helm-service.ts +0 -166
  43. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +0 -63
  44. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +0 -116
  45. package/vendor/dojo-1.10.10/dijit/Destroyable.js +0 -35
  46. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +0 -83
  47. package/vendor/dojo-1.10.10/dijit/Tooltip.js +0 -240
  48. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +0 -612
  49. package/vendor/dojo-1.10.10/dijit/Viewport.js +0 -44
  50. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +0 -87
  51. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +0 -76
  52. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +0 -247
  53. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +0 -94
  54. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +0 -238
  55. package/vendor/dojo-1.10.10/dijit/_Contained.js +0 -17
  56. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +0 -56
  57. package/vendor/dojo-1.10.10/dijit/_Container.js +0 -47
  58. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +0 -108
  59. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +0 -198
  60. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +0 -372
  61. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +0 -11
  62. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +0 -66
  63. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +0 -188
  64. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +0 -472
  65. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +0 -8
  66. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +0 -31
  67. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +0 -90
  68. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +0 -205
  69. package/vendor/dojo-1.10.10/dijit/_Widget.js +0 -66
  70. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +0 -352
  71. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +0 -353
  72. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +0 -1200
  73. package/vendor/dojo-1.10.10/dijit/_base/focus.js +0 -68
  74. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +0 -207
  75. package/vendor/dojo-1.10.10/dijit/_base/manager.js +0 -10
  76. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +0 -35
  77. package/vendor/dojo-1.10.10/dijit/_base/place.js +0 -52
  78. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +0 -131
  79. package/vendor/dojo-1.10.10/dijit/_base/popup.js +0 -23
  80. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +0 -58
  81. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +0 -6
  82. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +0 -22
  83. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +0 -3
  84. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +0 -12
  85. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +0 -3
  86. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +0 -10
  87. package/vendor/dojo-1.10.10/dijit/_base/wai.js +0 -32
  88. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +0 -109
  89. package/vendor/dojo-1.10.10/dijit/_base/window.js +0 -6
  90. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +0 -18
  91. package/vendor/dojo-1.10.10/dijit/_base.js +0 -4
  92. package/vendor/dojo-1.10.10/dijit/_base.js.uncompressed.js +0 -27
  93. package/vendor/dojo-1.10.10/dijit/a11y.js +0 -109
  94. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +0 -191
  95. package/vendor/dojo-1.10.10/dijit/a11yclick.js +0 -66
  96. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +0 -139
  97. package/vendor/dojo-1.10.10/dijit/focus.js +0 -188
  98. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +0 -371
  99. package/vendor/dojo-1.10.10/dijit/form/Button.js +0 -49
  100. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +0 -130
  101. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +0 -4
  102. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +0 -27
  103. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +0 -21
  104. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +0 -86
  105. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +0 -38
  106. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +0 -102
  107. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +0 -7
  108. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +0 -26
  109. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +0 -50
  110. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +0 -116
  111. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +0 -26
  112. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +0 -81
  113. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +0 -24
  114. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +0 -51
  115. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +0 -22
  116. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +0 -67
  117. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +0 -111
  118. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +0 -254
  119. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +0 -32
  120. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +0 -69
  121. package/vendor/dojo-1.10.10/dijit/hccss.js +0 -9
  122. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +0 -21
  123. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +0 -215
  124. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +0 -550
  125. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +0 -7
  126. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +0 -25
  127. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +0 -235
  128. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +0 -653
  129. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +0 -171
  130. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +0 -411
  131. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +0 -194
  132. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +0 -410
  133. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +0 -99
  134. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +0 -236
  135. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +0 -47
  136. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +0 -190
  137. package/vendor/dojo-1.10.10/dijit/layout/utils.js +0 -77
  138. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +0 -151
  139. package/vendor/dojo-1.10.10/dijit/main.js +0 -4
  140. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +0 -16
  141. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +0 -2
  142. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +0 -21
  143. package/vendor/dojo-1.10.10/dijit/nls/loading.js +0 -2
  144. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +0 -47
  145. package/vendor/dojo-1.10.10/dijit/place.js +0 -142
  146. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +0 -407
  147. package/vendor/dojo-1.10.10/dijit/popup.js +0 -162
  148. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +0 -441
  149. package/vendor/dojo-1.10.10/dijit/registry.js +0 -79
  150. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +0 -159
  151. package/vendor/dojo-1.10.10/dijit/selection.js +0 -364
  152. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +0 -525
  153. package/vendor/dojo-1.10.10/dijit/typematic.js +0 -96
  154. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +0 -211
  155. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +0 -195
  156. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +0 -761
  157. package/vendor/dojo-1.10.10/dojo/Stateful.js +0 -90
  158. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +0 -218
  159. package/vendor/dojo-1.10.10/dojo/_base/url.js +0 -87
  160. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +0 -109
  161. package/vendor/dojo-1.10.10/dojo/cache.js +0 -9
  162. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +0 -7
  163. package/vendor/dojo-1.10.10/dojo/colors.js +0 -74
  164. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +0 -232
  165. package/vendor/dojo-1.10.10/dojo/cookie.js +0 -48
  166. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +0 -98
  167. package/vendor/dojo-1.10.10/dojo/date/stamp.js +0 -82
  168. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +0 -144
  169. package/vendor/dojo-1.10.10/dojo/dojo.js +0 -7
  170. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +0 -18680
  171. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +0 -27
  172. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +0 -101
  173. package/vendor/dojo-1.10.10/dojo/fx/easing.js +0 -165
  174. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +0 -276
  175. package/vendor/dojo-1.10.10/dojo/fx.js +0 -271
  176. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +0 -443
  177. package/vendor/dojo-1.10.10/dojo/hccss.js +0 -26
  178. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +0 -52
  179. package/vendor/dojo-1.10.10/dojo/html.js +0 -161
  180. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +0 -370
  181. package/vendor/dojo-1.10.10/dojo/io/iframe.js +0 -71
  182. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +0 -190
  183. package/vendor/dojo-1.10.10/dojo/io/script.js +0 -112
  184. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +0 -280
  185. package/vendor/dojo-1.10.10/dojo/parser.js +0 -437
  186. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +0 -915
  187. package/vendor/dojo-1.10.10/dojo/promise/all.js +0 -59
  188. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +0 -77
  189. package/vendor/dojo-1.10.10/dojo/regexp.js +0 -32
  190. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +0 -70
  191. package/vendor/dojo-1.10.10/dojo/request/iframe.js +0 -291
  192. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +0 -438
  193. package/vendor/dojo-1.10.10/dojo/request/script.js +0 -129
  194. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +0 -237
  195. package/vendor/dojo-1.10.10/dojo/require.js +0 -11
  196. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +0 -7
  197. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  198. package/vendor/dojo-1.10.10/dojo/string.js +0 -67
  199. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +0 -181
  200. package/vendor/dojo-1.10.10/dojo/touch.js +0 -191
  201. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +0 -468
  202. package/vendor/dojo-1.10.10/dojo/uacss.js +0 -36
  203. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +0 -85
  204. package/vendor/dojo-1.10.10/dojo/window.js +0 -141
  205. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +0 -241
  206. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +0 -626
  207. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +0 -1220
  208. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +0 -5
  209. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +0 -16
  210. package/vendor/dojo-1.10.10/dojox/charting/Element.js +0 -247
  211. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +0 -402
  212. package/vendor/dojo-1.10.10/dojox/charting/Series.js +0 -24
  213. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +0 -58
  214. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +0 -191
  215. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +0 -577
  216. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +0 -42
  217. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +0 -120
  218. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +0 -11
  219. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +0 -36
  220. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +0 -77
  221. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +0 -144
  222. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +0 -58
  223. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +0 -123
  224. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +0 -54
  225. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +0 -124
  226. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +0 -28
  227. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +0 -74
  228. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +0 -116
  229. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +0 -178
  230. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +0 -24
  231. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +0 -83
  232. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +0 -557
  233. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +0 -980
  234. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +0 -65
  235. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +0 -224
  236. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +0 -91
  237. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +0 -164
  238. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +0 -7
  239. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +0 -14
  240. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +0 -168
  241. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +0 -311
  242. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +0 -61
  243. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +0 -161
  244. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +0 -141
  245. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +0 -242
  246. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +0 -126
  247. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +0 -243
  248. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +0 -108
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +0 -290
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +0 -13
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +0 -14
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +0 -13
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +0 -14
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +0 -153
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +0 -249
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +0 -253
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +0 -472
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +0 -182
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +0 -356
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +0 -6
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +0 -12
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +0 -6
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +0 -12
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +0 -7
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +0 -13
  266. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +0 -110
  267. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +0 -208
  268. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +0 -303
  269. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +0 -547
  270. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +0 -134
  271. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +0 -207
  272. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +0 -299
  273. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +0 -537
  274. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +0 -24
  275. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +0 -44
  276. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +0 -7
  277. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +0 -14
  278. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +0 -22
  279. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +0 -33
  280. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +0 -20
  281. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +0 -31
  282. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +0 -6
  283. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +0 -12
  284. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +0 -68
  285. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +0 -120
  286. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +0 -209
  287. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +0 -214
  288. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +0 -76
  289. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +0 -77
  290. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +0 -59
  291. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +0 -70
  292. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +0 -220
  293. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +0 -262
  294. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +0 -23
  295. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +0 -36
  296. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +0 -39
  297. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +0 -106
  298. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +0 -5
  299. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +0 -12
  300. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +0 -4
  301. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +0 -3
  302. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +0 -102
  303. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +0 -165
  304. package/vendor/dojo-1.10.10/dojox/color/Palette.js +0 -163
  305. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +0 -460
  306. package/vendor/dojo-1.10.10/dojox/color/_base.js +0 -174
  307. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +0 -196
  308. package/vendor/dojo-1.10.10/dojox/gfx/_base.js +0 -253
  309. package/vendor/dojo-1.10.10/dojox/gfx/_base.js.uncompressed.js +0 -1024
  310. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +0 -297
  311. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +0 -350
  312. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +0 -63
  313. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +0 -91
  314. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +0 -170
  315. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +0 -501
  316. package/vendor/dojo-1.10.10/dojox/gfx/path.js +0 -319
  317. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +0 -478
  318. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +0 -459
  319. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +0 -1091
  320. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +0 -662
  321. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +0 -1023
  322. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +0 -199
  323. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +0 -322
  324. package/vendor/dojo-1.10.10/dojox/gfx.js +0 -2
  325. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +0 -1136
  326. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +0 -151
  327. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +0 -169
  328. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +0 -93
  329. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +0 -125
  330. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +0 -81
  331. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +0 -132
  332. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +0 -54
  333. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +0 -78
  334. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +0 -61
  335. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +0 -77
  336. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +0 -87
  337. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +0 -107
  338. package/vendor/dojo-1.10.10/dojox/lang/functional.js +0 -4
  339. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +0 -3
  340. package/vendor/dojo-1.10.10/dojox/lang/utils.js +0 -86
  341. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +0 -121
  342. package/vendor/dojo-1.10.10/dojox/main.js +0 -4
  343. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +0 -14
  344. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +0 -112
  345. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +0 -208
  346. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +0 -62
  347. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +0 -344
  348. package/vendor/dojo-1.10.10/dojox/storage/manager.js +0 -110
  349. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +0 -263
@@ -1,460 +0,0 @@
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
- });
@@ -1,174 +0,0 @@
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
- });