@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.
- package/CHANGELOG.md +12 -0
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +4 -4
- package/src/cell-renderer.ts +5 -4
- package/src/helm-helper.ts +6 -6
- package/src/helm-monomer-placer.ts +1 -1
- package/src/helm-web-editor.ts +5 -5
- package/src/package-test.ts +0 -1
- package/src/package-utils.ts +228 -69
- package/src/package.ts +7 -69
- package/src/tests/findMonomers-tests.ts +2 -1
- package/src/tests/get-monomer-tests.ts +1 -49
- package/src/utils/get-monomer.ts +49 -1
- package/src/utils/helm-grid-cell-renderer.ts +8 -9
- package/src/utils/index.ts +2 -3
- package/src/widgets/helm-input.ts +4 -4
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +63 -0
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +116 -0
- package/vendor/dojo-1.10.10/dijit/Destroyable.js +35 -0
- package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +83 -0
- package/vendor/dojo-1.10.10/dijit/Tooltip.js +240 -0
- package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +612 -0
- package/vendor/dojo-1.10.10/dijit/Viewport.js +44 -0
- package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +87 -0
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js +76 -0
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +247 -0
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +94 -0
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +238 -0
- package/vendor/dojo-1.10.10/dijit/_Contained.js +17 -0
- package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +56 -0
- package/vendor/dojo-1.10.10/dijit/_Container.js +47 -0
- package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +108 -0
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +198 -0
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +372 -0
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +11 -0
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +66 -0
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +188 -0
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +472 -0
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +8 -0
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +31 -0
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +90 -0
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +205 -0
- package/vendor/dojo-1.10.10/dijit/_Widget.js +66 -0
- package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +352 -0
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +353 -0
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +1200 -0
- package/vendor/dojo-1.10.10/dijit/_base/focus.js +68 -0
- package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +207 -0
- package/vendor/dojo-1.10.10/dijit/_base/manager.js +10 -0
- package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +35 -0
- package/vendor/dojo-1.10.10/dijit/_base/place.js +52 -0
- package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +131 -0
- package/vendor/dojo-1.10.10/dijit/_base/popup.js +23 -0
- package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +58 -0
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js +6 -0
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +22 -0
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js +3 -0
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js +3 -0
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +10 -0
- package/vendor/dojo-1.10.10/dijit/_base/wai.js +32 -0
- package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +109 -0
- package/vendor/dojo-1.10.10/dijit/_base/window.js +6 -0
- package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +18 -0
- package/vendor/dojo-1.10.10/dijit/_base.js +4 -0
- package/vendor/dojo-1.10.10/dijit/a11y.js +109 -0
- package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +191 -0
- package/vendor/dojo-1.10.10/dijit/a11yclick.js +66 -0
- package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +139 -0
- package/vendor/dojo-1.10.10/dijit/focus.js +188 -0
- package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +371 -0
- package/vendor/dojo-1.10.10/dijit/form/Button.js +49 -0
- package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +130 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +4 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +27 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +21 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +86 -0
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +38 -0
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +102 -0
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +7 -0
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +26 -0
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +50 -0
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +116 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +26 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +81 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +24 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +51 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +22 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +67 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +111 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +254 -0
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +32 -0
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +69 -0
- package/vendor/dojo-1.10.10/dijit/hccss.js +9 -0
- package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +21 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +215 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +550 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +7 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +25 -0
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +235 -0
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +653 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +171 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +411 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js +194 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +410 -0
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +99 -0
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +236 -0
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +47 -0
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +190 -0
- package/vendor/dojo-1.10.10/dijit/layout/utils.js +77 -0
- package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +151 -0
- package/vendor/dojo-1.10.10/dijit/main.js +4 -0
- package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +16 -0
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +2 -0
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +21 -0
- package/vendor/dojo-1.10.10/dijit/nls/loading.js +2 -0
- package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +47 -0
- package/vendor/dojo-1.10.10/dijit/place.js +142 -0
- package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +407 -0
- package/vendor/dojo-1.10.10/dijit/popup.js +162 -0
- package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +441 -0
- package/vendor/dojo-1.10.10/dijit/registry.js +79 -0
- package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +159 -0
- package/vendor/dojo-1.10.10/dijit/selection.js +364 -0
- package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +525 -0
- package/vendor/dojo-1.10.10/dijit/typematic.js +96 -0
- package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +211 -0
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +195 -0
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +761 -0
- package/vendor/dojo-1.10.10/dojo/Stateful.js +90 -0
- package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +218 -0
- package/vendor/dojo-1.10.10/dojo/_base/url.js +87 -0
- package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +109 -0
- package/vendor/dojo-1.10.10/dojo/cache.js +9 -0
- package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +7 -0
- package/vendor/dojo-1.10.10/dojo/colors.js +74 -0
- package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +232 -0
- package/vendor/dojo-1.10.10/dojo/cookie.js +48 -0
- package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +98 -0
- package/vendor/dojo-1.10.10/dojo/date/stamp.js +82 -0
- package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +144 -0
- package/vendor/dojo-1.10.10/dojo/dojo.js +7 -0
- package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +18680 -0
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +27 -0
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +101 -0
- package/vendor/dojo-1.10.10/dojo/fx/easing.js +165 -0
- package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +276 -0
- package/vendor/dojo-1.10.10/dojo/fx.js +271 -0
- package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +443 -0
- package/vendor/dojo-1.10.10/dojo/hccss.js +26 -0
- package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +52 -0
- package/vendor/dojo-1.10.10/dojo/html.js +161 -0
- package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +370 -0
- package/vendor/dojo-1.10.10/dojo/io/iframe.js +71 -0
- package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +190 -0
- package/vendor/dojo-1.10.10/dojo/io/script.js +112 -0
- package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +280 -0
- package/vendor/dojo-1.10.10/dojo/parser.js +437 -0
- package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +915 -0
- package/vendor/dojo-1.10.10/dojo/promise/all.js +59 -0
- package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +77 -0
- package/vendor/dojo-1.10.10/dojo/regexp.js +32 -0
- package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +70 -0
- package/vendor/dojo-1.10.10/dojo/request/iframe.js +291 -0
- package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +438 -0
- package/vendor/dojo-1.10.10/dojo/request/script.js +129 -0
- package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +237 -0
- package/vendor/dojo-1.10.10/dojo/require.js +11 -0
- package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +7 -0
- package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
- package/vendor/dojo-1.10.10/dojo/string.js +67 -0
- package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +181 -0
- package/vendor/dojo-1.10.10/dojo/touch.js +191 -0
- package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +468 -0
- package/vendor/dojo-1.10.10/dojo/uacss.js +36 -0
- package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +85 -0
- package/vendor/dojo-1.10.10/dojo/window.js +141 -0
- package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +241 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js +626 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +1220 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +5 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +16 -0
- package/vendor/dojo-1.10.10/dojox/charting/Element.js +247 -0
- package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +402 -0
- package/vendor/dojo-1.10.10/dojox/charting/Series.js +24 -0
- package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +58 -0
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +191 -0
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +577 -0
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js +42 -0
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +120 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +11 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +36 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +77 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +144 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +58 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +123 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +54 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +124 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +28 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +74 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +116 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +178 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +24 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +83 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +557 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +980 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +65 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +224 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +91 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +164 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +7 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +168 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +311 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +61 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +161 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +141 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +242 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +126 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +243 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +108 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +290 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +13 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +13 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +153 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +249 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +253 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +472 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +182 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +356 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +6 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +6 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +7 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +13 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +110 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +208 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +303 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +547 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +134 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +207 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +299 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +537 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +24 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +44 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +7 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +22 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +33 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +20 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +31 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +6 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +68 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +120 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +209 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +214 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +76 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +77 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +59 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +70 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +220 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +262 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +23 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +36 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +39 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +106 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +5 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +4 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +3 -0
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +102 -0
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +165 -0
- package/vendor/dojo-1.10.10/dojox/color/Palette.js +163 -0
- package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +460 -0
- package/vendor/dojo-1.10.10/dojox/color/_base.js +174 -0
- package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +196 -0
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js +297 -0
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +350 -0
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +63 -0
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +91 -0
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +170 -0
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +501 -0
- package/vendor/dojo-1.10.10/dojox/gfx/path.js +319 -0
- package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +478 -0
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js +459 -0
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +1091 -0
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js +662 -0
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +1023 -0
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js +199 -0
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +322 -0
- package/vendor/dojo-1.10.10/dojox/gfx.js +2 -0
- package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +1136 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +151 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +169 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +93 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +125 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +81 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +132 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +54 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +78 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +61 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +77 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +87 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +107 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional.js +4 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +3 -0
- package/vendor/dojo-1.10.10/dojox/lang/utils.js +86 -0
- package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +121 -0
- package/vendor/dojo-1.10.10/dojox/main.js +4 -0
- package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +112 -0
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +208 -0
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js +62 -0
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +344 -0
- package/vendor/dojo-1.10.10/dojox/storage/manager.js +110 -0
- package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +263 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
define("dojox/charting/Theme", ["dojo/_base/lang", "dojo/_base/declare", "dojo/_base/Color", "./SimpleTheme",
|
|
2
|
+
"dojox/color/_base", "dojox/color/Palette", "dojox/gfx/gradutils"],
|
|
3
|
+
function(lang, declare, Color, SimpleTheme, colorX, Palette){
|
|
4
|
+
|
|
5
|
+
var Theme = declare("dojox.charting.Theme", SimpleTheme, {
|
|
6
|
+
// summary:
|
|
7
|
+
// A Theme is a pre-defined object, primarily JSON-based, that makes up the definitions to
|
|
8
|
+
// style a chart. It extends SimpleTheme with additional features like color definition by
|
|
9
|
+
// palettes and gradients definition.
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
/*=====
|
|
13
|
+
var __DefineColorArgs = {
|
|
14
|
+
// summary:
|
|
15
|
+
// The arguments object that can be passed to define colors for a theme.
|
|
16
|
+
// num: Number?
|
|
17
|
+
// The number of colors to generate. Defaults to 5.
|
|
18
|
+
// colors: String[]|dojo/_base/Color[]?
|
|
19
|
+
// A pre-defined set of colors; this is passed through to the Theme directly.
|
|
20
|
+
// hue: Number?
|
|
21
|
+
// A hue to base the generated colors from (a number from 0 - 359).
|
|
22
|
+
// saturation: Number?
|
|
23
|
+
// If a hue is passed, this is used for the saturation value (0 - 100).
|
|
24
|
+
// low: Number?
|
|
25
|
+
// An optional value to determine the lowest value used to generate a color (HSV model)
|
|
26
|
+
// high: Number?
|
|
27
|
+
// An optional value to determine the highest value used to generate a color (HSV model)
|
|
28
|
+
// base: String|dojo/_base/Color?
|
|
29
|
+
// A base color to use if we are defining colors using dojox.color.Palette
|
|
30
|
+
// generator: String?
|
|
31
|
+
// The generator function name from dojox/color/Palette.
|
|
32
|
+
};
|
|
33
|
+
=====*/
|
|
34
|
+
lang.mixin(Theme, {
|
|
35
|
+
|
|
36
|
+
defineColors: function(kwArgs){
|
|
37
|
+
// summary:
|
|
38
|
+
// Generate a set of colors for the theme based on keyword
|
|
39
|
+
// arguments.
|
|
40
|
+
// kwArgs: __DefineColorArgs
|
|
41
|
+
// The arguments object used to define colors.
|
|
42
|
+
// returns: dojo/_base/Color[]
|
|
43
|
+
// An array of colors for use in a theme.
|
|
44
|
+
//
|
|
45
|
+
// example:
|
|
46
|
+
// | var colors = Theme.defineColors({
|
|
47
|
+
// | base: "#369",
|
|
48
|
+
// | generator: "compound"
|
|
49
|
+
// | });
|
|
50
|
+
//
|
|
51
|
+
// example:
|
|
52
|
+
// | var colors = Theme.defineColors({
|
|
53
|
+
// | hue: 60,
|
|
54
|
+
// | saturation: 90,
|
|
55
|
+
// | low: 30,
|
|
56
|
+
// | high: 80
|
|
57
|
+
// | });
|
|
58
|
+
kwArgs = kwArgs || {};
|
|
59
|
+
var l, c = [], n = kwArgs.num || 5; // the number of colors to generate
|
|
60
|
+
if(kwArgs.colors){
|
|
61
|
+
// we have an array of colors predefined, so fix for the number of series.
|
|
62
|
+
l = kwArgs.colors.length;
|
|
63
|
+
for(var i = 0; i < n; i++){
|
|
64
|
+
c.push(kwArgs.colors[i % l]);
|
|
65
|
+
}
|
|
66
|
+
return c; // dojo.Color[]
|
|
67
|
+
}
|
|
68
|
+
if(kwArgs.hue){
|
|
69
|
+
// single hue, generate a set based on brightness
|
|
70
|
+
var s = kwArgs.saturation || 100, // saturation
|
|
71
|
+
st = kwArgs.low || 30,
|
|
72
|
+
end = kwArgs.high || 90;
|
|
73
|
+
// we'd like it to be a little on the darker side.
|
|
74
|
+
l = (end + st) / 2;
|
|
75
|
+
// alternately, use "shades"
|
|
76
|
+
return Palette.generate(
|
|
77
|
+
colorX.fromHsv(kwArgs.hue, s, l), "monochromatic"
|
|
78
|
+
).colors;
|
|
79
|
+
}
|
|
80
|
+
if(kwArgs.generator){
|
|
81
|
+
// pass a base color and the name of a generator
|
|
82
|
+
return colorX.Palette.generate(kwArgs.base, kwArgs.generator).colors;
|
|
83
|
+
}
|
|
84
|
+
return c; // dojo.Color[]
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
generateGradient: function(fillPattern, colorFrom, colorTo){
|
|
88
|
+
var fill = lang.delegate(fillPattern);
|
|
89
|
+
fill.colors = [
|
|
90
|
+
{offset: 0, color: colorFrom},
|
|
91
|
+
{offset: 1, color: colorTo}
|
|
92
|
+
];
|
|
93
|
+
return fill;
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
generateHslColor: function(color, luminance){
|
|
97
|
+
color = new Color(color);
|
|
98
|
+
var hsl = color.toHsl(),
|
|
99
|
+
result = colorX.fromHsl(hsl.h, hsl.s, luminance);
|
|
100
|
+
result.a = color.a; // add missing opacity
|
|
101
|
+
return result;
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
generateHslGradient: function(color, fillPattern, lumFrom, lumTo){
|
|
105
|
+
color = new Color(color);
|
|
106
|
+
var hsl = color.toHsl(),
|
|
107
|
+
colorFrom = colorX.fromHsl(hsl.h, hsl.s, lumFrom),
|
|
108
|
+
colorTo = colorX.fromHsl(hsl.h, hsl.s, lumTo);
|
|
109
|
+
colorFrom.a = colorTo.a = color.a; // add missing opacity
|
|
110
|
+
return Theme.generateGradient(fillPattern, colorFrom, colorTo); // Object
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// for compatibility
|
|
115
|
+
Theme.defaultMarkers = SimpleTheme.defaultMarkers;
|
|
116
|
+
Theme.defaultColors = SimpleTheme.defaultColors;
|
|
117
|
+
Theme.defaultTheme = SimpleTheme.defaultTheme;
|
|
118
|
+
|
|
119
|
+
return Theme;
|
|
120
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//>>built
|
|
2
|
+
define("dojox/charting/action2d/Base",["dojo/_base/lang","dojo/_base/declare","dojo/Evented"],function(_1,_2,_3){
|
|
3
|
+
return _2("dojox.charting.action2d.Base",_3,{constructor:function(_4,_5){
|
|
4
|
+
this.chart=_4;
|
|
5
|
+
this.plot=_5?(_1.isString(_5)?this.chart.getPlot(_5):_5):this.chart.getPlot("default");
|
|
6
|
+
},connect:function(){
|
|
7
|
+
},disconnect:function(){
|
|
8
|
+
},destroy:function(){
|
|
9
|
+
this.disconnect();
|
|
10
|
+
}});
|
|
11
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
define("dojox/charting/action2d/Base", ["dojo/_base/lang", "dojo/_base/declare", "dojo/Evented"],
|
|
2
|
+
function(lang, declare, Evented){
|
|
3
|
+
|
|
4
|
+
return declare("dojox.charting.action2d.Base", Evented, {
|
|
5
|
+
// summary:
|
|
6
|
+
// Base action class for plot and chart actions.
|
|
7
|
+
|
|
8
|
+
constructor: function(chart, plot){
|
|
9
|
+
// summary:
|
|
10
|
+
// Create a new base action. This can either be a plot or a chart action.
|
|
11
|
+
// chart: dojox/charting/Chart
|
|
12
|
+
// The chart this action applies to.
|
|
13
|
+
// plot: String|dojox/charting/plot2d/Base?
|
|
14
|
+
// Optional target plot for this action. Default is "default".
|
|
15
|
+
this.chart = chart;
|
|
16
|
+
this.plot = plot ? (lang.isString(plot) ? this.chart.getPlot(plot) : plot) : this.chart.getPlot("default");
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
connect: function(){
|
|
20
|
+
// summary:
|
|
21
|
+
// Connect this action to the plot or the chart.
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
disconnect: function(){
|
|
25
|
+
// summary:
|
|
26
|
+
// Disconnect this action from the plot or the chart.
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
destroy: function(){
|
|
30
|
+
// summary:
|
|
31
|
+
// Do any cleanup needed when destroying parent elements.
|
|
32
|
+
this.disconnect();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//>>built
|
|
2
|
+
define("dojox/charting/action2d/Highlight",["dojo/_base/lang","dojo/_base/declare","dojo/_base/Color","dojo/_base/connect","dojox/color/_base","./PlotAction","dojo/fx/easing","dojox/gfx/fx"],function(_1,_2,_3,_4,c,_5,_6,_7){
|
|
3
|
+
var _8=100,_9=75,_a=50,cc=function(_b){
|
|
4
|
+
return function(){
|
|
5
|
+
return _b;
|
|
6
|
+
};
|
|
7
|
+
},hl=function(_c){
|
|
8
|
+
var a=new c.Color(_c),x=a.toHsl();
|
|
9
|
+
if(x.s==0){
|
|
10
|
+
x.l=x.l<50?100:0;
|
|
11
|
+
}else{
|
|
12
|
+
x.s=_8;
|
|
13
|
+
if(x.l<_a){
|
|
14
|
+
x.l=_9;
|
|
15
|
+
}else{
|
|
16
|
+
if(x.l>_9){
|
|
17
|
+
x.l=_a;
|
|
18
|
+
}else{
|
|
19
|
+
x.l=x.l-_a>_9-x.l?_a:_9;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
var _d=c.fromHsl(x);
|
|
24
|
+
_d.a=a.a;
|
|
25
|
+
return _d;
|
|
26
|
+
},_e=function(_f){
|
|
27
|
+
var r=hl(_f);
|
|
28
|
+
r.a=0.7;
|
|
29
|
+
return r;
|
|
30
|
+
};
|
|
31
|
+
return _2("dojox.charting.action2d.Highlight",_5,{defaultParams:{duration:400,easing:_6.backOut},optionalParams:{highlight:"red"},constructor:function(_10,_11,_12){
|
|
32
|
+
var a=_12&&_12.highlight;
|
|
33
|
+
this.colorFunc=a?(_1.isFunction(a)?a:cc(a)):hl;
|
|
34
|
+
this.connect();
|
|
35
|
+
},process:function(o){
|
|
36
|
+
if(!o.shape||!(o.type in this.overOutEvents)){
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if(o.element=="spider_circle"||o.element=="spider_plot"){
|
|
40
|
+
return;
|
|
41
|
+
}else{
|
|
42
|
+
if(o.element=="spider_poly"&&this.colorFunc==hl){
|
|
43
|
+
this.colorFunc=_e;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
var _13=o.run.name,_14=o.index,_15;
|
|
47
|
+
if(_13 in this.anim){
|
|
48
|
+
_15=this.anim[_13][_14];
|
|
49
|
+
}else{
|
|
50
|
+
this.anim[_13]={};
|
|
51
|
+
}
|
|
52
|
+
if(_15){
|
|
53
|
+
_15.action.stop(true);
|
|
54
|
+
}else{
|
|
55
|
+
var _16=o.shape.getFill();
|
|
56
|
+
if(!_16||!(_16 instanceof _3)){
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
this.anim[_13][_14]=_15={start:_16,end:this.colorFunc(_16)};
|
|
60
|
+
}
|
|
61
|
+
var _17=_15.start,end=_15.end;
|
|
62
|
+
if(o.type=="onmouseout"){
|
|
63
|
+
var t=_17;
|
|
64
|
+
_17=end;
|
|
65
|
+
end=t;
|
|
66
|
+
}
|
|
67
|
+
_15.action=_7.animateFill({shape:o.shape,duration:this.duration,easing:this.easing,color:{start:_17,end:end}});
|
|
68
|
+
if(o.type=="onmouseout"){
|
|
69
|
+
_4.connect(_15.action,"onEnd",this,function(){
|
|
70
|
+
if(this.anim[_13]){
|
|
71
|
+
delete this.anim[_13][_14];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
_15.action.play();
|
|
76
|
+
}});
|
|
77
|
+
});
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
define("dojox/charting/action2d/Highlight", ["dojo/_base/lang", "dojo/_base/declare", "dojo/_base/Color", "dojo/_base/connect", "dojox/color/_base",
|
|
2
|
+
"./PlotAction", "dojo/fx/easing", "dojox/gfx/fx"],
|
|
3
|
+
function(lang, declare, Color, hub, c, PlotAction, dfe, dgf){
|
|
4
|
+
|
|
5
|
+
/*=====
|
|
6
|
+
var __HighlightCtorArgs = {
|
|
7
|
+
// summary:
|
|
8
|
+
// Additional arguments for highlighting actions.
|
|
9
|
+
// duration: Number?
|
|
10
|
+
// The amount of time in milliseconds for an animation to last. Default is 400.
|
|
11
|
+
// easing: dojo/fx/easing/*?
|
|
12
|
+
// An easing object (see dojo.fx.easing) for use in an animation. The
|
|
13
|
+
// default is dojo.fx.easing.backOut.
|
|
14
|
+
// highlight: String|dojo/_base/Color|Function?
|
|
15
|
+
// Either a color or a function that creates a color when highlighting happens.
|
|
16
|
+
};
|
|
17
|
+
=====*/
|
|
18
|
+
|
|
19
|
+
var DEFAULT_SATURATION = 100, // %
|
|
20
|
+
DEFAULT_LUMINOSITY1 = 75, // %
|
|
21
|
+
DEFAULT_LUMINOSITY2 = 50, // %
|
|
22
|
+
cc = function(color){
|
|
23
|
+
return function(){ return color; };
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
hl = function(color){
|
|
27
|
+
var a = new c.Color(color),
|
|
28
|
+
x = a.toHsl();
|
|
29
|
+
if(x.s == 0){
|
|
30
|
+
x.l = x.l < 50 ? 100 : 0;
|
|
31
|
+
}else{
|
|
32
|
+
x.s = DEFAULT_SATURATION;
|
|
33
|
+
if(x.l < DEFAULT_LUMINOSITY2){
|
|
34
|
+
x.l = DEFAULT_LUMINOSITY1;
|
|
35
|
+
}else if(x.l > DEFAULT_LUMINOSITY1){
|
|
36
|
+
x.l = DEFAULT_LUMINOSITY2;
|
|
37
|
+
}else{
|
|
38
|
+
x.l = x.l - DEFAULT_LUMINOSITY2 > DEFAULT_LUMINOSITY1 - x.l ?
|
|
39
|
+
DEFAULT_LUMINOSITY2 : DEFAULT_LUMINOSITY1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
var rcolor = c.fromHsl(x);
|
|
43
|
+
rcolor.a = a.a;
|
|
44
|
+
return rcolor;
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
spiderhl = function(color){
|
|
48
|
+
var r = hl(color);
|
|
49
|
+
r.a = 0.7;
|
|
50
|
+
return r;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return declare("dojox.charting.action2d.Highlight", PlotAction, {
|
|
54
|
+
// summary:
|
|
55
|
+
// Creates a highlighting action on a plot, where an element on that plot
|
|
56
|
+
// has a highlight on it.
|
|
57
|
+
|
|
58
|
+
// the data description block for the widget parser
|
|
59
|
+
defaultParams: {
|
|
60
|
+
duration: 400, // duration of the action in ms
|
|
61
|
+
easing: dfe.backOut // easing for the action
|
|
62
|
+
},
|
|
63
|
+
optionalParams: {
|
|
64
|
+
highlight: "red" // name for the highlight color
|
|
65
|
+
// programmatic instantiation can use functions and color objects
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
constructor: function(chart, plot, kwArgs){
|
|
69
|
+
// summary:
|
|
70
|
+
// Create the highlighting action and connect it to the plot.
|
|
71
|
+
// chart: dojox/charting/Chart
|
|
72
|
+
// The chart this action belongs to.
|
|
73
|
+
// plot: String?
|
|
74
|
+
// The plot this action is attached to. If not passed, "default" is assumed.
|
|
75
|
+
// kwArgs: __HighlightCtorArgs?
|
|
76
|
+
// Optional keyword arguments object for setting parameters.
|
|
77
|
+
var a = kwArgs && kwArgs.highlight;
|
|
78
|
+
this.colorFunc = a ? (lang.isFunction(a) ? a : cc(a)) : hl;
|
|
79
|
+
this.connect();
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
process: function(o){
|
|
83
|
+
// summary:
|
|
84
|
+
// Process the action on the given object.
|
|
85
|
+
// o: dojox/gfx/shape.Shape
|
|
86
|
+
// The object on which to process the highlighting action.
|
|
87
|
+
if(!o.shape || !(o.type in this.overOutEvents)){ return; }
|
|
88
|
+
|
|
89
|
+
// if spider let's deal only with poly
|
|
90
|
+
if(o.element == "spider_circle" || o.element == "spider_plot"){
|
|
91
|
+
return;
|
|
92
|
+
}else if(o.element == "spider_poly" && this.colorFunc == hl){
|
|
93
|
+
// hardcode alpha for compatibility reasons
|
|
94
|
+
// TODO to remove in 2.0
|
|
95
|
+
this.colorFunc = spiderhl;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
var runName = o.run.name, index = o.index, anim;
|
|
99
|
+
|
|
100
|
+
if(runName in this.anim){
|
|
101
|
+
anim = this.anim[runName][index];
|
|
102
|
+
}else{
|
|
103
|
+
this.anim[runName] = {};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if(anim){
|
|
107
|
+
anim.action.stop(true);
|
|
108
|
+
}else{
|
|
109
|
+
var color = o.shape.getFill();
|
|
110
|
+
if(!color || !(color instanceof Color)){
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
this.anim[runName][index] = anim = {
|
|
114
|
+
start: color,
|
|
115
|
+
end: this.colorFunc(color)
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
var start = anim.start, end = anim.end;
|
|
120
|
+
if(o.type == "onmouseout"){
|
|
121
|
+
// swap colors
|
|
122
|
+
var t = start;
|
|
123
|
+
start = end;
|
|
124
|
+
end = t;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
anim.action = dgf.animateFill({
|
|
128
|
+
shape: o.shape,
|
|
129
|
+
duration: this.duration,
|
|
130
|
+
easing: this.easing,
|
|
131
|
+
color: {start: start, end: end}
|
|
132
|
+
});
|
|
133
|
+
if(o.type == "onmouseout"){
|
|
134
|
+
hub.connect(anim.action, "onEnd", this, function(){
|
|
135
|
+
if(this.anim[runName]){
|
|
136
|
+
delete this.anim[runName][index];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
anim.action.play();
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
//>>built
|
|
2
|
+
define("dojox/charting/action2d/Magnify",["dojo/_base/connect","dojo/_base/declare","./PlotAction","dojox/gfx/matrix","dojox/gfx/fx","dojo/fx","dojo/fx/easing"],function(_1,_2,_3,m,gf,df,_4){
|
|
3
|
+
var _5=2;
|
|
4
|
+
return _2("dojox.charting.action2d.Magnify",_3,{defaultParams:{duration:400,easing:_4.backOut,scale:_5},optionalParams:{},constructor:function(_6,_7,_8){
|
|
5
|
+
this.scale=_8&&typeof _8.scale=="number"?_8.scale:_5;
|
|
6
|
+
this.connect();
|
|
7
|
+
},process:function(o){
|
|
8
|
+
if(!o.shape||!(o.type in this.overOutEvents)||!("cx" in o)||!("cy" in o)){
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if(o.element=="spider_plot"||o.element=="spider_poly"){
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
var _9=o.run.name,_a=o.index,_b=[],_c,_d,_e;
|
|
15
|
+
if(_9 in this.anim){
|
|
16
|
+
_c=this.anim[_9][_a];
|
|
17
|
+
}else{
|
|
18
|
+
this.anim[_9]={};
|
|
19
|
+
}
|
|
20
|
+
if(_c){
|
|
21
|
+
_c.action.stop(true);
|
|
22
|
+
}else{
|
|
23
|
+
this.anim[_9][_a]=_c={};
|
|
24
|
+
}
|
|
25
|
+
if(o.type=="onmouseover"){
|
|
26
|
+
_d=m.identity;
|
|
27
|
+
_e=this.scale;
|
|
28
|
+
}else{
|
|
29
|
+
_d=m.scaleAt(this.scale,o.cx,o.cy);
|
|
30
|
+
_e=1/this.scale;
|
|
31
|
+
}
|
|
32
|
+
var _f={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"scaleAt",start:[1,o.cx,o.cy],end:[_e,o.cx,o.cy]},_d]};
|
|
33
|
+
if(o.shape){
|
|
34
|
+
_b.push(gf.animateTransform(_f));
|
|
35
|
+
}
|
|
36
|
+
if(o.outline){
|
|
37
|
+
_f.shape=o.outline;
|
|
38
|
+
_b.push(gf.animateTransform(_f));
|
|
39
|
+
}
|
|
40
|
+
if(o.shadow){
|
|
41
|
+
_f.shape=o.shadow;
|
|
42
|
+
_b.push(gf.animateTransform(_f));
|
|
43
|
+
}
|
|
44
|
+
if(!_b.length){
|
|
45
|
+
delete this.anim[_9][_a];
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
_c.action=df.combine(_b);
|
|
49
|
+
if(o.type=="onmouseout"){
|
|
50
|
+
_1.connect(_c.action,"onEnd",this,function(){
|
|
51
|
+
if(this.anim[_9]){
|
|
52
|
+
delete this.anim[_9][_a];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
_c.action.play();
|
|
57
|
+
}});
|
|
58
|
+
});
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
define("dojox/charting/action2d/Magnify", ["dojo/_base/connect", "dojo/_base/declare",
|
|
2
|
+
"./PlotAction", "dojox/gfx/matrix",
|
|
3
|
+
"dojox/gfx/fx", "dojo/fx", "dojo/fx/easing"],
|
|
4
|
+
function(Hub, declare, PlotAction, m, gf, df, dfe){
|
|
5
|
+
|
|
6
|
+
/*=====
|
|
7
|
+
var __MagnifyCtorArgs = {
|
|
8
|
+
// summary:
|
|
9
|
+
// Additional arguments for magnifying actions.
|
|
10
|
+
// duration: Number?
|
|
11
|
+
// The amount of time in milliseconds for an animation to last. Default is 400.
|
|
12
|
+
// easing: dojo/fx/easing/*?
|
|
13
|
+
// An easing object (see dojo.fx.easing) for use in an animation. The
|
|
14
|
+
// default is dojo.fx.easing.backOut.
|
|
15
|
+
// scale: Number?
|
|
16
|
+
// The amount to magnify the given object to. Default is 2.
|
|
17
|
+
};
|
|
18
|
+
=====*/
|
|
19
|
+
|
|
20
|
+
var DEFAULT_SCALE = 2;
|
|
21
|
+
|
|
22
|
+
return declare("dojox.charting.action2d.Magnify", PlotAction, {
|
|
23
|
+
// summary:
|
|
24
|
+
// Create an action that magnifies the object the action is applied to.
|
|
25
|
+
|
|
26
|
+
// the data description block for the widget parser
|
|
27
|
+
defaultParams: {
|
|
28
|
+
duration: 400, // duration of the action in ms
|
|
29
|
+
easing: dfe.backOut, // easing for the action
|
|
30
|
+
scale: DEFAULT_SCALE // scale of magnification
|
|
31
|
+
},
|
|
32
|
+
optionalParams: {}, // no optional parameters
|
|
33
|
+
|
|
34
|
+
constructor: function(chart, plot, kwArgs){
|
|
35
|
+
// summary:
|
|
36
|
+
// Create the magnifying action.
|
|
37
|
+
// chart: dojox/charting/Chart
|
|
38
|
+
// The chart this action belongs to.
|
|
39
|
+
// plot: String?
|
|
40
|
+
// The plot to apply the action to. If not passed, "default" is assumed.
|
|
41
|
+
// kwArgs: __MagnifyCtorArgs?
|
|
42
|
+
// Optional keyword arguments for this action.
|
|
43
|
+
|
|
44
|
+
// process optional named parameters
|
|
45
|
+
this.scale = kwArgs && typeof kwArgs.scale == "number" ? kwArgs.scale : DEFAULT_SCALE;
|
|
46
|
+
|
|
47
|
+
this.connect();
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
process: function(o){
|
|
51
|
+
// summary:
|
|
52
|
+
// Process the action on the given object.
|
|
53
|
+
// o: dojox/gfx/shape.Shape
|
|
54
|
+
// The object on which to process the magnifying action.
|
|
55
|
+
if(!o.shape || !(o.type in this.overOutEvents) ||
|
|
56
|
+
!("cx" in o) || !("cy" in o)){ return; }
|
|
57
|
+
|
|
58
|
+
// if spider deal only with circle
|
|
59
|
+
if(o.element == "spider_plot" || o.element == "spider_poly"){
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var runName = o.run.name, index = o.index, vector = [], anim, init, scale;
|
|
64
|
+
|
|
65
|
+
if(runName in this.anim){
|
|
66
|
+
anim = this.anim[runName][index];
|
|
67
|
+
}else{
|
|
68
|
+
this.anim[runName] = {};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if(anim){
|
|
72
|
+
anim.action.stop(true);
|
|
73
|
+
}else{
|
|
74
|
+
this.anim[runName][index] = anim = {};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if(o.type == "onmouseover"){
|
|
78
|
+
init = m.identity;
|
|
79
|
+
scale = this.scale;
|
|
80
|
+
}else{
|
|
81
|
+
init = m.scaleAt(this.scale, o.cx, o.cy);
|
|
82
|
+
scale = 1 / this.scale;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
var kwArgs = {
|
|
86
|
+
shape: o.shape,
|
|
87
|
+
duration: this.duration,
|
|
88
|
+
easing: this.easing,
|
|
89
|
+
transform: [
|
|
90
|
+
{name: "scaleAt", start: [1, o.cx, o.cy], end: [scale, o.cx, o.cy]},
|
|
91
|
+
init
|
|
92
|
+
]
|
|
93
|
+
};
|
|
94
|
+
if(o.shape){
|
|
95
|
+
vector.push(gf.animateTransform(kwArgs));
|
|
96
|
+
}
|
|
97
|
+
if(o.outline){
|
|
98
|
+
kwArgs.shape = o.outline;
|
|
99
|
+
vector.push(gf.animateTransform(kwArgs));
|
|
100
|
+
}
|
|
101
|
+
if(o.shadow){
|
|
102
|
+
kwArgs.shape = o.shadow;
|
|
103
|
+
vector.push(gf.animateTransform(kwArgs));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if(!vector.length){
|
|
107
|
+
delete this.anim[runName][index];
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
anim.action = df.combine(vector);
|
|
112
|
+
if(o.type == "onmouseout"){
|
|
113
|
+
Hub.connect(anim.action, "onEnd", this, function(){
|
|
114
|
+
if(this.anim[runName]){
|
|
115
|
+
delete this.anim[runName][index];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
anim.action.play();
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//>>built
|
|
2
|
+
define("dojox/charting/action2d/MoveSlice",["dojo/_base/connect","dojo/_base/declare","dojo/_base/array","./PlotAction","dojo/fx/easing","dojox/gfx/matrix","dojox/gfx/fx","dojox/lang/functional","dojox/lang/functional/scan","dojox/lang/functional/fold"],function(_1,_2,_3,_4,_5,m,gf,df){
|
|
3
|
+
var _6=1.05,_7=7;
|
|
4
|
+
return _2("dojox.charting.action2d.MoveSlice",_4,{defaultParams:{duration:400,easing:_5.backOut,scale:_6,shift:_7},optionalParams:{},constructor:function(_8,_9,_a){
|
|
5
|
+
if(!_a){
|
|
6
|
+
_a={};
|
|
7
|
+
}
|
|
8
|
+
this.scale=typeof _a.scale=="number"?_a.scale:_6;
|
|
9
|
+
this.shift=typeof _a.shift=="number"?_a.shift:_7;
|
|
10
|
+
this.connect();
|
|
11
|
+
},process:function(o){
|
|
12
|
+
if(!o.shape||o.element!="slice"||!(o.type in this.overOutEvents)){
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if(!this.angles){
|
|
16
|
+
var _b=m._degToRad(o.plot.opt.startAngle);
|
|
17
|
+
if(typeof o.run.data[0]=="number"){
|
|
18
|
+
this.angles=df.map(df.scanl(o.run.data,"+",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));
|
|
19
|
+
}else{
|
|
20
|
+
this.angles=df.map(df.scanl(o.run.data,"a + b.y",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));
|
|
21
|
+
}
|
|
22
|
+
this.angles=_3.map(this.angles,function(_c){
|
|
23
|
+
return _c+_b;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
var _d=o.index,_e,_f,_10,_11,_12,_13=(this.angles[_d]+this.angles[_d+1])/2,_14=m.rotateAt(-_13,o.cx,o.cy),_15=m.rotateAt(_13,o.cx,o.cy);
|
|
27
|
+
_e=this.anim[_d];
|
|
28
|
+
if(_e){
|
|
29
|
+
_e.action.stop(true);
|
|
30
|
+
}else{
|
|
31
|
+
this.anim[_d]=_e={};
|
|
32
|
+
}
|
|
33
|
+
if(o.type=="onmouseover"){
|
|
34
|
+
_11=0;
|
|
35
|
+
_12=this.shift;
|
|
36
|
+
_f=1;
|
|
37
|
+
_10=this.scale;
|
|
38
|
+
}else{
|
|
39
|
+
_11=this.shift;
|
|
40
|
+
_12=0;
|
|
41
|
+
_f=this.scale;
|
|
42
|
+
_10=1;
|
|
43
|
+
}
|
|
44
|
+
_e.action=gf.animateTransform({shape:o.shape,duration:this.duration,easing:this.easing,transform:[_15,{name:"translate",start:[_11,0],end:[_12,0]},{name:"scaleAt",start:[_f,o.cx,o.cy],end:[_10,o.cx,o.cy]},_14]});
|
|
45
|
+
if(o.type=="onmouseout"){
|
|
46
|
+
_1.connect(_e.action,"onEnd",this,function(){
|
|
47
|
+
delete this.anim[_d];
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
_e.action.play();
|
|
51
|
+
},reset:function(){
|
|
52
|
+
delete this.angles;
|
|
53
|
+
}});
|
|
54
|
+
});
|