@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.
- package/CHANGELOG.md +20 -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 +211 -69
- package/src/package.ts +10 -71
- package/src/tests/findMonomers-tests.ts +2 -1
- package/src/tests/get-monomer-tests.ts +1 -49
- package/src/tests/helm-input-tests.ts +31 -20
- 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,14 @@
|
|
|
1
|
+
define("dojox/charting/plot2d/ClusteredColumns", ["dojo/_base/declare", "dojo/_base/array", "./Columns", "./common"],
|
|
2
|
+
function(declare, array, Columns, dc){
|
|
3
|
+
|
|
4
|
+
return declare("dojox.charting.plot2d.ClusteredColumns", Columns, {
|
|
5
|
+
// summary:
|
|
6
|
+
// A plot representing grouped or clustered columns (vertical bars)
|
|
7
|
+
getBarProperties: function(){
|
|
8
|
+
var length = this.series.length;
|
|
9
|
+
array.forEach(this.series, function(serie){if(serie.hidden){length--;}});
|
|
10
|
+
var f = dc.calculateBarSize(this._hScaler.bounds.scale, this.opt, length);
|
|
11
|
+
return {gap: f.gap, width: f.size, thickness: f.size, clusterSize: length};
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
//>>built
|
|
2
|
+
define("dojox/charting/plot2d/Columns",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/has","./CartesianBase","./_PlotEvents","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils","dojox/gfx/fx"],function(_1,_2,_3,_4,_5,_6,dc,df,_7,du,fx){
|
|
3
|
+
var _8=_7.lambda("item.purgeGroup()");
|
|
4
|
+
return _3("dojox.charting.plot2d.Columns",[_5,_6],{defaultParams:{gap:0,animate:null,enableCache:false},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},filter:{},styleFunc:null,font:"",fontColor:""},constructor:function(_9,_a){
|
|
5
|
+
this.opt=_1.clone(_1.mixin(this.opt,this.defaultParams));
|
|
6
|
+
du.updateWithObject(this.opt,_a);
|
|
7
|
+
du.updateWithPattern(this.opt,_a,this.optionalParams);
|
|
8
|
+
this.animate=this.opt.animate;
|
|
9
|
+
this.renderingOptions={"shape-rendering":"crispEdges"};
|
|
10
|
+
},getSeriesStats:function(){
|
|
11
|
+
var _b=dc.collectSimpleStats(this.series);
|
|
12
|
+
_b.hmin-=0.5;
|
|
13
|
+
_b.hmax+=0.5;
|
|
14
|
+
return _b;
|
|
15
|
+
},createRect:function(_c,_d,_e){
|
|
16
|
+
var _f;
|
|
17
|
+
if(this.opt.enableCache&&_c._rectFreePool.length>0){
|
|
18
|
+
_f=_c._rectFreePool.pop();
|
|
19
|
+
_f.setShape(_e);
|
|
20
|
+
_d.add(_f);
|
|
21
|
+
}else{
|
|
22
|
+
_f=_d.createRect(_e);
|
|
23
|
+
}
|
|
24
|
+
if(this.opt.enableCache){
|
|
25
|
+
_c._rectUsePool.push(_f);
|
|
26
|
+
}
|
|
27
|
+
return _f;
|
|
28
|
+
},render:function(dim,_10){
|
|
29
|
+
if(this.zoom&&!this.isDataDirty()){
|
|
30
|
+
return this.performZoom(dim,_10);
|
|
31
|
+
}
|
|
32
|
+
this.resetEvents();
|
|
33
|
+
this.dirty=this.isDirty();
|
|
34
|
+
var s;
|
|
35
|
+
if(this.dirty){
|
|
36
|
+
_2.forEach(this.series,_8);
|
|
37
|
+
this._eventSeries={};
|
|
38
|
+
this.cleanGroup();
|
|
39
|
+
s=this.getGroup();
|
|
40
|
+
df.forEachRev(this.series,function(_11){
|
|
41
|
+
_11.cleanGroup(s);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
var t=this.chart.theme,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_12=Math.max(0,this._vScaler.bounds.lower),_13=vt(_12),_14=this.events(),bar=this.getBarProperties();
|
|
45
|
+
var z=this.series.length;
|
|
46
|
+
_2.forEach(this.series,function(_15){
|
|
47
|
+
if(_15.hidden){
|
|
48
|
+
z--;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
for(var i=this.series.length-1;i>=0;--i){
|
|
52
|
+
var run=this.series[i];
|
|
53
|
+
if(!this.dirty&&!run.dirty){
|
|
54
|
+
t.skip();
|
|
55
|
+
this._reconnectEvents(run.name);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
run.cleanGroup();
|
|
59
|
+
if(this.opt.enableCache){
|
|
60
|
+
run._rectFreePool=(run._rectFreePool?run._rectFreePool:[]).concat(run._rectUsePool?run._rectUsePool:[]);
|
|
61
|
+
run._rectUsePool=[];
|
|
62
|
+
}
|
|
63
|
+
var _16=t.next("column",[this.opt,run]),_17=new Array(run.data.length);
|
|
64
|
+
if(run.hidden){
|
|
65
|
+
run.dyn.fill=_16.series.fill;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
z--;
|
|
69
|
+
s=run.group;
|
|
70
|
+
var _18=_2.some(run.data,function(_19){
|
|
71
|
+
return typeof _19=="number"||(_19&&!_19.hasOwnProperty("x"));
|
|
72
|
+
});
|
|
73
|
+
var min=_18?Math.max(0,Math.floor(this._hScaler.bounds.from-1)):0;
|
|
74
|
+
var max=_18?Math.min(run.data.length,Math.ceil(this._hScaler.bounds.to)):run.data.length;
|
|
75
|
+
for(var j=min;j<max;++j){
|
|
76
|
+
var _1a=run.data[j];
|
|
77
|
+
if(_1a!=null){
|
|
78
|
+
var val=this.getValue(_1a,j,i,_18),vv=vt(val.y),h=Math.abs(vv-_13),_1b,_1c;
|
|
79
|
+
if(this.opt.styleFunc||typeof _1a!="number"){
|
|
80
|
+
var _1d=typeof _1a!="number"?[_1a]:[];
|
|
81
|
+
if(this.opt.styleFunc){
|
|
82
|
+
_1d.push(this.opt.styleFunc(_1a));
|
|
83
|
+
}
|
|
84
|
+
_1b=t.addMixin(_16,"column",_1d,true);
|
|
85
|
+
}else{
|
|
86
|
+
_1b=t.post(_16,"column");
|
|
87
|
+
}
|
|
88
|
+
if(bar.width>=1&&h>=0){
|
|
89
|
+
var _1e={x:_10.l+ht(val.x+0.5)+bar.gap+bar.thickness*z,y:dim.height-_10.b-(val.y>_12?vv:_13),width:bar.width,height:h};
|
|
90
|
+
if(_1b.series.shadow){
|
|
91
|
+
var _1f=_1.clone(_1e);
|
|
92
|
+
_1f.x+=_1b.series.shadow.dx;
|
|
93
|
+
_1f.y+=_1b.series.shadow.dy;
|
|
94
|
+
_1c=this.createRect(run,s,_1f).setFill(_1b.series.shadow.color).setStroke(_1b.series.shadow);
|
|
95
|
+
if(this.animate){
|
|
96
|
+
this._animateColumn(_1c,dim.height-_10.b+_13,h);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
var _20=this._plotFill(_1b.series.fill,dim,_10);
|
|
100
|
+
_20=this._shapeFill(_20,_1e);
|
|
101
|
+
var _21=this.createRect(run,s,_1e).setFill(_20).setStroke(_1b.series.stroke);
|
|
102
|
+
if(_21.setFilter&&_1b.series.filter){
|
|
103
|
+
_21.setFilter(_1b.series.filter);
|
|
104
|
+
}
|
|
105
|
+
run.dyn.fill=_21.getFill();
|
|
106
|
+
run.dyn.stroke=_21.getStroke();
|
|
107
|
+
if(_14){
|
|
108
|
+
var o={element:"column",index:j,run:run,shape:_21,shadow:_1c,cx:val.x+0.5,cy:val.y,x:_18?j:run.data[j].x,y:_18?run.data[j]:run.data[j].y};
|
|
109
|
+
this._connectEvents(o);
|
|
110
|
+
_17[j]=o;
|
|
111
|
+
}
|
|
112
|
+
if(!isNaN(val.py)&&val.py>_12){
|
|
113
|
+
_1e.height=vv-vt(val.py);
|
|
114
|
+
}
|
|
115
|
+
this.createLabel(s,_1a,_1e,_1b);
|
|
116
|
+
if(this.animate){
|
|
117
|
+
this._animateColumn(_21,dim.height-_10.b-_13,h);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
this._eventSeries[run.name]=_17;
|
|
123
|
+
run.dirty=false;
|
|
124
|
+
}
|
|
125
|
+
this.dirty=false;
|
|
126
|
+
if(_4("dojo-bidi")){
|
|
127
|
+
this._checkOrientation(this.group,dim,_10);
|
|
128
|
+
}
|
|
129
|
+
return this;
|
|
130
|
+
},getValue:function(_22,j,_23,_24){
|
|
131
|
+
var y,x;
|
|
132
|
+
if(_24){
|
|
133
|
+
if(typeof _22=="number"){
|
|
134
|
+
y=_22;
|
|
135
|
+
}else{
|
|
136
|
+
y=_22.y;
|
|
137
|
+
}
|
|
138
|
+
x=j;
|
|
139
|
+
}else{
|
|
140
|
+
y=_22.y;
|
|
141
|
+
x=_22.x-1;
|
|
142
|
+
}
|
|
143
|
+
return {x:x,y:y};
|
|
144
|
+
},getBarProperties:function(){
|
|
145
|
+
var f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);
|
|
146
|
+
return {gap:f.gap,width:f.size,thickness:0};
|
|
147
|
+
},_animateColumn:function(_25,_26,_27){
|
|
148
|
+
if(_27==0){
|
|
149
|
+
_27=1;
|
|
150
|
+
}
|
|
151
|
+
fx.animateTransform(_1.delegate({shape:_25,duration:1200,transform:[{name:"translate",start:[0,_26-(_26/_27)],end:[0,0]},{name:"scale",start:[1,1/_27],end:[1,1]},{name:"original"}]},this.animate)).play();
|
|
152
|
+
}});
|
|
153
|
+
});
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
define("dojox/charting/plot2d/Columns", ["dojo/_base/lang", "dojo/_base/array", "dojo/_base/declare", "dojo/has", "./CartesianBase", "./_PlotEvents", "./common",
|
|
2
|
+
"dojox/lang/functional", "dojox/lang/functional/reversed", "dojox/lang/utils", "dojox/gfx/fx"],
|
|
3
|
+
function(lang, arr, declare, has, CartesianBase, _PlotEvents, dc, df, dfr, du, fx){
|
|
4
|
+
|
|
5
|
+
var purgeGroup = dfr.lambda("item.purgeGroup()");
|
|
6
|
+
|
|
7
|
+
return declare("dojox.charting.plot2d.Columns", [CartesianBase, _PlotEvents], {
|
|
8
|
+
// summary:
|
|
9
|
+
// The plot object representing a column chart (vertical bars).
|
|
10
|
+
defaultParams: {
|
|
11
|
+
gap: 0, // gap between columns in pixels
|
|
12
|
+
animate: null, // animate bars into place
|
|
13
|
+
enableCache: false
|
|
14
|
+
},
|
|
15
|
+
optionalParams: {
|
|
16
|
+
minBarSize: 1, // minimal column width in pixels
|
|
17
|
+
maxBarSize: 1, // maximal column width in pixels
|
|
18
|
+
// theme component
|
|
19
|
+
stroke: {},
|
|
20
|
+
outline: {},
|
|
21
|
+
shadow: {},
|
|
22
|
+
fill: {},
|
|
23
|
+
filter: {},
|
|
24
|
+
styleFunc: null,
|
|
25
|
+
font: "",
|
|
26
|
+
fontColor: ""
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
constructor: function(chart, kwArgs){
|
|
30
|
+
// summary:
|
|
31
|
+
// The constructor for a columns chart.
|
|
32
|
+
// chart: dojox/charting/Chart
|
|
33
|
+
// The chart this plot belongs to.
|
|
34
|
+
// kwArgs: dojox.charting.plot2d.__BarCtorArgs?
|
|
35
|
+
// An optional keyword arguments object to help define the plot.
|
|
36
|
+
this.opt = lang.clone(lang.mixin(this.opt, this.defaultParams));
|
|
37
|
+
du.updateWithObject(this.opt, kwArgs);
|
|
38
|
+
du.updateWithPattern(this.opt, kwArgs, this.optionalParams);
|
|
39
|
+
this.animate = this.opt.animate;
|
|
40
|
+
this.renderingOptions = { "shape-rendering": "crispEdges" };
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
getSeriesStats: function(){
|
|
44
|
+
// summary:
|
|
45
|
+
// Calculate the min/max on all attached series in both directions.
|
|
46
|
+
// returns: Object
|
|
47
|
+
// {hmin, hmax, vmin, vmax} min/max in both directions.
|
|
48
|
+
var stats = dc.collectSimpleStats(this.series);
|
|
49
|
+
stats.hmin -= 0.5;
|
|
50
|
+
stats.hmax += 0.5;
|
|
51
|
+
return stats; // Object
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
createRect: function(run, creator, params){
|
|
55
|
+
var rect;
|
|
56
|
+
if(this.opt.enableCache && run._rectFreePool.length > 0){
|
|
57
|
+
rect = run._rectFreePool.pop();
|
|
58
|
+
rect.setShape(params);
|
|
59
|
+
// was cleared, add it back
|
|
60
|
+
creator.add(rect);
|
|
61
|
+
}else{
|
|
62
|
+
rect = creator.createRect(params);
|
|
63
|
+
}
|
|
64
|
+
if(this.opt.enableCache){
|
|
65
|
+
run._rectUsePool.push(rect);
|
|
66
|
+
}
|
|
67
|
+
return rect;
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
render: function(dim, offsets){
|
|
71
|
+
// summary:
|
|
72
|
+
// Run the calculations for any axes for this plot.
|
|
73
|
+
// dim: Object
|
|
74
|
+
// An object in the form of { width, height }
|
|
75
|
+
// offsets: Object
|
|
76
|
+
// An object of the form { l, r, t, b}.
|
|
77
|
+
// returns: dojox/charting/plot2d/Columns
|
|
78
|
+
// A reference to this plot for functional chaining.
|
|
79
|
+
if(this.zoom && !this.isDataDirty()){
|
|
80
|
+
return this.performZoom(dim, offsets);
|
|
81
|
+
}
|
|
82
|
+
this.resetEvents();
|
|
83
|
+
this.dirty = this.isDirty();
|
|
84
|
+
var s;
|
|
85
|
+
if(this.dirty){
|
|
86
|
+
arr.forEach(this.series, purgeGroup);
|
|
87
|
+
this._eventSeries = {};
|
|
88
|
+
this.cleanGroup();
|
|
89
|
+
s = this.getGroup();
|
|
90
|
+
df.forEachRev(this.series, function(item){ item.cleanGroup(s); });
|
|
91
|
+
}
|
|
92
|
+
var t = this.chart.theme,
|
|
93
|
+
ht = this._hScaler.scaler.getTransformerFromModel(this._hScaler),
|
|
94
|
+
vt = this._vScaler.scaler.getTransformerFromModel(this._vScaler),
|
|
95
|
+
baseline = Math.max(0, this._vScaler.bounds.lower),
|
|
96
|
+
baselineHeight = vt(baseline),
|
|
97
|
+
events = this.events(),
|
|
98
|
+
bar = this.getBarProperties();
|
|
99
|
+
|
|
100
|
+
var z = this.series.length;
|
|
101
|
+
arr.forEach(this.series, function(serie){if(serie.hidden){z--;}});
|
|
102
|
+
|
|
103
|
+
for(var i = this.series.length - 1; i >= 0; --i){
|
|
104
|
+
var run = this.series[i];
|
|
105
|
+
if(!this.dirty && !run.dirty){
|
|
106
|
+
t.skip();
|
|
107
|
+
this._reconnectEvents(run.name);
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
run.cleanGroup();
|
|
111
|
+
if(this.opt.enableCache){
|
|
112
|
+
run._rectFreePool = (run._rectFreePool?run._rectFreePool:[]).concat(run._rectUsePool?run._rectUsePool:[]);
|
|
113
|
+
run._rectUsePool = [];
|
|
114
|
+
}
|
|
115
|
+
var theme = t.next("column", [this.opt, run]),
|
|
116
|
+
eventSeries = new Array(run.data.length);
|
|
117
|
+
|
|
118
|
+
if(run.hidden){
|
|
119
|
+
run.dyn.fill = theme.series.fill;
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
z--;
|
|
123
|
+
|
|
124
|
+
s = run.group;
|
|
125
|
+
var indexed = arr.some(run.data, function(item){
|
|
126
|
+
return typeof item == "number" || (item && !item.hasOwnProperty("x"));
|
|
127
|
+
});
|
|
128
|
+
// on indexed charts we can easily just interate from the first visible to the last visible
|
|
129
|
+
// data point to save time
|
|
130
|
+
var min = indexed?Math.max(0, Math.floor(this._hScaler.bounds.from - 1)):0;
|
|
131
|
+
var max = indexed?Math.min(run.data.length, Math.ceil(this._hScaler.bounds.to)):run.data.length;
|
|
132
|
+
for(var j = min; j < max; ++j){
|
|
133
|
+
var value = run.data[j];
|
|
134
|
+
if(value != null){
|
|
135
|
+
var val = this.getValue(value, j, i, indexed),
|
|
136
|
+
vv = vt(val.y),
|
|
137
|
+
h = Math.abs(vv - baselineHeight),
|
|
138
|
+
finalTheme,
|
|
139
|
+
sshape;
|
|
140
|
+
|
|
141
|
+
if(this.opt.styleFunc || typeof value != "number"){
|
|
142
|
+
var tMixin = typeof value != "number" ? [value] : [];
|
|
143
|
+
if(this.opt.styleFunc){
|
|
144
|
+
tMixin.push(this.opt.styleFunc(value));
|
|
145
|
+
}
|
|
146
|
+
finalTheme = t.addMixin(theme, "column", tMixin, true);
|
|
147
|
+
}else{
|
|
148
|
+
finalTheme = t.post(theme, "column");
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if(bar.width >= 1 && h >= 0){
|
|
152
|
+
var rect = {
|
|
153
|
+
x: offsets.l + ht(val.x + 0.5) + bar.gap + bar.thickness * z,
|
|
154
|
+
y: dim.height - offsets.b - (val.y > baseline ? vv : baselineHeight),
|
|
155
|
+
width: bar.width,
|
|
156
|
+
height: h
|
|
157
|
+
};
|
|
158
|
+
if(finalTheme.series.shadow){
|
|
159
|
+
var srect = lang.clone(rect);
|
|
160
|
+
srect.x += finalTheme.series.shadow.dx;
|
|
161
|
+
srect.y += finalTheme.series.shadow.dy;
|
|
162
|
+
sshape = this.createRect(run, s, srect).setFill(finalTheme.series.shadow.color).setStroke(finalTheme.series.shadow);
|
|
163
|
+
if(this.animate){
|
|
164
|
+
this._animateColumn(sshape, dim.height - offsets.b + baselineHeight, h);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
var specialFill = this._plotFill(finalTheme.series.fill, dim, offsets);
|
|
169
|
+
specialFill = this._shapeFill(specialFill, rect);
|
|
170
|
+
var shape = this.createRect(run, s, rect).setFill(specialFill).setStroke(finalTheme.series.stroke);
|
|
171
|
+
if(shape.setFilter && finalTheme.series.filter){
|
|
172
|
+
shape.setFilter(finalTheme.series.filter);
|
|
173
|
+
}
|
|
174
|
+
run.dyn.fill = shape.getFill();
|
|
175
|
+
run.dyn.stroke = shape.getStroke();
|
|
176
|
+
if(events){
|
|
177
|
+
var o = {
|
|
178
|
+
element: "column",
|
|
179
|
+
index: j,
|
|
180
|
+
run: run,
|
|
181
|
+
shape: shape,
|
|
182
|
+
shadow: sshape,
|
|
183
|
+
cx: val.x + 0.5,
|
|
184
|
+
cy: val.y,
|
|
185
|
+
x: indexed?j:run.data[j].x,
|
|
186
|
+
y: indexed?run.data[j]:run.data[j].y
|
|
187
|
+
};
|
|
188
|
+
this._connectEvents(o);
|
|
189
|
+
eventSeries[j] = o;
|
|
190
|
+
}
|
|
191
|
+
// if val.py is here, this means we are stacking and we need to subtract previous
|
|
192
|
+
// value to get the high in which we will lay out the label
|
|
193
|
+
if(!isNaN(val.py) && val.py > baseline){
|
|
194
|
+
rect.height = vv - vt(val.py);
|
|
195
|
+
}
|
|
196
|
+
this.createLabel(s, value, rect, finalTheme);
|
|
197
|
+
if(this.animate){
|
|
198
|
+
this._animateColumn(shape, dim.height - offsets.b - baselineHeight, h);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
this._eventSeries[run.name] = eventSeries;
|
|
204
|
+
run.dirty = false;
|
|
205
|
+
}
|
|
206
|
+
this.dirty = false;
|
|
207
|
+
// chart mirroring starts
|
|
208
|
+
if(has("dojo-bidi")){
|
|
209
|
+
this._checkOrientation(this.group, dim, offsets);
|
|
210
|
+
}
|
|
211
|
+
// chart mirroring ends
|
|
212
|
+
return this; // dojox/charting/plot2d/Columns
|
|
213
|
+
},
|
|
214
|
+
getValue: function(value, j, seriesIndex, indexed){
|
|
215
|
+
var y,x;
|
|
216
|
+
if(indexed){
|
|
217
|
+
if(typeof value == "number"){
|
|
218
|
+
y = value;
|
|
219
|
+
}else{
|
|
220
|
+
y = value.y;
|
|
221
|
+
}
|
|
222
|
+
x = j;
|
|
223
|
+
}else{
|
|
224
|
+
y = value.y;
|
|
225
|
+
x = value.x - 1;
|
|
226
|
+
}
|
|
227
|
+
return { x: x, y: y };
|
|
228
|
+
},
|
|
229
|
+
getBarProperties: function(){
|
|
230
|
+
var f = dc.calculateBarSize(this._hScaler.bounds.scale, this.opt);
|
|
231
|
+
return {gap: f.gap, width: f.size, thickness: 0};
|
|
232
|
+
},
|
|
233
|
+
_animateColumn: function(shape, voffset, vsize){
|
|
234
|
+
if(vsize==0){
|
|
235
|
+
vsize = 1;
|
|
236
|
+
}
|
|
237
|
+
fx.animateTransform(lang.delegate({
|
|
238
|
+
shape: shape,
|
|
239
|
+
duration: 1200,
|
|
240
|
+
transform: [
|
|
241
|
+
{name: "translate", start: [0, voffset - (voffset/vsize)], end: [0, 0]},
|
|
242
|
+
{name: "scale", start: [1, 1/vsize], end: [1, 1]},
|
|
243
|
+
{name: "original"}
|
|
244
|
+
]
|
|
245
|
+
}, this.animate)).play();
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
});
|
|
249
|
+
});
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
//>>built
|
|
2
|
+
define("dojox/charting/plot2d/Default",["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","dojo/has","./CartesianBase","./_PlotEvents","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils","dojox/gfx/fx"],function(_1,_2,_3,_4,_5,_6,dc,df,_7,du,fx){
|
|
3
|
+
var _8=_7.lambda("item.purgeGroup()");
|
|
4
|
+
var _9=1200;
|
|
5
|
+
return _2("dojox.charting.plot2d.Default",[_5,_6],{defaultParams:{lines:true,areas:false,markers:false,tension:"",animate:false,enableCache:false,interpolate:false},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},filter:{},styleFunc:null,font:"",fontColor:"",marker:"",markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_a,_b){
|
|
6
|
+
this.opt=_1.clone(_1.mixin(this.opt,this.defaultParams));
|
|
7
|
+
du.updateWithObject(this.opt,_b);
|
|
8
|
+
du.updateWithPattern(this.opt,_b,this.optionalParams);
|
|
9
|
+
this.animate=this.opt.animate;
|
|
10
|
+
},createPath:function(_c,_d,_e){
|
|
11
|
+
var _f;
|
|
12
|
+
if(this.opt.enableCache&&_c._pathFreePool.length>0){
|
|
13
|
+
_f=_c._pathFreePool.pop();
|
|
14
|
+
_f.setShape(_e);
|
|
15
|
+
_d.add(_f);
|
|
16
|
+
}else{
|
|
17
|
+
_f=_d.createPath(_e);
|
|
18
|
+
}
|
|
19
|
+
if(this.opt.enableCache){
|
|
20
|
+
_c._pathUsePool.push(_f);
|
|
21
|
+
}
|
|
22
|
+
return _f;
|
|
23
|
+
},buildSegments:function(i,_10){
|
|
24
|
+
var run=this.series[i],min=_10?Math.max(0,Math.floor(this._hScaler.bounds.from-1)):0,max=_10?Math.min(run.data.length,Math.ceil(this._hScaler.bounds.to)):run.data.length,_11=null,_12=[];
|
|
25
|
+
for(var j=min;j<max;j++){
|
|
26
|
+
if(run.data[j]!=null&&(_10||run.data[j].y!=null)){
|
|
27
|
+
if(!_11){
|
|
28
|
+
_11=[];
|
|
29
|
+
_12.push({index:j,rseg:_11});
|
|
30
|
+
}
|
|
31
|
+
_11.push((_10&&run.data[j].hasOwnProperty("y"))?run.data[j].y:run.data[j]);
|
|
32
|
+
}else{
|
|
33
|
+
if(!this.opt.interpolate||_10){
|
|
34
|
+
_11=null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return _12;
|
|
39
|
+
},render:function(dim,_13){
|
|
40
|
+
if(this.zoom&&!this.isDataDirty()){
|
|
41
|
+
return this.performZoom(dim,_13);
|
|
42
|
+
}
|
|
43
|
+
this.resetEvents();
|
|
44
|
+
this.dirty=this.isDirty();
|
|
45
|
+
var s;
|
|
46
|
+
if(this.dirty){
|
|
47
|
+
_3.forEach(this.series,_8);
|
|
48
|
+
this._eventSeries={};
|
|
49
|
+
this.cleanGroup();
|
|
50
|
+
this.getGroup().setTransform(null);
|
|
51
|
+
s=this.getGroup();
|
|
52
|
+
df.forEachRev(this.series,function(_14){
|
|
53
|
+
_14.cleanGroup(s);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
var t=this.chart.theme,_15,_16,_17=this.events();
|
|
57
|
+
for(var i=this.series.length-1;i>=0;--i){
|
|
58
|
+
var run=this.series[i];
|
|
59
|
+
if(!this.dirty&&!run.dirty){
|
|
60
|
+
t.skip();
|
|
61
|
+
this._reconnectEvents(run.name);
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
run.cleanGroup();
|
|
65
|
+
if(this.opt.enableCache){
|
|
66
|
+
run._pathFreePool=(run._pathFreePool?run._pathFreePool:[]).concat(run._pathUsePool?run._pathUsePool:[]);
|
|
67
|
+
run._pathUsePool=[];
|
|
68
|
+
}
|
|
69
|
+
if(!run.data.length){
|
|
70
|
+
run.dirty=false;
|
|
71
|
+
t.skip();
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
var _18=t.next(this.opt.areas?"area":"line",[this.opt,run],true),_19,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_1a=this._eventSeries[run.name]=new Array(run.data.length);
|
|
75
|
+
s=run.group;
|
|
76
|
+
if(run.hidden){
|
|
77
|
+
if(this.opt.lines){
|
|
78
|
+
run.dyn.stroke=_18.series.stroke;
|
|
79
|
+
}
|
|
80
|
+
if(this.opt.markers){
|
|
81
|
+
run.dyn.markerFill=_18.marker.fill;
|
|
82
|
+
run.dyn.markerStroke=_18.marker.stroke;
|
|
83
|
+
run.dyn.marker=_18.symbol;
|
|
84
|
+
}
|
|
85
|
+
if(this.opt.areas){
|
|
86
|
+
run.dyn.fill=_18.series.fill;
|
|
87
|
+
}
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
var _1b=_3.some(run.data,function(_1c){
|
|
91
|
+
return typeof _1c=="number"||(_1c&&!_1c.hasOwnProperty("x"));
|
|
92
|
+
});
|
|
93
|
+
var _1d=this.buildSegments(i,_1b);
|
|
94
|
+
for(var seg=0;seg<_1d.length;seg++){
|
|
95
|
+
var _1e=_1d[seg];
|
|
96
|
+
if(_1b){
|
|
97
|
+
_19=_3.map(_1e.rseg,function(v,i){
|
|
98
|
+
return {x:ht(i+_1e.index+1)+_13.l,y:dim.height-_13.b-vt(v),data:v};
|
|
99
|
+
},this);
|
|
100
|
+
}else{
|
|
101
|
+
_19=_3.map(_1e.rseg,function(v){
|
|
102
|
+
return {x:ht(v.x)+_13.l,y:dim.height-_13.b-vt(v.y),data:v};
|
|
103
|
+
},this);
|
|
104
|
+
}
|
|
105
|
+
if(_1b&&this.opt.interpolate){
|
|
106
|
+
while(seg<_1d.length){
|
|
107
|
+
seg++;
|
|
108
|
+
_1e=_1d[seg];
|
|
109
|
+
if(_1e){
|
|
110
|
+
_19=_19.concat(_3.map(_1e.rseg,function(v,i){
|
|
111
|
+
return {x:ht(i+_1e.index+1)+_13.l,y:dim.height-_13.b-vt(v),data:v};
|
|
112
|
+
},this));
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
var _1f=this.opt.tension?dc.curve(_19,this.opt.tension):"";
|
|
117
|
+
if(this.opt.areas&&_19.length>1){
|
|
118
|
+
var _20=this._plotFill(_18.series.fill,dim,_13),_21=_1.clone(_19);
|
|
119
|
+
if(this.opt.tension){
|
|
120
|
+
var _22="L"+_21[_21.length-1].x+","+(dim.height-_13.b)+" L"+_21[0].x+","+(dim.height-_13.b)+" L"+_21[0].x+","+_21[0].y;
|
|
121
|
+
run.dyn.fill=s.createPath(_1f+" "+_22).setFill(_20).getFill();
|
|
122
|
+
}else{
|
|
123
|
+
_21.push({x:_19[_19.length-1].x,y:dim.height-_13.b});
|
|
124
|
+
_21.push({x:_19[0].x,y:dim.height-_13.b});
|
|
125
|
+
_21.push(_19[0]);
|
|
126
|
+
run.dyn.fill=s.createPolyline(_21).setFill(_20).getFill();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if(this.opt.lines||this.opt.markers){
|
|
130
|
+
_15=_18.series.stroke;
|
|
131
|
+
if(_18.series.outline){
|
|
132
|
+
_16=run.dyn.outline=dc.makeStroke(_18.series.outline);
|
|
133
|
+
_16.width=2*_16.width+_15.width;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if(this.opt.markers){
|
|
137
|
+
run.dyn.marker=_18.symbol;
|
|
138
|
+
}
|
|
139
|
+
var _23=null,_24=null,_25=null;
|
|
140
|
+
if(_15&&_18.series.shadow&&_19.length>1){
|
|
141
|
+
var _26=_18.series.shadow,_27=_3.map(_19,function(c){
|
|
142
|
+
return {x:c.x+_26.dx,y:c.y+_26.dy};
|
|
143
|
+
});
|
|
144
|
+
if(this.opt.lines){
|
|
145
|
+
if(this.opt.tension){
|
|
146
|
+
run.dyn.shadow=s.createPath(dc.curve(_27,this.opt.tension)).setStroke(_26).getStroke();
|
|
147
|
+
}else{
|
|
148
|
+
run.dyn.shadow=s.createPolyline(_27).setStroke(_26).getStroke();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
if(this.opt.markers&&_18.marker.shadow){
|
|
152
|
+
_26=_18.marker.shadow;
|
|
153
|
+
_25=_3.map(_27,function(c){
|
|
154
|
+
return this.createPath(run,s,"M"+c.x+" "+c.y+" "+_18.symbol).setStroke(_26).setFill(_26.color);
|
|
155
|
+
},this);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if(this.opt.lines&&_19.length>1){
|
|
159
|
+
var _28;
|
|
160
|
+
if(_16){
|
|
161
|
+
if(this.opt.tension){
|
|
162
|
+
run.dyn.outline=s.createPath(_1f).setStroke(_16).getStroke();
|
|
163
|
+
}else{
|
|
164
|
+
run.dyn.outline=s.createPolyline(_19).setStroke(_16).getStroke();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if(this.opt.tension){
|
|
168
|
+
run.dyn.stroke=(_28=s.createPath(_1f)).setStroke(_15).getStroke();
|
|
169
|
+
}else{
|
|
170
|
+
run.dyn.stroke=(_28=s.createPolyline(_19)).setStroke(_15).getStroke();
|
|
171
|
+
}
|
|
172
|
+
if(_28.setFilter&&_18.series.filter){
|
|
173
|
+
_28.setFilter(_18.series.filter);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
var _29=null;
|
|
177
|
+
if(this.opt.markers){
|
|
178
|
+
var _2a=_18;
|
|
179
|
+
_23=new Array(_19.length);
|
|
180
|
+
_24=new Array(_19.length);
|
|
181
|
+
_16=null;
|
|
182
|
+
if(_2a.marker.outline){
|
|
183
|
+
_16=dc.makeStroke(_2a.marker.outline);
|
|
184
|
+
_16.width=2*_16.width+(_2a.marker.stroke?_2a.marker.stroke.width:0);
|
|
185
|
+
}
|
|
186
|
+
_3.forEach(_19,function(c,i){
|
|
187
|
+
if(this.opt.styleFunc||typeof c.data!="number"){
|
|
188
|
+
var _2b=typeof c.data!="number"?[c.data]:[];
|
|
189
|
+
if(this.opt.styleFunc){
|
|
190
|
+
_2b.push(this.opt.styleFunc(c.data));
|
|
191
|
+
}
|
|
192
|
+
_2a=t.addMixin(_18,"marker",_2b,true);
|
|
193
|
+
}else{
|
|
194
|
+
_2a=t.post(_18,"marker");
|
|
195
|
+
}
|
|
196
|
+
var _2c="M"+c.x+" "+c.y+" "+_2a.symbol;
|
|
197
|
+
if(_16){
|
|
198
|
+
_24[i]=this.createPath(run,s,_2c).setStroke(_16);
|
|
199
|
+
}
|
|
200
|
+
_23[i]=this.createPath(run,s,_2c).setStroke(_2a.marker.stroke).setFill(_2a.marker.fill);
|
|
201
|
+
},this);
|
|
202
|
+
run.dyn.markerFill=_2a.marker.fill;
|
|
203
|
+
run.dyn.markerStroke=_2a.marker.stroke;
|
|
204
|
+
if(!_29&&this.opt.labels){
|
|
205
|
+
_29=_23[0].getBoundingBox();
|
|
206
|
+
}
|
|
207
|
+
if(_17){
|
|
208
|
+
_3.forEach(_23,function(s,i){
|
|
209
|
+
var o={element:"marker",index:i+_1e.index,run:run,shape:s,outline:_24[i]||null,shadow:_25&&_25[i]||null,cx:_19[i].x,cy:_19[i].y};
|
|
210
|
+
if(_1b){
|
|
211
|
+
o.x=i+_1e.index+1;
|
|
212
|
+
o.y=run.data[i+_1e.index];
|
|
213
|
+
}else{
|
|
214
|
+
o.x=_1e.rseg[i].x;
|
|
215
|
+
o.y=run.data[i+_1e.index].y;
|
|
216
|
+
}
|
|
217
|
+
this._connectEvents(o);
|
|
218
|
+
_1a[i+_1e.index]=o;
|
|
219
|
+
},this);
|
|
220
|
+
}else{
|
|
221
|
+
delete this._eventSeries[run.name];
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
if(this.opt.labels){
|
|
225
|
+
var _2d=_29?_29.width:2;
|
|
226
|
+
var _2e=_29?_29.height:2;
|
|
227
|
+
_3.forEach(_19,function(c,i){
|
|
228
|
+
if(this.opt.styleFunc||typeof c.data!="number"){
|
|
229
|
+
var _2f=typeof c.data!="number"?[c.data]:[];
|
|
230
|
+
if(this.opt.styleFunc){
|
|
231
|
+
_2f.push(this.opt.styleFunc(c.data));
|
|
232
|
+
}
|
|
233
|
+
_2a=t.addMixin(_18,"marker",_2f,true);
|
|
234
|
+
}else{
|
|
235
|
+
_2a=t.post(_18,"marker");
|
|
236
|
+
}
|
|
237
|
+
this.createLabel(s,_1e.rseg[i],{x:c.x-_2d/2,y:c.y-_2e/2,width:_2d,height:_2e},_2a);
|
|
238
|
+
},this);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
run.dirty=false;
|
|
242
|
+
}
|
|
243
|
+
if(_4("dojo-bidi")){
|
|
244
|
+
this._checkOrientation(this.group,dim,_13);
|
|
245
|
+
}
|
|
246
|
+
if(this.animate){
|
|
247
|
+
var _30=this.getGroup();
|
|
248
|
+
fx.animateTransform(_1.delegate({shape:_30,duration:_9,transform:[{name:"translate",start:[0,dim.height-_13.b],end:[0,0]},{name:"scale",start:[1,0],end:[1,1]},{name:"original"}]},this.animate)).play();
|
|
249
|
+
}
|
|
250
|
+
this.dirty=false;
|
|
251
|
+
return this;
|
|
252
|
+
}});
|
|
253
|
+
});
|