@datagrok/helm 2.3.2 → 2.3.4

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 (324) hide show
  1. package/CHANGELOG.md +20 -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 +211 -69
  13. package/src/package.ts +10 -71
  14. package/src/tests/findMonomers-tests.ts +2 -1
  15. package/src/tests/get-monomer-tests.ts +1 -49
  16. package/src/tests/helm-input-tests.ts +31 -20
  17. package/src/utils/get-monomer.ts +49 -1
  18. package/src/utils/helm-grid-cell-renderer.ts +8 -9
  19. package/src/utils/index.ts +2 -3
  20. package/src/widgets/helm-input.ts +4 -4
  21. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +63 -0
  22. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +116 -0
  23. package/vendor/dojo-1.10.10/dijit/Destroyable.js +35 -0
  24. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +83 -0
  25. package/vendor/dojo-1.10.10/dijit/Tooltip.js +240 -0
  26. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +612 -0
  27. package/vendor/dojo-1.10.10/dijit/Viewport.js +44 -0
  28. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +87 -0
  29. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +76 -0
  30. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +247 -0
  31. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +94 -0
  32. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +238 -0
  33. package/vendor/dojo-1.10.10/dijit/_Contained.js +17 -0
  34. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +56 -0
  35. package/vendor/dojo-1.10.10/dijit/_Container.js +47 -0
  36. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +108 -0
  37. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +198 -0
  38. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +372 -0
  39. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +11 -0
  40. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +66 -0
  41. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +188 -0
  42. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +472 -0
  43. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +8 -0
  44. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +31 -0
  45. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +90 -0
  46. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +205 -0
  47. package/vendor/dojo-1.10.10/dijit/_Widget.js +66 -0
  48. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +352 -0
  49. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +353 -0
  50. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +1200 -0
  51. package/vendor/dojo-1.10.10/dijit/_base/focus.js +68 -0
  52. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +207 -0
  53. package/vendor/dojo-1.10.10/dijit/_base/manager.js +10 -0
  54. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +35 -0
  55. package/vendor/dojo-1.10.10/dijit/_base/place.js +52 -0
  56. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +131 -0
  57. package/vendor/dojo-1.10.10/dijit/_base/popup.js +23 -0
  58. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +58 -0
  59. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +6 -0
  60. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +22 -0
  61. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +3 -0
  62. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +12 -0
  63. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +3 -0
  64. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +10 -0
  65. package/vendor/dojo-1.10.10/dijit/_base/wai.js +32 -0
  66. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +109 -0
  67. package/vendor/dojo-1.10.10/dijit/_base/window.js +6 -0
  68. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +18 -0
  69. package/vendor/dojo-1.10.10/dijit/_base.js +4 -0
  70. package/vendor/dojo-1.10.10/dijit/a11y.js +109 -0
  71. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +191 -0
  72. package/vendor/dojo-1.10.10/dijit/a11yclick.js +66 -0
  73. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +139 -0
  74. package/vendor/dojo-1.10.10/dijit/focus.js +188 -0
  75. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +371 -0
  76. package/vendor/dojo-1.10.10/dijit/form/Button.js +49 -0
  77. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +130 -0
  78. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +4 -0
  79. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +27 -0
  80. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +21 -0
  81. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +86 -0
  82. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +38 -0
  83. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +102 -0
  84. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +7 -0
  85. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +26 -0
  86. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +50 -0
  87. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +116 -0
  88. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +26 -0
  89. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +81 -0
  90. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +24 -0
  91. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +51 -0
  92. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +22 -0
  93. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +67 -0
  94. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +111 -0
  95. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +254 -0
  96. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +32 -0
  97. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +69 -0
  98. package/vendor/dojo-1.10.10/dijit/hccss.js +9 -0
  99. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +21 -0
  100. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +215 -0
  101. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +550 -0
  102. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +7 -0
  103. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +25 -0
  104. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +235 -0
  105. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +653 -0
  106. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +171 -0
  107. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +411 -0
  108. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +194 -0
  109. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +410 -0
  110. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +99 -0
  111. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +236 -0
  112. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +47 -0
  113. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +190 -0
  114. package/vendor/dojo-1.10.10/dijit/layout/utils.js +77 -0
  115. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +151 -0
  116. package/vendor/dojo-1.10.10/dijit/main.js +4 -0
  117. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +16 -0
  118. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +2 -0
  119. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +21 -0
  120. package/vendor/dojo-1.10.10/dijit/nls/loading.js +2 -0
  121. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +47 -0
  122. package/vendor/dojo-1.10.10/dijit/place.js +142 -0
  123. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +407 -0
  124. package/vendor/dojo-1.10.10/dijit/popup.js +162 -0
  125. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +441 -0
  126. package/vendor/dojo-1.10.10/dijit/registry.js +79 -0
  127. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +159 -0
  128. package/vendor/dojo-1.10.10/dijit/selection.js +364 -0
  129. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +525 -0
  130. package/vendor/dojo-1.10.10/dijit/typematic.js +96 -0
  131. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +211 -0
  132. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +195 -0
  133. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +761 -0
  134. package/vendor/dojo-1.10.10/dojo/Stateful.js +90 -0
  135. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +218 -0
  136. package/vendor/dojo-1.10.10/dojo/_base/url.js +87 -0
  137. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +109 -0
  138. package/vendor/dojo-1.10.10/dojo/cache.js +9 -0
  139. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +7 -0
  140. package/vendor/dojo-1.10.10/dojo/colors.js +74 -0
  141. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +232 -0
  142. package/vendor/dojo-1.10.10/dojo/cookie.js +48 -0
  143. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +98 -0
  144. package/vendor/dojo-1.10.10/dojo/date/stamp.js +82 -0
  145. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +144 -0
  146. package/vendor/dojo-1.10.10/dojo/dojo.js +7 -0
  147. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +18680 -0
  148. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +27 -0
  149. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +101 -0
  150. package/vendor/dojo-1.10.10/dojo/fx/easing.js +165 -0
  151. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +276 -0
  152. package/vendor/dojo-1.10.10/dojo/fx.js +271 -0
  153. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +443 -0
  154. package/vendor/dojo-1.10.10/dojo/hccss.js +26 -0
  155. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +52 -0
  156. package/vendor/dojo-1.10.10/dojo/html.js +161 -0
  157. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +370 -0
  158. package/vendor/dojo-1.10.10/dojo/io/iframe.js +71 -0
  159. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +190 -0
  160. package/vendor/dojo-1.10.10/dojo/io/script.js +112 -0
  161. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +280 -0
  162. package/vendor/dojo-1.10.10/dojo/parser.js +437 -0
  163. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +915 -0
  164. package/vendor/dojo-1.10.10/dojo/promise/all.js +59 -0
  165. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +77 -0
  166. package/vendor/dojo-1.10.10/dojo/regexp.js +32 -0
  167. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +70 -0
  168. package/vendor/dojo-1.10.10/dojo/request/iframe.js +291 -0
  169. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +438 -0
  170. package/vendor/dojo-1.10.10/dojo/request/script.js +129 -0
  171. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +237 -0
  172. package/vendor/dojo-1.10.10/dojo/require.js +11 -0
  173. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +7 -0
  174. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  175. package/vendor/dojo-1.10.10/dojo/string.js +67 -0
  176. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +181 -0
  177. package/vendor/dojo-1.10.10/dojo/touch.js +191 -0
  178. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +468 -0
  179. package/vendor/dojo-1.10.10/dojo/uacss.js +36 -0
  180. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +85 -0
  181. package/vendor/dojo-1.10.10/dojo/window.js +141 -0
  182. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +241 -0
  183. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +626 -0
  184. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +1220 -0
  185. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +5 -0
  186. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +16 -0
  187. package/vendor/dojo-1.10.10/dojox/charting/Element.js +247 -0
  188. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +402 -0
  189. package/vendor/dojo-1.10.10/dojox/charting/Series.js +24 -0
  190. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +58 -0
  191. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +191 -0
  192. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +577 -0
  193. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +42 -0
  194. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +120 -0
  195. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +11 -0
  196. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +36 -0
  197. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +77 -0
  198. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +144 -0
  199. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +58 -0
  200. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +123 -0
  201. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +54 -0
  202. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +124 -0
  203. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +28 -0
  204. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +74 -0
  205. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +116 -0
  206. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +178 -0
  207. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +24 -0
  208. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +83 -0
  209. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +557 -0
  210. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +980 -0
  211. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +65 -0
  212. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +224 -0
  213. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +91 -0
  214. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +164 -0
  215. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +7 -0
  216. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +14 -0
  217. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +168 -0
  218. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +311 -0
  219. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +61 -0
  220. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +161 -0
  221. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +141 -0
  222. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +242 -0
  223. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +126 -0
  224. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +243 -0
  225. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +108 -0
  226. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +290 -0
  227. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +13 -0
  228. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +14 -0
  229. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +13 -0
  230. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +14 -0
  231. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +153 -0
  232. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +249 -0
  233. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +253 -0
  234. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +472 -0
  235. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +182 -0
  236. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +356 -0
  237. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +6 -0
  238. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +12 -0
  239. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +6 -0
  240. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +12 -0
  241. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +7 -0
  242. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +13 -0
  243. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +110 -0
  244. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +208 -0
  245. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +303 -0
  246. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +547 -0
  247. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +134 -0
  248. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +207 -0
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +299 -0
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +537 -0
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +24 -0
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +44 -0
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +7 -0
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +14 -0
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +22 -0
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +33 -0
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +20 -0
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +31 -0
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +6 -0
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +12 -0
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +68 -0
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +120 -0
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +209 -0
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +214 -0
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +76 -0
  266. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +77 -0
  267. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +59 -0
  268. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +70 -0
  269. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +220 -0
  270. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +262 -0
  271. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +23 -0
  272. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +36 -0
  273. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +39 -0
  274. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +106 -0
  275. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +5 -0
  276. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +12 -0
  277. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +4 -0
  278. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +3 -0
  279. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +102 -0
  280. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +165 -0
  281. package/vendor/dojo-1.10.10/dojox/color/Palette.js +163 -0
  282. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +460 -0
  283. package/vendor/dojo-1.10.10/dojox/color/_base.js +174 -0
  284. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +196 -0
  285. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +297 -0
  286. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +350 -0
  287. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +63 -0
  288. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +91 -0
  289. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +170 -0
  290. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +501 -0
  291. package/vendor/dojo-1.10.10/dojox/gfx/path.js +319 -0
  292. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +478 -0
  293. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +459 -0
  294. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +1091 -0
  295. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +662 -0
  296. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +1023 -0
  297. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +199 -0
  298. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +322 -0
  299. package/vendor/dojo-1.10.10/dojox/gfx.js +2 -0
  300. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +1136 -0
  301. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +151 -0
  302. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +169 -0
  303. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +93 -0
  304. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +125 -0
  305. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +81 -0
  306. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +132 -0
  307. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +54 -0
  308. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +78 -0
  309. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +61 -0
  310. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +77 -0
  311. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +87 -0
  312. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +107 -0
  313. package/vendor/dojo-1.10.10/dojox/lang/functional.js +4 -0
  314. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +3 -0
  315. package/vendor/dojo-1.10.10/dojox/lang/utils.js +86 -0
  316. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +121 -0
  317. package/vendor/dojo-1.10.10/dojox/main.js +4 -0
  318. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +14 -0
  319. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +112 -0
  320. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +208 -0
  321. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +62 -0
  322. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +344 -0
  323. package/vendor/dojo-1.10.10/dojox/storage/manager.js +110 -0
  324. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +263 -0
@@ -0,0 +1,350 @@
1
+ define("dojox/gfx/fx", ["dojo/_base/lang", "./_base", "./matrix", "dojo/_base/Color", "dojo/_base/array", "dojo/_base/fx", "dojo/_base/connect", "dojo/sniff"],
2
+ function(lang, g, m, Color, arr, fx, Hub, has){
3
+ var fxg = g.fx = {};
4
+
5
+ // Generic interpolators. Should they be moved to dojox.fx?
6
+
7
+ function InterpolNumber(start, end){
8
+ this.start = start, this.end = end;
9
+ }
10
+ InterpolNumber.prototype.getValue = function(r){
11
+ return (this.end - this.start) * r + this.start;
12
+ };
13
+
14
+ function InterpolUnit(start, end, units){
15
+ this.start = start, this.end = end;
16
+ this.units = units;
17
+ }
18
+ InterpolUnit.prototype.getValue = function(r){
19
+ return (this.end - this.start) * r + this.start + this.units;
20
+ };
21
+
22
+ function InterpolColor(start, end){
23
+ this.start = start, this.end = end;
24
+ this.temp = new Color();
25
+ }
26
+ InterpolColor.prototype.getValue = function(r){
27
+ return Color.blendColors(this.start, this.end, r, this.temp);
28
+ };
29
+
30
+ function InterpolValues(values){
31
+ this.values = values;
32
+ this.length = values.length;
33
+ }
34
+ InterpolValues.prototype.getValue = function(r){
35
+ return this.values[Math.min(Math.floor(r * this.length), this.length - 1)];
36
+ };
37
+
38
+ function InterpolObject(values, def){
39
+ this.values = values;
40
+ this.def = def ? def : {};
41
+ }
42
+ InterpolObject.prototype.getValue = function(r){
43
+ var ret = lang.clone(this.def);
44
+ for(var i in this.values){
45
+ ret[i] = this.values[i].getValue(r);
46
+ }
47
+ return ret;
48
+ };
49
+
50
+ function InterpolTransform(stack, original){
51
+ this.stack = stack;
52
+ this.original = original;
53
+ }
54
+ InterpolTransform.prototype.getValue = function(r){
55
+ var ret = [];
56
+ arr.forEach(this.stack, function(t){
57
+ if(t instanceof m.Matrix2D){
58
+ ret.push(t);
59
+ return;
60
+ }
61
+ if(t.name == "original" && this.original){
62
+ ret.push(this.original);
63
+ return;
64
+ }
65
+ // Adding support for custom matrices
66
+ if(t.name == "matrix"){
67
+ if((t.start instanceof m.Matrix2D) && (t.end instanceof m.Matrix2D)){
68
+ var transfMatrix = new m.Matrix2D();
69
+ for(var p in t.start) {
70
+ transfMatrix[p] = (t.end[p] - t.start[p])*r + t.start[p];
71
+ }
72
+ ret.push(transfMatrix);
73
+ }
74
+ return;
75
+ }
76
+ if(!(t.name in m)){ return; }
77
+ var f = m[t.name];
78
+ if(typeof f != "function"){
79
+ // constant
80
+ ret.push(f);
81
+ return;
82
+ }
83
+ var val = arr.map(t.start, function(v, i){
84
+ return (t.end[i] - v) * r + v;
85
+ }),
86
+ matrix = f.apply(m, val);
87
+ if(matrix instanceof m.Matrix2D){
88
+ ret.push(matrix);
89
+ }
90
+ }, this);
91
+ return ret;
92
+ };
93
+
94
+ var transparent = new Color(0, 0, 0, 0);
95
+
96
+ function getColorInterpol(prop, obj, name, def){
97
+ if(prop.values){
98
+ return new InterpolValues(prop.values);
99
+ }
100
+ var value, start, end;
101
+ if(prop.start){
102
+ start = g.normalizeColor(prop.start);
103
+ }else{
104
+ start = value = obj ? (name ? obj[name] : obj) : def;
105
+ }
106
+ if(prop.end){
107
+ end = g.normalizeColor(prop.end);
108
+ }else{
109
+ if(!value){
110
+ value = obj ? (name ? obj[name] : obj) : def;
111
+ }
112
+ end = value;
113
+ }
114
+ return new InterpolColor(start, end);
115
+ }
116
+
117
+ function getNumberInterpol(prop, obj, name, def){
118
+ if(prop.values){
119
+ return new InterpolValues(prop.values);
120
+ }
121
+ var value, start, end;
122
+ if(prop.start){
123
+ start = prop.start;
124
+ }else{
125
+ start = value = obj ? obj[name] : def;
126
+ }
127
+ if(prop.end){
128
+ end = prop.end;
129
+ }else{
130
+ if(typeof value != "number"){
131
+ value = obj ? obj[name] : def;
132
+ }
133
+ end = value;
134
+ }
135
+ return new InterpolNumber(start, end);
136
+ }
137
+
138
+ fxg.animateStroke = function(/*Object*/ args){
139
+ // summary:
140
+ // Returns an animation which will change stroke properties over time.
141
+ // args:
142
+ // an object defining the animation setting.
143
+ // example:
144
+ // | fxg.animateStroke{{
145
+ // | shape: shape,
146
+ // | duration: 500,
147
+ // | color: {start: "red", end: "green"},
148
+ // | width: {end: 15},
149
+ // | join: {values: ["miter", "bevel", "round"]}
150
+ // | }).play();
151
+ if(!args.easing){ args.easing = fx._defaultEasing; }
152
+ var anim = new fx.Animation(args), shape = args.shape, stroke;
153
+ Hub.connect(anim, "beforeBegin", anim, function(){
154
+ stroke = shape.getStroke();
155
+ var prop = args.color, values = {}, value, start, end;
156
+ if(prop){
157
+ values.color = getColorInterpol(prop, stroke, "color", transparent);
158
+ }
159
+ prop = args.style;
160
+ if(prop && prop.values){
161
+ values.style = new InterpolValues(prop.values);
162
+ }
163
+ prop = args.width;
164
+ if(prop){
165
+ values.width = getNumberInterpol(prop, stroke, "width", 1);
166
+ }
167
+ prop = args.cap;
168
+ if(prop && prop.values){
169
+ values.cap = new InterpolValues(prop.values);
170
+ }
171
+ prop = args.join;
172
+ if(prop){
173
+ if(prop.values){
174
+ values.join = new InterpolValues(prop.values);
175
+ }else{
176
+ start = prop.start ? prop.start : (stroke && stroke.join || 0);
177
+ end = prop.end ? prop.end : (stroke && stroke.join || 0);
178
+ if(typeof start == "number" && typeof end == "number"){
179
+ values.join = new InterpolNumber(start, end);
180
+ }
181
+ }
182
+ }
183
+ this.curve = new InterpolObject(values, stroke);
184
+ });
185
+ Hub.connect(anim, "onAnimate", shape, "setStroke");
186
+ return anim; // dojo.Animation
187
+ };
188
+
189
+ fxg.animateFill = function(/*Object*/ args){
190
+ // summary:
191
+ // Returns an animation which will change fill color over time.
192
+ // Only solid fill color is supported at the moment
193
+ // args:
194
+ // an object defining the animation setting.
195
+ // example:
196
+ // | gfx.animateFill{{
197
+ // | shape: shape,
198
+ // | duration: 500,
199
+ // | color: {start: "red", end: "green"}
200
+ // | }).play();
201
+ if(!args.easing){ args.easing = fx._defaultEasing; }
202
+ var anim = new fx.Animation(args), shape = args.shape, fill;
203
+ Hub.connect(anim, "beforeBegin", anim, function(){
204
+ fill = shape.getFill();
205
+ var prop = args.color, values = {};
206
+ if(prop){
207
+ this.curve = getColorInterpol(prop, fill, "", transparent);
208
+ }
209
+ });
210
+ Hub.connect(anim, "onAnimate", shape, "setFill");
211
+ return anim; // dojo.Animation
212
+ };
213
+
214
+ fxg.animateFont = function(/*Object*/ args){
215
+ // summary:
216
+ // Returns an animation which will change font properties over time.
217
+ // args:
218
+ // an object defining the animation setting.
219
+ // example:
220
+ // | gfx.animateFont{{
221
+ // | shape: shape,
222
+ // | duration: 500,
223
+ // | variant: {values: ["normal", "small-caps"]},
224
+ // | size: {end: 10, units: "pt"}
225
+ // | }).play();
226
+ if(!args.easing){ args.easing = fx._defaultEasing; }
227
+ var anim = new fx.Animation(args), shape = args.shape, font;
228
+ Hub.connect(anim, "beforeBegin", anim, function(){
229
+ font = shape.getFont();
230
+ var prop = args.style, values = {}, value, start, end;
231
+ if(prop && prop.values){
232
+ values.style = new InterpolValues(prop.values);
233
+ }
234
+ prop = args.variant;
235
+ if(prop && prop.values){
236
+ values.variant = new InterpolValues(prop.values);
237
+ }
238
+ prop = args.weight;
239
+ if(prop && prop.values){
240
+ values.weight = new InterpolValues(prop.values);
241
+ }
242
+ prop = args.family;
243
+ if(prop && prop.values){
244
+ values.family = new InterpolValues(prop.values);
245
+ }
246
+ prop = args.size;
247
+ if(prop && prop.units){
248
+ start = parseFloat(prop.start ? prop.start : (shape.font && shape.font.size || "0"));
249
+ end = parseFloat(prop.end ? prop.end : (shape.font && shape.font.size || "0"));
250
+ values.size = new InterpolUnit(start, end, prop.units);
251
+ }
252
+ this.curve = new InterpolObject(values, font);
253
+ });
254
+ Hub.connect(anim, "onAnimate", shape, "setFont");
255
+ return anim; // dojo.Animation
256
+ };
257
+
258
+ fxg.animateTransform = function(/*Object*/ args){
259
+ // summary:
260
+ // Returns an animation which will change transformation over time.
261
+ // args:
262
+ // an object defining the animation setting.
263
+ // example:
264
+ // | gfx.animateTransform{{
265
+ // | shape: shape,
266
+ // | duration: 500,
267
+ // | transform: [
268
+ // | {name: "translate", start: [0, 0], end: [200, 200]},
269
+ // | {name: "original"}
270
+ // | ]
271
+ // | }).play();
272
+ if(!args.easing){ args.easing = fx._defaultEasing; }
273
+ var anim = new fx.Animation(args), shape = args.shape, original;
274
+ Hub.connect(anim, "beforeBegin", anim, function(){
275
+ original = shape.getTransform();
276
+ this.curve = new InterpolTransform(args.transform, original);
277
+ });
278
+ Hub.connect(anim, "onAnimate", shape, "setTransform");
279
+ if(g.renderer === "svg" && (has("ie") >= 9 || has("ff"))){
280
+ // fix http://bugs.dojotoolkit.org/ticket/16879
281
+ var handlers = [
282
+ Hub.connect(anim, "onBegin", anim, function(){
283
+ var parent = shape.getParent();
284
+ while(parent && parent.getParent){
285
+ parent = parent.getParent();
286
+ }
287
+ if(parent){
288
+ shape.__svgContainer = parent.rawNode.parentNode;
289
+ shape.__svgRoot = parent.rawNode;
290
+ if(shape.__svgRoot && shape.__svgRoot.getAttribute){
291
+ shape.__svgWidth = parseInt(shape.__svgRoot.getAttribute("width"), 10);
292
+ if(isNaN(shape.__svgWidth)){
293
+ delete shape.__svgWidth;
294
+ }
295
+ }
296
+ }
297
+ }),
298
+ Hub.connect(anim, "onAnimate", anim, function(){
299
+ try{
300
+ if(shape.__svgContainer){
301
+ var ov = shape.__svgContainer.style.visibility;
302
+ shape.__svgContainer.style.visibility = "visible";
303
+ var pokeNode = shape.__svgContainer.offsetHeight;
304
+ shape.__svgContainer.style.visibility = ov;
305
+ var width = shape.__svgWidth;
306
+ if(!isNaN(width)){
307
+ try{
308
+ shape.__svgRoot.setAttribute("width", width - 0.000005);
309
+ shape.__svgRoot.setAttribute("width", width);
310
+ }catch(ignore){}
311
+ }
312
+ }
313
+ }catch(e){}
314
+ }),
315
+ Hub.connect(anim, "onEnd", anim, function(){
316
+ arr.forEach(handlers, Hub.disconnect);
317
+ if(shape.__svgContainer){
318
+ var sn = shape.__svgContainer;
319
+ if(sn.getAttribute("__gotVis") == null){
320
+ sn.setAttribute("__gotVis", true);
321
+ var ov = shape.__svgContainer.style.visibility;
322
+ var root = shape.__svgRoot;
323
+ var width = shape.__svgWidth;
324
+ sn.style.visibility = "visible";
325
+ setTimeout(function(){
326
+ try{
327
+ sn.style.visibility = ov;
328
+ sn.removeAttribute("__gotVis");
329
+ sn = null;
330
+ try{
331
+ if(!isNaN(width)){
332
+ root.setAttribute("width", width - 0.000005);
333
+ root.setAttribute("width", width);
334
+ }
335
+ }catch(ignore){}
336
+ }catch(e){}
337
+ },100);
338
+ }
339
+ }
340
+ delete shape.__svgContainer;
341
+ delete shape.__svgRoot;
342
+ delete shape.__svgWidth;
343
+ })
344
+ ];
345
+ }
346
+ return anim; // dojo.Animation
347
+ };
348
+
349
+ return fxg;
350
+ });
@@ -0,0 +1,63 @@
1
+ //>>built
2
+ define("dojox/gfx/gradutils",["./_base","dojo/_base/lang","./matrix","dojo/_base/Color"],function(g,_1,m,_2){
3
+ var _3=g.gradutils={};
4
+ function _4(o,c){
5
+ if(o<=0){
6
+ return c[0].color;
7
+ }
8
+ var _5=c.length;
9
+ if(o>=1){
10
+ return c[_5-1].color;
11
+ }
12
+ for(var i=0;i<_5;++i){
13
+ var _6=c[i];
14
+ if(_6.offset>=o){
15
+ if(i){
16
+ var _7=c[i-1];
17
+ return _2.blendColors(new _2(_7.color),new _2(_6.color),(o-_7.offset)/(_6.offset-_7.offset));
18
+ }
19
+ return _6.color;
20
+ }
21
+ }
22
+ return c[_5-1].color;
23
+ };
24
+ _3.getColor=function(_8,pt){
25
+ var o;
26
+ if(_8){
27
+ switch(_8.type){
28
+ case "linear":
29
+ var _9=Math.atan2(_8.y2-_8.y1,_8.x2-_8.x1),_a=m.rotate(-_9),_b=m.project(_8.x2-_8.x1,_8.y2-_8.y1),p=m.multiplyPoint(_b,pt),_c=m.multiplyPoint(_b,_8.x1,_8.y1),_d=m.multiplyPoint(_b,_8.x2,_8.y2),_e=m.multiplyPoint(_a,_d.x-_c.x,_d.y-_c.y).x;
30
+ o=m.multiplyPoint(_a,p.x-_c.x,p.y-_c.y).x/_e;
31
+ break;
32
+ case "radial":
33
+ var dx=pt.x-_8.cx,dy=pt.y-_8.cy;
34
+ o=Math.sqrt(dx*dx+dy*dy)/_8.r;
35
+ break;
36
+ }
37
+ return _4(o,_8.colors);
38
+ }
39
+ return new _2(_8||[0,0,0,0]);
40
+ };
41
+ _3.reverse=function(_f){
42
+ if(_f){
43
+ switch(_f.type){
44
+ case "linear":
45
+ case "radial":
46
+ _f=_1.delegate(_f);
47
+ if(_f.colors){
48
+ var c=_f.colors,l=c.length,i=0,_10,n=_f.colors=new Array(c.length);
49
+ for(;i<l;++i){
50
+ _10=c[i];
51
+ n[i]={offset:1-_10.offset,color:_10.color};
52
+ }
53
+ n.sort(function(a,b){
54
+ return a.offset-b.offset;
55
+ });
56
+ }
57
+ break;
58
+ }
59
+ }
60
+ return _f;
61
+ };
62
+ return _3;
63
+ });
@@ -0,0 +1,91 @@
1
+ // Various generic utilities to deal with a linear gradient
2
+
3
+ define("dojox/gfx/gradutils", ["./_base", "dojo/_base/lang", "./matrix", "dojo/_base/Color"],
4
+ function(g, lang, m, Color){
5
+
6
+ var gradutils = g.gradutils = {};
7
+
8
+ function findColor(o, c){
9
+ if(o <= 0){
10
+ return c[0].color;
11
+ }
12
+ var len = c.length;
13
+ if(o >= 1){
14
+ return c[len - 1].color;
15
+ }
16
+ //TODO: use binary search
17
+ for(var i = 0; i < len; ++i){
18
+ var stop = c[i];
19
+ if(stop.offset >= o){
20
+ if(i){
21
+ var prev = c[i - 1];
22
+ return Color.blendColors(new Color(prev.color), new Color(stop.color),
23
+ (o - prev.offset) / (stop.offset - prev.offset));
24
+ }
25
+ return stop.color;
26
+ }
27
+ }
28
+ return c[len - 1].color;
29
+ }
30
+
31
+ gradutils.getColor = function(fill, pt){
32
+ // summary:
33
+ // sample a color from a gradient using a point
34
+ // fill: Object
35
+ // fill object
36
+ // pt: dojox/gfx.Point
37
+ // point where to sample a color
38
+ var o;
39
+ if(fill){
40
+ switch(fill.type){
41
+ case "linear":
42
+ var angle = Math.atan2(fill.y2 - fill.y1, fill.x2 - fill.x1),
43
+ rotation = m.rotate(-angle),
44
+ projection = m.project(fill.x2 - fill.x1, fill.y2 - fill.y1),
45
+ p = m.multiplyPoint(projection, pt),
46
+ pf1 = m.multiplyPoint(projection, fill.x1, fill.y1),
47
+ pf2 = m.multiplyPoint(projection, fill.x2, fill.y2),
48
+ scale = m.multiplyPoint(rotation, pf2.x - pf1.x, pf2.y - pf1.y).x;
49
+ o = m.multiplyPoint(rotation, p.x - pf1.x, p.y - pf1.y).x / scale;
50
+ break;
51
+ case "radial":
52
+ var dx = pt.x - fill.cx, dy = pt.y - fill.cy;
53
+ o = Math.sqrt(dx * dx + dy * dy) / fill.r;
54
+ break;
55
+ }
56
+ return findColor(o, fill.colors); // dojo/_base/Color
57
+ }
58
+ // simple color
59
+ return new Color(fill || [0, 0, 0, 0]); // dojo/_base/Color
60
+ };
61
+
62
+ gradutils.reverse = function(fill){
63
+ // summary:
64
+ // reverses a gradient
65
+ // fill: Object
66
+ // fill object
67
+ if(fill){
68
+ switch(fill.type){
69
+ case "linear":
70
+ case "radial":
71
+ fill = lang.delegate(fill);
72
+ if(fill.colors){
73
+ var c = fill.colors, l = c.length, i = 0, stop,
74
+ n = fill.colors = new Array(c.length);
75
+ for(; i < l; ++i){
76
+ stop = c[i];
77
+ n[i] = {
78
+ offset: 1 - stop.offset,
79
+ color: stop.color
80
+ };
81
+ }
82
+ n.sort(function(a, b){ return a.offset - b.offset; });
83
+ }
84
+ break;
85
+ }
86
+ }
87
+ return fill; // Object
88
+ };
89
+
90
+ return gradutils;
91
+ });
@@ -0,0 +1,170 @@
1
+ //>>built
2
+ define("dojox/gfx/matrix",["./_base","dojo/_base/lang"],function(g,_1){
3
+ var m=g.matrix={};
4
+ var _2={};
5
+ m._degToRad=function(_3){
6
+ return _2[_3]||(_2[_3]=(Math.PI*_3/180));
7
+ };
8
+ m._radToDeg=function(_4){
9
+ return _4/Math.PI*180;
10
+ };
11
+ m.Matrix2D=function(_5){
12
+ if(_5){
13
+ if(typeof _5=="number"){
14
+ this.xx=this.yy=_5;
15
+ }else{
16
+ if(_5 instanceof Array){
17
+ if(_5.length>0){
18
+ var _6=m.normalize(_5[0]);
19
+ for(var i=1;i<_5.length;++i){
20
+ var l=_6,r=m.normalize(_5[i]);
21
+ _6=new m.Matrix2D();
22
+ _6.xx=l.xx*r.xx+l.xy*r.yx;
23
+ _6.xy=l.xx*r.xy+l.xy*r.yy;
24
+ _6.yx=l.yx*r.xx+l.yy*r.yx;
25
+ _6.yy=l.yx*r.xy+l.yy*r.yy;
26
+ _6.dx=l.xx*r.dx+l.xy*r.dy+l.dx;
27
+ _6.dy=l.yx*r.dx+l.yy*r.dy+l.dy;
28
+ }
29
+ _1.mixin(this,_6);
30
+ }
31
+ }else{
32
+ _1.mixin(this,_5);
33
+ }
34
+ }
35
+ }
36
+ };
37
+ _1.extend(m.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0});
38
+ _1.mixin(m,{identity:new m.Matrix2D(),flipX:new m.Matrix2D({xx:-1}),flipY:new m.Matrix2D({yy:-1}),flipXY:new m.Matrix2D({xx:-1,yy:-1}),translate:function(a,b){
39
+ if(arguments.length>1){
40
+ return new m.Matrix2D({dx:a,dy:b});
41
+ }
42
+ return new m.Matrix2D({dx:a.x,dy:a.y});
43
+ },scale:function(a,b){
44
+ if(arguments.length>1){
45
+ return new m.Matrix2D({xx:a,yy:b});
46
+ }
47
+ if(typeof a=="number"){
48
+ return new m.Matrix2D({xx:a,yy:a});
49
+ }
50
+ return new m.Matrix2D({xx:a.x,yy:a.y});
51
+ },rotate:function(_7){
52
+ var c=Math.cos(_7);
53
+ var s=Math.sin(_7);
54
+ return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});
55
+ },rotateg:function(_8){
56
+ return m.rotate(m._degToRad(_8));
57
+ },skewX:function(_9){
58
+ return new m.Matrix2D({xy:Math.tan(_9)});
59
+ },skewXg:function(_a){
60
+ return m.skewX(m._degToRad(_a));
61
+ },skewY:function(_b){
62
+ return new m.Matrix2D({yx:Math.tan(_b)});
63
+ },skewYg:function(_c){
64
+ return m.skewY(m._degToRad(_c));
65
+ },reflect:function(a,b){
66
+ if(arguments.length==1){
67
+ b=a.y;
68
+ a=a.x;
69
+ }
70
+ var a2=a*a,b2=b*b,n2=a2+b2,xy=2*a*b/n2;
71
+ return new m.Matrix2D({xx:2*a2/n2-1,xy:xy,yx:xy,yy:2*b2/n2-1});
72
+ },project:function(a,b){
73
+ if(arguments.length==1){
74
+ b=a.y;
75
+ a=a.x;
76
+ }
77
+ var a2=a*a,b2=b*b,n2=a2+b2,xy=a*b/n2;
78
+ return new m.Matrix2D({xx:a2/n2,xy:xy,yx:xy,yy:b2/n2});
79
+ },normalize:function(_d){
80
+ return (_d instanceof m.Matrix2D)?_d:new m.Matrix2D(_d);
81
+ },isIdentity:function(_e){
82
+ return _e.xx==1&&_e.xy==0&&_e.yx==0&&_e.yy==1&&_e.dx==0&&_e.dy==0;
83
+ },clone:function(_f){
84
+ var obj=new m.Matrix2D();
85
+ for(var i in _f){
86
+ if(typeof (_f[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_f[i]){
87
+ obj[i]=_f[i];
88
+ }
89
+ }
90
+ return obj;
91
+ },invert:function(_10){
92
+ var M=m.normalize(_10),D=M.xx*M.yy-M.xy*M.yx;
93
+ M=new m.Matrix2D({xx:M.yy/D,xy:-M.xy/D,yx:-M.yx/D,yy:M.xx/D,dx:(M.xy*M.dy-M.yy*M.dx)/D,dy:(M.yx*M.dx-M.xx*M.dy)/D});
94
+ return M;
95
+ },_multiplyPoint:function(_11,x,y){
96
+ return {x:_11.xx*x+_11.xy*y+_11.dx,y:_11.yx*x+_11.yy*y+_11.dy};
97
+ },multiplyPoint:function(_12,a,b){
98
+ var M=m.normalize(_12);
99
+ if(typeof a=="number"&&typeof b=="number"){
100
+ return m._multiplyPoint(M,a,b);
101
+ }
102
+ return m._multiplyPoint(M,a.x,a.y);
103
+ },multiplyRectangle:function(_13,_14){
104
+ var M=m.normalize(_13);
105
+ _14=_14||{x:0,y:0,width:0,height:0};
106
+ if(m.isIdentity(M)){
107
+ return {x:_14.x,y:_14.y,width:_14.width,height:_14.height};
108
+ }
109
+ var p0=m.multiplyPoint(M,_14.x,_14.y),p1=m.multiplyPoint(M,_14.x,_14.y+_14.height),p2=m.multiplyPoint(M,_14.x+_14.width,_14.y),p3=m.multiplyPoint(M,_14.x+_14.width,_14.y+_14.height),_15=Math.min(p0.x,p1.x,p2.x,p3.x),_16=Math.min(p0.y,p1.y,p2.y,p3.y),_17=Math.max(p0.x,p1.x,p2.x,p3.x),_18=Math.max(p0.y,p1.y,p2.y,p3.y);
110
+ return {x:_15,y:_16,width:_17-_15,height:_18-_16};
111
+ },multiply:function(_19){
112
+ var M=m.normalize(_19);
113
+ for(var i=1;i<arguments.length;++i){
114
+ var l=M,r=m.normalize(arguments[i]);
115
+ M=new m.Matrix2D();
116
+ M.xx=l.xx*r.xx+l.xy*r.yx;
117
+ M.xy=l.xx*r.xy+l.xy*r.yy;
118
+ M.yx=l.yx*r.xx+l.yy*r.yx;
119
+ M.yy=l.yx*r.xy+l.yy*r.yy;
120
+ M.dx=l.xx*r.dx+l.xy*r.dy+l.dx;
121
+ M.dy=l.yx*r.dx+l.yy*r.dy+l.dy;
122
+ }
123
+ return M;
124
+ },_sandwich:function(_1a,x,y){
125
+ return m.multiply(m.translate(x,y),_1a,m.translate(-x,-y));
126
+ },scaleAt:function(a,b,c,d){
127
+ switch(arguments.length){
128
+ case 4:
129
+ return m._sandwich(m.scale(a,b),c,d);
130
+ case 3:
131
+ if(typeof c=="number"){
132
+ return m._sandwich(m.scale(a),b,c);
133
+ }
134
+ return m._sandwich(m.scale(a,b),c.x,c.y);
135
+ }
136
+ return m._sandwich(m.scale(a),b.x,b.y);
137
+ },rotateAt:function(_1b,a,b){
138
+ if(arguments.length>2){
139
+ return m._sandwich(m.rotate(_1b),a,b);
140
+ }
141
+ return m._sandwich(m.rotate(_1b),a.x,a.y);
142
+ },rotategAt:function(_1c,a,b){
143
+ if(arguments.length>2){
144
+ return m._sandwich(m.rotateg(_1c),a,b);
145
+ }
146
+ return m._sandwich(m.rotateg(_1c),a.x,a.y);
147
+ },skewXAt:function(_1d,a,b){
148
+ if(arguments.length>2){
149
+ return m._sandwich(m.skewX(_1d),a,b);
150
+ }
151
+ return m._sandwich(m.skewX(_1d),a.x,a.y);
152
+ },skewXgAt:function(_1e,a,b){
153
+ if(arguments.length>2){
154
+ return m._sandwich(m.skewXg(_1e),a,b);
155
+ }
156
+ return m._sandwich(m.skewXg(_1e),a.x,a.y);
157
+ },skewYAt:function(_1f,a,b){
158
+ if(arguments.length>2){
159
+ return m._sandwich(m.skewY(_1f),a,b);
160
+ }
161
+ return m._sandwich(m.skewY(_1f),a.x,a.y);
162
+ },skewYgAt:function(_20,a,b){
163
+ if(arguments.length>2){
164
+ return m._sandwich(m.skewYg(_20),a,b);
165
+ }
166
+ return m._sandwich(m.skewYg(_20),a.x,a.y);
167
+ }});
168
+ g.Matrix2D=m.Matrix2D;
169
+ return m;
170
+ });