@datagrok/helm 2.13.7 → 3.0.0
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/CREDITS.md +164 -0
- package/dist/489.js +2 -0
- package/dist/489.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/files/samples/helm-showcase.csv +56 -0
- package/package.json +6 -10
- package/src/helm-helper.ts +61 -413
- 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/test-console-output-1.log +103 -706
- package/test-record-1.mp4 +0 -0
- package/webpack.config.js +1 -12
- package/dist/455.js +0 -2
- package/dist/455.js.map +0 -1
- package/dist/package-dojo.js +0 -2
- package/dist/package-dojo.js.map +0 -1
- 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/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,626 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/charting/Chart",["../main","dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/dom-style","dojo/dom","dojo/dom-geometry","dojo/dom-construct","dojo/_base/Color","dojo/sniff","./Element","./SimpleTheme","./Series","./axis2d/common","dojox/gfx/shape","dojox/gfx","dojo/has!dojo-bidi?./bidi/Chart","dojox/lang/functional","dojox/lang/functional/fold","dojox/lang/functional/reversed"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,g,_10,_11){
|
|
3
|
-
var dc=_2.getObject("charting",true,_1),_12=_11.lambda("item.clear()"),_13=_11.lambda("item.purgeGroup()"),_14=_11.lambda("item.destroy()"),_15=_11.lambda("item.dirty = false"),_16=_11.lambda("item.dirty = true"),_17=_11.lambda("item.name");
|
|
4
|
-
var _18=_4(_a("dojo-bidi")?"dojox.charting.NonBidiChart":"dojox.charting.Chart",null,{constructor:function(_19,_1a){
|
|
5
|
-
if(!_1a){
|
|
6
|
-
_1a={};
|
|
7
|
-
}
|
|
8
|
-
this.margins=_1a.margins?_1a.margins:{l:10,t:10,r:10,b:10};
|
|
9
|
-
this.stroke=_1a.stroke;
|
|
10
|
-
this.fill=_1a.fill;
|
|
11
|
-
this.delayInMs=_1a.delayInMs||200;
|
|
12
|
-
this.title=_1a.title;
|
|
13
|
-
this.titleGap=_1a.titleGap;
|
|
14
|
-
this.titlePos=_1a.titlePos;
|
|
15
|
-
this.titleFont=_1a.titleFont;
|
|
16
|
-
this.titleFontColor=_1a.titleFontColor;
|
|
17
|
-
this.chartTitle=null;
|
|
18
|
-
this.htmlLabels=true;
|
|
19
|
-
if("htmlLabels" in _1a){
|
|
20
|
-
this.htmlLabels=_1a.htmlLabels;
|
|
21
|
-
}
|
|
22
|
-
this.theme=null;
|
|
23
|
-
this.axes={};
|
|
24
|
-
this.stack=[];
|
|
25
|
-
this.plots={};
|
|
26
|
-
this.series=[];
|
|
27
|
-
this.runs={};
|
|
28
|
-
this.dirty=true;
|
|
29
|
-
this.node=_6.byId(_19);
|
|
30
|
-
var box=_7.getMarginBox(_19);
|
|
31
|
-
this.surface=g.createSurface(this.node,box.w||400,box.h||300);
|
|
32
|
-
if(this.surface.declaredClass.indexOf("vml")==-1){
|
|
33
|
-
this._nativeClip=true;
|
|
34
|
-
}
|
|
35
|
-
},destroy:function(){
|
|
36
|
-
_3.forEach(this.series,_14);
|
|
37
|
-
_3.forEach(this.stack,_14);
|
|
38
|
-
_11.forIn(this.axes,_14);
|
|
39
|
-
this.surface.destroy();
|
|
40
|
-
if(this.chartTitle&&this.chartTitle.tagName){
|
|
41
|
-
_8.destroy(this.chartTitle);
|
|
42
|
-
}
|
|
43
|
-
},getCoords:function(){
|
|
44
|
-
var _1b=this.node;
|
|
45
|
-
var s=_5.getComputedStyle(_1b),_1c=_7.getMarginBox(_1b,s);
|
|
46
|
-
var abs=_7.position(_1b,true);
|
|
47
|
-
_1c.x=abs.x;
|
|
48
|
-
_1c.y=abs.y;
|
|
49
|
-
return _1c;
|
|
50
|
-
},setTheme:function(_1d){
|
|
51
|
-
this.theme=_1d.clone();
|
|
52
|
-
this.dirty=true;
|
|
53
|
-
return this;
|
|
54
|
-
},addAxis:function(_1e,_1f){
|
|
55
|
-
var _20,_21=_1f&&_1f.type||"Default";
|
|
56
|
-
if(typeof _21=="string"){
|
|
57
|
-
if(!dc.axis2d||!dc.axis2d[_21]){
|
|
58
|
-
throw Error("Can't find axis: "+_21+" - Check "+"require() dependencies.");
|
|
59
|
-
}
|
|
60
|
-
_20=new dc.axis2d[_21](this,_1f);
|
|
61
|
-
}else{
|
|
62
|
-
_20=new _21(this,_1f);
|
|
63
|
-
}
|
|
64
|
-
_20.name=_1e;
|
|
65
|
-
_20.dirty=true;
|
|
66
|
-
if(_1e in this.axes){
|
|
67
|
-
this.axes[_1e].destroy();
|
|
68
|
-
}
|
|
69
|
-
this.axes[_1e]=_20;
|
|
70
|
-
this.dirty=true;
|
|
71
|
-
return this;
|
|
72
|
-
},getAxis:function(_22){
|
|
73
|
-
return this.axes[_22];
|
|
74
|
-
},removeAxis:function(_23){
|
|
75
|
-
if(_23 in this.axes){
|
|
76
|
-
this.axes[_23].destroy();
|
|
77
|
-
delete this.axes[_23];
|
|
78
|
-
this.dirty=true;
|
|
79
|
-
}
|
|
80
|
-
return this;
|
|
81
|
-
},addPlot:function(_24,_25){
|
|
82
|
-
var _26,_27=_25&&_25.type||"Default";
|
|
83
|
-
if(typeof _27=="string"){
|
|
84
|
-
if(!dc.plot2d||!dc.plot2d[_27]){
|
|
85
|
-
throw Error("Can't find plot: "+_27+" - didn't you forget to dojo"+".require() it?");
|
|
86
|
-
}
|
|
87
|
-
_26=new dc.plot2d[_27](this,_25);
|
|
88
|
-
}else{
|
|
89
|
-
_26=new _27(this,_25);
|
|
90
|
-
}
|
|
91
|
-
_26.name=_24;
|
|
92
|
-
_26.dirty=true;
|
|
93
|
-
if(_24 in this.plots){
|
|
94
|
-
this.stack[this.plots[_24]].destroy();
|
|
95
|
-
this.stack[this.plots[_24]]=_26;
|
|
96
|
-
}else{
|
|
97
|
-
this.plots[_24]=this.stack.length;
|
|
98
|
-
this.stack.push(_26);
|
|
99
|
-
}
|
|
100
|
-
this.dirty=true;
|
|
101
|
-
return this;
|
|
102
|
-
},getPlot:function(_28){
|
|
103
|
-
return this.stack[this.plots[_28]];
|
|
104
|
-
},removePlot:function(_29){
|
|
105
|
-
if(_29 in this.plots){
|
|
106
|
-
var _2a=this.plots[_29];
|
|
107
|
-
delete this.plots[_29];
|
|
108
|
-
this.stack[_2a].destroy();
|
|
109
|
-
this.stack.splice(_2a,1);
|
|
110
|
-
_11.forIn(this.plots,function(idx,_2b,_2c){
|
|
111
|
-
if(idx>_2a){
|
|
112
|
-
_2c[_2b]=idx-1;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
var ns=_3.filter(this.series,function(run){
|
|
116
|
-
return run.plot!=_29;
|
|
117
|
-
});
|
|
118
|
-
if(ns.length<this.series.length){
|
|
119
|
-
_3.forEach(this.series,function(run){
|
|
120
|
-
if(run.plot==_29){
|
|
121
|
-
run.destroy();
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
this.runs={};
|
|
125
|
-
_3.forEach(ns,function(run,_2d){
|
|
126
|
-
this.runs[run.plot]=_2d;
|
|
127
|
-
},this);
|
|
128
|
-
this.series=ns;
|
|
129
|
-
}
|
|
130
|
-
this.dirty=true;
|
|
131
|
-
}
|
|
132
|
-
return this;
|
|
133
|
-
},getPlotOrder:function(){
|
|
134
|
-
return _11.map(this.stack,_17);
|
|
135
|
-
},setPlotOrder:function(_2e){
|
|
136
|
-
var _2f={},_30=_11.filter(_2e,function(_31){
|
|
137
|
-
if(!(_31 in this.plots)||(_31 in _2f)){
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
_2f[_31]=1;
|
|
141
|
-
return true;
|
|
142
|
-
},this);
|
|
143
|
-
if(_30.length<this.stack.length){
|
|
144
|
-
_11.forEach(this.stack,function(_32){
|
|
145
|
-
var _33=_32.name;
|
|
146
|
-
if(!(_33 in _2f)){
|
|
147
|
-
_30.push(_33);
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
var _34=_11.map(_30,function(_35){
|
|
152
|
-
return this.stack[this.plots[_35]];
|
|
153
|
-
},this);
|
|
154
|
-
_11.forEach(_34,function(_36,i){
|
|
155
|
-
this.plots[_36.name]=i;
|
|
156
|
-
},this);
|
|
157
|
-
this.stack=_34;
|
|
158
|
-
this.dirty=true;
|
|
159
|
-
return this;
|
|
160
|
-
},movePlotToFront:function(_37){
|
|
161
|
-
if(_37 in this.plots){
|
|
162
|
-
var _38=this.plots[_37];
|
|
163
|
-
if(_38){
|
|
164
|
-
var _39=this.getPlotOrder();
|
|
165
|
-
_39.splice(_38,1);
|
|
166
|
-
_39.unshift(_37);
|
|
167
|
-
return this.setPlotOrder(_39);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return this;
|
|
171
|
-
},movePlotToBack:function(_3a){
|
|
172
|
-
if(_3a in this.plots){
|
|
173
|
-
var _3b=this.plots[_3a];
|
|
174
|
-
if(_3b<this.stack.length-1){
|
|
175
|
-
var _3c=this.getPlotOrder();
|
|
176
|
-
_3c.splice(_3b,1);
|
|
177
|
-
_3c.push(_3a);
|
|
178
|
-
return this.setPlotOrder(_3c);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return this;
|
|
182
|
-
},addSeries:function(_3d,_3e,_3f){
|
|
183
|
-
var run=new _d(this,_3e,_3f);
|
|
184
|
-
run.name=_3d;
|
|
185
|
-
if(_3d in this.runs){
|
|
186
|
-
this.series[this.runs[_3d]].destroy();
|
|
187
|
-
this.series[this.runs[_3d]]=run;
|
|
188
|
-
}else{
|
|
189
|
-
this.runs[_3d]=this.series.length;
|
|
190
|
-
this.series.push(run);
|
|
191
|
-
}
|
|
192
|
-
this.dirty=true;
|
|
193
|
-
if(!("ymin" in run)&&"min" in run){
|
|
194
|
-
run.ymin=run.min;
|
|
195
|
-
}
|
|
196
|
-
if(!("ymax" in run)&&"max" in run){
|
|
197
|
-
run.ymax=run.max;
|
|
198
|
-
}
|
|
199
|
-
return this;
|
|
200
|
-
},getSeries:function(_40){
|
|
201
|
-
return this.series[this.runs[_40]];
|
|
202
|
-
},removeSeries:function(_41){
|
|
203
|
-
if(_41 in this.runs){
|
|
204
|
-
var _42=this.runs[_41];
|
|
205
|
-
delete this.runs[_41];
|
|
206
|
-
this.series[_42].destroy();
|
|
207
|
-
this.series.splice(_42,1);
|
|
208
|
-
_11.forIn(this.runs,function(idx,_43,_44){
|
|
209
|
-
if(idx>_42){
|
|
210
|
-
_44[_43]=idx-1;
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
this.dirty=true;
|
|
214
|
-
}
|
|
215
|
-
return this;
|
|
216
|
-
},updateSeries:function(_45,_46,_47){
|
|
217
|
-
if(_45 in this.runs){
|
|
218
|
-
var run=this.series[this.runs[_45]];
|
|
219
|
-
run.update(_46);
|
|
220
|
-
if(_47){
|
|
221
|
-
this.dirty=true;
|
|
222
|
-
}else{
|
|
223
|
-
this._invalidateDependentPlots(run.plot,false);
|
|
224
|
-
this._invalidateDependentPlots(run.plot,true);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
return this;
|
|
228
|
-
},getSeriesOrder:function(_48){
|
|
229
|
-
return _11.map(_11.filter(this.series,function(run){
|
|
230
|
-
return run.plot==_48;
|
|
231
|
-
}),_17);
|
|
232
|
-
},setSeriesOrder:function(_49){
|
|
233
|
-
var _4a,_4b={},_4c=_11.filter(_49,function(_4d){
|
|
234
|
-
if(!(_4d in this.runs)||(_4d in _4b)){
|
|
235
|
-
return false;
|
|
236
|
-
}
|
|
237
|
-
var run=this.series[this.runs[_4d]];
|
|
238
|
-
if(_4a){
|
|
239
|
-
if(run.plot!=_4a){
|
|
240
|
-
return false;
|
|
241
|
-
}
|
|
242
|
-
}else{
|
|
243
|
-
_4a=run.plot;
|
|
244
|
-
}
|
|
245
|
-
_4b[_4d]=1;
|
|
246
|
-
return true;
|
|
247
|
-
},this);
|
|
248
|
-
_11.forEach(this.series,function(run){
|
|
249
|
-
var _4e=run.name;
|
|
250
|
-
if(!(_4e in _4b)&&run.plot==_4a){
|
|
251
|
-
_4c.push(_4e);
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
var _4f=_11.map(_4c,function(_50){
|
|
255
|
-
return this.series[this.runs[_50]];
|
|
256
|
-
},this);
|
|
257
|
-
this.series=_4f.concat(_11.filter(this.series,function(run){
|
|
258
|
-
return run.plot!=_4a;
|
|
259
|
-
}));
|
|
260
|
-
_11.forEach(this.series,function(run,i){
|
|
261
|
-
this.runs[run.name]=i;
|
|
262
|
-
},this);
|
|
263
|
-
this.dirty=true;
|
|
264
|
-
return this;
|
|
265
|
-
},moveSeriesToFront:function(_51){
|
|
266
|
-
if(_51 in this.runs){
|
|
267
|
-
var _52=this.runs[_51],_53=this.getSeriesOrder(this.series[_52].plot);
|
|
268
|
-
if(_51!=_53[0]){
|
|
269
|
-
_53.splice(_52,1);
|
|
270
|
-
_53.unshift(_51);
|
|
271
|
-
return this.setSeriesOrder(_53);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return this;
|
|
275
|
-
},moveSeriesToBack:function(_54){
|
|
276
|
-
if(_54 in this.runs){
|
|
277
|
-
var _55=this.runs[_54],_56=this.getSeriesOrder(this.series[_55].plot);
|
|
278
|
-
if(_54!=_56[_56.length-1]){
|
|
279
|
-
_56.splice(_55,1);
|
|
280
|
-
_56.push(_54);
|
|
281
|
-
return this.setSeriesOrder(_56);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
return this;
|
|
285
|
-
},resize:function(_57,_58){
|
|
286
|
-
switch(arguments.length){
|
|
287
|
-
case 1:
|
|
288
|
-
_7.setMarginBox(this.node,_57);
|
|
289
|
-
break;
|
|
290
|
-
case 2:
|
|
291
|
-
_7.setMarginBox(this.node,{w:_57,h:_58});
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
var box=_7.getMarginBox(this.node);
|
|
295
|
-
var d=this.surface.getDimensions();
|
|
296
|
-
if(d.width!=box.w||d.height!=box.h){
|
|
297
|
-
this.surface.setDimensions(box.w,box.h);
|
|
298
|
-
this.dirty=true;
|
|
299
|
-
return this.render();
|
|
300
|
-
}else{
|
|
301
|
-
return this;
|
|
302
|
-
}
|
|
303
|
-
},getGeometry:function(){
|
|
304
|
-
var ret={};
|
|
305
|
-
_11.forIn(this.axes,function(_59){
|
|
306
|
-
if(_59.initialized()){
|
|
307
|
-
ret[_59.name]={name:_59.name,vertical:_59.vertical,scaler:_59.scaler,ticks:_59.ticks};
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
return ret;
|
|
311
|
-
},setAxisWindow:function(_5a,_5b,_5c,_5d){
|
|
312
|
-
var _5e=this.axes[_5a];
|
|
313
|
-
if(_5e){
|
|
314
|
-
_5e.setWindow(_5b,_5c);
|
|
315
|
-
_3.forEach(this.stack,function(_5f){
|
|
316
|
-
if(_5f.hAxis==_5a||_5f.vAxis==_5a){
|
|
317
|
-
_5f.zoom=_5d;
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
return this;
|
|
322
|
-
},setWindow:function(sx,sy,dx,dy,_60){
|
|
323
|
-
if(!("plotArea" in this)){
|
|
324
|
-
this.calculateGeometry();
|
|
325
|
-
}
|
|
326
|
-
_11.forIn(this.axes,function(_61){
|
|
327
|
-
var _62,_63,_64=_61.getScaler().bounds,s=_64.span/(_64.upper-_64.lower);
|
|
328
|
-
if(_61.vertical){
|
|
329
|
-
_62=sy;
|
|
330
|
-
_63=dy/s/_62;
|
|
331
|
-
}else{
|
|
332
|
-
_62=sx;
|
|
333
|
-
_63=dx/s/_62;
|
|
334
|
-
}
|
|
335
|
-
_61.setWindow(_62,_63);
|
|
336
|
-
});
|
|
337
|
-
_3.forEach(this.stack,function(_65){
|
|
338
|
-
_65.zoom=_60;
|
|
339
|
-
});
|
|
340
|
-
return this;
|
|
341
|
-
},zoomIn:function(_66,_67,_68){
|
|
342
|
-
var _69=this.axes[_66];
|
|
343
|
-
if(_69){
|
|
344
|
-
var _6a,_6b,_6c=_69.getScaler().bounds;
|
|
345
|
-
var _6d=Math.min(_67[0],_67[1]);
|
|
346
|
-
var _6e=Math.max(_67[0],_67[1]);
|
|
347
|
-
_6d=_67[0]<_6c.lower?_6c.lower:_6d;
|
|
348
|
-
_6e=_67[1]>_6c.upper?_6c.upper:_6e;
|
|
349
|
-
_6a=(_6c.upper-_6c.lower)/(_6e-_6d);
|
|
350
|
-
_6b=_6d-_6c.lower;
|
|
351
|
-
this.setAxisWindow(_66,_6a,_6b);
|
|
352
|
-
if(_68){
|
|
353
|
-
this.delayedRender();
|
|
354
|
-
}else{
|
|
355
|
-
this.render();
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
},calculateGeometry:function(){
|
|
359
|
-
if(this.dirty){
|
|
360
|
-
return this.fullGeometry();
|
|
361
|
-
}
|
|
362
|
-
var _6f=_3.filter(this.stack,function(_70){
|
|
363
|
-
return _70.dirty||(_70.hAxis&&this.axes[_70.hAxis].dirty)||(_70.vAxis&&this.axes[_70.vAxis].dirty);
|
|
364
|
-
},this);
|
|
365
|
-
_71(_6f,this.plotArea);
|
|
366
|
-
return this;
|
|
367
|
-
},fullGeometry:function(){
|
|
368
|
-
this._makeDirty();
|
|
369
|
-
_3.forEach(this.stack,_12);
|
|
370
|
-
if(!this.theme){
|
|
371
|
-
this.setTheme(new _c());
|
|
372
|
-
}
|
|
373
|
-
_3.forEach(this.series,function(run){
|
|
374
|
-
if(!(run.plot in this.plots)){
|
|
375
|
-
if(!dc.plot2d||!dc.plot2d.Default){
|
|
376
|
-
throw Error("Can't find plot: Default - didn't you forget to dojo"+".require() it?");
|
|
377
|
-
}
|
|
378
|
-
var _72=new dc.plot2d.Default(this,{});
|
|
379
|
-
_72.name=run.plot;
|
|
380
|
-
this.plots[run.plot]=this.stack.length;
|
|
381
|
-
this.stack.push(_72);
|
|
382
|
-
}
|
|
383
|
-
this.stack[this.plots[run.plot]].addSeries(run);
|
|
384
|
-
},this);
|
|
385
|
-
_3.forEach(this.stack,function(_73){
|
|
386
|
-
if(_73.assignAxes){
|
|
387
|
-
_73.assignAxes(this.axes);
|
|
388
|
-
}
|
|
389
|
-
},this);
|
|
390
|
-
var dim=this.dim=this.surface.getDimensions();
|
|
391
|
-
dim.width=g.normalizedLength(dim.width);
|
|
392
|
-
dim.height=g.normalizedLength(dim.height);
|
|
393
|
-
_11.forIn(this.axes,_12);
|
|
394
|
-
_71(this.stack,dim);
|
|
395
|
-
var _74=this.offsets={l:0,r:0,t:0,b:0};
|
|
396
|
-
var _75=this;
|
|
397
|
-
_11.forIn(this.axes,function(_76){
|
|
398
|
-
if(_a("dojo-bidi")){
|
|
399
|
-
_75._resetLeftBottom(_76);
|
|
400
|
-
}
|
|
401
|
-
_11.forIn(_76.getOffsets(),function(o,i){
|
|
402
|
-
_74[i]=Math.max(o,_74[i]);
|
|
403
|
-
});
|
|
404
|
-
});
|
|
405
|
-
if(this.title){
|
|
406
|
-
this.titleGap=(this.titleGap==0)?0:this.titleGap||this.theme.chart.titleGap||20;
|
|
407
|
-
this.titlePos=this.titlePos||this.theme.chart.titlePos||"top";
|
|
408
|
-
this.titleFont=this.titleFont||this.theme.chart.titleFont;
|
|
409
|
-
this.titleFontColor=this.titleFontColor||this.theme.chart.titleFontColor||"black";
|
|
410
|
-
var _77=g.normalizedLength(g.splitFontString(this.titleFont).size);
|
|
411
|
-
_74[this.titlePos=="top"?"t":"b"]+=(_77+this.titleGap);
|
|
412
|
-
}
|
|
413
|
-
_11.forIn(this.margins,function(o,i){
|
|
414
|
-
_74[i]+=o;
|
|
415
|
-
});
|
|
416
|
-
this.plotArea={width:dim.width-_74.l-_74.r,height:dim.height-_74.t-_74.b};
|
|
417
|
-
_11.forIn(this.axes,_12);
|
|
418
|
-
_71(this.stack,this.plotArea);
|
|
419
|
-
return this;
|
|
420
|
-
},render:function(){
|
|
421
|
-
if(this._delayedRenderHandle){
|
|
422
|
-
clearTimeout(this._delayedRenderHandle);
|
|
423
|
-
this._delayedRenderHandle=null;
|
|
424
|
-
}
|
|
425
|
-
if(this.theme){
|
|
426
|
-
this.theme.clear();
|
|
427
|
-
}
|
|
428
|
-
if(this.dirty){
|
|
429
|
-
return this.fullRender();
|
|
430
|
-
}
|
|
431
|
-
this.calculateGeometry();
|
|
432
|
-
_11.forEachRev(this.stack,function(_78){
|
|
433
|
-
_78.render(this.dim,this.offsets);
|
|
434
|
-
},this);
|
|
435
|
-
_11.forIn(this.axes,function(_79){
|
|
436
|
-
_79.render(this.dim,this.offsets);
|
|
437
|
-
},this);
|
|
438
|
-
this._makeClean();
|
|
439
|
-
return this;
|
|
440
|
-
},fullRender:function(){
|
|
441
|
-
this.fullGeometry();
|
|
442
|
-
var _7a=this.offsets,dim=this.dim;
|
|
443
|
-
var w=Math.max(0,dim.width-_7a.l-_7a.r),h=Math.max(0,dim.height-_7a.t-_7a.b);
|
|
444
|
-
_3.forEach(this.series,_13);
|
|
445
|
-
_11.forIn(this.axes,_13);
|
|
446
|
-
_3.forEach(this.stack,_13);
|
|
447
|
-
var _7b=this.surface.children;
|
|
448
|
-
if(_f.dispose){
|
|
449
|
-
for(var i=0;i<_7b.length;++i){
|
|
450
|
-
_f.dispose(_7b[i]);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
if(this.chartTitle&&this.chartTitle.tagName){
|
|
454
|
-
_8.destroy(this.chartTitle);
|
|
455
|
-
}
|
|
456
|
-
this.surface.clear();
|
|
457
|
-
this.chartTitle=null;
|
|
458
|
-
this._renderChartBackground(dim,_7a);
|
|
459
|
-
if(this._nativeClip){
|
|
460
|
-
this._renderPlotBackground(dim,_7a,w,h);
|
|
461
|
-
}else{
|
|
462
|
-
this._renderPlotBackground(dim,_7a,w,h);
|
|
463
|
-
}
|
|
464
|
-
_11.foldr(this.stack,function(z,_7c){
|
|
465
|
-
return _7c.render(dim,_7a),0;
|
|
466
|
-
},0);
|
|
467
|
-
if(!this._nativeClip){
|
|
468
|
-
this._renderChartBackground(dim,_7a);
|
|
469
|
-
}
|
|
470
|
-
if(this.title){
|
|
471
|
-
var _7d=(g.renderer=="canvas")&&this.htmlLabels,_7e=_7d||!_a("ie")&&!_a("opera")&&this.htmlLabels?"html":"gfx",_7f=g.normalizedLength(g.splitFontString(this.titleFont).size);
|
|
472
|
-
this.chartTitle=_e.createText[_7e](this,this.surface,dim.width/2,this.titlePos=="top"?_7f+this.margins.t:dim.height-this.margins.b,"middle",this.title,this.titleFont,this.titleFontColor);
|
|
473
|
-
}
|
|
474
|
-
_11.forIn(this.axes,function(_80){
|
|
475
|
-
_80.render(dim,_7a);
|
|
476
|
-
});
|
|
477
|
-
this._makeClean();
|
|
478
|
-
return this;
|
|
479
|
-
},_renderChartBackground:function(dim,_81){
|
|
480
|
-
var t=this.theme,_82;
|
|
481
|
-
var _83=this.fill!==undefined?this.fill:(t.chart&&t.chart.fill);
|
|
482
|
-
var _84=this.stroke!==undefined?this.stroke:(t.chart&&t.chart.stroke);
|
|
483
|
-
if(_83=="inherit"){
|
|
484
|
-
var _85=this.node;
|
|
485
|
-
_83=new _9(_5.get(_85,"backgroundColor"));
|
|
486
|
-
while(_83.a==0&&_85!=document.documentElement){
|
|
487
|
-
_83=new _9(_5.get(_85,"backgroundColor"));
|
|
488
|
-
_85=_85.parentNode;
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
if(_83){
|
|
492
|
-
if(this._nativeClip){
|
|
493
|
-
_83=_b.prototype._shapeFill(_b.prototype._plotFill(_83,dim),{x:0,y:0,width:dim.width+1,height:dim.height+1});
|
|
494
|
-
this.surface.createRect({width:dim.width+1,height:dim.height+1}).setFill(_83);
|
|
495
|
-
}else{
|
|
496
|
-
_83=_b.prototype._plotFill(_83,dim,_81);
|
|
497
|
-
if(_81.l){
|
|
498
|
-
_82={x:0,y:0,width:_81.l,height:dim.height+1};
|
|
499
|
-
this.surface.createRect(_82).setFill(_b.prototype._shapeFill(_83,_82));
|
|
500
|
-
}
|
|
501
|
-
if(_81.r){
|
|
502
|
-
_82={x:dim.width-_81.r,y:0,width:_81.r+1,height:dim.height+2};
|
|
503
|
-
this.surface.createRect(_82).setFill(_b.prototype._shapeFill(_83,_82));
|
|
504
|
-
}
|
|
505
|
-
if(_81.t){
|
|
506
|
-
_82={x:0,y:0,width:dim.width+1,height:_81.t};
|
|
507
|
-
this.surface.createRect(_82).setFill(_b.prototype._shapeFill(_83,_82));
|
|
508
|
-
}
|
|
509
|
-
if(_81.b){
|
|
510
|
-
_82={x:0,y:dim.height-_81.b,width:dim.width+1,height:_81.b+2};
|
|
511
|
-
this.surface.createRect(_82).setFill(_b.prototype._shapeFill(_83,_82));
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
if(_84){
|
|
516
|
-
this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_84);
|
|
517
|
-
}
|
|
518
|
-
},_renderPlotBackground:function(dim,_86,w,h){
|
|
519
|
-
var t=this.theme;
|
|
520
|
-
var _87=t.plotarea&&t.plotarea.fill;
|
|
521
|
-
var _88=t.plotarea&&t.plotarea.stroke;
|
|
522
|
-
var _89={x:_86.l-1,y:_86.t-1,width:w+2,height:h+2};
|
|
523
|
-
if(_87){
|
|
524
|
-
_87=_b.prototype._shapeFill(_b.prototype._plotFill(_87,dim,_86),_89);
|
|
525
|
-
this.surface.createRect(_89).setFill(_87);
|
|
526
|
-
}
|
|
527
|
-
if(_88){
|
|
528
|
-
this.surface.createRect({x:_86.l,y:_86.t,width:w+1,height:h+1}).setStroke(_88);
|
|
529
|
-
}
|
|
530
|
-
},delayedRender:function(){
|
|
531
|
-
if(!this._delayedRenderHandle){
|
|
532
|
-
this._delayedRenderHandle=setTimeout(_2.hitch(this,function(){
|
|
533
|
-
this.render();
|
|
534
|
-
}),this.delayInMs);
|
|
535
|
-
}
|
|
536
|
-
return this;
|
|
537
|
-
},connectToPlot:function(_8a,_8b,_8c){
|
|
538
|
-
return _8a in this.plots?this.stack[this.plots[_8a]].connect(_8b,_8c):null;
|
|
539
|
-
},fireEvent:function(_8d,_8e,_8f){
|
|
540
|
-
if(_8d in this.runs){
|
|
541
|
-
var _90=this.series[this.runs[_8d]].plot;
|
|
542
|
-
if(_90 in this.plots){
|
|
543
|
-
var _91=this.stack[this.plots[_90]];
|
|
544
|
-
if(_91){
|
|
545
|
-
_91.fireEvent(_8d,_8e,_8f);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
return this;
|
|
550
|
-
},_makeClean:function(){
|
|
551
|
-
_3.forEach(this.axes,_15);
|
|
552
|
-
_3.forEach(this.stack,_15);
|
|
553
|
-
_3.forEach(this.series,_15);
|
|
554
|
-
this.dirty=false;
|
|
555
|
-
},_makeDirty:function(){
|
|
556
|
-
_3.forEach(this.axes,_16);
|
|
557
|
-
_3.forEach(this.stack,_16);
|
|
558
|
-
_3.forEach(this.series,_16);
|
|
559
|
-
this.dirty=true;
|
|
560
|
-
},_invalidateDependentPlots:function(_92,_93){
|
|
561
|
-
if(_92 in this.plots){
|
|
562
|
-
var _94=this.stack[this.plots[_92]],_95,_96=_93?"vAxis":"hAxis";
|
|
563
|
-
if(_94[_96]){
|
|
564
|
-
_95=this.axes[_94[_96]];
|
|
565
|
-
if(_95&&_95.dependOnData()){
|
|
566
|
-
_95.dirty=true;
|
|
567
|
-
_3.forEach(this.stack,function(p){
|
|
568
|
-
if(p[_96]&&p[_96]==_94[_96]){
|
|
569
|
-
p.dirty=true;
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
}else{
|
|
574
|
-
_94.dirty=true;
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
},setDir:function(dir){
|
|
578
|
-
return this;
|
|
579
|
-
},_resetLeftBottom:function(_97){
|
|
580
|
-
},formatTruncatedLabel:function(_98,_99,_9a){
|
|
581
|
-
}});
|
|
582
|
-
function _9b(_9c){
|
|
583
|
-
return {min:_9c.hmin,max:_9c.hmax};
|
|
584
|
-
};
|
|
585
|
-
function _9d(_9e){
|
|
586
|
-
return {min:_9e.vmin,max:_9e.vmax};
|
|
587
|
-
};
|
|
588
|
-
function _9f(_a0,h){
|
|
589
|
-
_a0.hmin=h.min;
|
|
590
|
-
_a0.hmax=h.max;
|
|
591
|
-
};
|
|
592
|
-
function _a1(_a2,v){
|
|
593
|
-
_a2.vmin=v.min;
|
|
594
|
-
_a2.vmax=v.max;
|
|
595
|
-
};
|
|
596
|
-
function _a3(_a4,_a5){
|
|
597
|
-
if(_a4&&_a5){
|
|
598
|
-
_a4.min=Math.min(_a4.min,_a5.min);
|
|
599
|
-
_a4.max=Math.max(_a4.max,_a5.max);
|
|
600
|
-
}
|
|
601
|
-
return _a4||_a5;
|
|
602
|
-
};
|
|
603
|
-
function _71(_a6,_a7){
|
|
604
|
-
var _a8={},_a9={};
|
|
605
|
-
_3.forEach(_a6,function(_aa){
|
|
606
|
-
var _ab=_a8[_aa.name]=_aa.getSeriesStats();
|
|
607
|
-
if(_aa.hAxis){
|
|
608
|
-
_a9[_aa.hAxis]=_a3(_a9[_aa.hAxis],_9b(_ab));
|
|
609
|
-
}
|
|
610
|
-
if(_aa.vAxis){
|
|
611
|
-
_a9[_aa.vAxis]=_a3(_a9[_aa.vAxis],_9d(_ab));
|
|
612
|
-
}
|
|
613
|
-
});
|
|
614
|
-
_3.forEach(_a6,function(_ac){
|
|
615
|
-
var _ad=_a8[_ac.name];
|
|
616
|
-
if(_ac.hAxis){
|
|
617
|
-
_9f(_ad,_a9[_ac.hAxis]);
|
|
618
|
-
}
|
|
619
|
-
if(_ac.vAxis){
|
|
620
|
-
_a1(_ad,_a9[_ac.vAxis]);
|
|
621
|
-
}
|
|
622
|
-
_ac.initializeScalers(_a7,_ad);
|
|
623
|
-
});
|
|
624
|
-
};
|
|
625
|
-
return _a("dojo-bidi")?_4("dojox.charting.Chart",[_18,_10]):_18;
|
|
626
|
-
});
|