@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,65 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/charting/axis2d/Invisible",["dojo/_base/lang","dojo/_base/declare","./Base","../scaler/linear","dojox/lang/utils"],function(_1,_2,_3,_4,du){
|
|
3
|
-
return _2("dojox.charting.axis2d.Invisible",_3,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1},constructor:function(_5,_6){
|
|
4
|
-
this.opt=_1.clone(this.defaultParams);
|
|
5
|
-
du.updateWithObject(this.opt,_6);
|
|
6
|
-
du.updateWithPattern(this.opt,_6,this.optionalParams);
|
|
7
|
-
},dependOnData:function(){
|
|
8
|
-
return !("min" in this.opt)||!("max" in this.opt);
|
|
9
|
-
},clear:function(){
|
|
10
|
-
delete this.scaler;
|
|
11
|
-
delete this.ticks;
|
|
12
|
-
this.dirty=true;
|
|
13
|
-
return this;
|
|
14
|
-
},initialized:function(){
|
|
15
|
-
return "scaler" in this&&!(this.dirty&&this.dependOnData());
|
|
16
|
-
},setWindow:function(_7,_8){
|
|
17
|
-
this.scale=_7;
|
|
18
|
-
this.offset=_8;
|
|
19
|
-
return this.clear();
|
|
20
|
-
},getWindowScale:function(){
|
|
21
|
-
return "scale" in this?this.scale:1;
|
|
22
|
-
},getWindowOffset:function(){
|
|
23
|
-
return "offset" in this?this.offset:0;
|
|
24
|
-
},calculate:function(_9,_a,_b){
|
|
25
|
-
if(this.initialized()){
|
|
26
|
-
return this;
|
|
27
|
-
}
|
|
28
|
-
var o=this.opt;
|
|
29
|
-
this.labels=o.labels;
|
|
30
|
-
this.scaler=_4.buildScaler(_9,_a,_b,o);
|
|
31
|
-
var _c=this.scaler.bounds;
|
|
32
|
-
if("scale" in this){
|
|
33
|
-
o.from=_c.lower+this.offset;
|
|
34
|
-
o.to=(_c.upper-_c.lower)/this.scale+o.from;
|
|
35
|
-
if(!isFinite(o.from)||isNaN(o.from)||!isFinite(o.to)||isNaN(o.to)||o.to-o.from>=_c.upper-_c.lower){
|
|
36
|
-
delete o.from;
|
|
37
|
-
delete o.to;
|
|
38
|
-
delete this.scale;
|
|
39
|
-
delete this.offset;
|
|
40
|
-
}else{
|
|
41
|
-
if(o.from<_c.lower){
|
|
42
|
-
o.to+=_c.lower-o.from;
|
|
43
|
-
o.from=_c.lower;
|
|
44
|
-
}else{
|
|
45
|
-
if(o.to>_c.upper){
|
|
46
|
-
o.from+=_c.upper-o.to;
|
|
47
|
-
o.to=_c.upper;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
this.offset=o.from-_c.lower;
|
|
51
|
-
}
|
|
52
|
-
this.scaler=_4.buildScaler(_9,_a,_b,o);
|
|
53
|
-
_c=this.scaler.bounds;
|
|
54
|
-
if(this.scale==1&&this.offset==0){
|
|
55
|
-
delete this.scale;
|
|
56
|
-
delete this.offset;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return this;
|
|
60
|
-
},getScaler:function(){
|
|
61
|
-
return this.scaler;
|
|
62
|
-
},getTicks:function(){
|
|
63
|
-
return this.ticks;
|
|
64
|
-
}});
|
|
65
|
-
});
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
define("dojox/charting/axis2d/Invisible", ["dojo/_base/lang", "dojo/_base/declare", "./Base", "../scaler/linear",
|
|
2
|
-
"dojox/lang/utils"],
|
|
3
|
-
function(lang, declare, Base, lin, du){
|
|
4
|
-
|
|
5
|
-
/*=====
|
|
6
|
-
var __InvisibleAxisCtorArgs = {
|
|
7
|
-
// summary:
|
|
8
|
-
// Optional arguments used in the definition of an invisible axis.
|
|
9
|
-
// vertical: Boolean?
|
|
10
|
-
// A flag that says whether an axis is vertical (i.e. y axis) or horizontal. Default is false (horizontal).
|
|
11
|
-
// fixUpper: String?
|
|
12
|
-
// Align the greatest value on the axis with the specified tick level. Options are "major", "minor", "micro", or "none". Defaults to "none".
|
|
13
|
-
// fixLower: String?
|
|
14
|
-
// Align the smallest value on the axis with the specified tick level. Options are "major", "minor", "micro", or "none". Defaults to "none".
|
|
15
|
-
// natural: Boolean?
|
|
16
|
-
// Ensure tick marks are made on "natural" numbers. Defaults to false.
|
|
17
|
-
// leftBottom: Boolean?
|
|
18
|
-
// The position of a vertical axis; if true, will be placed against the left-bottom corner of the chart. Defaults to true.
|
|
19
|
-
// includeZero: Boolean?
|
|
20
|
-
// Include 0 on the axis rendering. Default is false.
|
|
21
|
-
// fixed: Boolean?
|
|
22
|
-
// Force all axis labels to be fixed numbers. Default is true.
|
|
23
|
-
// min: Number?
|
|
24
|
-
// The smallest value on an axis. Default is 0.
|
|
25
|
-
// max: Number?
|
|
26
|
-
// The largest value on an axis. Default is 1.
|
|
27
|
-
// from: Number?
|
|
28
|
-
// Force the chart to render data visible from this value. Default is 0.
|
|
29
|
-
// to: Number?
|
|
30
|
-
// Force the chart to render data visible to this value. Default is 1.
|
|
31
|
-
// majorTickStep: Number?
|
|
32
|
-
// The amount to skip before a major tick is drawn. When not set the major ticks step is computed from
|
|
33
|
-
// the data range.
|
|
34
|
-
// minorTickStep: Number?
|
|
35
|
-
// The amount to skip before a minor tick is drawn. When not set the minor ticks step is computed from
|
|
36
|
-
// the data range.
|
|
37
|
-
// microTickStep: Number?
|
|
38
|
-
// The amount to skip before a micro tick is drawn. When not set the micro ticks step is computed from
|
|
39
|
-
};
|
|
40
|
-
=====*/
|
|
41
|
-
|
|
42
|
-
return declare("dojox.charting.axis2d.Invisible", Base, {
|
|
43
|
-
// summary:
|
|
44
|
-
// A axis object used in dojox.charting. You can use that axis if you want the axis to be invisible.
|
|
45
|
-
// See dojox.charting.Chart.addAxis for details.
|
|
46
|
-
//
|
|
47
|
-
// defaultParams: Object
|
|
48
|
-
// The default parameters used to define any axis.
|
|
49
|
-
// optionalParams: Object
|
|
50
|
-
// Any optional parameters needed to define an axis.
|
|
51
|
-
|
|
52
|
-
/*
|
|
53
|
-
// TODO: the documentation tools need these to be pre-defined in order to pick them up
|
|
54
|
-
// correctly, but the code here is partially predicated on whether or not the properties
|
|
55
|
-
// actually exist. For now, we will leave these undocumented but in the code for later. -- TRT
|
|
56
|
-
|
|
57
|
-
// opt: Object
|
|
58
|
-
// The actual options used to define this axis, created at initialization.
|
|
59
|
-
// scaler: Object
|
|
60
|
-
// The calculated helper object to tell charts how to draw an axis and any data.
|
|
61
|
-
// ticks: Object
|
|
62
|
-
// The calculated tick object that helps a chart draw the scaling on an axis.
|
|
63
|
-
// dirty: Boolean
|
|
64
|
-
// The state of the axis (whether it needs to be redrawn or not)
|
|
65
|
-
// scale: Number
|
|
66
|
-
// The current scale of the axis.
|
|
67
|
-
// offset: Number
|
|
68
|
-
// The current offset of the axis.
|
|
69
|
-
|
|
70
|
-
opt: null,
|
|
71
|
-
scaler: null,
|
|
72
|
-
ticks: null,
|
|
73
|
-
dirty: true,
|
|
74
|
-
scale: 1,
|
|
75
|
-
offset: 0,
|
|
76
|
-
*/
|
|
77
|
-
defaultParams: {
|
|
78
|
-
vertical: false, // true for vertical axis
|
|
79
|
-
fixUpper: "none", // align the upper on ticks: "major", "minor", "micro", "none"
|
|
80
|
-
fixLower: "none", // align the lower on ticks: "major", "minor", "micro", "none"
|
|
81
|
-
natural: false, // all tick marks should be made on natural numbers
|
|
82
|
-
leftBottom: true, // position of the axis, used with "vertical"
|
|
83
|
-
includeZero: false, // 0 should be included
|
|
84
|
-
fixed: true // all labels are fixed numbers
|
|
85
|
-
},
|
|
86
|
-
optionalParams: {
|
|
87
|
-
min: 0, // minimal value on this axis
|
|
88
|
-
max: 1, // maximal value on this axis
|
|
89
|
-
from: 0, // visible from this value
|
|
90
|
-
to: 1, // visible to this value
|
|
91
|
-
majorTickStep: 4, // major tick step
|
|
92
|
-
minorTickStep: 2, // minor tick step
|
|
93
|
-
microTickStep: 1 // micro tick step
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
constructor: function(chart, kwArgs){
|
|
97
|
-
// summary:
|
|
98
|
-
// The constructor for an invisible axis.
|
|
99
|
-
// chart: dojox/charting/Chart
|
|
100
|
-
// The chart the axis belongs to.
|
|
101
|
-
// kwArgs: __InvisibleAxisCtorArgs?
|
|
102
|
-
// Any optional keyword arguments to be used to define this axis.
|
|
103
|
-
this.opt = lang.clone(this.defaultParams);
|
|
104
|
-
du.updateWithObject(this.opt, kwArgs);
|
|
105
|
-
du.updateWithPattern(this.opt, kwArgs, this.optionalParams);
|
|
106
|
-
},
|
|
107
|
-
dependOnData: function(){
|
|
108
|
-
// summary:
|
|
109
|
-
// Find out whether or not the axis options depend on the data in the axis.
|
|
110
|
-
return !("min" in this.opt) || !("max" in this.opt); // Boolean
|
|
111
|
-
},
|
|
112
|
-
clear: function(){
|
|
113
|
-
// summary:
|
|
114
|
-
// Clear out all calculated properties on this axis;
|
|
115
|
-
// returns: dojox/charting/axis2d/Invisible
|
|
116
|
-
// The reference to the axis for functional chaining.
|
|
117
|
-
delete this.scaler;
|
|
118
|
-
delete this.ticks;
|
|
119
|
-
this.dirty = true;
|
|
120
|
-
return this; // dojox/charting/axis2d/Invisible
|
|
121
|
-
},
|
|
122
|
-
initialized: function(){
|
|
123
|
-
// summary:
|
|
124
|
-
// Finds out if this axis has been initialized or not.
|
|
125
|
-
// returns: Boolean
|
|
126
|
-
// Whether a scaler has been calculated and if the axis is not dirty.
|
|
127
|
-
return "scaler" in this && !(this.dirty && this.dependOnData());
|
|
128
|
-
},
|
|
129
|
-
setWindow: function(scale, offset){
|
|
130
|
-
// summary:
|
|
131
|
-
// Set the drawing "window" for the axis.
|
|
132
|
-
// scale: Number
|
|
133
|
-
// The new scale for the axis.
|
|
134
|
-
// offset: Number
|
|
135
|
-
// The new offset for the axis.
|
|
136
|
-
// returns: dojox/charting/axis2d/Invisible
|
|
137
|
-
// The reference to the axis for functional chaining.
|
|
138
|
-
this.scale = scale;
|
|
139
|
-
this.offset = offset;
|
|
140
|
-
return this.clear(); // dojox/charting/axis2d/Invisible
|
|
141
|
-
},
|
|
142
|
-
getWindowScale: function(){
|
|
143
|
-
// summary:
|
|
144
|
-
// Get the current windowing scale of the axis.
|
|
145
|
-
return "scale" in this ? this.scale : 1; // Number
|
|
146
|
-
},
|
|
147
|
-
getWindowOffset: function(){
|
|
148
|
-
// summary:
|
|
149
|
-
// Get the current windowing offset for the axis.
|
|
150
|
-
return "offset" in this ? this.offset : 0; // Number
|
|
151
|
-
},
|
|
152
|
-
calculate: function(min, max, span){
|
|
153
|
-
// summary:
|
|
154
|
-
// Perform all calculations needed to render this axis.
|
|
155
|
-
// min: Number
|
|
156
|
-
// The smallest value represented on this axis.
|
|
157
|
-
// max: Number
|
|
158
|
-
// The largest value represented on this axis.
|
|
159
|
-
// span: Number
|
|
160
|
-
// The span in pixels over which axis calculations are made.
|
|
161
|
-
// returns: dojox/charting/axis2d/Invisible
|
|
162
|
-
// The reference to the axis for functional chaining.
|
|
163
|
-
if(this.initialized()){
|
|
164
|
-
return this;
|
|
165
|
-
}
|
|
166
|
-
var o = this.opt;
|
|
167
|
-
// we used to have a 4th function parameter to reach labels but
|
|
168
|
-
// nobody was calling it with 4 parameters.
|
|
169
|
-
this.labels = o.labels;
|
|
170
|
-
this.scaler = lin.buildScaler(min, max, span, o);
|
|
171
|
-
// store the absolute major tick start, this will be useful when dropping a label every n labels
|
|
172
|
-
// TODO: if o.lower then it does not work
|
|
173
|
-
var tsb = this.scaler.bounds;
|
|
174
|
-
if("scale" in this){
|
|
175
|
-
// calculate new range
|
|
176
|
-
o.from = tsb.lower + this.offset;
|
|
177
|
-
o.to = (tsb.upper - tsb.lower) / this.scale + o.from;
|
|
178
|
-
// make sure that bounds are correct
|
|
179
|
-
if( !isFinite(o.from) ||
|
|
180
|
-
isNaN(o.from) ||
|
|
181
|
-
!isFinite(o.to) ||
|
|
182
|
-
isNaN(o.to) ||
|
|
183
|
-
o.to - o.from >= tsb.upper - tsb.lower
|
|
184
|
-
){
|
|
185
|
-
// any error --- remove from/to bounds
|
|
186
|
-
delete o.from;
|
|
187
|
-
delete o.to;
|
|
188
|
-
delete this.scale;
|
|
189
|
-
delete this.offset;
|
|
190
|
-
}else{
|
|
191
|
-
// shift the window, if we are out of bounds
|
|
192
|
-
if(o.from < tsb.lower){
|
|
193
|
-
o.to += tsb.lower - o.from;
|
|
194
|
-
o.from = tsb.lower;
|
|
195
|
-
}else if(o.to > tsb.upper){
|
|
196
|
-
o.from += tsb.upper - o.to;
|
|
197
|
-
o.to = tsb.upper;
|
|
198
|
-
}
|
|
199
|
-
// update the offset
|
|
200
|
-
this.offset = o.from - tsb.lower;
|
|
201
|
-
}
|
|
202
|
-
// re-calculate the scaler
|
|
203
|
-
this.scaler = lin.buildScaler(min, max, span, o);
|
|
204
|
-
tsb = this.scaler.bounds;
|
|
205
|
-
// cleanup
|
|
206
|
-
if(this.scale == 1 && this.offset == 0){
|
|
207
|
-
delete this.scale;
|
|
208
|
-
delete this.offset;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return this; // dojox/charting/axis2d/Invisible
|
|
212
|
-
},
|
|
213
|
-
getScaler: function(){
|
|
214
|
-
// summary:
|
|
215
|
-
// Get the pre-calculated scaler object.
|
|
216
|
-
return this.scaler; // Object
|
|
217
|
-
},
|
|
218
|
-
getTicks: function(){
|
|
219
|
-
// summary:
|
|
220
|
-
// Get the pre-calculated ticks object.
|
|
221
|
-
return this.ticks; // Object
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
});
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/charting/axis2d/common",["dojo/_base/lang","dojo/_base/window","dojo/dom-geometry","dojox/gfx","dojo/has"],function(_1,_2,_3,g,_4){
|
|
3
|
-
var _5=_1.getObject("dojox.charting.axis2d.common",true);
|
|
4
|
-
var _6=function(s){
|
|
5
|
-
s.marginLeft="0px";
|
|
6
|
-
s.marginTop="0px";
|
|
7
|
-
s.marginRight="0px";
|
|
8
|
-
s.marginBottom="0px";
|
|
9
|
-
s.paddingLeft="0px";
|
|
10
|
-
s.paddingTop="0px";
|
|
11
|
-
s.paddingRight="0px";
|
|
12
|
-
s.paddingBottom="0px";
|
|
13
|
-
s.borderLeftWidth="0px";
|
|
14
|
-
s.borderTopWidth="0px";
|
|
15
|
-
s.borderRightWidth="0px";
|
|
16
|
-
s.borderBottomWidth="0px";
|
|
17
|
-
};
|
|
18
|
-
var _7=function(n){
|
|
19
|
-
if(n["getBoundingClientRect"]){
|
|
20
|
-
var _8=n.getBoundingClientRect();
|
|
21
|
-
return _8.width||(_8.right-_8.left);
|
|
22
|
-
}else{
|
|
23
|
-
return _3.getMarginBox(n).w;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
return _1.mixin(_5,{createText:{gfx:function(_9,_a,x,y,_b,_c,_d,_e){
|
|
27
|
-
return _a.createText({x:x,y:y,text:_c,align:_b}).setFont(_d).setFill(_e);
|
|
28
|
-
},html:function(_f,_10,x,y,_11,_12,_13,_14,_15){
|
|
29
|
-
var p=_2.doc.createElement("div"),s=p.style,_16;
|
|
30
|
-
if(_f.getTextDir){
|
|
31
|
-
p.dir=_f.getTextDir(_12);
|
|
32
|
-
}
|
|
33
|
-
_6(s);
|
|
34
|
-
s.font=_13;
|
|
35
|
-
p.innerHTML=String(_12).replace(/\s/g," ");
|
|
36
|
-
s.color=_14;
|
|
37
|
-
s.position="absolute";
|
|
38
|
-
s.left="-10000px";
|
|
39
|
-
_2.body().appendChild(p);
|
|
40
|
-
var _17=g.normalizedLength(g.splitFontString(_13).size);
|
|
41
|
-
if(!_15){
|
|
42
|
-
_16=_7(p);
|
|
43
|
-
}
|
|
44
|
-
if(p.dir=="rtl"){
|
|
45
|
-
x+=_15?_15:_16;
|
|
46
|
-
}
|
|
47
|
-
_2.body().removeChild(p);
|
|
48
|
-
s.position="relative";
|
|
49
|
-
if(_15){
|
|
50
|
-
s.width=_15+"px";
|
|
51
|
-
switch(_11){
|
|
52
|
-
case "middle":
|
|
53
|
-
s.textAlign="center";
|
|
54
|
-
s.left=(x-_15/2)+"px";
|
|
55
|
-
break;
|
|
56
|
-
case "end":
|
|
57
|
-
s.textAlign="right";
|
|
58
|
-
s.left=(x-_15)+"px";
|
|
59
|
-
break;
|
|
60
|
-
default:
|
|
61
|
-
s.left=x+"px";
|
|
62
|
-
s.textAlign="left";
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
}else{
|
|
66
|
-
switch(_11){
|
|
67
|
-
case "middle":
|
|
68
|
-
s.left=Math.floor(x-_16/2)+"px";
|
|
69
|
-
break;
|
|
70
|
-
case "end":
|
|
71
|
-
s.left=Math.floor(x-_16)+"px";
|
|
72
|
-
break;
|
|
73
|
-
default:
|
|
74
|
-
s.left=Math.floor(x)+"px";
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
s.top=Math.floor(y-_17)+"px";
|
|
79
|
-
s.whiteSpace="nowrap";
|
|
80
|
-
var _18=_2.doc.createElement("div"),w=_18.style;
|
|
81
|
-
_6(w);
|
|
82
|
-
w.width="0px";
|
|
83
|
-
w.height="0px";
|
|
84
|
-
_18.appendChild(p);
|
|
85
|
-
_f.node.insertBefore(_18,_f.node.firstChild);
|
|
86
|
-
if(_4("dojo-bidi")){
|
|
87
|
-
_f.htmlElementsRegistry.push([_18,x,y,_11,_12,_13,_14]);
|
|
88
|
-
}
|
|
89
|
-
return _18;
|
|
90
|
-
}}});
|
|
91
|
-
});
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
define("dojox/charting/axis2d/common", ["dojo/_base/lang", "dojo/_base/window", "dojo/dom-geometry", "dojox/gfx", "dojo/has"],
|
|
2
|
-
function(lang, win, domGeom, g, has){
|
|
3
|
-
|
|
4
|
-
var common = lang.getObject("dojox.charting.axis2d.common", true);
|
|
5
|
-
|
|
6
|
-
var clearNode = function(s){
|
|
7
|
-
s.marginLeft = "0px";
|
|
8
|
-
s.marginTop = "0px";
|
|
9
|
-
s.marginRight = "0px";
|
|
10
|
-
s.marginBottom = "0px";
|
|
11
|
-
s.paddingLeft = "0px";
|
|
12
|
-
s.paddingTop = "0px";
|
|
13
|
-
s.paddingRight = "0px";
|
|
14
|
-
s.paddingBottom = "0px";
|
|
15
|
-
s.borderLeftWidth = "0px";
|
|
16
|
-
s.borderTopWidth = "0px";
|
|
17
|
-
s.borderRightWidth = "0px";
|
|
18
|
-
s.borderBottomWidth = "0px";
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
var getBoxWidth = function(n){
|
|
22
|
-
// marginBox is incredibly slow, so avoid it if we can
|
|
23
|
-
if(n["getBoundingClientRect"]){
|
|
24
|
-
var bcr = n.getBoundingClientRect();
|
|
25
|
-
return bcr.width || (bcr.right - bcr.left);
|
|
26
|
-
}else{
|
|
27
|
-
return domGeom.getMarginBox(n).w;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return lang.mixin(common, {
|
|
32
|
-
// summary:
|
|
33
|
-
// Common methods to be used by any axis. This is considered "static".
|
|
34
|
-
createText: {
|
|
35
|
-
gfx: function(chart, creator, x, y, align, text, font, fontColor){
|
|
36
|
-
// summary:
|
|
37
|
-
// Use dojox.gfx to create any text.
|
|
38
|
-
// chart: dojox.charting.Chart
|
|
39
|
-
// The chart to create the text into.
|
|
40
|
-
// creator: dojox.gfx.Surface
|
|
41
|
-
// The graphics surface to use for creating the text.
|
|
42
|
-
// x: Number
|
|
43
|
-
// Where to create the text along the x axis (CSS left).
|
|
44
|
-
// y: Number
|
|
45
|
-
// Where to create the text along the y axis (CSS top).
|
|
46
|
-
// align: String
|
|
47
|
-
// How to align the text. Can be "left", "right", "center".
|
|
48
|
-
// text: String
|
|
49
|
-
// The text to render.
|
|
50
|
-
// font: String
|
|
51
|
-
// The font definition, a la CSS "font".
|
|
52
|
-
// fontColor: String|dojo.Color
|
|
53
|
-
// The color of the resultant text.
|
|
54
|
-
// returns: dojox.gfx.Text
|
|
55
|
-
// The resultant GFX object.
|
|
56
|
-
return creator.createText({
|
|
57
|
-
x: x, y: y, text: text, align: align
|
|
58
|
-
}).setFont(font).setFill(fontColor); // dojox.gfx.Text
|
|
59
|
-
},
|
|
60
|
-
html: function(chart, creator, x, y, align, text, font, fontColor, labelWidth){
|
|
61
|
-
// summary:
|
|
62
|
-
// Use the HTML DOM to create any text.
|
|
63
|
-
// chart: dojox.charting.Chart
|
|
64
|
-
// The chart to create the text into.
|
|
65
|
-
// creator: dojox.gfx.Surface
|
|
66
|
-
// The graphics surface to use for creating the text.
|
|
67
|
-
// x: Number
|
|
68
|
-
// Where to create the text along the x axis (CSS left).
|
|
69
|
-
// y: Number
|
|
70
|
-
// Where to create the text along the y axis (CSS top).
|
|
71
|
-
// align: String
|
|
72
|
-
// How to align the text. Can be "left", "right", "center".
|
|
73
|
-
// text: String
|
|
74
|
-
// The text to render.
|
|
75
|
-
// font: String
|
|
76
|
-
// The font definition, a la CSS "font".
|
|
77
|
-
// fontColor: String|dojo.Color
|
|
78
|
-
// The color of the resultant text.
|
|
79
|
-
// labelWidth: Number?
|
|
80
|
-
// The maximum width of the resultant DOM node.
|
|
81
|
-
// returns: DOMNode
|
|
82
|
-
// The resultant DOMNode (a "div" element).
|
|
83
|
-
|
|
84
|
-
// setup the text node
|
|
85
|
-
var p = win.doc.createElement("div"), s = p.style, boxWidth;
|
|
86
|
-
// bidi support, if this function exists the module was loaded
|
|
87
|
-
if(chart.getTextDir){
|
|
88
|
-
p.dir = chart.getTextDir(text);
|
|
89
|
-
}
|
|
90
|
-
clearNode(s);
|
|
91
|
-
s.font = font;
|
|
92
|
-
p.innerHTML = String(text).replace(/\s/g, " ");
|
|
93
|
-
s.color = fontColor;
|
|
94
|
-
// measure the size
|
|
95
|
-
s.position = "absolute";
|
|
96
|
-
s.left = "-10000px";
|
|
97
|
-
win.body().appendChild(p);
|
|
98
|
-
var size = g.normalizedLength(g.splitFontString(font).size);
|
|
99
|
-
|
|
100
|
-
// do we need to calculate the label width?
|
|
101
|
-
if(!labelWidth){
|
|
102
|
-
boxWidth = getBoxWidth(p);
|
|
103
|
-
}
|
|
104
|
-
// when the textDir is rtl, but the UI ltr needs
|
|
105
|
-
// to recalculate the starting point
|
|
106
|
-
if(p.dir == "rtl"){
|
|
107
|
-
x += labelWidth ? labelWidth : boxWidth;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// new settings for the text node
|
|
111
|
-
win.body().removeChild(p);
|
|
112
|
-
|
|
113
|
-
s.position = "relative";
|
|
114
|
-
if(labelWidth){
|
|
115
|
-
s.width = labelWidth + "px";
|
|
116
|
-
// s.border = "1px dotted grey";
|
|
117
|
-
switch(align){
|
|
118
|
-
case "middle":
|
|
119
|
-
s.textAlign = "center";
|
|
120
|
-
s.left = (x - labelWidth / 2) + "px";
|
|
121
|
-
break;
|
|
122
|
-
case "end":
|
|
123
|
-
s.textAlign = "right";
|
|
124
|
-
s.left = (x - labelWidth) + "px";
|
|
125
|
-
break;
|
|
126
|
-
default:
|
|
127
|
-
s.left = x + "px";
|
|
128
|
-
s.textAlign = "left";
|
|
129
|
-
break;
|
|
130
|
-
}
|
|
131
|
-
}else{
|
|
132
|
-
switch(align){
|
|
133
|
-
case "middle":
|
|
134
|
-
s.left = Math.floor(x - boxWidth / 2) + "px";
|
|
135
|
-
// s.left = Math.floor(x - p.offsetWidth / 2) + "px";
|
|
136
|
-
break;
|
|
137
|
-
case "end":
|
|
138
|
-
s.left = Math.floor(x - boxWidth) + "px";
|
|
139
|
-
// s.left = Math.floor(x - p.offsetWidth) + "px";
|
|
140
|
-
break;
|
|
141
|
-
//case "start":
|
|
142
|
-
default:
|
|
143
|
-
s.left = Math.floor(x) + "px";
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
s.top = Math.floor(y - size) + "px";
|
|
148
|
-
s.whiteSpace = "nowrap"; // hack for WebKit
|
|
149
|
-
// setup the wrapper node
|
|
150
|
-
var wrap = win.doc.createElement("div"), w = wrap.style;
|
|
151
|
-
clearNode(w);
|
|
152
|
-
w.width = "0px";
|
|
153
|
-
w.height = "0px";
|
|
154
|
-
// insert nodes
|
|
155
|
-
wrap.appendChild(p);
|
|
156
|
-
chart.node.insertBefore(wrap, chart.node.firstChild);
|
|
157
|
-
if(has("dojo-bidi")){
|
|
158
|
-
chart.htmlElementsRegistry.push([wrap, x, y, align, text, font, fontColor]);
|
|
159
|
-
}
|
|
160
|
-
return wrap; // DOMNode
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
define("dojox/charting/plot2d/Areas", ["dojo/_base/declare", "./Default"],
|
|
2
|
-
function(declare, Default){
|
|
3
|
-
|
|
4
|
-
return declare("dojox.charting.plot2d.Areas", Default, {
|
|
5
|
-
// summary:
|
|
6
|
-
// Represents an area chart. See dojox/charting/plot2d/Default for details.
|
|
7
|
-
constructor: function(){
|
|
8
|
-
// summary:
|
|
9
|
-
// The constructor for an Area chart.
|
|
10
|
-
this.opt.lines = true;
|
|
11
|
-
this.opt.areas = true;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|