@datagrok/helm 2.13.8 → 3.0.1

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 (360) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/css/helm.css +40 -0
  3. package/dist/137.js +2 -0
  4. package/dist/137.js.map +1 -0
  5. package/dist/323.js +2 -0
  6. package/dist/323.js.map +1 -0
  7. package/dist/657.js +2 -0
  8. package/dist/657.js.map +1 -0
  9. package/dist/782.js +2 -0
  10. package/dist/782.js.map +1 -0
  11. package/dist/884.js +2 -0
  12. package/dist/884.js.map +1 -0
  13. package/dist/94.js +2 -0
  14. package/dist/94.js.map +1 -0
  15. package/dist/libraries_bio_src_monomer-works_seq-to-molfile-worker_ts.js +16420 -0
  16. package/dist/libraries_bio_src_monomer-works_seq-to-molfile-worker_ts.js.map +1 -0
  17. package/dist/package-test.js +1 -1
  18. package/dist/package-test.js.map +1 -1
  19. package/dist/package.js +1 -1
  20. package/dist/package.js.map +1 -1
  21. package/dist/vendors-HELM_node_modules_lru-cache_dist_esm_index_js.js +1560 -0
  22. package/dist/vendors-HELM_node_modules_lru-cache_dist_esm_index_js.js.map +1 -0
  23. package/files/samples/helm-showcase.csv +56 -0
  24. package/package.json +8 -12
  25. package/src/helm-helper.ts +134 -410
  26. package/src/package-api.ts +14 -11
  27. package/src/package-test.ts +0 -2
  28. package/src/package-utils.ts +8 -298
  29. package/src/package.g.ts +2 -8
  30. package/src/package.ts +11 -31
  31. package/src/tests/helm-activity-cliffs.ts +2 -2
  32. package/src/tests/helm-input-tests.ts +83 -0
  33. package/src/tests/parse-helm-tests.ts +7 -57
  34. package/src/tests/properties-widget-tests.ts +21 -11
  35. package/src/utils/helm-grid-cell-renderer.ts +141 -151
  36. package/src/utils/index.ts +3 -7
  37. package/src/widgets/helm-input.ts +42 -12
  38. package/src/widgets/properties-widget.ts +18 -11
  39. package/webpack.config.js +1 -12
  40. package/helm/JSDraw/Pistoia.HELM-uncompressed.js +0 -9694
  41. package/helm/JSDraw/ReadMe.txt +0 -8
  42. package/helm/JSDraw/Scilligence.JSDraw2.Lite-uncompressed.js +0 -31126
  43. package/helm/dojo/package.ts +0 -41
  44. package/helm/dojo/types.ts +0 -12
  45. package/src/helm-web-editor.ts +0 -68
  46. package/src/tests/get-monomer-tests.ts +0 -214
  47. package/src/tests/helm-service-tests.ts +0 -98
  48. package/src/types/dojo.ts +0 -3
  49. package/src/types/index.ts +0 -5
  50. package/src/utils/get-monomer.ts +0 -90
  51. package/src/utils/helm-service.ts +0 -166
  52. package/test-console-output-1.log +0 -919
  53. package/test-record-1.mp4 +0 -0
  54. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +0 -63
  55. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +0 -116
  56. package/vendor/dojo-1.10.10/dijit/Destroyable.js +0 -35
  57. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +0 -83
  58. package/vendor/dojo-1.10.10/dijit/Tooltip.js +0 -240
  59. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +0 -612
  60. package/vendor/dojo-1.10.10/dijit/Viewport.js +0 -44
  61. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +0 -87
  62. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +0 -76
  63. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +0 -247
  64. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +0 -94
  65. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +0 -238
  66. package/vendor/dojo-1.10.10/dijit/_Contained.js +0 -17
  67. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +0 -56
  68. package/vendor/dojo-1.10.10/dijit/_Container.js +0 -47
  69. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +0 -108
  70. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +0 -198
  71. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +0 -372
  72. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +0 -11
  73. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +0 -66
  74. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +0 -188
  75. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +0 -472
  76. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +0 -8
  77. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +0 -31
  78. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +0 -90
  79. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +0 -205
  80. package/vendor/dojo-1.10.10/dijit/_Widget.js +0 -66
  81. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +0 -352
  82. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +0 -353
  83. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +0 -1200
  84. package/vendor/dojo-1.10.10/dijit/_base/focus.js +0 -68
  85. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +0 -207
  86. package/vendor/dojo-1.10.10/dijit/_base/manager.js +0 -10
  87. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +0 -35
  88. package/vendor/dojo-1.10.10/dijit/_base/place.js +0 -52
  89. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +0 -131
  90. package/vendor/dojo-1.10.10/dijit/_base/popup.js +0 -23
  91. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +0 -58
  92. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +0 -6
  93. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +0 -22
  94. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +0 -3
  95. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +0 -12
  96. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +0 -3
  97. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +0 -10
  98. package/vendor/dojo-1.10.10/dijit/_base/wai.js +0 -32
  99. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +0 -109
  100. package/vendor/dojo-1.10.10/dijit/_base/window.js +0 -6
  101. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +0 -18
  102. package/vendor/dojo-1.10.10/dijit/_base.js +0 -4
  103. package/vendor/dojo-1.10.10/dijit/_base.js.uncompressed.js +0 -27
  104. package/vendor/dojo-1.10.10/dijit/a11y.js +0 -109
  105. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +0 -191
  106. package/vendor/dojo-1.10.10/dijit/a11yclick.js +0 -66
  107. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +0 -139
  108. package/vendor/dojo-1.10.10/dijit/focus.js +0 -188
  109. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +0 -371
  110. package/vendor/dojo-1.10.10/dijit/form/Button.js +0 -49
  111. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +0 -130
  112. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +0 -4
  113. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +0 -27
  114. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +0 -21
  115. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +0 -86
  116. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +0 -38
  117. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +0 -102
  118. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +0 -7
  119. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +0 -26
  120. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +0 -50
  121. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +0 -116
  122. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +0 -26
  123. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +0 -81
  124. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +0 -24
  125. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +0 -51
  126. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +0 -22
  127. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +0 -67
  128. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +0 -111
  129. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +0 -254
  130. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +0 -32
  131. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +0 -69
  132. package/vendor/dojo-1.10.10/dijit/hccss.js +0 -9
  133. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +0 -21
  134. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +0 -215
  135. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +0 -550
  136. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +0 -7
  137. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +0 -25
  138. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +0 -235
  139. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +0 -653
  140. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +0 -171
  141. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +0 -411
  142. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +0 -194
  143. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +0 -410
  144. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +0 -99
  145. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +0 -236
  146. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +0 -47
  147. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +0 -190
  148. package/vendor/dojo-1.10.10/dijit/layout/utils.js +0 -77
  149. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +0 -151
  150. package/vendor/dojo-1.10.10/dijit/main.js +0 -4
  151. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +0 -16
  152. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +0 -2
  153. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +0 -21
  154. package/vendor/dojo-1.10.10/dijit/nls/loading.js +0 -2
  155. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +0 -47
  156. package/vendor/dojo-1.10.10/dijit/place.js +0 -142
  157. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +0 -407
  158. package/vendor/dojo-1.10.10/dijit/popup.js +0 -162
  159. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +0 -441
  160. package/vendor/dojo-1.10.10/dijit/registry.js +0 -79
  161. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +0 -159
  162. package/vendor/dojo-1.10.10/dijit/selection.js +0 -364
  163. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +0 -525
  164. package/vendor/dojo-1.10.10/dijit/typematic.js +0 -96
  165. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +0 -211
  166. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +0 -195
  167. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +0 -761
  168. package/vendor/dojo-1.10.10/dojo/Stateful.js +0 -90
  169. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +0 -218
  170. package/vendor/dojo-1.10.10/dojo/_base/url.js +0 -87
  171. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +0 -109
  172. package/vendor/dojo-1.10.10/dojo/cache.js +0 -9
  173. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +0 -7
  174. package/vendor/dojo-1.10.10/dojo/colors.js +0 -74
  175. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +0 -232
  176. package/vendor/dojo-1.10.10/dojo/cookie.js +0 -48
  177. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +0 -98
  178. package/vendor/dojo-1.10.10/dojo/date/stamp.js +0 -82
  179. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +0 -144
  180. package/vendor/dojo-1.10.10/dojo/dojo.js +0 -7
  181. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +0 -18680
  182. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +0 -27
  183. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +0 -101
  184. package/vendor/dojo-1.10.10/dojo/fx/easing.js +0 -165
  185. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +0 -276
  186. package/vendor/dojo-1.10.10/dojo/fx.js +0 -271
  187. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +0 -443
  188. package/vendor/dojo-1.10.10/dojo/hccss.js +0 -26
  189. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +0 -52
  190. package/vendor/dojo-1.10.10/dojo/html.js +0 -161
  191. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +0 -370
  192. package/vendor/dojo-1.10.10/dojo/io/iframe.js +0 -71
  193. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +0 -190
  194. package/vendor/dojo-1.10.10/dojo/io/script.js +0 -112
  195. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +0 -280
  196. package/vendor/dojo-1.10.10/dojo/parser.js +0 -437
  197. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +0 -915
  198. package/vendor/dojo-1.10.10/dojo/promise/all.js +0 -59
  199. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +0 -77
  200. package/vendor/dojo-1.10.10/dojo/regexp.js +0 -32
  201. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +0 -70
  202. package/vendor/dojo-1.10.10/dojo/request/iframe.js +0 -291
  203. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +0 -438
  204. package/vendor/dojo-1.10.10/dojo/request/script.js +0 -129
  205. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +0 -237
  206. package/vendor/dojo-1.10.10/dojo/require.js +0 -11
  207. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +0 -7
  208. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  209. package/vendor/dojo-1.10.10/dojo/string.js +0 -67
  210. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +0 -181
  211. package/vendor/dojo-1.10.10/dojo/touch.js +0 -191
  212. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +0 -468
  213. package/vendor/dojo-1.10.10/dojo/uacss.js +0 -36
  214. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +0 -85
  215. package/vendor/dojo-1.10.10/dojo/window.js +0 -141
  216. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +0 -241
  217. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +0 -626
  218. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +0 -1220
  219. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +0 -5
  220. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +0 -16
  221. package/vendor/dojo-1.10.10/dojox/charting/Element.js +0 -247
  222. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +0 -402
  223. package/vendor/dojo-1.10.10/dojox/charting/Series.js +0 -24
  224. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +0 -58
  225. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +0 -191
  226. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +0 -577
  227. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +0 -42
  228. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +0 -120
  229. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +0 -11
  230. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +0 -36
  231. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +0 -77
  232. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +0 -144
  233. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +0 -58
  234. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +0 -123
  235. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +0 -54
  236. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +0 -124
  237. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +0 -28
  238. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +0 -74
  239. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +0 -116
  240. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +0 -178
  241. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +0 -24
  242. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +0 -83
  243. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +0 -557
  244. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +0 -980
  245. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +0 -65
  246. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +0 -224
  247. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +0 -91
  248. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +0 -164
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +0 -7
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +0 -14
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +0 -168
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +0 -311
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +0 -61
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +0 -161
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +0 -141
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +0 -242
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +0 -126
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +0 -243
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +0 -108
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +0 -290
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +0 -13
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +0 -14
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +0 -13
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +0 -14
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +0 -153
  266. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +0 -249
  267. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +0 -253
  268. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +0 -472
  269. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +0 -182
  270. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +0 -356
  271. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +0 -6
  272. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +0 -12
  273. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +0 -6
  274. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +0 -12
  275. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +0 -7
  276. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +0 -13
  277. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +0 -110
  278. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +0 -208
  279. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +0 -303
  280. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +0 -547
  281. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +0 -134
  282. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +0 -207
  283. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +0 -299
  284. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +0 -537
  285. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +0 -24
  286. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +0 -44
  287. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +0 -7
  288. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +0 -14
  289. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +0 -22
  290. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +0 -33
  291. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +0 -20
  292. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +0 -31
  293. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +0 -6
  294. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +0 -12
  295. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +0 -68
  296. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +0 -120
  297. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +0 -209
  298. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +0 -214
  299. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +0 -76
  300. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +0 -77
  301. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +0 -59
  302. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +0 -70
  303. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +0 -220
  304. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +0 -262
  305. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +0 -23
  306. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +0 -36
  307. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +0 -39
  308. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +0 -106
  309. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +0 -5
  310. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +0 -12
  311. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +0 -4
  312. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +0 -3
  313. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +0 -102
  314. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +0 -165
  315. package/vendor/dojo-1.10.10/dojox/color/Palette.js +0 -163
  316. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +0 -460
  317. package/vendor/dojo-1.10.10/dojox/color/_base.js +0 -174
  318. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +0 -196
  319. package/vendor/dojo-1.10.10/dojox/gfx/_base.js +0 -253
  320. package/vendor/dojo-1.10.10/dojox/gfx/_base.js.uncompressed.js +0 -1024
  321. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +0 -297
  322. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +0 -350
  323. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +0 -63
  324. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +0 -91
  325. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +0 -170
  326. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +0 -501
  327. package/vendor/dojo-1.10.10/dojox/gfx/path.js +0 -319
  328. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +0 -478
  329. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +0 -459
  330. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +0 -1091
  331. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +0 -662
  332. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +0 -1023
  333. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +0 -199
  334. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +0 -322
  335. package/vendor/dojo-1.10.10/dojox/gfx.js +0 -2
  336. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +0 -1136
  337. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +0 -151
  338. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +0 -169
  339. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +0 -93
  340. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +0 -125
  341. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +0 -81
  342. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +0 -132
  343. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +0 -54
  344. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +0 -78
  345. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +0 -61
  346. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +0 -77
  347. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +0 -87
  348. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +0 -107
  349. package/vendor/dojo-1.10.10/dojox/lang/functional.js +0 -4
  350. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +0 -3
  351. package/vendor/dojo-1.10.10/dojox/lang/utils.js +0 -86
  352. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +0 -121
  353. package/vendor/dojo-1.10.10/dojox/main.js +0 -4
  354. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +0 -14
  355. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +0 -112
  356. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +0 -208
  357. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +0 -62
  358. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +0 -344
  359. package/vendor/dojo-1.10.10/dojox/storage/manager.js +0 -110
  360. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +0 -263
@@ -1,577 +0,0 @@
1
- define("dojox/charting/SimpleTheme", ["dojo/_base/lang", "dojo/_base/array","dojo/_base/declare","dojo/_base/Color", "dojox/lang/utils", "dojox/gfx/gradutils"],
2
- function(lang, arr, declare, Color, dlu, dgg){
3
-
4
- var SimpleTheme = declare("dojox.charting.SimpleTheme", null, {
5
- // summary:
6
- // A SimpleTheme or Theme is a pre-defined object, primarily JSON-based, that makes up the definitions to
7
- // style a chart.
8
- //
9
- // description:
10
- // While you can set up style definitions on a chart directly (usually through the various add methods
11
- // on a dojox.charting.Chart object), a Theme simplifies this manual setup by allowing you to
12
- // pre-define all of the various visual parameters of each element in a chart.
13
- //
14
- // Most of the properties of a Theme are straight-forward; if something is line-based (such as
15
- // an axis or the ticks on an axis), they will be defined using basic stroke parameters. Likewise,
16
- // if an element is primarily block-based (such as the background of a chart), it will be primarily
17
- // fill-based.
18
- //
19
- // In addition (for convenience), a Theme definition does not have to contain the entire JSON-based
20
- // structure. Each theme is built on top of a default theme (which serves as the basis for the theme
21
- // "GreySkies"), and is mixed into the default theme object. This allows you to create a theme based,
22
- // say, solely on colors for data series.
23
- //
24
- // Defining a new theme is relatively easy; see any of the themes in dojox.charting.themes for examples
25
- // on how to define your own.
26
- //
27
- // When you set a theme on a chart, the theme itself is deep-cloned. This means that you cannot alter
28
- // the theme itself after setting the theme value on a chart, and expect it to change your chart. If you
29
- // are looking to make alterations to a theme for a chart, the suggestion would be to create your own
30
- // theme, based on the one you want to use, that makes those alterations before it is applied to a chart.
31
- //
32
- // Finally, a Theme contains a number of functions to facilitate rendering operations on a chart--the main
33
- // helper of which is the ~next~ method, in which a chart asks for the information for the next data series
34
- // to be rendered.
35
- //
36
- // A note on colors:
37
- // A theme palette is usually comprised of 5 different color definitions, and
38
- // no more. If you have a need to render a chart with more than 5 data elements, you can simply "push"
39
- // new color definitions into the theme's .color array. Make sure that you do that with the actual
40
- // theme object from a Chart, and not in the theme itself (i.e. either do that before using .setTheme
41
- // on a chart).
42
- //
43
- // example:
44
- // The default theme (and structure) looks like so:
45
- // | // all objects are structs used directly in dojox.gfx
46
- // | chart:{
47
- // | stroke: null,
48
- // | fill: "white",
49
- // | pageStyle: null // suggested page style as an object suitable for dojo.style()
50
- // | },
51
- // | plotarea:{
52
- // | stroke: null,
53
- // | fill: "white"
54
- // | },
55
- // | axis:{
56
- // | stroke: { // the axis itself
57
- // | color: "#333",
58
- // | width: 1
59
- // | },
60
- // | tick: { // used as a foundation for all ticks
61
- // | color: "#666",
62
- // | position: "center",
63
- // | font: "normal normal normal 7pt Tahoma", // labels on axis
64
- // | fontColor: "#333" // color of labels
65
- // | },
66
- // | majorTick: { // major ticks on axis, and used for major gridlines
67
- // | width: 1,
68
- // | length: 6
69
- // | },
70
- // | minorTick: { // minor ticks on axis, and used for minor gridlines
71
- // | width: 0.8,
72
- // | length: 3
73
- // | },
74
- // | microTick: { // minor ticks on axis, and used for minor gridlines
75
- // | width: 0.5,
76
- // | length: 1
77
- // | },
78
- // | title: {
79
- // | gap: 15,
80
- // | font: "normal normal normal 11pt Tahoma", // title font
81
- // | fontColor: "#333", // title font color
82
- // | orientation: "axis" // "axis": facing the axis, "away": facing away
83
- // | }
84
- // | },
85
- // | series: {
86
- // | stroke: {width: 1.5, color: "#333"}, // line
87
- // | outline: {width: 0.1, color: "#ccc"}, // outline
88
- // | //shadow: {dx: 1, dy: 1, width: 2, color: [0, 0, 0, 0.3]},
89
- // | shadow: null, // no shadow
90
- // | //filter: dojox/gfx/filters.createFilter(),
91
- // | filter: null, // no filter, to use a filter you must use gfx SVG render and require dojox/gfx/svgext
92
- // | fill: "#ccc", // fill, if appropriate
93
- // | font: "normal normal normal 8pt Tahoma", // if there's a label
94
- // | fontColor: "#000" // color of labels
95
- // | labelWiring: {width: 1, color: "#ccc"}, // connect marker and target data item(slice, column, bar...)
96
- // | },
97
- // | marker: { // any markers on a series
98
- // | symbol: "m-3,3 l3,-6 3,6 z", // symbol
99
- // | stroke: {width: 1.5, color: "#333"}, // stroke
100
- // | outline: {width: 0.1, color: "#ccc"}, // outline
101
- // | shadow: null, // no shadow
102
- // | fill: "#ccc", // fill if needed
103
- // | font: "normal normal normal 8pt Tahoma", // label
104
- // | fontColor: "#000"
105
- // | },
106
- // | grid: { // grid, when not present axis tick strokes are used instead
107
- // | majorLine: { // major grid line
108
- // | color: "#666",
109
- // | width: 1,
110
- // | length: 6
111
- // | },
112
- // | minorLine: { // minor grid line
113
- // | color: "#666",
114
- // | width: 0.8,
115
- // | length: 3
116
- // | },
117
- // | fill: "grey", // every other stripe
118
- // | alternateFill: "grey" // alternate stripe
119
- // | },
120
- // | indicator: {
121
- // | lineStroke: {width: 1.5, color: "#333"}, // line
122
- // | lineOutline: {width: 0.1, color: "#ccc"}, // line outline
123
- // | lineShadow: null, // no line shadow
124
- // | lineFill: null, // fill between lines for dual indicators
125
- // | stroke: {width: 1.5, color: "#333"}, // label background stroke
126
- // | outline: {width: 0.1, color: "#ccc"}, // label background outline
127
- // | shadow: null, // no label background shadow
128
- // | fill: "#ccc", // label background fill
129
- // | radius: 3, // radius of the label background
130
- // | font: "normal normal normal 10pt Tahoma", // label font
131
- // | fontColor: "#000" // label color
132
- // | markerFill: "#ccc", // marker fill
133
- // | markerSymbol: "m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0", // marker symbol
134
- // | markerStroke: {width: 1.5, color: "#333"}, // marker stroke
135
- // | markerOutline: {width: 0.1, color: "#ccc"}, // marker outline
136
- // | markerShadow: null, // no marker shadow
137
- // | }
138
- //
139
- // example:
140
- // Defining a new theme is pretty simple:
141
- // | var Grasslands = new SimpleTheme({
142
- // | colors: [ "#70803a", "#dde574", "#788062", "#b1cc5d", "#eff2c2" ]
143
- // | });
144
- // |
145
- // | myChart.setTheme(Grasslands);
146
-
147
- shapeSpaces: {shape: 1, shapeX: 1, shapeY: 1},
148
-
149
- constructor: function(kwArgs){
150
- // summary:
151
- // Initialize a theme using the keyword arguments. Note that the arguments
152
- // look like the example (above), and may include a few more parameters.
153
- kwArgs = kwArgs || {};
154
-
155
- // populate theme with defaults updating them if needed
156
- var def = SimpleTheme.defaultTheme;
157
- arr.forEach(["chart", "plotarea", "axis", "grid", "series", "marker", "indicator"], function(name){
158
- this[name] = lang.delegate(def[name], kwArgs[name]);
159
- }, this);
160
-
161
- // personalize theme
162
- if(kwArgs.seriesThemes && kwArgs.seriesThemes.length){
163
- this.colors = null;
164
- this.seriesThemes = kwArgs.seriesThemes.slice(0);
165
- }else{
166
- this.seriesThemes = null;
167
- this.colors = (kwArgs.colors || SimpleTheme.defaultColors).slice(0);
168
- }
169
- this.markerThemes = null;
170
- if(kwArgs.markerThemes && kwArgs.markerThemes.length){
171
- this.markerThemes = kwArgs.markerThemes.slice(0);
172
- }
173
- this.markers = kwArgs.markers ? lang.clone(kwArgs.markers) : lang.delegate(SimpleTheme.defaultMarkers);
174
-
175
- // set flags
176
- this.noGradConv = kwArgs.noGradConv;
177
- this.noRadialConv = kwArgs.noRadialConv;
178
- if(kwArgs.reverseFills){
179
- this.reverseFills();
180
- }
181
-
182
- // private housekeeping
183
- this._current = 0;
184
- this._buildMarkerArray();
185
- },
186
-
187
- clone: function(){
188
- // summary:
189
- // Clone the current theme.
190
- // returns: dojox.charting.SimpleTheme
191
- // The cloned theme; any alterations made will not affect the original.
192
- var theme = new this.constructor({
193
- // theme components
194
- chart: this.chart,
195
- plotarea: this.plotarea,
196
- axis: this.axis,
197
- grid: this.grid,
198
- series: this.series,
199
- marker: this.marker,
200
- // individual arrays
201
- colors: this.colors,
202
- markers: this.markers,
203
- indicator: this.indicator,
204
- seriesThemes: this.seriesThemes,
205
- markerThemes: this.markerThemes,
206
- // flags
207
- noGradConv: this.noGradConv,
208
- noRadialConv: this.noRadialConv
209
- });
210
- // copy custom methods
211
- arr.forEach(
212
- ["clone", "clear", "next", "skip", "addMixin", "post", "getTick"],
213
- function(name){
214
- if(this.hasOwnProperty(name)){
215
- theme[name] = this[name];
216
- }
217
- },
218
- this
219
- );
220
- return theme; // dojox.charting.SimpleTheme
221
- },
222
-
223
- clear: function(){
224
- // summary:
225
- // Clear and reset the internal pointer to start fresh.
226
- this._current = 0;
227
- },
228
-
229
- next: function(elementType, mixin, doPost){
230
- // summary:
231
- // Get the next color or series theme.
232
- // elementType: String?
233
- // An optional element type (for use with series themes)
234
- // mixin: Object?
235
- // An optional object to mix into the theme.
236
- // doPost: Boolean?
237
- // A flag to post-process the results.
238
- // returns: Object
239
- // An object of the structure { series, marker, symbol }
240
- var merge = dlu.merge, series, marker;
241
- if(this.colors){
242
- series = lang.delegate(this.series);
243
- marker = lang.delegate(this.marker);
244
- var color = new Color(this.colors[this._current % this.colors.length]), old;
245
- // modify the stroke
246
- if(series.stroke && series.stroke.color){
247
- series.stroke = lang.delegate(series.stroke);
248
- old = new Color(series.stroke.color);
249
- series.stroke.color = new Color(color);
250
- series.stroke.color.a = old.a;
251
- }else{
252
- series.stroke = {color: color};
253
- }
254
- if(marker.stroke && marker.stroke.color){
255
- marker.stroke = lang.delegate(marker.stroke);
256
- old = new Color(marker.stroke.color);
257
- marker.stroke.color = new Color(color);
258
- marker.stroke.color.a = old.a;
259
- }else{
260
- marker.stroke = {color: color};
261
- }
262
- // modify the fill
263
- if(!series.fill || series.fill.type){
264
- series.fill = color;
265
- }else{
266
- old = new Color(series.fill);
267
- series.fill = new Color(color);
268
- series.fill.a = old.a;
269
- }
270
- if(!marker.fill || marker.fill.type){
271
- marker.fill = color;
272
- }else{
273
- old = new Color(marker.fill);
274
- marker.fill = new Color(color);
275
- marker.fill.a = old.a;
276
- }
277
- }else{
278
- series = this.seriesThemes ?
279
- merge(this.series, this.seriesThemes[this._current % this.seriesThemes.length]) :
280
- this.series;
281
- marker = this.markerThemes ?
282
- merge(this.marker, this.markerThemes[this._current % this.markerThemes.length]) :
283
- series;
284
- }
285
-
286
- var symbol = marker && marker.symbol || this._markers[this._current % this._markers.length];
287
-
288
- var theme = {series: series, marker: marker, symbol: symbol};
289
-
290
- // advance the counter
291
- ++this._current;
292
-
293
- if(mixin){
294
- theme = this.addMixin(theme, elementType, mixin);
295
- }
296
- if(doPost){
297
- theme = this.post(theme, elementType);
298
- }
299
-
300
- return theme; // Object
301
- },
302
-
303
- skip: function(){
304
- // summary:
305
- // Skip the next internal color.
306
- ++this._current;
307
- },
308
-
309
- addMixin: function(theme, elementType, mixin, doPost){
310
- // summary:
311
- // Add a mixin object to the passed theme and process.
312
- // theme: dojox/charting/SimpleTheme
313
- // The theme to mixin to.
314
- // elementType: String
315
- // The type of element in question. Can be "line", "bar" or "circle"
316
- // mixin: Object|Array
317
- // The object or objects to mix into the theme.
318
- // doPost: Boolean
319
- // If true, run the new theme through the post-processor.
320
- // returns: dojox/charting/SimpleTheme
321
- // The new theme.
322
- if(lang.isArray(mixin)){
323
- arr.forEach(mixin, function(m){
324
- theme = this.addMixin(theme, elementType, m);
325
- }, this);
326
- }else{
327
- var t = {};
328
- if("color" in mixin){
329
- if(elementType == "line" || elementType == "area"){
330
- lang.setObject("series.stroke.color", mixin.color, t);
331
- lang.setObject("marker.stroke.color", mixin.color, t);
332
- }else{
333
- lang.setObject("series.fill", mixin.color, t);
334
- }
335
- }
336
- arr.forEach(["stroke", "outline", "shadow", "fill", "filter", "font", "fontColor", "labelWiring"], function(name){
337
- var markerName = "marker" + name.charAt(0).toUpperCase() + name.substr(1),
338
- b = markerName in mixin;
339
- if(name in mixin){
340
- lang.setObject("series." + name, mixin[name], t);
341
- if(!b){
342
- lang.setObject("marker." + name, mixin[name], t);
343
- }
344
- }
345
- if(b){
346
- lang.setObject("marker." + name, mixin[markerName], t);
347
- }
348
- });
349
- if("marker" in mixin){
350
- t.symbol = mixin.marker;
351
- t.symbol = mixin.marker;
352
- }
353
- theme = dlu.merge(theme, t);
354
- }
355
- if(doPost){
356
- theme = this.post(theme, elementType);
357
- }
358
- return theme; // dojox/charting/SimpleTheme
359
- },
360
-
361
- post: function(theme, elementType){
362
- // summary:
363
- // Process any post-shape fills.
364
- // theme: dojox/charting/SimpleTheme
365
- // The theme to post process with.
366
- // elementType: String
367
- // The type of element being filled. Can be "bar" or "circle".
368
- // returns: dojox/charting/SimpleTheme
369
- // The post-processed theme.
370
- var fill = theme.series.fill, t;
371
- if(!this.noGradConv && this.shapeSpaces[fill.space] && fill.type == "linear"){
372
- if(elementType == "bar"){
373
- // transpose start and end points
374
- t = {
375
- x1: fill.y1,
376
- y1: fill.x1,
377
- x2: fill.y2,
378
- y2: fill.x2
379
- };
380
- }else if(!this.noRadialConv && fill.space == "shape" && (elementType == "slice" || elementType == "circle")){
381
- // switch to radial
382
- t = {
383
- type: "radial",
384
- cx: 0,
385
- cy: 0,
386
- r: 100
387
- };
388
- }
389
- if(t){
390
- return dlu.merge(theme, {series: {fill: t}});
391
- }
392
- }
393
- return theme; // dojox/charting/SimpleTheme
394
- },
395
-
396
- getTick: function(name, mixin){
397
- // summary:
398
- // Calculates and merges tick parameters.
399
- // name: String
400
- // Tick name, can be "major", "minor", or "micro".
401
- // mixin: Object?
402
- // Optional object to mix in to the tick.
403
- var tick = this.axis.tick, tickName = name + "Tick",
404
- merge = dlu.merge;
405
- if(tick){
406
- if(this.axis[tickName]){
407
- tick = merge(tick, this.axis[tickName]);
408
- }
409
- }else{
410
- tick = this.axis[tickName];
411
- }
412
- if(mixin){
413
- if(tick){
414
- if(mixin[tickName]){
415
- tick = merge(tick, mixin[tickName]);
416
- }
417
- }else{
418
- tick = mixin[tickName];
419
- }
420
- }
421
- return tick; // Object
422
- },
423
-
424
- inspectObjects: function(f){
425
- arr.forEach(["chart", "plotarea", "axis", "grid", "series", "marker", "indicator"], function(name){
426
- f(this[name]);
427
- }, this);
428
- if(this.seriesThemes){
429
- arr.forEach(this.seriesThemes, f);
430
- }
431
- if(this.markerThemes){
432
- arr.forEach(this.markerThemes, f);
433
- }
434
- },
435
-
436
- reverseFills: function(){
437
- this.inspectObjects(function(o){
438
- if(o && o.fill){
439
- o.fill = dgg.reverse(o.fill);
440
- }
441
- });
442
- },
443
-
444
- addMarker:function(/*String*/ name, /*String*/ segment){
445
- // summary:
446
- // Add a custom marker to this theme.
447
- // example:
448
- // | myTheme.addMarker("Ellipse", foo);
449
- this.markers[name] = segment;
450
- this._buildMarkerArray();
451
- },
452
-
453
- setMarkers:function(/*Object*/ obj){
454
- // summary:
455
- // Set all the markers of this theme at once. obj should be a
456
- // dictionary of keys and path segments.
457
- //
458
- // example:
459
- // | myTheme.setMarkers({ "CIRCLE": foo });
460
- this.markers = obj;
461
- this._buildMarkerArray();
462
- },
463
-
464
- _buildMarkerArray: function(){
465
- this._markers = [];
466
- for(var p in this.markers){
467
- this._markers.push(this.markers[p]);
468
- }
469
- }
470
- });
471
-
472
- lang.mixin(SimpleTheme, {
473
- defaultMarkers: {
474
- CIRCLE: "m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",
475
- SQUARE: "m-3,-3 l0,6 6,0 0,-6 z",
476
- DIAMOND: "m0,-3 l3,3 -3,3 -3,-3 z",
477
- CROSS: "m0,-3 l0,6 m-3,-3 l6,0",
478
- X: "m-3,-3 l6,6 m0,-6 l-6,6",
479
- TRIANGLE: "m-3,3 l3,-6 3,6 z",
480
- TRIANGLE_INVERTED: "m-3,-3 l3,6 3,-6 z"
481
- },
482
-
483
- defaultColors:[
484
- // gray skies
485
- "#54544c", "#858e94", "#6e767a", "#948585", "#474747"
486
- ],
487
-
488
- defaultTheme: {
489
- // all objects are structs used directly in dojox.gfx
490
- chart:{
491
- stroke: null,
492
- fill: "white",
493
- pageStyle: null,
494
- titleGap: 20,
495
- titlePos: "top",
496
- titleFont: "normal normal bold 14pt Tahoma", // chart title
497
- titleFontColor: "#333"
498
- },
499
- plotarea:{
500
- stroke: null,
501
- fill: "white"
502
- },
503
- // TODO: label rotation on axis
504
- axis:{
505
- stroke: { // the axis itself
506
- color: "#333",
507
- width: 1
508
- },
509
- tick: { // used as a foundation for all ticks
510
- color: "#666",
511
- position: "center",
512
- font: "normal normal normal 7pt Tahoma", // labels on axis
513
- fontColor: "#333", // color of labels
514
- labelGap: 4 // gap between a tick and its label in pixels
515
- },
516
- majorTick: { // major ticks on axis, and used for major gridlines
517
- width: 1,
518
- length: 6
519
- },
520
- minorTick: { // minor ticks on axis, and used for minor gridlines
521
- width: 0.8,
522
- length: 3
523
- },
524
- microTick: { // minor ticks on axis, and used for minor gridlines
525
- width: 0.5,
526
- length: 1
527
- },
528
- title: {
529
- gap: 15,
530
- font: "normal normal normal 11pt Tahoma", // title font
531
- fontColor: "#333", // title font color
532
- orientation: "axis" // "axis": facing the axis, "away": facing away
533
- }
534
- },
535
- series: {
536
- // used as a "main" theme for series, sThemes augment it
537
- stroke: {width: 1.5, color: "#333"}, // line
538
- outline: {width: 0.1, color: "#ccc"}, // outline
539
- //shadow: {dx: 1, dy: 1, width: 2, color: [0, 0, 0, 0.3]},
540
- shadow: null, // no shadow
541
- fill: "#ccc", // fill, if appropriate
542
- font: "normal normal normal 8pt Tahoma", // if there's a label
543
- fontColor: "#000", // color of labels
544
- labelWiring: {width: 1, color: "#ccc"} // connect marker and target data item(slice, column, bar...)
545
- },
546
- marker: { // any markers on a series
547
- stroke: {width: 1.5, color: "#333"}, // stroke
548
- outline: {width: 0.1, color: "#ccc"}, // outline
549
- //shadow: {dx: 1, dy: 1, width: 2, color: [0, 0, 0, 0.3]},
550
- shadow: null, // no shadow
551
- fill: "#ccc", // fill if needed
552
- font: "normal normal normal 8pt Tahoma", // label
553
- fontColor: "#000"
554
- },
555
- indicator: {
556
- lineStroke: {width: 1.5, color: "#333"},
557
- lineOutline: {width: 0.1, color: "#ccc"},
558
- lineShadow: null,
559
- lineFill: null,
560
- stroke: {width: 1.5, color: "#333"},
561
- outline: {width: 0.1, color: "#ccc"},
562
- shadow: null,
563
- fill : "#ccc",
564
- radius: 3,
565
- font: "normal normal normal 10pt Tahoma",
566
- fontColor: "#000",
567
- markerFill: "#ccc",
568
- markerSymbol: "m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",
569
- markerStroke: {width: 1.5, color: "#333"},
570
- markerOutline: {width: 0.1, color: "#ccc"},
571
- markerShadow: null
572
- }
573
- }
574
- });
575
-
576
- return SimpleTheme;
577
- });
@@ -1,42 +0,0 @@
1
- //>>built
2
- define("dojox/charting/Theme",["dojo/_base/lang","dojo/_base/declare","dojo/_base/Color","./SimpleTheme","dojox/color/_base","dojox/color/Palette","dojox/gfx/gradutils"],function(_1,_2,_3,_4,_5,_6){
3
- var _7=_2("dojox.charting.Theme",_4,{});
4
- _1.mixin(_7,{defineColors:function(_8){
5
- _8=_8||{};
6
- var l,c=[],n=_8.num||5;
7
- if(_8.colors){
8
- l=_8.colors.length;
9
- for(var i=0;i<n;i++){
10
- c.push(_8.colors[i%l]);
11
- }
12
- return c;
13
- }
14
- if(_8.hue){
15
- var s=_8.saturation||100,st=_8.low||30,_9=_8.high||90;
16
- l=(_9+st)/2;
17
- return _6.generate(_5.fromHsv(_8.hue,s,l),"monochromatic").colors;
18
- }
19
- if(_8.generator){
20
- return _5.Palette.generate(_8.base,_8.generator).colors;
21
- }
22
- return c;
23
- },generateGradient:function(_a,_b,_c){
24
- var _d=_1.delegate(_a);
25
- _d.colors=[{offset:0,color:_b},{offset:1,color:_c}];
26
- return _d;
27
- },generateHslColor:function(_e,_f){
28
- _e=new _3(_e);
29
- var hsl=_e.toHsl(),_10=_5.fromHsl(hsl.h,hsl.s,_f);
30
- _10.a=_e.a;
31
- return _10;
32
- },generateHslGradient:function(_11,_12,_13,_14){
33
- _11=new _3(_11);
34
- var hsl=_11.toHsl(),_15=_5.fromHsl(hsl.h,hsl.s,_13),_16=_5.fromHsl(hsl.h,hsl.s,_14);
35
- _15.a=_16.a=_11.a;
36
- return _7.generateGradient(_12,_15,_16);
37
- }});
38
- _7.defaultMarkers=_4.defaultMarkers;
39
- _7.defaultColors=_4.defaultColors;
40
- _7.defaultTheme=_4.defaultTheme;
41
- return _7;
42
- });