@datagrok/helm 2.13.8 → 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/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 +105 -714
- 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,557 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/charting/axis2d/Default",["dojo/_base/lang","dojo/_base/array","dojo/sniff","dojo/_base/declare","dojo/_base/connect","dojo/dom-geometry","./Invisible","../scaler/linear","./common","dojox/gfx","dojox/lang/utils","dojox/lang/functional","dojo/has!dojo-bidi?../bidi/axis2d/Default"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,g,du,df,_a){
|
|
3
|
-
var _b=45;
|
|
4
|
-
var _c=_4(_3("dojo-bidi")?"dojox.charting.axis2d.NonBidiDefault":"dojox.charting.axis2d.Default",_7,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true,majorLabels:true,minorTicks:true,minorLabels:true,microTicks:false,rotation:0,htmlLabels:true,enableCache:false,dropLabels:true,labelSizeChange:false,position:"leftOrBottom"},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null,stroke:{},majorTick:{},minorTick:{},microTick:{},tick:{},font:"",fontColor:"",title:"",titleGap:0,titleFont:"",titleFontColor:"",titleOrientation:""},constructor:function(_d,_e){
|
|
5
|
-
this.opt=_1.clone(this.defaultParams);
|
|
6
|
-
du.updateWithObject(this.opt,_e);
|
|
7
|
-
du.updateWithPattern(this.opt,_e,this.optionalParams);
|
|
8
|
-
if(this.opt.enableCache){
|
|
9
|
-
this._textFreePool=[];
|
|
10
|
-
this._lineFreePool=[];
|
|
11
|
-
this._textUsePool=[];
|
|
12
|
-
this._lineUsePool=[];
|
|
13
|
-
}
|
|
14
|
-
this._invalidMaxLabelSize=true;
|
|
15
|
-
if(!(_e&&("position" in _e))){
|
|
16
|
-
this.opt.position=this.opt.leftBottom?"leftOrBottom":"rightOrTop";
|
|
17
|
-
}
|
|
18
|
-
this.renderingOptions={"shape-rendering":"crispEdges"};
|
|
19
|
-
},setWindow:function(_f,_10){
|
|
20
|
-
if(_f!=this.scale){
|
|
21
|
-
this._invalidMaxLabelSize=true;
|
|
22
|
-
}
|
|
23
|
-
return this.inherited(arguments);
|
|
24
|
-
},_groupLabelWidth:function(_11,_12,_13){
|
|
25
|
-
if(!_11.length){
|
|
26
|
-
return 0;
|
|
27
|
-
}
|
|
28
|
-
if(_11.length>50){
|
|
29
|
-
_11.length=50;
|
|
30
|
-
}
|
|
31
|
-
if(_1.isObject(_11[0])){
|
|
32
|
-
_11=df.map(_11,function(_14){
|
|
33
|
-
return _14.text;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
if(_13){
|
|
37
|
-
_11=df.map(_11,function(_15){
|
|
38
|
-
return _1.trim(_15).length==0?"":_15.substring(0,_13)+this.trailingSymbol;
|
|
39
|
-
},this);
|
|
40
|
-
}
|
|
41
|
-
var s=_11.join("<br>");
|
|
42
|
-
return g._base._getTextBox(s,{font:_12}).w||0;
|
|
43
|
-
},_getMaxLabelSize:function(min,max,_16,_17,_18,_19){
|
|
44
|
-
if(this._maxLabelSize==null&&arguments.length==6){
|
|
45
|
-
var o=this.opt;
|
|
46
|
-
this.scaler.minMinorStep=this._prevMinMinorStep=0;
|
|
47
|
-
var ob=_1.clone(o);
|
|
48
|
-
delete ob.to;
|
|
49
|
-
delete ob.from;
|
|
50
|
-
var sb=_8.buildScaler(min,max,_16,ob,o.to-o.from);
|
|
51
|
-
sb.minMinorStep=0;
|
|
52
|
-
this._majorStart=sb.major.start;
|
|
53
|
-
var tb=_8.buildTicks(sb,o);
|
|
54
|
-
if(_19&&tb){
|
|
55
|
-
var _1a=0,_1b=0;
|
|
56
|
-
var _1c=function(_1d){
|
|
57
|
-
if(_1d.label){
|
|
58
|
-
this.push(_1d.label);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
var _1e=[];
|
|
62
|
-
if(this.opt.majorLabels){
|
|
63
|
-
_2.forEach(tb.major,_1c,_1e);
|
|
64
|
-
_1a=this._groupLabelWidth(_1e,_18,ob.maxLabelCharCount);
|
|
65
|
-
if(ob.maxLabelSize){
|
|
66
|
-
_1a=Math.min(ob.maxLabelSize,_1a);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
_1e=[];
|
|
70
|
-
if(this.opt.dropLabels&&this.opt.minorLabels){
|
|
71
|
-
_2.forEach(tb.minor,_1c,_1e);
|
|
72
|
-
_1b=this._groupLabelWidth(_1e,_18,ob.maxLabelCharCount);
|
|
73
|
-
if(ob.maxLabelSize){
|
|
74
|
-
_1b=Math.min(ob.maxLabelSize,_1b);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
this._maxLabelSize={majLabelW:_1a,minLabelW:_1b,majLabelH:_19,minLabelH:_19};
|
|
78
|
-
}else{
|
|
79
|
-
this._maxLabelSize=null;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return this._maxLabelSize;
|
|
83
|
-
},calculate:function(min,max,_1f){
|
|
84
|
-
this.inherited(arguments);
|
|
85
|
-
this.scaler.minMinorStep=this._prevMinMinorStep;
|
|
86
|
-
if((this._invalidMaxLabelSize||_1f!=this._oldSpan)&&(min!=Infinity&&max!=-Infinity)){
|
|
87
|
-
this._invalidMaxLabelSize=false;
|
|
88
|
-
if(this.opt.labelSizeChange){
|
|
89
|
-
this._maxLabelSize=null;
|
|
90
|
-
}
|
|
91
|
-
this._oldSpan=_1f;
|
|
92
|
-
var o=this.opt;
|
|
93
|
-
var ta=this.chart.theme.axis,_20=o.rotation%360,_21=this.chart.theme.axis.tick.labelGap,_22=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_23=_22?g.normalizedLength(g.splitFontString(_22).size):0,_24=this._getMaxLabelSize(min,max,_1f,_20,_22,_23);
|
|
94
|
-
if(typeof _21!="number"){
|
|
95
|
-
_21=4;
|
|
96
|
-
}
|
|
97
|
-
if(_24&&o.dropLabels){
|
|
98
|
-
var _25=Math.abs(Math.cos(_20*Math.PI/180)),_26=Math.abs(Math.sin(_20*Math.PI/180));
|
|
99
|
-
var _27,_28;
|
|
100
|
-
if(_20<0){
|
|
101
|
-
_20+=360;
|
|
102
|
-
}
|
|
103
|
-
switch(_20){
|
|
104
|
-
case 0:
|
|
105
|
-
case 180:
|
|
106
|
-
if(this.vertical){
|
|
107
|
-
_27=_28=_23;
|
|
108
|
-
}else{
|
|
109
|
-
_27=_24.majLabelW;
|
|
110
|
-
_28=_24.minLabelW;
|
|
111
|
-
}
|
|
112
|
-
break;
|
|
113
|
-
case 90:
|
|
114
|
-
case 270:
|
|
115
|
-
if(this.vertical){
|
|
116
|
-
_27=_24.majLabelW;
|
|
117
|
-
_28=_24.minLabelW;
|
|
118
|
-
}else{
|
|
119
|
-
_27=_28=_23;
|
|
120
|
-
}
|
|
121
|
-
break;
|
|
122
|
-
default:
|
|
123
|
-
_27=this.vertical?Math.min(_24.majLabelW,_23/_25):Math.min(_24.majLabelW,_23/_26);
|
|
124
|
-
var _29=Math.sqrt(_24.minLabelW*_24.minLabelW+_23*_23),_2a=this.vertical?_23*_25+_24.minLabelW*_26:_24.minLabelW*_25+_23*_26;
|
|
125
|
-
_28=Math.min(_29,_2a);
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
this.scaler.minMinorStep=this._prevMinMinorStep=Math.max(_27,_28)+_21;
|
|
129
|
-
var _2b=this.scaler.minMinorStep<=this.scaler.minor.tick*this.scaler.bounds.scale;
|
|
130
|
-
if(!_2b){
|
|
131
|
-
this._skipInterval=Math.floor((_27+_21)/(this.scaler.major.tick*this.scaler.bounds.scale));
|
|
132
|
-
}else{
|
|
133
|
-
this._skipInterval=0;
|
|
134
|
-
}
|
|
135
|
-
}else{
|
|
136
|
-
this._skipInterval=0;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
this.ticks=_8.buildTicks(this.scaler,this.opt);
|
|
140
|
-
return this;
|
|
141
|
-
},getOffsets:function(){
|
|
142
|
-
var s=this.scaler,_2c={l:0,r:0,t:0,b:0};
|
|
143
|
-
if(!s){
|
|
144
|
-
return _2c;
|
|
145
|
-
}
|
|
146
|
-
var o=this.opt,ta=this.chart.theme.axis,_2d=this.chart.theme.axis.tick.labelGap,_2e=o.titleFont||(ta.title&&ta.title.font),_2f=(o.titleGap==0)?0:o.titleGap||(ta.title&&ta.title.gap),_30=this.chart.theme.getTick("major",o),_31=this.chart.theme.getTick("minor",o),_32=_2e?g.normalizedLength(g.splitFontString(_2e).size):0,_33=o.rotation%360,_34=o.position,_35=_34!=="rightOrTop",_36=Math.abs(Math.cos(_33*Math.PI/180)),_37=Math.abs(Math.sin(_33*Math.PI/180));
|
|
147
|
-
this.trailingSymbol=(o.trailingSymbol===undefined||o.trailingSymbol===null)?this.trailingSymbol:o.trailingSymbol;
|
|
148
|
-
if(typeof _2d!="number"){
|
|
149
|
-
_2d=4;
|
|
150
|
-
}
|
|
151
|
-
if(_33<0){
|
|
152
|
-
_33+=360;
|
|
153
|
-
}
|
|
154
|
-
var _38=this._getMaxLabelSize();
|
|
155
|
-
if(_38){
|
|
156
|
-
var _39;
|
|
157
|
-
var _3a=Math.ceil(Math.max(_38.majLabelW,_38.minLabelW))+1,_3b=Math.ceil(Math.max(_38.majLabelH,_38.minLabelH))+1;
|
|
158
|
-
if(this.vertical){
|
|
159
|
-
_39=_35?"l":"r";
|
|
160
|
-
switch(_33){
|
|
161
|
-
case 0:
|
|
162
|
-
case 180:
|
|
163
|
-
_2c[_39]=_34==="center"?0:_3a;
|
|
164
|
-
_2c.t=_2c.b=_3b/2;
|
|
165
|
-
break;
|
|
166
|
-
case 90:
|
|
167
|
-
case 270:
|
|
168
|
-
_2c[_39]=_3b;
|
|
169
|
-
_2c.t=_2c.b=_3a/2;
|
|
170
|
-
break;
|
|
171
|
-
default:
|
|
172
|
-
if(_33<=_b||(180<_33&&_33<=(180+_b))){
|
|
173
|
-
_2c[_39]=_3b*_37/2+_3a*_36;
|
|
174
|
-
_2c[_35?"t":"b"]=_3b*_36/2+_3a*_37;
|
|
175
|
-
_2c[_35?"b":"t"]=_3b*_36/2;
|
|
176
|
-
}else{
|
|
177
|
-
if(_33>(360-_b)||(180>_33&&_33>(180-_b))){
|
|
178
|
-
_2c[_39]=_3b*_37/2+_3a*_36;
|
|
179
|
-
_2c[_35?"b":"t"]=_3b*_36/2+_3a*_37;
|
|
180
|
-
_2c[_35?"t":"b"]=_3b*_36/2;
|
|
181
|
-
}else{
|
|
182
|
-
if(_33<90||(180<_33&&_33<270)){
|
|
183
|
-
_2c[_39]=_3b*_37+_3a*_36;
|
|
184
|
-
_2c[_35?"t":"b"]=_3b*_36+_3a*_37;
|
|
185
|
-
}else{
|
|
186
|
-
_2c[_39]=_3b*_37+_3a*_36;
|
|
187
|
-
_2c[_35?"b":"t"]=_3b*_36+_3a*_37;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
if(_34==="center"){
|
|
194
|
-
_2c[_39]=0;
|
|
195
|
-
}else{
|
|
196
|
-
_2c[_39]+=_2d+Math.max(_30.length>0?_30.length:0,_31.length>0?_31.length:0)+(o.title?(_32+_2f):0);
|
|
197
|
-
}
|
|
198
|
-
}else{
|
|
199
|
-
_39=_35?"b":"t";
|
|
200
|
-
switch(_33){
|
|
201
|
-
case 0:
|
|
202
|
-
case 180:
|
|
203
|
-
_2c[_39]=_34==="center"?0:_3b;
|
|
204
|
-
_2c.l=_2c.r=_3a/2;
|
|
205
|
-
break;
|
|
206
|
-
case 90:
|
|
207
|
-
case 270:
|
|
208
|
-
_2c[_39]=_3a;
|
|
209
|
-
_2c.l=_2c.r=_3b/2;
|
|
210
|
-
break;
|
|
211
|
-
default:
|
|
212
|
-
if((90-_b)<=_33&&_33<=90||(270-_b)<=_33&&_33<=270){
|
|
213
|
-
_2c[_39]=_3b*_36/2+_3a*_37;
|
|
214
|
-
_2c[_35?"r":"l"]=_3b*_37/2+_3a*_36;
|
|
215
|
-
_2c[_35?"l":"r"]=_3b*_37/2;
|
|
216
|
-
}else{
|
|
217
|
-
if(90<=_33&&_33<=(90+_b)||270<=_33&&_33<=(270+_b)){
|
|
218
|
-
_2c[_39]=_3b*_36/2+_3a*_37;
|
|
219
|
-
_2c[_35?"l":"r"]=_3b*_37/2+_3a*_36;
|
|
220
|
-
_2c[_35?"r":"l"]=_3b*_37/2;
|
|
221
|
-
}else{
|
|
222
|
-
if(_33<_b||(180<_33&&_33<(180+_b))){
|
|
223
|
-
_2c[_39]=_3b*_36+_3a*_37;
|
|
224
|
-
_2c[_35?"r":"l"]=_3b*_37+_3a*_36;
|
|
225
|
-
}else{
|
|
226
|
-
_2c[_39]=_3b*_36+_3a*_37;
|
|
227
|
-
_2c[_35?"l":"r"]=_3b*_37+_3a*_36;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
break;
|
|
232
|
-
}
|
|
233
|
-
if(_34==="center"){
|
|
234
|
-
_2c[_39]=0;
|
|
235
|
-
}else{
|
|
236
|
-
_2c[_39]+=_2d+Math.max(_30.length>0?_30.length:0,_31.length>0?_31.length:0)+(o.title?(_32+_2f):0);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return _2c;
|
|
241
|
-
},cleanGroup:function(_3c){
|
|
242
|
-
if(this.opt.enableCache&&this.group){
|
|
243
|
-
this._lineFreePool=this._lineFreePool.concat(this._lineUsePool);
|
|
244
|
-
this._lineUsePool=[];
|
|
245
|
-
this._textFreePool=this._textFreePool.concat(this._textUsePool);
|
|
246
|
-
this._textUsePool=[];
|
|
247
|
-
}
|
|
248
|
-
this.inherited(arguments);
|
|
249
|
-
},createText:function(_3d,_3e,x,y,_3f,_40,_41,_42,_43){
|
|
250
|
-
if(!this.opt.enableCache||_3d=="html"){
|
|
251
|
-
return _9.createText[_3d](this.chart,_3e,x,y,_3f,_40,_41,_42,_43);
|
|
252
|
-
}
|
|
253
|
-
var _44;
|
|
254
|
-
if(this._textFreePool.length>0){
|
|
255
|
-
_44=this._textFreePool.pop();
|
|
256
|
-
_44.setShape({x:x,y:y,text:_40,align:_3f});
|
|
257
|
-
_3e.add(_44);
|
|
258
|
-
}else{
|
|
259
|
-
_44=_9.createText[_3d](this.chart,_3e,x,y,_3f,_40,_41,_42);
|
|
260
|
-
}
|
|
261
|
-
this._textUsePool.push(_44);
|
|
262
|
-
return _44;
|
|
263
|
-
},createLine:function(_45,_46){
|
|
264
|
-
var _47;
|
|
265
|
-
if(this.opt.enableCache&&this._lineFreePool.length>0){
|
|
266
|
-
_47=this._lineFreePool.pop();
|
|
267
|
-
_47.setShape(_46);
|
|
268
|
-
_45.add(_47);
|
|
269
|
-
}else{
|
|
270
|
-
_47=_45.createLine(_46);
|
|
271
|
-
}
|
|
272
|
-
if(this.opt.enableCache){
|
|
273
|
-
this._lineUsePool.push(_47);
|
|
274
|
-
}
|
|
275
|
-
return _47;
|
|
276
|
-
},render:function(dim,_48){
|
|
277
|
-
var _49=this._isRtl();
|
|
278
|
-
if(!this.dirty||!this.scaler){
|
|
279
|
-
return this;
|
|
280
|
-
}
|
|
281
|
-
var o=this.opt,ta=this.chart.theme.axis,_4a=o.position,_4b=_4a!=="rightOrTop",_4c=o.rotation%360,_4d,_4e,_4f,_50=0,_51,_52,_53,_54,_55,_56,_57=this.chart.theme.axis.tick.labelGap,_58=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_59=o.titleFont||(ta.title&&ta.title.font),_5a=o.fontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"black",_5b=o.titleFontColor||(ta.title&&ta.title.fontColor)||"black",_5c=(o.titleGap==0)?0:o.titleGap||(ta.title&&ta.title.gap)||15,_5d=o.titleOrientation||(ta.title&&ta.title.orientation)||"axis",_5e=this.chart.theme.getTick("major",o),_5f=this.chart.theme.getTick("minor",o),_60=this.chart.theme.getTick("micro",o),_61="stroke" in o?o.stroke:ta.stroke,_62=_58?g.normalizedLength(g.splitFontString(_58).size):0,_63=Math.abs(Math.cos(_4c*Math.PI/180)),_64=Math.abs(Math.sin(_4c*Math.PI/180)),_65=_59?g.normalizedLength(g.splitFontString(_59).size):0;
|
|
282
|
-
if(typeof _57!="number"){
|
|
283
|
-
_57=4;
|
|
284
|
-
}
|
|
285
|
-
if(_4c<0){
|
|
286
|
-
_4c+=360;
|
|
287
|
-
}
|
|
288
|
-
var _66=this._getMaxLabelSize();
|
|
289
|
-
_66=_66&&_66.majLabelW;
|
|
290
|
-
if(this.vertical){
|
|
291
|
-
_4d={y:dim.height-_48.b};
|
|
292
|
-
_4e={y:_48.t};
|
|
293
|
-
_4f={y:(dim.height-_48.b+_48.t)/2};
|
|
294
|
-
_51=_62*_64+(_66||0)*_63+_57+Math.max(_5e.length>0?_5e.length:0,_5f.length>0?_5f.length:0)+_65+_5c;
|
|
295
|
-
_52={x:0,y:-1};
|
|
296
|
-
_55={x:0,y:0};
|
|
297
|
-
_53={x:1,y:0};
|
|
298
|
-
_54={x:_57,y:0};
|
|
299
|
-
switch(_4c){
|
|
300
|
-
case 0:
|
|
301
|
-
_56="end";
|
|
302
|
-
_55.y=_62*0.4;
|
|
303
|
-
break;
|
|
304
|
-
case 90:
|
|
305
|
-
_56="middle";
|
|
306
|
-
_55.x=-_62;
|
|
307
|
-
break;
|
|
308
|
-
case 180:
|
|
309
|
-
_56="start";
|
|
310
|
-
_55.y=-_62*0.4;
|
|
311
|
-
break;
|
|
312
|
-
case 270:
|
|
313
|
-
_56="middle";
|
|
314
|
-
break;
|
|
315
|
-
default:
|
|
316
|
-
if(_4c<_b){
|
|
317
|
-
_56="end";
|
|
318
|
-
_55.y=_62*0.4;
|
|
319
|
-
}else{
|
|
320
|
-
if(_4c<90){
|
|
321
|
-
_56="end";
|
|
322
|
-
_55.y=_62*0.4;
|
|
323
|
-
}else{
|
|
324
|
-
if(_4c<(180-_b)){
|
|
325
|
-
_56="start";
|
|
326
|
-
}else{
|
|
327
|
-
if(_4c<(180+_b)){
|
|
328
|
-
_56="start";
|
|
329
|
-
_55.y=-_62*0.4;
|
|
330
|
-
}else{
|
|
331
|
-
if(_4c<270){
|
|
332
|
-
_56="start";
|
|
333
|
-
_55.x=_4b?0:_62*0.4;
|
|
334
|
-
}else{
|
|
335
|
-
if(_4c<(360-_b)){
|
|
336
|
-
_56="end";
|
|
337
|
-
_55.x=_4b?0:_62*0.4;
|
|
338
|
-
}else{
|
|
339
|
-
_56="end";
|
|
340
|
-
_55.y=_62*0.4;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
if(_4b){
|
|
349
|
-
_4d.x=_4e.x=_4a==="center"?dim.width/2:_48.l;
|
|
350
|
-
_50=(_5d&&_5d=="away")?90:270;
|
|
351
|
-
_4f.x=_48.l-_51+(_50==270?_65:0);
|
|
352
|
-
_53.x=-1;
|
|
353
|
-
_54.x=-_54.x;
|
|
354
|
-
}else{
|
|
355
|
-
_4d.x=_4e.x=dim.width-_48.r;
|
|
356
|
-
_50=(_5d&&_5d=="axis")?90:270;
|
|
357
|
-
_4f.x=dim.width-_48.r+_51-(_50==270?0:_65);
|
|
358
|
-
switch(_56){
|
|
359
|
-
case "start":
|
|
360
|
-
_56="end";
|
|
361
|
-
break;
|
|
362
|
-
case "end":
|
|
363
|
-
_56="start";
|
|
364
|
-
break;
|
|
365
|
-
case "middle":
|
|
366
|
-
_55.x+=_62;
|
|
367
|
-
break;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}else{
|
|
371
|
-
_4d={x:_48.l};
|
|
372
|
-
_4e={x:dim.width-_48.r};
|
|
373
|
-
_4f={x:(dim.width-_48.r+_48.l)/2};
|
|
374
|
-
_51=_62*_63+(_66||0)*_64+_57+Math.max(_5e.length>0?_5e.length:0,_5f.length>0?_5f.length:0)+_65+_5c;
|
|
375
|
-
_52={x:_49?-1:1,y:0};
|
|
376
|
-
_55={x:0,y:0};
|
|
377
|
-
_53={x:0,y:1};
|
|
378
|
-
_54={x:0,y:_57};
|
|
379
|
-
switch(_4c){
|
|
380
|
-
case 0:
|
|
381
|
-
_56="middle";
|
|
382
|
-
_55.y=_62;
|
|
383
|
-
break;
|
|
384
|
-
case 90:
|
|
385
|
-
_56="start";
|
|
386
|
-
_55.x=-_62*0.4;
|
|
387
|
-
break;
|
|
388
|
-
case 180:
|
|
389
|
-
_56="middle";
|
|
390
|
-
break;
|
|
391
|
-
case 270:
|
|
392
|
-
_56="end";
|
|
393
|
-
_55.x=_62*0.4;
|
|
394
|
-
break;
|
|
395
|
-
default:
|
|
396
|
-
if(_4c<(90-_b)){
|
|
397
|
-
_56="start";
|
|
398
|
-
_55.y=_4b?_62:0;
|
|
399
|
-
}else{
|
|
400
|
-
if(_4c<(90+_b)){
|
|
401
|
-
_56="start";
|
|
402
|
-
_55.x=-_62*0.4;
|
|
403
|
-
}else{
|
|
404
|
-
if(_4c<180){
|
|
405
|
-
_56="start";
|
|
406
|
-
_55.y=_4b?0:-_62;
|
|
407
|
-
}else{
|
|
408
|
-
if(_4c<(270-_b)){
|
|
409
|
-
_56="end";
|
|
410
|
-
_55.y=_4b?0:-_62;
|
|
411
|
-
}else{
|
|
412
|
-
if(_4c<(270+_b)){
|
|
413
|
-
_56="end";
|
|
414
|
-
_55.y=_4b?_62*0.4:0;
|
|
415
|
-
}else{
|
|
416
|
-
_56="end";
|
|
417
|
-
_55.y=_4b?_62:0;
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
if(_4b){
|
|
425
|
-
_4d.y=_4e.y=_4a==="center"?dim.height/2:dim.height-_48.b;
|
|
426
|
-
_50=(_5d&&_5d=="axis")?180:0;
|
|
427
|
-
_4f.y=dim.height-_48.b+_51-(_50?_65:0);
|
|
428
|
-
}else{
|
|
429
|
-
_4d.y=_4e.y=_48.t;
|
|
430
|
-
_50=(_5d&&_5d=="away")?180:0;
|
|
431
|
-
_4f.y=_48.t-_51+(_50?0:_65);
|
|
432
|
-
_53.y=-1;
|
|
433
|
-
_54.y=-_54.y;
|
|
434
|
-
switch(_56){
|
|
435
|
-
case "start":
|
|
436
|
-
_56="end";
|
|
437
|
-
break;
|
|
438
|
-
case "end":
|
|
439
|
-
_56="start";
|
|
440
|
-
break;
|
|
441
|
-
case "middle":
|
|
442
|
-
_55.y-=_62;
|
|
443
|
-
break;
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
this.cleanGroup();
|
|
448
|
-
var s=this.group,c=this.scaler,t=this.ticks,f=_8.getTransformerFromModel(this.scaler),_67=(!o.title||!_50)&&!_4c&&this.opt.htmlLabels&&!_3("ie")&&!_3("opera")?"html":"gfx",dx=_53.x*_5e.length,dy=_53.y*_5e.length,_68=this._skipInterval;
|
|
449
|
-
s.createLine({x1:_4d.x,y1:_4d.y,x2:_4e.x,y2:_4e.y}).setStroke(_61);
|
|
450
|
-
if(o.title){
|
|
451
|
-
var _69=_9.createText[_67](this.chart,s,_4f.x,_4f.y,"middle",o.title,_59,_5b);
|
|
452
|
-
if(_67=="html"){
|
|
453
|
-
this.htmlElements.push(_69);
|
|
454
|
-
}else{
|
|
455
|
-
_69.setTransform(g.matrix.rotategAt(_50,_4f.x,_4f.y));
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
if(t==null){
|
|
459
|
-
this.dirty=false;
|
|
460
|
-
return this;
|
|
461
|
-
}
|
|
462
|
-
var rel=(t.major.length>0)?(t.major[0].value-this._majorStart)/c.major.tick:0;
|
|
463
|
-
var _6a=this.opt.majorLabels;
|
|
464
|
-
_2.forEach(t.major,function(_6b,i){
|
|
465
|
-
var _6c=f(_6b.value),_6d,x=(_49?_4e.x:_4d.x)+_52.x*_6c,y=_4d.y+_52.y*_6c;
|
|
466
|
-
i+=rel;
|
|
467
|
-
this.createLine(s,{x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_5e);
|
|
468
|
-
if(_6b.label&&(!_68||(i-(1+_68))%(1+_68)==0)){
|
|
469
|
-
var _6e=o.maxLabelCharCount?this.getTextWithLimitCharCount(_6b.label,_58,o.maxLabelCharCount):{text:_6b.label,truncated:false};
|
|
470
|
-
_6e=o.maxLabelSize?this.getTextWithLimitLength(_6e.text,_58,o.maxLabelSize,_6e.truncated):_6e;
|
|
471
|
-
_6d=this.createText(_67,s,x+(_5e.length>0?dx:0)+_54.x+(_4c?0:_55.x),y+(_5e.length>0?dy:0)+_54.y+(_4c?0:_55.y),_56,_6e.text,_58,_5a);
|
|
472
|
-
if(_6e.truncated){
|
|
473
|
-
this.chart.formatTruncatedLabel(_6d,_6b.label,_67);
|
|
474
|
-
}
|
|
475
|
-
_6e.truncated&&this.labelTooltip(_6d,this.chart,_6b.label,_6e.text,_58,_67);
|
|
476
|
-
if(_67=="html"){
|
|
477
|
-
this.htmlElements.push(_6d);
|
|
478
|
-
}else{
|
|
479
|
-
if(_4c){
|
|
480
|
-
_6d.setTransform([{dx:_55.x,dy:_55.y},g.matrix.rotategAt(_4c,x+(_5e.length>0?dx:0)+_54.x,y+(_5e.length>0?dy:0)+_54.y)]);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
},this);
|
|
485
|
-
dx=_53.x*_5f.length;
|
|
486
|
-
dy=_53.y*_5f.length;
|
|
487
|
-
_6a=this.opt.minorLabels&&c.minMinorStep<=c.minor.tick*c.bounds.scale;
|
|
488
|
-
_2.forEach(t.minor,function(_6f){
|
|
489
|
-
var _70=f(_6f.value),_71,x=(_49?_4e.x:_4d.x)+_52.x*_70,y=_4d.y+_52.y*_70;
|
|
490
|
-
this.createLine(s,{x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_5f);
|
|
491
|
-
if(_6a&&_6f.label){
|
|
492
|
-
var _72=o.maxLabelCharCount?this.getTextWithLimitCharCount(_6f.label,_58,o.maxLabelCharCount):{text:_6f.label,truncated:false};
|
|
493
|
-
_72=o.maxLabelSize?this.getTextWithLimitLength(_72.text,_58,o.maxLabelSize,_72.truncated):_72;
|
|
494
|
-
_71=this.createText(_67,s,x+(_5f.length>0?dx:0)+_54.x+(_4c?0:_55.x),y+(_5f.length>0?dy:0)+_54.y+(_4c?0:_55.y),_56,_72.text,_58,_5a);
|
|
495
|
-
if(_72.truncated){
|
|
496
|
-
this.chart.formatTruncatedLabel(_71,_6f.label,_67);
|
|
497
|
-
}
|
|
498
|
-
_72.truncated&&this.labelTooltip(_71,this.chart,_6f.label,_72.text,_58,_67);
|
|
499
|
-
if(_67=="html"){
|
|
500
|
-
this.htmlElements.push(_71);
|
|
501
|
-
}else{
|
|
502
|
-
if(_4c){
|
|
503
|
-
_71.setTransform([{dx:_55.x,dy:_55.y},g.matrix.rotategAt(_4c,x+(_5f.length>0?dx:0)+_54.x,y+(_5f.length>0?dy:0)+_54.y)]);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
},this);
|
|
508
|
-
dx=_53.x*_60.length;
|
|
509
|
-
dy=_53.y*_60.length;
|
|
510
|
-
_2.forEach(t.micro,function(_73){
|
|
511
|
-
var _74=f(_73.value),x=_4d.x+_52.x*_74,y=_4d.y+_52.y*_74;
|
|
512
|
-
this.createLine(s,{x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_60);
|
|
513
|
-
},this);
|
|
514
|
-
this.dirty=false;
|
|
515
|
-
return this;
|
|
516
|
-
},labelTooltip:function(_75,_76,_77,_78,_79,_7a){
|
|
517
|
-
var _7b=["dijit/Tooltip"];
|
|
518
|
-
var _7c={type:"rect"},_7d=["above","below"],_7e=g._base._getTextBox(_78,{font:_79}).w||0,_7f=_79?g.normalizedLength(g.splitFontString(_79).size):0;
|
|
519
|
-
if(_7a=="html"){
|
|
520
|
-
_1.mixin(_7c,_6.position(_75.firstChild,true));
|
|
521
|
-
_7c.width=Math.ceil(_7e);
|
|
522
|
-
_7c.height=Math.ceil(_7f);
|
|
523
|
-
this._events.push({shape:dojo,handle:_5.connect(_75.firstChild,"onmouseover",this,function(e){
|
|
524
|
-
require(_7b,function(_80){
|
|
525
|
-
_80.show(_77,_7c,_7d);
|
|
526
|
-
});
|
|
527
|
-
})});
|
|
528
|
-
this._events.push({shape:dojo,handle:_5.connect(_75.firstChild,"onmouseout",this,function(e){
|
|
529
|
-
require(_7b,function(_81){
|
|
530
|
-
_81.hide(_7c);
|
|
531
|
-
});
|
|
532
|
-
})});
|
|
533
|
-
}else{
|
|
534
|
-
var shp=_75.getShape(),lt=_76.getCoords();
|
|
535
|
-
_7c=_1.mixin(_7c,{x:shp.x-_7e/2,y:shp.y});
|
|
536
|
-
_7c.x+=lt.x;
|
|
537
|
-
_7c.y+=lt.y;
|
|
538
|
-
_7c.x=Math.round(_7c.x);
|
|
539
|
-
_7c.y=Math.round(_7c.y);
|
|
540
|
-
_7c.width=Math.ceil(_7e);
|
|
541
|
-
_7c.height=Math.ceil(_7f);
|
|
542
|
-
this._events.push({shape:_75,handle:_75.connect("onmouseenter",this,function(e){
|
|
543
|
-
require(_7b,function(_82){
|
|
544
|
-
_82.show(_77,_7c,_7d);
|
|
545
|
-
});
|
|
546
|
-
})});
|
|
547
|
-
this._events.push({shape:_75,handle:_75.connect("onmouseleave",this,function(e){
|
|
548
|
-
require(_7b,function(_83){
|
|
549
|
-
_83.hide(_7c);
|
|
550
|
-
});
|
|
551
|
-
})});
|
|
552
|
-
}
|
|
553
|
-
},_isRtl:function(){
|
|
554
|
-
return false;
|
|
555
|
-
}});
|
|
556
|
-
return _3("dojo-bidi")?_4("dojox.charting.axis2d.Default",[_c,_a]):_c;
|
|
557
|
-
});
|