@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,5 +0,0 @@
1
- //>>built
2
- define("dojox/charting/Chart2D",["dojo/_base/kernel","dojo/_base/lang","..","./Chart","./axis2d/Default","./axis2d/Invisible","./plot2d/Default","./plot2d/Lines","./plot2d/Areas","./plot2d/Markers","./plot2d/MarkersOnly","./plot2d/Scatter","./plot2d/Stacked","./plot2d/StackedLines","./plot2d/StackedAreas","./plot2d/Columns","./plot2d/StackedColumns","./plot2d/ClusteredColumns","./plot2d/Bars","./plot2d/StackedBars","./plot2d/ClusteredBars","./plot2d/Grid","./plot2d/Pie","./plot2d/Bubble","./plot2d/Candlesticks","./plot2d/OHLC","./plot2d/Spider"],function(_1,_2,_3,_4){
3
- _1.deprecated("dojox.charting.Chart2D","Use dojox.charting.Chart instead and require all other components explicitly","2.0");
4
- return _2.setObject("dojox.charting.Chart2D",_4);
5
- });
@@ -1,16 +0,0 @@
1
- define("dojox/charting/Chart2D", ["dojo/_base/kernel", "dojo/_base/lang", "..", "./Chart",
2
- "./axis2d/Default", "./axis2d/Invisible", "./plot2d/Default", "./plot2d/Lines", "./plot2d/Areas",
3
- "./plot2d/Markers", "./plot2d/MarkersOnly", "./plot2d/Scatter", "./plot2d/Stacked", "./plot2d/StackedLines",
4
- "./plot2d/StackedAreas", "./plot2d/Columns", "./plot2d/StackedColumns", "./plot2d/ClusteredColumns",
5
- "./plot2d/Bars", "./plot2d/StackedBars", "./plot2d/ClusteredBars", "./plot2d/Grid", "./plot2d/Pie",
6
- "./plot2d/Bubble", "./plot2d/Candlesticks", "./plot2d/OHLC", "./plot2d/Spider"],
7
- function(kernel, lang, dojox, Chart){
8
- kernel.deprecated("dojox.charting.Chart2D", "Use dojox.charting.Chart instead and require all other components explicitly", "2.0");
9
- // module:
10
- // dojox/charting/Chart2D
11
- // summary:
12
- // This is a compatibility module which loads all charting modules that used to be automatically
13
- // loaded in versions prior to 1.6. It is highly recommended for performance reasons that
14
- // this module no longer be referenced by applications. Instead, use dojox/charting/Chart.
15
- return lang.setObject("dojox.charting.Chart2D", Chart);
16
- });
@@ -1,247 +0,0 @@
1
- //>>built
2
- define("dojox/charting/Element",["dojo/_base/array","dojo/dom-construct","dojo/_base/declare","dojox/gfx","dojox/gfx/shape"],function(_1,_2,_3,_4,_5){
3
- return _3("dojox.charting.Element",null,{chart:null,group:null,htmlElements:null,dirty:true,renderingOptions:null,constructor:function(_6,_7){
4
- this.chart=_6;
5
- this.group=null;
6
- this.htmlElements=[];
7
- this.dirty=true;
8
- this.trailingSymbol="...";
9
- this._events=[];
10
- if(_7&&_7.renderingOptions){
11
- this.renderingOptions=_7.renderingOptions;
12
- }
13
- },purgeGroup:function(){
14
- this.destroyHtmlElements();
15
- if(this.group){
16
- this.getGroup().removeShape();
17
- var _8=this.getGroup().children;
18
- if(_5.dispose){
19
- for(var i=0;i<_8.length;++i){
20
- _5.dispose(_8[i],true);
21
- }
22
- }
23
- if(this.getGroup().rawNode){
24
- _2.empty(this.getGroup().rawNode);
25
- }
26
- this.getGroup().clear();
27
- if(_5.dispose){
28
- _5.dispose(this.getGroup(),true);
29
- }
30
- if(this.getGroup()!=this.group){
31
- if(this.group.rawNode){
32
- _2.empty(this.group.rawNode);
33
- }
34
- this.group.clear();
35
- if(_5.dispose){
36
- _5.dispose(this.group,true);
37
- }
38
- }
39
- this.group=null;
40
- }
41
- this.dirty=true;
42
- if(this._events.length){
43
- _1.forEach(this._events,function(_9){
44
- _9.shape.disconnect(_9.handle);
45
- });
46
- this._events=[];
47
- }
48
- return this;
49
- },cleanGroup:function(_a){
50
- this.destroyHtmlElements();
51
- if(!_a){
52
- _a=this.chart.surface;
53
- }
54
- if(this.group){
55
- var _b;
56
- var _c=this.getGroup().children;
57
- if(_5.dispose){
58
- for(var i=0;i<_c.length;++i){
59
- _5.dispose(_c[i],true);
60
- }
61
- }
62
- if(this.getGroup().rawNode){
63
- _b=this.getGroup().bgNode;
64
- _2.empty(this.getGroup().rawNode);
65
- }
66
- this.getGroup().clear();
67
- if(_b){
68
- this.getGroup().rawNode.appendChild(_b);
69
- }
70
- }else{
71
- this.group=_a.createGroup();
72
- if(this.renderingOptions&&this.group.rawNode&&this.group.rawNode.namespaceURI=="http://www.w3.org/2000/svg"){
73
- for(var _d in this.renderingOptions){
74
- this.group.rawNode.setAttribute(_d,this.renderingOptions[_d]);
75
- }
76
- }
77
- }
78
- this.dirty=true;
79
- return this;
80
- },getGroup:function(){
81
- return this.group;
82
- },destroyHtmlElements:function(){
83
- if(this.htmlElements.length){
84
- _1.forEach(this.htmlElements,_2.destroy);
85
- this.htmlElements=[];
86
- }
87
- },destroy:function(){
88
- this.purgeGroup();
89
- },getTextWidth:function(s,_e){
90
- return _4._base._getTextBox(s,{font:_e}).w||0;
91
- },getTextWithLimitLength:function(s,_f,_10,_11){
92
- if(!s||s.length<=0){
93
- return {text:"",truncated:_11||false};
94
- }
95
- if(!_10||_10<=0){
96
- return {text:s,truncated:_11||false};
97
- }
98
- var _12=2,_13=0.618,_14=s.substring(0,1)+this.trailingSymbol,_15=this.getTextWidth(_14,_f);
99
- if(_10<=_15){
100
- return {text:_14,truncated:true};
101
- }
102
- var _16=this.getTextWidth(s,_f);
103
- if(_16<=_10){
104
- return {text:s,truncated:_11||false};
105
- }else{
106
- var _17=0,end=s.length;
107
- while(_17<end){
108
- if(end-_17<=_12){
109
- while(this.getTextWidth(s.substring(0,_17)+this.trailingSymbol,_f)>_10){
110
- _17-=1;
111
- }
112
- return {text:(s.substring(0,_17)+this.trailingSymbol),truncated:true};
113
- }
114
- var _18=_17+Math.round((end-_17)*_13),_19=this.getTextWidth(s.substring(0,_18),_f);
115
- if(_19<_10){
116
- _17=_18;
117
- end=end;
118
- }else{
119
- _17=_17;
120
- end=_18;
121
- }
122
- }
123
- }
124
- },getTextWithLimitCharCount:function(s,_1a,_1b,_1c){
125
- if(!s||s.length<=0){
126
- return {text:"",truncated:_1c||false};
127
- }
128
- if(!_1b||_1b<=0||s.length<=_1b){
129
- return {text:s,truncated:_1c||false};
130
- }
131
- return {text:s.substring(0,_1b)+this.trailingSymbol,truncated:true};
132
- },_plotFill:function(_1d,dim,_1e){
133
- if(!_1d||!_1d.type||!_1d.space){
134
- return _1d;
135
- }
136
- var _1f=_1d.space,_20;
137
- switch(_1d.type){
138
- case "linear":
139
- if(_1f==="plot"||_1f==="shapeX"||_1f==="shapeY"){
140
- _1d=_4.makeParameters(_4.defaultLinearGradient,_1d);
141
- _1d.space=_1f;
142
- if(_1f==="plot"||_1f==="shapeX"){
143
- _20=dim.height-_1e.t-_1e.b;
144
- _1d.y1=_1e.t+_20*_1d.y1/100;
145
- _1d.y2=_1e.t+_20*_1d.y2/100;
146
- }
147
- if(_1f==="plot"||_1f==="shapeY"){
148
- _20=dim.width-_1e.l-_1e.r;
149
- _1d.x1=_1e.l+_20*_1d.x1/100;
150
- _1d.x2=_1e.l+_20*_1d.x2/100;
151
- }
152
- }
153
- break;
154
- case "radial":
155
- if(_1f==="plot"){
156
- _1d=_4.makeParameters(_4.defaultRadialGradient,_1d);
157
- _1d.space=_1f;
158
- var _21=dim.width-_1e.l-_1e.r,_22=dim.height-_1e.t-_1e.b;
159
- _1d.cx=_1e.l+_21*_1d.cx/100;
160
- _1d.cy=_1e.t+_22*_1d.cy/100;
161
- _1d.r=_1d.r*Math.sqrt(_21*_21+_22*_22)/200;
162
- }
163
- break;
164
- case "pattern":
165
- if(_1f==="plot"||_1f==="shapeX"||_1f==="shapeY"){
166
- _1d=_4.makeParameters(_4.defaultPattern,_1d);
167
- _1d.space=_1f;
168
- if(_1f==="plot"||_1f==="shapeX"){
169
- _20=dim.height-_1e.t-_1e.b;
170
- _1d.y=_1e.t+_20*_1d.y/100;
171
- _1d.height=_20*_1d.height/100;
172
- }
173
- if(_1f==="plot"||_1f==="shapeY"){
174
- _20=dim.width-_1e.l-_1e.r;
175
- _1d.x=_1e.l+_20*_1d.x/100;
176
- _1d.width=_20*_1d.width/100;
177
- }
178
- }
179
- break;
180
- }
181
- return _1d;
182
- },_shapeFill:function(_23,_24){
183
- if(!_23||!_23.space){
184
- return _23;
185
- }
186
- var _25=_23.space,_26;
187
- switch(_23.type){
188
- case "linear":
189
- if(_25==="shape"||_25==="shapeX"||_25==="shapeY"){
190
- _23=_4.makeParameters(_4.defaultLinearGradient,_23);
191
- _23.space=_25;
192
- if(_25==="shape"||_25==="shapeX"){
193
- _26=_24.width;
194
- _23.x1=_24.x+_26*_23.x1/100;
195
- _23.x2=_24.x+_26*_23.x2/100;
196
- }
197
- if(_25==="shape"||_25==="shapeY"){
198
- _26=_24.height;
199
- _23.y1=_24.y+_26*_23.y1/100;
200
- _23.y2=_24.y+_26*_23.y2/100;
201
- }
202
- }
203
- break;
204
- case "radial":
205
- if(_25==="shape"){
206
- _23=_4.makeParameters(_4.defaultRadialGradient,_23);
207
- _23.space=_25;
208
- _23.cx=_24.x+_24.width/2;
209
- _23.cy=_24.y+_24.height/2;
210
- _23.r=_23.r*_24.width/200;
211
- }
212
- break;
213
- case "pattern":
214
- if(_25==="shape"||_25==="shapeX"||_25==="shapeY"){
215
- _23=_4.makeParameters(_4.defaultPattern,_23);
216
- _23.space=_25;
217
- if(_25==="shape"||_25==="shapeX"){
218
- _26=_24.width;
219
- _23.x=_24.x+_26*_23.x/100;
220
- _23.width=_26*_23.width/100;
221
- }
222
- if(_25==="shape"||_25==="shapeY"){
223
- _26=_24.height;
224
- _23.y=_24.y+_26*_23.y/100;
225
- _23.height=_26*_23.height/100;
226
- }
227
- }
228
- break;
229
- }
230
- return _23;
231
- },_pseudoRadialFill:function(_27,_28,_29,_2a,end){
232
- if(!_27||_27.type!=="radial"||_27.space!=="shape"){
233
- return _27;
234
- }
235
- var _2b=_27.space;
236
- _27=_4.makeParameters(_4.defaultRadialGradient,_27);
237
- _27.space=_2b;
238
- if(arguments.length<4){
239
- _27.cx=_28.x;
240
- _27.cy=_28.y;
241
- _27.r=_27.r*_29/100;
242
- return _27;
243
- }
244
- var _2c=arguments.length<5?_2a:(end+_2a)/2;
245
- return {type:"linear",x1:_28.x,y1:_28.y,x2:_28.x+_27.r*_29*Math.cos(_2c)/100,y2:_28.y+_27.r*_29*Math.sin(_2c)/100,colors:_27.colors};
246
- }});
247
- });
@@ -1,402 +0,0 @@
1
- define("dojox/charting/Element", ["dojo/_base/array", "dojo/dom-construct","dojo/_base/declare", "dojox/gfx", "dojox/gfx/shape"],
2
- function(arr, domConstruct, declare, gfx, shape){
3
-
4
- return declare("dojox.charting.Element", null, {
5
- // summary:
6
- // A base class that is used to build other elements of a chart, such as
7
- // a series.
8
- // chart: dojox/charting/Chart
9
- // The parent chart for this element.
10
- // group: dojox/gfx/shape.Group
11
- // The visual GFX group representing this element.
12
- // htmlElement: Array
13
- // Any DOMNodes used as a part of this element (such as HTML-based labels).
14
- // dirty: Boolean
15
- // A flag indicating whether or not this element needs to be rendered.
16
-
17
- chart: null,
18
- group: null,
19
- htmlElements: null,
20
- dirty: true,
21
- renderingOptions: null,
22
-
23
- constructor: function(chart, kwArgs){
24
- // summary:
25
- // Creates a new charting element.
26
- // chart: dojox/charting/Chart
27
- // The chart that this element belongs to.
28
- this.chart = chart;
29
- this.group = null;
30
- this.htmlElements = [];
31
- this.dirty = true;
32
- this.trailingSymbol = "...";
33
- this._events = [];
34
- if (kwArgs && kwArgs.renderingOptions) {
35
- this.renderingOptions = kwArgs.renderingOptions;
36
- }
37
- },
38
- purgeGroup: function(){
39
- // summary:
40
- // Clear any elements out of our group, and destroy the group.
41
- // returns: dojox/charting/Element
42
- // A reference to this object for functional chaining.
43
- this.destroyHtmlElements();
44
- if(this.group){
45
- // since 1.7.x we need dispose shape otherwise there is a memoryleak
46
- this.getGroup().removeShape();
47
- var children = this.getGroup().children;
48
- // starting with 1.9 the registry is optional and thus dispose is
49
- if(shape.dispose){
50
- for(var i = 0; i < children.length;++i){
51
- shape.dispose(children[i], true);
52
- }
53
- }
54
- if(this.getGroup().rawNode){
55
- domConstruct.empty(this.getGroup().rawNode);
56
- }
57
- this.getGroup().clear();
58
- // starting with 1.9 the registry is optional and thus dispose is
59
- if(shape.dispose){
60
- shape.dispose(this.getGroup(), true);
61
- }
62
- if(this.getGroup() != this.group){
63
- // we do have an intermediary clipping group (see CartesianBase)
64
- if(this.group.rawNode){
65
- domConstruct.empty(this.group.rawNode);
66
- }
67
- this.group.clear();
68
- // starting with 1.9 the registry is optional and thus dispose is
69
- if(shape.dispose){
70
- shape.dispose(this.group, true);
71
- }
72
- }
73
- this.group = null;
74
- }
75
- this.dirty = true;
76
- if(this._events.length){
77
- arr.forEach(this._events, function(item){
78
- item.shape.disconnect(item.handle);
79
- });
80
- this._events = [];
81
- }
82
- return this; // dojox.charting.Element
83
- },
84
- cleanGroup: function(creator){
85
- // summary:
86
- // Clean any elements (HTML or GFX-based) out of our group, and create a new one.
87
- // creator: dojox/gfx/shape.Surface?
88
- // An optional surface to work with.
89
- // returns: dojox/charting/Element
90
- // A reference to this object for functional chaining.
91
- this.destroyHtmlElements();
92
- if(!creator){ creator = this.chart.surface; }
93
- if(this.group){
94
- var bgnode;
95
- var children = this.getGroup().children;
96
- // starting with 1.9 the registry is optional and thus dispose is
97
- if(shape.dispose){
98
- for(var i = 0; i < children.length;++i){
99
- shape.dispose(children[i], true);
100
- }
101
- }
102
- if(this.getGroup().rawNode){
103
- bgnode = this.getGroup().bgNode;
104
- domConstruct.empty(this.getGroup().rawNode);
105
- }
106
- this.getGroup().clear();
107
- if(bgnode){
108
- this.getGroup().rawNode.appendChild(bgnode);
109
- }
110
- }else{
111
- this.group = creator.createGroup();
112
- // in some cases we have a rawNode but this is not an actual DOM element (CanvasWithEvents) so check
113
- // the actual rawNode type.
114
- if (this.renderingOptions && this.group.rawNode &&
115
- this.group.rawNode.namespaceURI == "http://www.w3.org/2000/svg") {
116
- for (var key in this.renderingOptions) {
117
- this.group.rawNode.setAttribute(key, this.renderingOptions[key]);
118
- }
119
- }
120
- }
121
- this.dirty = true;
122
- return this; // dojox.charting.Element
123
- },
124
- getGroup: function(){
125
- return this.group;
126
- },
127
- destroyHtmlElements: function(){
128
- // summary:
129
- // Destroy any DOMNodes that may have been created as a part of this element.
130
- if(this.htmlElements.length){
131
- arr.forEach(this.htmlElements, domConstruct.destroy);
132
- this.htmlElements = [];
133
- }
134
- },
135
- destroy: function(){
136
- // summary:
137
- // API addition to conform to the rest of the Dojo Toolkit's standard.
138
- this.purgeGroup();
139
- },
140
- //text utilities
141
- getTextWidth: function(s, font){
142
- return gfx._base._getTextBox(s, {font: font}).w || 0;
143
- },
144
- getTextWithLimitLength: function(s, font, limitWidth, truncated){
145
- // summary:
146
- // Get the truncated string based on the limited width in px(dichotomy algorithm)
147
- // s: String?
148
- // candidate text.
149
- // font: String?
150
- // text's font style.
151
- // limitWidth: Number?
152
- // text limited width in px.
153
- // truncated: Boolean?
154
- // whether the input text(s) has already been truncated.
155
- // returns: Object
156
- // | {
157
- // | text: processed text, maybe truncated or not,
158
- // | truncated: whether text has been truncated
159
- // | }
160
- if(!s || s.length <= 0){
161
- return {
162
- text: "",
163
- truncated: truncated || false
164
- };
165
- }
166
- if(!limitWidth || limitWidth <= 0){
167
- return {
168
- text: s,
169
- truncated: truncated || false
170
- };
171
- }
172
- var delta = 2,
173
- //golden section for dichotomy algorithm
174
- trucPercentage = 0.618,
175
- minStr = s.substring(0,1) + this.trailingSymbol,
176
- minWidth = this.getTextWidth(minStr, font);
177
- if(limitWidth <= minWidth){
178
- return {
179
- text: minStr,
180
- truncated: true
181
- };
182
- }
183
- var width = this.getTextWidth(s, font);
184
- if(width <= limitWidth){
185
- return {
186
- text: s,
187
- truncated: truncated || false
188
- };
189
- }else{
190
- var begin = 0,
191
- end = s.length;
192
- while(begin < end){
193
- if(end - begin <= delta ){
194
- while (this.getTextWidth(s.substring(0, begin) + this.trailingSymbol, font) > limitWidth) {
195
- begin -= 1;
196
- }
197
- return {
198
- text: (s.substring(0,begin) + this.trailingSymbol),
199
- truncated: true
200
- };
201
- }
202
- var index = begin + Math.round((end - begin) * trucPercentage),
203
- widthIntercepted = this.getTextWidth(s.substring(0, index), font);
204
- if(widthIntercepted < limitWidth){
205
- begin = index;
206
- end = end;
207
- }else{
208
- begin = begin;
209
- end = index;
210
- }
211
- }
212
- }
213
- },
214
- getTextWithLimitCharCount: function(s, font, wcLimit, truncated){
215
- // summary:
216
- // Get the truncated string based on the limited character count(dichotomy algorithm)
217
- // s: String?
218
- // candidate text.
219
- // font: String?
220
- // text's font style.
221
- // wcLimit: Number?
222
- // text limited character count.
223
- // truncated: Boolean?
224
- // whether the input text(s) has already been truncated.
225
- // returns: Object
226
- // | {
227
- // | text: processed text, maybe truncated or not,
228
- // | truncated: whether text has been truncated
229
- // | }
230
- if (!s || s.length <= 0) {
231
- return {
232
- text: "",
233
- truncated: truncated || false
234
- };
235
- }
236
- if(!wcLimit || wcLimit <= 0 || s.length <= wcLimit){
237
- return {
238
- text: s,
239
- truncated: truncated || false
240
- };
241
- }
242
- return {
243
- text: s.substring(0, wcLimit) + this.trailingSymbol,
244
- truncated: true
245
- };
246
- },
247
- // fill utilities
248
- _plotFill: function(fill, dim, offsets){
249
- // process a plot-wide fill
250
- if(!fill || !fill.type || !fill.space){
251
- return fill;
252
- }
253
- var space = fill.space, span;
254
- switch(fill.type){
255
- case "linear":
256
- if(space === "plot" || space === "shapeX" || space === "shapeY"){
257
- // clone a fill so we can modify properly directly
258
- fill = gfx.makeParameters(gfx.defaultLinearGradient, fill);
259
- fill.space = space;
260
- // process dimensions
261
- if(space === "plot" || space === "shapeX"){
262
- // process Y
263
- span = dim.height - offsets.t - offsets.b;
264
- fill.y1 = offsets.t + span * fill.y1 / 100;
265
- fill.y2 = offsets.t + span * fill.y2 / 100;
266
- }
267
- if(space === "plot" || space === "shapeY"){
268
- // process X
269
- span = dim.width - offsets.l - offsets.r;
270
- fill.x1 = offsets.l + span * fill.x1 / 100;
271
- fill.x2 = offsets.l + span * fill.x2 / 100;
272
- }
273
- }
274
- break;
275
- case "radial":
276
- if(space === "plot"){
277
- // this one is used exclusively for scatter charts
278
- // clone a fill so we can modify properly directly
279
- fill = gfx.makeParameters(gfx.defaultRadialGradient, fill);
280
- fill.space = space;
281
- // process both dimensions
282
- var spanX = dim.width - offsets.l - offsets.r,
283
- spanY = dim.height - offsets.t - offsets.b;
284
- fill.cx = offsets.l + spanX * fill.cx / 100;
285
- fill.cy = offsets.t + spanY * fill.cy / 100;
286
- fill.r = fill.r * Math.sqrt(spanX * spanX + spanY * spanY) / 200;
287
- }
288
- break;
289
- case "pattern":
290
- if(space === "plot" || space === "shapeX" || space === "shapeY"){
291
- // clone a fill so we can modify properly directly
292
- fill = gfx.makeParameters(gfx.defaultPattern, fill);
293
- fill.space = space;
294
- // process dimensions
295
- if(space === "plot" || space === "shapeX"){
296
- // process Y
297
- span = dim.height - offsets.t - offsets.b;
298
- fill.y = offsets.t + span * fill.y / 100;
299
- fill.height = span * fill.height / 100;
300
- }
301
- if(space === "plot" || space === "shapeY"){
302
- // process X
303
- span = dim.width - offsets.l - offsets.r;
304
- fill.x = offsets.l + span * fill.x / 100;
305
- fill.width = span * fill.width / 100;
306
- }
307
- }
308
- break;
309
- }
310
- return fill;
311
- },
312
- _shapeFill: function(fill, bbox){
313
- // process shape-specific fill
314
- if(!fill || !fill.space){
315
- return fill;
316
- }
317
- var space = fill.space, span;
318
- switch(fill.type){
319
- case "linear":
320
- if(space === "shape" || space === "shapeX" || space === "shapeY"){
321
- // clone a fill so we can modify properly directly
322
- fill = gfx.makeParameters(gfx.defaultLinearGradient, fill);
323
- fill.space = space;
324
- // process dimensions
325
- if(space === "shape" || space === "shapeX"){
326
- // process X
327
- span = bbox.width;
328
- fill.x1 = bbox.x + span * fill.x1 / 100;
329
- fill.x2 = bbox.x + span * fill.x2 / 100;
330
- }
331
- if(space === "shape" || space === "shapeY"){
332
- // process Y
333
- span = bbox.height;
334
- fill.y1 = bbox.y + span * fill.y1 / 100;
335
- fill.y2 = bbox.y + span * fill.y2 / 100;
336
- }
337
- }
338
- break;
339
- case "radial":
340
- if(space === "shape"){
341
- // this one is used exclusively for bubble charts and pie charts
342
- // clone a fill so we can modify properly directly
343
- fill = gfx.makeParameters(gfx.defaultRadialGradient, fill);
344
- fill.space = space;
345
- // process both dimensions
346
- fill.cx = bbox.x + bbox.width / 2;
347
- fill.cy = bbox.y + bbox.height / 2;
348
- fill.r = fill.r * bbox.width / 200;
349
- }
350
- break;
351
- case "pattern":
352
- if(space === "shape" || space === "shapeX" || space === "shapeY"){
353
- // clone a fill so we can modify properly directly
354
- fill = gfx.makeParameters(gfx.defaultPattern, fill);
355
- fill.space = space;
356
- // process dimensions
357
- if(space === "shape" || space === "shapeX"){
358
- // process X
359
- span = bbox.width;
360
- fill.x = bbox.x + span * fill.x / 100;
361
- fill.width = span * fill.width / 100;
362
- }
363
- if(space === "shape" || space === "shapeY"){
364
- // process Y
365
- span = bbox.height;
366
- fill.y = bbox.y + span * fill.y / 100;
367
- fill.height = span * fill.height / 100;
368
- }
369
- }
370
- break;
371
- }
372
- return fill;
373
- },
374
- _pseudoRadialFill: function(fill, center, radius, start, end){
375
- // process pseudo-radial fills
376
- if(!fill || fill.type !== "radial" || fill.space !== "shape"){
377
- return fill;
378
- }
379
- // clone and normalize fill
380
- var space = fill.space;
381
- fill = gfx.makeParameters(gfx.defaultRadialGradient, fill);
382
- fill.space = space;
383
- if(arguments.length < 4){
384
- // process both dimensions
385
- fill.cx = center.x;
386
- fill.cy = center.y;
387
- fill.r = fill.r * radius / 100;
388
- return fill;
389
- }
390
- // convert to a linear gradient
391
- var angle = arguments.length < 5 ? start : (end + start) / 2;
392
- return {
393
- type: "linear",
394
- x1: center.x,
395
- y1: center.y,
396
- x2: center.x + fill.r * radius * Math.cos(angle) / 100,
397
- y2: center.y + fill.r * radius * Math.sin(angle) / 100,
398
- colors: fill.colors
399
- };
400
- }
401
- });
402
- });
@@ -1,24 +0,0 @@
1
- //>>built
2
- define("dojox/charting/Series",["dojo/_base/lang","dojo/_base/declare","./Element"],function(_1,_2,_3){
3
- return _2("dojox.charting.Series",_3,{constructor:function(_4,_5,_6){
4
- _1.mixin(this,_6);
5
- if(typeof this.plot!="string"){
6
- this.plot="default";
7
- }
8
- this.update(_5);
9
- },clear:function(){
10
- this.dyn={};
11
- },update:function(_7){
12
- if(_1.isArray(_7)){
13
- this.data=_7;
14
- }else{
15
- this.source=_7;
16
- this.data=this.source.data;
17
- if(this.source.setSeriesObject){
18
- this.source.setSeriesObject(this);
19
- }
20
- }
21
- this.dirty=true;
22
- this.clear();
23
- }});
24
- });