@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,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
- });