@datagrok/helm 2.3.2 → 2.3.3

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