@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,662 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/gfx/svg",["dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/dom","dojo/_base/declare","dojo/_base/array","dojo/dom-geometry","dojo/dom-attr","dojo/_base/Color","./_base","./shape","./path"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,g,gs,_a){
|
|
3
|
-
var _b=g.svg={};
|
|
4
|
-
_b.useSvgWeb=(typeof window.svgweb!="undefined");
|
|
5
|
-
var _c=navigator.userAgent,_d=_2("ios"),_e=_2("android"),_f=_2("chrome")||(_e&&_e>=4)?"auto":"optimizeLegibility";
|
|
6
|
-
function _10(ns,_11){
|
|
7
|
-
if(_3.doc.createElementNS){
|
|
8
|
-
return _3.doc.createElementNS(ns,_11);
|
|
9
|
-
}else{
|
|
10
|
-
return _3.doc.createElement(_11);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
function _12(_13,ns,_14,_15){
|
|
14
|
-
if(_13.setAttributeNS){
|
|
15
|
-
return _13.setAttributeNS(ns,_14,_15);
|
|
16
|
-
}else{
|
|
17
|
-
return _13.setAttribute(_14,_15);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
function _16(_17){
|
|
21
|
-
if(_b.useSvgWeb){
|
|
22
|
-
return _3.doc.createTextNode(_17,true);
|
|
23
|
-
}else{
|
|
24
|
-
return _3.doc.createTextNode(_17);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
function _18(){
|
|
28
|
-
if(_b.useSvgWeb){
|
|
29
|
-
return _3.doc.createDocumentFragment(true);
|
|
30
|
-
}else{
|
|
31
|
-
return _3.doc.createDocumentFragment();
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
_b.xmlns={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"};
|
|
35
|
-
_b.getRef=function(_19){
|
|
36
|
-
if(!_19||_19=="none"){
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
if(_19.match(/^url\(#.+\)$/)){
|
|
40
|
-
return _4.byId(_19.slice(5,-1));
|
|
41
|
-
}
|
|
42
|
-
if(_19.match(/^#dojoUnique\d+$/)){
|
|
43
|
-
return _4.byId(_19.slice(1));
|
|
44
|
-
}
|
|
45
|
-
return null;
|
|
46
|
-
};
|
|
47
|
-
_b.dasharray={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]};
|
|
48
|
-
var _1a=0;
|
|
49
|
-
_b.Shape=_5("dojox.gfx.svg.Shape",gs.Shape,{destroy:function(){
|
|
50
|
-
if(this.fillStyle&&"type" in this.fillStyle){
|
|
51
|
-
var _1b=this.rawNode.getAttribute("fill"),ref=_b.getRef(_1b);
|
|
52
|
-
if(ref){
|
|
53
|
-
ref.parentNode.removeChild(ref);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
if(this.clip){
|
|
57
|
-
var _1c=this.rawNode.getAttribute("clip-path");
|
|
58
|
-
if(_1c){
|
|
59
|
-
var _1d=_4.byId(_1c.match(/gfx_clip[\d]+/)[0]);
|
|
60
|
-
if(_1d){
|
|
61
|
-
_1d.parentNode.removeChild(_1d);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
gs.Shape.prototype.destroy.apply(this,arguments);
|
|
66
|
-
},setFill:function(_1e){
|
|
67
|
-
if(!_1e){
|
|
68
|
-
this.fillStyle=null;
|
|
69
|
-
this.rawNode.setAttribute("fill","none");
|
|
70
|
-
this.rawNode.setAttribute("fill-opacity",0);
|
|
71
|
-
return this;
|
|
72
|
-
}
|
|
73
|
-
var f;
|
|
74
|
-
var _1f=function(x){
|
|
75
|
-
this.setAttribute(x,f[x].toFixed(8));
|
|
76
|
-
};
|
|
77
|
-
if(typeof (_1e)=="object"&&"type" in _1e){
|
|
78
|
-
switch(_1e.type){
|
|
79
|
-
case "linear":
|
|
80
|
-
f=g.makeParameters(g.defaultLinearGradient,_1e);
|
|
81
|
-
var _20=this._setFillObject(f,"linearGradient");
|
|
82
|
-
_6.forEach(["x1","y1","x2","y2"],_1f,_20);
|
|
83
|
-
break;
|
|
84
|
-
case "radial":
|
|
85
|
-
f=g.makeParameters(g.defaultRadialGradient,_1e);
|
|
86
|
-
var _21=this._setFillObject(f,"radialGradient");
|
|
87
|
-
_6.forEach(["cx","cy","r"],_1f,_21);
|
|
88
|
-
break;
|
|
89
|
-
case "pattern":
|
|
90
|
-
f=g.makeParameters(g.defaultPattern,_1e);
|
|
91
|
-
var _22=this._setFillObject(f,"pattern");
|
|
92
|
-
_6.forEach(["x","y","width","height"],_1f,_22);
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
this.fillStyle=f;
|
|
96
|
-
return this;
|
|
97
|
-
}
|
|
98
|
-
f=g.normalizeColor(_1e);
|
|
99
|
-
this.fillStyle=f;
|
|
100
|
-
this.rawNode.setAttribute("fill",f.toCss());
|
|
101
|
-
this.rawNode.setAttribute("fill-opacity",f.a);
|
|
102
|
-
this.rawNode.setAttribute("fill-rule","evenodd");
|
|
103
|
-
return this;
|
|
104
|
-
},setStroke:function(_23){
|
|
105
|
-
var rn=this.rawNode;
|
|
106
|
-
if(!_23){
|
|
107
|
-
this.strokeStyle=null;
|
|
108
|
-
rn.setAttribute("stroke","none");
|
|
109
|
-
rn.setAttribute("stroke-opacity",0);
|
|
110
|
-
return this;
|
|
111
|
-
}
|
|
112
|
-
if(typeof _23=="string"||_1.isArray(_23)||_23 instanceof _9){
|
|
113
|
-
_23={color:_23};
|
|
114
|
-
}
|
|
115
|
-
var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_23);
|
|
116
|
-
s.color=g.normalizeColor(s.color);
|
|
117
|
-
if(s){
|
|
118
|
-
rn.setAttribute("stroke",s.color.toCss());
|
|
119
|
-
rn.setAttribute("stroke-opacity",s.color.a);
|
|
120
|
-
rn.setAttribute("stroke-width",s.width);
|
|
121
|
-
rn.setAttribute("stroke-linecap",s.cap);
|
|
122
|
-
if(typeof s.join=="number"){
|
|
123
|
-
rn.setAttribute("stroke-linejoin","miter");
|
|
124
|
-
rn.setAttribute("stroke-miterlimit",s.join);
|
|
125
|
-
}else{
|
|
126
|
-
rn.setAttribute("stroke-linejoin",s.join);
|
|
127
|
-
}
|
|
128
|
-
var da=s.style.toLowerCase();
|
|
129
|
-
if(da in _b.dasharray){
|
|
130
|
-
da=_b.dasharray[da];
|
|
131
|
-
}
|
|
132
|
-
if(da instanceof Array){
|
|
133
|
-
da=_1._toArray(da);
|
|
134
|
-
var i;
|
|
135
|
-
for(i=0;i<da.length;++i){
|
|
136
|
-
da[i]*=s.width;
|
|
137
|
-
}
|
|
138
|
-
if(s.cap!="butt"){
|
|
139
|
-
for(i=0;i<da.length;i+=2){
|
|
140
|
-
da[i]-=s.width;
|
|
141
|
-
if(da[i]<1){
|
|
142
|
-
da[i]=1;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
for(i=1;i<da.length;i+=2){
|
|
146
|
-
da[i]+=s.width;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
da=da.join(",");
|
|
150
|
-
}
|
|
151
|
-
rn.setAttribute("stroke-dasharray",da);
|
|
152
|
-
rn.setAttribute("dojoGfxStrokeStyle",s.style);
|
|
153
|
-
}
|
|
154
|
-
return this;
|
|
155
|
-
},_getParentSurface:function(){
|
|
156
|
-
var _24=this.parent;
|
|
157
|
-
for(;_24&&!(_24 instanceof g.Surface);_24=_24.parent){
|
|
158
|
-
}
|
|
159
|
-
return _24;
|
|
160
|
-
},_setFillObject:function(f,_25){
|
|
161
|
-
var _26=_b.xmlns.svg;
|
|
162
|
-
this.fillStyle=f;
|
|
163
|
-
var _27=this._getParentSurface(),_28=_27.defNode,_29=this.rawNode.getAttribute("fill"),ref=_b.getRef(_29);
|
|
164
|
-
if(ref){
|
|
165
|
-
_29=ref;
|
|
166
|
-
if(_29.tagName.toLowerCase()!=_25.toLowerCase()){
|
|
167
|
-
var id=_29.id;
|
|
168
|
-
_29.parentNode.removeChild(_29);
|
|
169
|
-
_29=_10(_26,_25);
|
|
170
|
-
_29.setAttribute("id",id);
|
|
171
|
-
_28.appendChild(_29);
|
|
172
|
-
}else{
|
|
173
|
-
while(_29.childNodes.length){
|
|
174
|
-
_29.removeChild(_29.lastChild);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}else{
|
|
178
|
-
_29=_10(_26,_25);
|
|
179
|
-
_29.setAttribute("id",g._base._getUniqueId());
|
|
180
|
-
_28.appendChild(_29);
|
|
181
|
-
}
|
|
182
|
-
if(_25=="pattern"){
|
|
183
|
-
_29.setAttribute("patternUnits","userSpaceOnUse");
|
|
184
|
-
var img=_10(_26,"image");
|
|
185
|
-
img.setAttribute("x",0);
|
|
186
|
-
img.setAttribute("y",0);
|
|
187
|
-
img.setAttribute("width",f.width.toFixed(8));
|
|
188
|
-
img.setAttribute("height",f.height.toFixed(8));
|
|
189
|
-
_12(img,_b.xmlns.xlink,"xlink:href",f.src);
|
|
190
|
-
_29.appendChild(img);
|
|
191
|
-
}else{
|
|
192
|
-
_29.setAttribute("gradientUnits","userSpaceOnUse");
|
|
193
|
-
for(var i=0;i<f.colors.length;++i){
|
|
194
|
-
var c=f.colors[i],t=_10(_26,"stop"),cc=c.color=g.normalizeColor(c.color);
|
|
195
|
-
t.setAttribute("offset",c.offset.toFixed(8));
|
|
196
|
-
t.setAttribute("stop-color",cc.toCss());
|
|
197
|
-
t.setAttribute("stop-opacity",cc.a);
|
|
198
|
-
_29.appendChild(t);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
this.rawNode.setAttribute("fill","url(#"+_29.getAttribute("id")+")");
|
|
202
|
-
this.rawNode.removeAttribute("fill-opacity");
|
|
203
|
-
this.rawNode.setAttribute("fill-rule","evenodd");
|
|
204
|
-
return _29;
|
|
205
|
-
},_applyTransform:function(){
|
|
206
|
-
var _2a=this.matrix;
|
|
207
|
-
if(_2a){
|
|
208
|
-
var tm=this.matrix;
|
|
209
|
-
this.rawNode.setAttribute("transform","matrix("+tm.xx.toFixed(8)+","+tm.yx.toFixed(8)+","+tm.xy.toFixed(8)+","+tm.yy.toFixed(8)+","+tm.dx.toFixed(8)+","+tm.dy.toFixed(8)+")");
|
|
210
|
-
}else{
|
|
211
|
-
this.rawNode.removeAttribute("transform");
|
|
212
|
-
}
|
|
213
|
-
return this;
|
|
214
|
-
},setRawNode:function(_2b){
|
|
215
|
-
var r=this.rawNode=_2b;
|
|
216
|
-
if(this.shape.type!="image"){
|
|
217
|
-
r.setAttribute("fill","none");
|
|
218
|
-
}
|
|
219
|
-
r.setAttribute("fill-opacity",0);
|
|
220
|
-
r.setAttribute("stroke","none");
|
|
221
|
-
r.setAttribute("stroke-opacity",0);
|
|
222
|
-
r.setAttribute("stroke-width",1);
|
|
223
|
-
r.setAttribute("stroke-linecap","butt");
|
|
224
|
-
r.setAttribute("stroke-linejoin","miter");
|
|
225
|
-
r.setAttribute("stroke-miterlimit",4);
|
|
226
|
-
r.__gfxObject__=this;
|
|
227
|
-
},setShape:function(_2c){
|
|
228
|
-
this.shape=g.makeParameters(this.shape,_2c);
|
|
229
|
-
for(var i in this.shape){
|
|
230
|
-
if(i!="type"){
|
|
231
|
-
this.rawNode.setAttribute(i,this.shape[i]);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
this.bbox=null;
|
|
235
|
-
return this;
|
|
236
|
-
},_moveToFront:function(){
|
|
237
|
-
this.rawNode.parentNode.appendChild(this.rawNode);
|
|
238
|
-
return this;
|
|
239
|
-
},_moveToBack:function(){
|
|
240
|
-
this.rawNode.parentNode.insertBefore(this.rawNode,this.rawNode.parentNode.firstChild);
|
|
241
|
-
return this;
|
|
242
|
-
},setClip:function(_2d){
|
|
243
|
-
this.inherited(arguments);
|
|
244
|
-
var _2e=_2d?"width" in _2d?"rect":"cx" in _2d?"ellipse":"points" in _2d?"polyline":"d" in _2d?"path":null:null;
|
|
245
|
-
if(_2d&&!_2e){
|
|
246
|
-
return this;
|
|
247
|
-
}
|
|
248
|
-
if(_2e==="polyline"){
|
|
249
|
-
_2d=_1.clone(_2d);
|
|
250
|
-
_2d.points=_2d.points.join(",");
|
|
251
|
-
}
|
|
252
|
-
var _2f,_30,_31=_8.get(this.rawNode,"clip-path");
|
|
253
|
-
if(_31){
|
|
254
|
-
_2f=_4.byId(_31.match(/gfx_clip[\d]+/)[0]);
|
|
255
|
-
if(_2f){
|
|
256
|
-
_2f.removeChild(_2f.childNodes[0]);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
if(_2d){
|
|
260
|
-
if(_2f){
|
|
261
|
-
_30=_10(_b.xmlns.svg,_2e);
|
|
262
|
-
_2f.appendChild(_30);
|
|
263
|
-
}else{
|
|
264
|
-
var _32=++_1a;
|
|
265
|
-
var _33="gfx_clip"+_32;
|
|
266
|
-
var _34="url(#"+_33+")";
|
|
267
|
-
this.rawNode.setAttribute("clip-path",_34);
|
|
268
|
-
_2f=_10(_b.xmlns.svg,"clipPath");
|
|
269
|
-
_30=_10(_b.xmlns.svg,_2e);
|
|
270
|
-
_2f.appendChild(_30);
|
|
271
|
-
this.rawNode.parentNode.insertBefore(_2f,this.rawNode);
|
|
272
|
-
_8.set(_2f,"id",_33);
|
|
273
|
-
}
|
|
274
|
-
_8.set(_30,_2d);
|
|
275
|
-
}else{
|
|
276
|
-
this.rawNode.removeAttribute("clip-path");
|
|
277
|
-
if(_2f){
|
|
278
|
-
_2f.parentNode.removeChild(_2f);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
return this;
|
|
282
|
-
},_removeClipNode:function(){
|
|
283
|
-
var _35,_36=_8.get(this.rawNode,"clip-path");
|
|
284
|
-
if(_36){
|
|
285
|
-
_35=_4.byId(_36.match(/gfx_clip[\d]+/)[0]);
|
|
286
|
-
if(_35){
|
|
287
|
-
_35.parentNode.removeChild(_35);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
return _35;
|
|
291
|
-
}});
|
|
292
|
-
_b.Group=_5("dojox.gfx.svg.Group",_b.Shape,{constructor:function(){
|
|
293
|
-
gs.Container._init.call(this);
|
|
294
|
-
},setRawNode:function(_37){
|
|
295
|
-
this.rawNode=_37;
|
|
296
|
-
this.rawNode.__gfxObject__=this;
|
|
297
|
-
},destroy:function(){
|
|
298
|
-
this.clear(true);
|
|
299
|
-
_b.Shape.prototype.destroy.apply(this,arguments);
|
|
300
|
-
}});
|
|
301
|
-
_b.Group.nodeType="g";
|
|
302
|
-
_b.Rect=_5("dojox.gfx.svg.Rect",[_b.Shape,gs.Rect],{setShape:function(_38){
|
|
303
|
-
this.shape=g.makeParameters(this.shape,_38);
|
|
304
|
-
this.bbox=null;
|
|
305
|
-
for(var i in this.shape){
|
|
306
|
-
if(i!="type"&&i!="r"){
|
|
307
|
-
this.rawNode.setAttribute(i,this.shape[i]);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
if(this.shape.r!=null){
|
|
311
|
-
this.rawNode.setAttribute("ry",this.shape.r);
|
|
312
|
-
this.rawNode.setAttribute("rx",this.shape.r);
|
|
313
|
-
}
|
|
314
|
-
return this;
|
|
315
|
-
}});
|
|
316
|
-
_b.Rect.nodeType="rect";
|
|
317
|
-
_b.Ellipse=_5("dojox.gfx.svg.Ellipse",[_b.Shape,gs.Ellipse],{});
|
|
318
|
-
_b.Ellipse.nodeType="ellipse";
|
|
319
|
-
_b.Circle=_5("dojox.gfx.svg.Circle",[_b.Shape,gs.Circle],{});
|
|
320
|
-
_b.Circle.nodeType="circle";
|
|
321
|
-
_b.Line=_5("dojox.gfx.svg.Line",[_b.Shape,gs.Line],{});
|
|
322
|
-
_b.Line.nodeType="line";
|
|
323
|
-
_b.Polyline=_5("dojox.gfx.svg.Polyline",[_b.Shape,gs.Polyline],{setShape:function(_39,_3a){
|
|
324
|
-
if(_39&&_39 instanceof Array){
|
|
325
|
-
this.shape=g.makeParameters(this.shape,{points:_39});
|
|
326
|
-
if(_3a&&this.shape.points.length){
|
|
327
|
-
this.shape.points.push(this.shape.points[0]);
|
|
328
|
-
}
|
|
329
|
-
}else{
|
|
330
|
-
this.shape=g.makeParameters(this.shape,_39);
|
|
331
|
-
}
|
|
332
|
-
this.bbox=null;
|
|
333
|
-
this._normalizePoints();
|
|
334
|
-
var _3b=[],p=this.shape.points;
|
|
335
|
-
for(var i=0;i<p.length;++i){
|
|
336
|
-
_3b.push(p[i].x.toFixed(8),p[i].y.toFixed(8));
|
|
337
|
-
}
|
|
338
|
-
this.rawNode.setAttribute("points",_3b.join(" "));
|
|
339
|
-
return this;
|
|
340
|
-
}});
|
|
341
|
-
_b.Polyline.nodeType="polyline";
|
|
342
|
-
_b.Image=_5("dojox.gfx.svg.Image",[_b.Shape,gs.Image],{setShape:function(_3c){
|
|
343
|
-
this.shape=g.makeParameters(this.shape,_3c);
|
|
344
|
-
this.bbox=null;
|
|
345
|
-
var _3d=this.rawNode;
|
|
346
|
-
for(var i in this.shape){
|
|
347
|
-
if(i!="type"&&i!="src"){
|
|
348
|
-
_3d.setAttribute(i,this.shape[i]);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
_3d.setAttribute("preserveAspectRatio","none");
|
|
352
|
-
_12(_3d,_b.xmlns.xlink,"xlink:href",this.shape.src);
|
|
353
|
-
_3d.__gfxObject__=this;
|
|
354
|
-
return this;
|
|
355
|
-
}});
|
|
356
|
-
_b.Image.nodeType="image";
|
|
357
|
-
_b.Text=_5("dojox.gfx.svg.Text",[_b.Shape,gs.Text],{setShape:function(_3e){
|
|
358
|
-
this.shape=g.makeParameters(this.shape,_3e);
|
|
359
|
-
this.bbox=null;
|
|
360
|
-
var r=this.rawNode,s=this.shape;
|
|
361
|
-
r.setAttribute("x",s.x);
|
|
362
|
-
r.setAttribute("y",s.y);
|
|
363
|
-
r.setAttribute("text-anchor",s.align);
|
|
364
|
-
r.setAttribute("text-decoration",s.decoration);
|
|
365
|
-
r.setAttribute("rotate",s.rotated?90:0);
|
|
366
|
-
r.setAttribute("kerning",s.kerning?"auto":0);
|
|
367
|
-
r.setAttribute("text-rendering",_f);
|
|
368
|
-
if(r.firstChild){
|
|
369
|
-
r.firstChild.nodeValue=s.text;
|
|
370
|
-
}else{
|
|
371
|
-
r.appendChild(_16(s.text));
|
|
372
|
-
}
|
|
373
|
-
return this;
|
|
374
|
-
},getTextWidth:function(){
|
|
375
|
-
var _3f=this.rawNode,_40=_3f.parentNode,_41=_3f.cloneNode(true);
|
|
376
|
-
_41.style.visibility="hidden";
|
|
377
|
-
var _42=0,_43=_41.firstChild.nodeValue;
|
|
378
|
-
_40.appendChild(_41);
|
|
379
|
-
if(_43!=""){
|
|
380
|
-
while(!_42){
|
|
381
|
-
if(_41.getBBox){
|
|
382
|
-
_42=parseInt(_41.getBBox().width);
|
|
383
|
-
}else{
|
|
384
|
-
_42=68;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
_40.removeChild(_41);
|
|
389
|
-
return _42;
|
|
390
|
-
},getBoundingBox:function(){
|
|
391
|
-
var s=this.getShape(),_44=null;
|
|
392
|
-
if(s.text){
|
|
393
|
-
try{
|
|
394
|
-
_44=this.rawNode.getBBox();
|
|
395
|
-
}
|
|
396
|
-
catch(e){
|
|
397
|
-
_44={x:0,y:0,width:0,height:0};
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
return _44;
|
|
401
|
-
}});
|
|
402
|
-
_b.Text.nodeType="text";
|
|
403
|
-
_b.Path=_5("dojox.gfx.svg.Path",[_b.Shape,_a.Path],{_updateWithSegment:function(_45){
|
|
404
|
-
this.inherited(arguments);
|
|
405
|
-
if(typeof (this.shape.path)=="string"){
|
|
406
|
-
this.rawNode.setAttribute("d",this.shape.path);
|
|
407
|
-
}
|
|
408
|
-
},setShape:function(_46){
|
|
409
|
-
this.inherited(arguments);
|
|
410
|
-
if(this.shape.path){
|
|
411
|
-
this.rawNode.setAttribute("d",this.shape.path);
|
|
412
|
-
}else{
|
|
413
|
-
this.rawNode.removeAttribute("d");
|
|
414
|
-
}
|
|
415
|
-
return this;
|
|
416
|
-
}});
|
|
417
|
-
_b.Path.nodeType="path";
|
|
418
|
-
_b.TextPath=_5("dojox.gfx.svg.TextPath",[_b.Shape,_a.TextPath],{_updateWithSegment:function(_47){
|
|
419
|
-
this.inherited(arguments);
|
|
420
|
-
this._setTextPath();
|
|
421
|
-
},setShape:function(_48){
|
|
422
|
-
this.inherited(arguments);
|
|
423
|
-
this._setTextPath();
|
|
424
|
-
return this;
|
|
425
|
-
},_setTextPath:function(){
|
|
426
|
-
if(typeof this.shape.path!="string"){
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
var r=this.rawNode;
|
|
430
|
-
if(!r.firstChild){
|
|
431
|
-
var tp=_10(_b.xmlns.svg,"textPath"),tx=_16("");
|
|
432
|
-
tp.appendChild(tx);
|
|
433
|
-
r.appendChild(tp);
|
|
434
|
-
}
|
|
435
|
-
var ref=r.firstChild.getAttributeNS(_b.xmlns.xlink,"href"),_49=ref&&_b.getRef(ref);
|
|
436
|
-
if(!_49){
|
|
437
|
-
var _4a=this._getParentSurface();
|
|
438
|
-
if(_4a){
|
|
439
|
-
var _4b=_4a.defNode;
|
|
440
|
-
_49=_10(_b.xmlns.svg,"path");
|
|
441
|
-
var id=g._base._getUniqueId();
|
|
442
|
-
_49.setAttribute("id",id);
|
|
443
|
-
_4b.appendChild(_49);
|
|
444
|
-
_12(r.firstChild,_b.xmlns.xlink,"xlink:href","#"+id);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
if(_49){
|
|
448
|
-
_49.setAttribute("d",this.shape.path);
|
|
449
|
-
}
|
|
450
|
-
},_setText:function(){
|
|
451
|
-
var r=this.rawNode;
|
|
452
|
-
if(!r.firstChild){
|
|
453
|
-
var tp=_10(_b.xmlns.svg,"textPath"),tx=_16("");
|
|
454
|
-
tp.appendChild(tx);
|
|
455
|
-
r.appendChild(tp);
|
|
456
|
-
}
|
|
457
|
-
r=r.firstChild;
|
|
458
|
-
var t=this.text;
|
|
459
|
-
r.setAttribute("alignment-baseline","middle");
|
|
460
|
-
switch(t.align){
|
|
461
|
-
case "middle":
|
|
462
|
-
r.setAttribute("text-anchor","middle");
|
|
463
|
-
r.setAttribute("startOffset","50%");
|
|
464
|
-
break;
|
|
465
|
-
case "end":
|
|
466
|
-
r.setAttribute("text-anchor","end");
|
|
467
|
-
r.setAttribute("startOffset","100%");
|
|
468
|
-
break;
|
|
469
|
-
default:
|
|
470
|
-
r.setAttribute("text-anchor","start");
|
|
471
|
-
r.setAttribute("startOffset","0%");
|
|
472
|
-
break;
|
|
473
|
-
}
|
|
474
|
-
r.setAttribute("baseline-shift","0.5ex");
|
|
475
|
-
r.setAttribute("text-decoration",t.decoration);
|
|
476
|
-
r.setAttribute("rotate",t.rotated?90:0);
|
|
477
|
-
r.setAttribute("kerning",t.kerning?"auto":0);
|
|
478
|
-
r.firstChild.data=t.text;
|
|
479
|
-
}});
|
|
480
|
-
_b.TextPath.nodeType="text";
|
|
481
|
-
var _4c=(function(){
|
|
482
|
-
var _4d=/WebKit\/(\d*)/.exec(_c);
|
|
483
|
-
return _4d?_4d[1]:0;
|
|
484
|
-
})()>534;
|
|
485
|
-
_b.Surface=_5("dojox.gfx.svg.Surface",gs.Surface,{constructor:function(){
|
|
486
|
-
gs.Container._init.call(this);
|
|
487
|
-
},destroy:function(){
|
|
488
|
-
gs.Container.clear.call(this,true);
|
|
489
|
-
this.defNode=null;
|
|
490
|
-
this.inherited(arguments);
|
|
491
|
-
},setDimensions:function(_4e,_4f){
|
|
492
|
-
if(!this.rawNode){
|
|
493
|
-
return this;
|
|
494
|
-
}
|
|
495
|
-
this.rawNode.setAttribute("width",_4e);
|
|
496
|
-
this.rawNode.setAttribute("height",_4f);
|
|
497
|
-
if(_4c){
|
|
498
|
-
this.rawNode.style.width=_4e;
|
|
499
|
-
this.rawNode.style.height=_4f;
|
|
500
|
-
}
|
|
501
|
-
return this;
|
|
502
|
-
},getDimensions:function(){
|
|
503
|
-
var t=this.rawNode?{width:g.normalizedLength(this.rawNode.getAttribute("width")),height:g.normalizedLength(this.rawNode.getAttribute("height"))}:null;
|
|
504
|
-
return t;
|
|
505
|
-
}});
|
|
506
|
-
_b.createSurface=function(_50,_51,_52){
|
|
507
|
-
var s=new _b.Surface();
|
|
508
|
-
s.rawNode=_10(_b.xmlns.svg,"svg");
|
|
509
|
-
s.rawNode.setAttribute("overflow","hidden");
|
|
510
|
-
if(_51){
|
|
511
|
-
s.rawNode.setAttribute("width",_51);
|
|
512
|
-
}
|
|
513
|
-
if(_52){
|
|
514
|
-
s.rawNode.setAttribute("height",_52);
|
|
515
|
-
}
|
|
516
|
-
var _53=_10(_b.xmlns.svg,"defs");
|
|
517
|
-
s.rawNode.appendChild(_53);
|
|
518
|
-
s.defNode=_53;
|
|
519
|
-
s._parent=_4.byId(_50);
|
|
520
|
-
s._parent.appendChild(s.rawNode);
|
|
521
|
-
g._base._fixMsTouchAction(s);
|
|
522
|
-
return s;
|
|
523
|
-
};
|
|
524
|
-
var _54={_setFont:function(){
|
|
525
|
-
var f=this.fontStyle;
|
|
526
|
-
this.rawNode.setAttribute("font-style",f.style);
|
|
527
|
-
this.rawNode.setAttribute("font-variant",f.variant);
|
|
528
|
-
this.rawNode.setAttribute("font-weight",f.weight);
|
|
529
|
-
this.rawNode.setAttribute("font-size",f.size);
|
|
530
|
-
this.rawNode.setAttribute("font-family",f.family);
|
|
531
|
-
}};
|
|
532
|
-
var C=gs.Container;
|
|
533
|
-
var _55=_b.Container={openBatch:function(){
|
|
534
|
-
if(!this._batch){
|
|
535
|
-
this.fragment=_18();
|
|
536
|
-
}
|
|
537
|
-
++this._batch;
|
|
538
|
-
return this;
|
|
539
|
-
},closeBatch:function(){
|
|
540
|
-
this._batch=this._batch>0?--this._batch:0;
|
|
541
|
-
if(this.fragment&&!this._batch){
|
|
542
|
-
this.rawNode.appendChild(this.fragment);
|
|
543
|
-
delete this.fragment;
|
|
544
|
-
}
|
|
545
|
-
return this;
|
|
546
|
-
},add:function(_56){
|
|
547
|
-
if(this!=_56.getParent()){
|
|
548
|
-
if(this.fragment){
|
|
549
|
-
this.fragment.appendChild(_56.rawNode);
|
|
550
|
-
}else{
|
|
551
|
-
this.rawNode.appendChild(_56.rawNode);
|
|
552
|
-
}
|
|
553
|
-
C.add.apply(this,arguments);
|
|
554
|
-
_56.setClip(_56.clip);
|
|
555
|
-
}
|
|
556
|
-
return this;
|
|
557
|
-
},remove:function(_57,_58){
|
|
558
|
-
if(this==_57.getParent()){
|
|
559
|
-
if(this.rawNode==_57.rawNode.parentNode){
|
|
560
|
-
this.rawNode.removeChild(_57.rawNode);
|
|
561
|
-
}
|
|
562
|
-
if(this.fragment&&this.fragment==_57.rawNode.parentNode){
|
|
563
|
-
this.fragment.removeChild(_57.rawNode);
|
|
564
|
-
}
|
|
565
|
-
_57._removeClipNode();
|
|
566
|
-
C.remove.apply(this,arguments);
|
|
567
|
-
}
|
|
568
|
-
return this;
|
|
569
|
-
},clear:function(){
|
|
570
|
-
var r=this.rawNode;
|
|
571
|
-
while(r.lastChild){
|
|
572
|
-
r.removeChild(r.lastChild);
|
|
573
|
-
}
|
|
574
|
-
var _59=this.defNode;
|
|
575
|
-
if(_59){
|
|
576
|
-
while(_59.lastChild){
|
|
577
|
-
_59.removeChild(_59.lastChild);
|
|
578
|
-
}
|
|
579
|
-
r.appendChild(_59);
|
|
580
|
-
}
|
|
581
|
-
return C.clear.apply(this,arguments);
|
|
582
|
-
},getBoundingBox:C.getBoundingBox,_moveChildToFront:C._moveChildToFront,_moveChildToBack:C._moveChildToBack};
|
|
583
|
-
var _5a=_b.Creator={createObject:function(_5b,_5c){
|
|
584
|
-
if(!this.rawNode){
|
|
585
|
-
return null;
|
|
586
|
-
}
|
|
587
|
-
var _5d=new _5b(),_5e=_10(_b.xmlns.svg,_5b.nodeType);
|
|
588
|
-
_5d.setRawNode(_5e);
|
|
589
|
-
_5d.setShape(_5c);
|
|
590
|
-
this.add(_5d);
|
|
591
|
-
return _5d;
|
|
592
|
-
}};
|
|
593
|
-
_1.extend(_b.Text,_54);
|
|
594
|
-
_1.extend(_b.TextPath,_54);
|
|
595
|
-
_1.extend(_b.Group,_55);
|
|
596
|
-
_1.extend(_b.Group,gs.Creator);
|
|
597
|
-
_1.extend(_b.Group,_5a);
|
|
598
|
-
_1.extend(_b.Surface,_55);
|
|
599
|
-
_1.extend(_b.Surface,gs.Creator);
|
|
600
|
-
_1.extend(_b.Surface,_5a);
|
|
601
|
-
_b.fixTarget=function(_5f,_60){
|
|
602
|
-
if(!_5f.gfxTarget){
|
|
603
|
-
if(_d&&_5f.target.wholeText){
|
|
604
|
-
_5f.gfxTarget=_5f.target.parentElement.__gfxObject__;
|
|
605
|
-
}else{
|
|
606
|
-
_5f.gfxTarget=_5f.target.__gfxObject__;
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
return true;
|
|
610
|
-
};
|
|
611
|
-
if(_b.useSvgWeb){
|
|
612
|
-
_b.createSurface=function(_61,_62,_63){
|
|
613
|
-
var s=new _b.Surface();
|
|
614
|
-
if(!_62||!_63){
|
|
615
|
-
var pos=_7.position(_61);
|
|
616
|
-
_62=_62||pos.w;
|
|
617
|
-
_63=_63||pos.h;
|
|
618
|
-
}
|
|
619
|
-
_61=_4.byId(_61);
|
|
620
|
-
var id=_61.id?_61.id+"_svgweb":g._base._getUniqueId();
|
|
621
|
-
var _64=_10(_b.xmlns.svg,"svg");
|
|
622
|
-
_64.id=id;
|
|
623
|
-
_64.setAttribute("width",_62);
|
|
624
|
-
_64.setAttribute("height",_63);
|
|
625
|
-
svgweb.appendChild(_64,_61);
|
|
626
|
-
_64.addEventListener("SVGLoad",function(){
|
|
627
|
-
s.rawNode=this;
|
|
628
|
-
s.isLoaded=true;
|
|
629
|
-
var _65=_10(_b.xmlns.svg,"defs");
|
|
630
|
-
s.rawNode.appendChild(_65);
|
|
631
|
-
s.defNode=_65;
|
|
632
|
-
if(s.onLoad){
|
|
633
|
-
s.onLoad(s);
|
|
634
|
-
}
|
|
635
|
-
},false);
|
|
636
|
-
s.isLoaded=false;
|
|
637
|
-
return s;
|
|
638
|
-
};
|
|
639
|
-
_b.Surface.extend({destroy:function(){
|
|
640
|
-
var _66=this.rawNode;
|
|
641
|
-
svgweb.removeChild(_66,_66.parentNode);
|
|
642
|
-
}});
|
|
643
|
-
var _67={connect:function(_68,_69,_6a){
|
|
644
|
-
if(_68.substring(0,2)==="on"){
|
|
645
|
-
_68=_68.substring(2);
|
|
646
|
-
}
|
|
647
|
-
if(arguments.length==2){
|
|
648
|
-
_6a=_69;
|
|
649
|
-
}else{
|
|
650
|
-
_6a=_1.hitch(_69,_6a);
|
|
651
|
-
}
|
|
652
|
-
this.getEventSource().addEventListener(_68,_6a,false);
|
|
653
|
-
return [this,_68,_6a];
|
|
654
|
-
},disconnect:function(_6b){
|
|
655
|
-
this.getEventSource().removeEventListener(_6b[1],_6b[2],false);
|
|
656
|
-
delete _6b[0];
|
|
657
|
-
}};
|
|
658
|
-
_1.extend(_b.Shape,_67);
|
|
659
|
-
_1.extend(_b.Surface,_67);
|
|
660
|
-
}
|
|
661
|
-
return _b;
|
|
662
|
-
});
|