@datagrok/helm 2.13.8 → 3.0.1
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 +6 -0
- package/css/helm.css +40 -0
- package/dist/137.js +2 -0
- package/dist/137.js.map +1 -0
- package/dist/323.js +2 -0
- package/dist/323.js.map +1 -0
- package/dist/657.js +2 -0
- package/dist/657.js.map +1 -0
- package/dist/782.js +2 -0
- package/dist/782.js.map +1 -0
- package/dist/884.js +2 -0
- package/dist/884.js.map +1 -0
- package/dist/94.js +2 -0
- package/dist/94.js.map +1 -0
- package/dist/libraries_bio_src_monomer-works_seq-to-molfile-worker_ts.js +16420 -0
- package/dist/libraries_bio_src_monomer-works_seq-to-molfile-worker_ts.js.map +1 -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/dist/vendors-HELM_node_modules_lru-cache_dist_esm_index_js.js +1560 -0
- package/dist/vendors-HELM_node_modules_lru-cache_dist_esm_index_js.js.map +1 -0
- package/files/samples/helm-showcase.csv +56 -0
- package/package.json +8 -12
- package/src/helm-helper.ts +134 -410
- package/src/package-api.ts +14 -11
- package/src/package-test.ts +0 -2
- package/src/package-utils.ts +8 -298
- package/src/package.g.ts +2 -8
- package/src/package.ts +11 -31
- package/src/tests/helm-activity-cliffs.ts +2 -2
- package/src/tests/helm-input-tests.ts +83 -0
- package/src/tests/parse-helm-tests.ts +7 -57
- package/src/tests/properties-widget-tests.ts +21 -11
- package/src/utils/helm-grid-cell-renderer.ts +141 -151
- package/src/utils/index.ts +3 -7
- package/src/widgets/helm-input.ts +42 -12
- package/src/widgets/properties-widget.ts +18 -11
- package/webpack.config.js +1 -12
- package/helm/JSDraw/Pistoia.HELM-uncompressed.js +0 -9694
- package/helm/JSDraw/ReadMe.txt +0 -8
- package/helm/JSDraw/Scilligence.JSDraw2.Lite-uncompressed.js +0 -31126
- package/helm/dojo/package.ts +0 -41
- package/helm/dojo/types.ts +0 -12
- package/src/helm-web-editor.ts +0 -68
- package/src/tests/get-monomer-tests.ts +0 -214
- package/src/tests/helm-service-tests.ts +0 -98
- package/src/types/dojo.ts +0 -3
- package/src/types/index.ts +0 -5
- package/src/utils/get-monomer.ts +0 -90
- package/src/utils/helm-service.ts +0 -166
- package/test-console-output-1.log +0 -919
- package/test-record-1.mp4 +0 -0
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +0 -63
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +0 -116
- package/vendor/dojo-1.10.10/dijit/Destroyable.js +0 -35
- package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +0 -83
- package/vendor/dojo-1.10.10/dijit/Tooltip.js +0 -240
- package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +0 -612
- package/vendor/dojo-1.10.10/dijit/Viewport.js +0 -44
- package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +0 -87
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js +0 -76
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +0 -247
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +0 -94
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +0 -238
- package/vendor/dojo-1.10.10/dijit/_Contained.js +0 -17
- package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +0 -56
- package/vendor/dojo-1.10.10/dijit/_Container.js +0 -47
- package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +0 -108
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +0 -198
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +0 -372
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +0 -11
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +0 -66
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +0 -188
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +0 -472
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +0 -8
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +0 -31
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +0 -90
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +0 -205
- package/vendor/dojo-1.10.10/dijit/_Widget.js +0 -66
- package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +0 -352
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +0 -353
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +0 -1200
- package/vendor/dojo-1.10.10/dijit/_base/focus.js +0 -68
- package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +0 -207
- package/vendor/dojo-1.10.10/dijit/_base/manager.js +0 -10
- package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +0 -35
- package/vendor/dojo-1.10.10/dijit/_base/place.js +0 -52
- package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +0 -131
- package/vendor/dojo-1.10.10/dijit/_base/popup.js +0 -23
- package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +0 -58
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js +0 -6
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +0 -22
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js +0 -3
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js +0 -3
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +0 -10
- package/vendor/dojo-1.10.10/dijit/_base/wai.js +0 -32
- package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +0 -109
- package/vendor/dojo-1.10.10/dijit/_base/window.js +0 -6
- package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +0 -18
- package/vendor/dojo-1.10.10/dijit/_base.js +0 -4
- package/vendor/dojo-1.10.10/dijit/_base.js.uncompressed.js +0 -27
- package/vendor/dojo-1.10.10/dijit/a11y.js +0 -109
- package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +0 -191
- package/vendor/dojo-1.10.10/dijit/a11yclick.js +0 -66
- package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +0 -139
- package/vendor/dojo-1.10.10/dijit/focus.js +0 -188
- package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +0 -371
- package/vendor/dojo-1.10.10/dijit/form/Button.js +0 -49
- package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +0 -130
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +0 -4
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +0 -27
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +0 -21
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +0 -86
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +0 -38
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +0 -102
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +0 -7
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +0 -26
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +0 -50
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +0 -116
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +0 -26
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +0 -81
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +0 -24
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +0 -51
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +0 -22
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +0 -67
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +0 -111
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +0 -254
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +0 -32
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +0 -69
- package/vendor/dojo-1.10.10/dijit/hccss.js +0 -9
- package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +0 -21
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +0 -215
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +0 -550
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +0 -7
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +0 -25
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +0 -235
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +0 -653
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +0 -171
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +0 -411
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js +0 -194
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +0 -410
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +0 -99
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +0 -236
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +0 -47
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +0 -190
- package/vendor/dojo-1.10.10/dijit/layout/utils.js +0 -77
- package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +0 -151
- package/vendor/dojo-1.10.10/dijit/main.js +0 -4
- package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +0 -16
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +0 -2
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +0 -21
- package/vendor/dojo-1.10.10/dijit/nls/loading.js +0 -2
- package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +0 -47
- package/vendor/dojo-1.10.10/dijit/place.js +0 -142
- package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +0 -407
- package/vendor/dojo-1.10.10/dijit/popup.js +0 -162
- package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +0 -441
- package/vendor/dojo-1.10.10/dijit/registry.js +0 -79
- package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +0 -159
- package/vendor/dojo-1.10.10/dijit/selection.js +0 -364
- package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +0 -525
- package/vendor/dojo-1.10.10/dijit/typematic.js +0 -96
- package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +0 -211
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +0 -195
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +0 -761
- package/vendor/dojo-1.10.10/dojo/Stateful.js +0 -90
- package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +0 -218
- package/vendor/dojo-1.10.10/dojo/_base/url.js +0 -87
- package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +0 -109
- package/vendor/dojo-1.10.10/dojo/cache.js +0 -9
- package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +0 -7
- package/vendor/dojo-1.10.10/dojo/colors.js +0 -74
- package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +0 -232
- package/vendor/dojo-1.10.10/dojo/cookie.js +0 -48
- package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +0 -98
- package/vendor/dojo-1.10.10/dojo/date/stamp.js +0 -82
- package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +0 -144
- package/vendor/dojo-1.10.10/dojo/dojo.js +0 -7
- package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +0 -18680
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +0 -27
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +0 -101
- package/vendor/dojo-1.10.10/dojo/fx/easing.js +0 -165
- package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +0 -276
- package/vendor/dojo-1.10.10/dojo/fx.js +0 -271
- package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +0 -443
- package/vendor/dojo-1.10.10/dojo/hccss.js +0 -26
- package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +0 -52
- package/vendor/dojo-1.10.10/dojo/html.js +0 -161
- package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +0 -370
- package/vendor/dojo-1.10.10/dojo/io/iframe.js +0 -71
- package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +0 -190
- package/vendor/dojo-1.10.10/dojo/io/script.js +0 -112
- package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +0 -280
- package/vendor/dojo-1.10.10/dojo/parser.js +0 -437
- package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +0 -915
- package/vendor/dojo-1.10.10/dojo/promise/all.js +0 -59
- package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +0 -77
- package/vendor/dojo-1.10.10/dojo/regexp.js +0 -32
- package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +0 -70
- package/vendor/dojo-1.10.10/dojo/request/iframe.js +0 -291
- package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +0 -438
- package/vendor/dojo-1.10.10/dojo/request/script.js +0 -129
- package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +0 -237
- package/vendor/dojo-1.10.10/dojo/require.js +0 -11
- package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +0 -7
- package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
- package/vendor/dojo-1.10.10/dojo/string.js +0 -67
- package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +0 -181
- package/vendor/dojo-1.10.10/dojo/touch.js +0 -191
- package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +0 -468
- package/vendor/dojo-1.10.10/dojo/uacss.js +0 -36
- package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +0 -85
- package/vendor/dojo-1.10.10/dojo/window.js +0 -141
- package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +0 -241
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js +0 -626
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +0 -1220
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +0 -5
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +0 -16
- package/vendor/dojo-1.10.10/dojox/charting/Element.js +0 -247
- package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +0 -402
- package/vendor/dojo-1.10.10/dojox/charting/Series.js +0 -24
- package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +0 -58
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +0 -191
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +0 -577
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js +0 -42
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +0 -120
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +0 -11
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +0 -36
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +0 -77
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +0 -144
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +0 -58
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +0 -123
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +0 -54
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +0 -124
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +0 -28
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +0 -74
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +0 -116
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +0 -178
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +0 -24
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +0 -83
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +0 -557
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +0 -980
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +0 -65
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +0 -224
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +0 -91
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +0 -164
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +0 -7
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +0 -168
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +0 -311
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +0 -61
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +0 -161
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +0 -141
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +0 -242
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +0 -126
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +0 -243
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +0 -108
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +0 -290
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +0 -13
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +0 -13
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +0 -153
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +0 -249
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +0 -253
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +0 -472
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +0 -182
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +0 -356
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +0 -6
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +0 -6
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +0 -7
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +0 -13
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +0 -110
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +0 -208
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +0 -303
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +0 -547
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +0 -134
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +0 -207
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +0 -299
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +0 -537
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +0 -24
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +0 -44
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +0 -7
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +0 -22
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +0 -33
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +0 -20
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +0 -31
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +0 -6
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +0 -68
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +0 -120
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +0 -209
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +0 -214
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +0 -76
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +0 -77
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +0 -59
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +0 -70
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +0 -220
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +0 -262
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +0 -23
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +0 -36
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +0 -39
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +0 -106
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +0 -5
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +0 -4
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +0 -3
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +0 -102
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +0 -165
- package/vendor/dojo-1.10.10/dojox/color/Palette.js +0 -163
- package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +0 -460
- package/vendor/dojo-1.10.10/dojox/color/_base.js +0 -174
- package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +0 -196
- package/vendor/dojo-1.10.10/dojox/gfx/_base.js +0 -253
- package/vendor/dojo-1.10.10/dojox/gfx/_base.js.uncompressed.js +0 -1024
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js +0 -297
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +0 -350
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +0 -63
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +0 -91
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +0 -170
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +0 -501
- package/vendor/dojo-1.10.10/dojox/gfx/path.js +0 -319
- package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +0 -478
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js +0 -459
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +0 -1091
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js +0 -662
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +0 -1023
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js +0 -199
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +0 -322
- package/vendor/dojo-1.10.10/dojox/gfx.js +0 -2
- package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +0 -1136
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +0 -151
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +0 -169
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +0 -93
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +0 -125
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +0 -81
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +0 -132
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +0 -54
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +0 -78
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +0 -61
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +0 -77
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +0 -87
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +0 -107
- package/vendor/dojo-1.10.10/dojox/lang/functional.js +0 -4
- package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +0 -3
- package/vendor/dojo-1.10.10/dojox/lang/utils.js +0 -86
- package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +0 -121
- package/vendor/dojo-1.10.10/dojox/main.js +0 -4
- package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +0 -112
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +0 -208
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js +0 -62
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +0 -344
- package/vendor/dojo-1.10.10/dojox/storage/manager.js +0 -110
- package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +0 -263
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,153 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,249 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,253 +0,0 @@
|
|
|
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
|
-
});
|