@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,459 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/gfx/shape",["./_base","dojo/_base/lang","dojo/_base/declare","dojo/_base/kernel","dojo/_base/sniff","dojo/on","dojo/_base/array","dojo/dom-construct","dojo/_base/Color","./matrix"],function(g,_1,_2,_3,_4,on,_5,_6,_7,_8){
|
|
3
|
-
function _9(a,_a){
|
|
4
|
-
var _b=(a.length-1);
|
|
5
|
-
while(_a<_b){
|
|
6
|
-
a[_a]=a[++_a];
|
|
7
|
-
}
|
|
8
|
-
a.length=_b;
|
|
9
|
-
};
|
|
10
|
-
var _c=g.shape={};
|
|
11
|
-
_c.Shape=_2("dojox.gfx.shape.Shape",null,{constructor:function(){
|
|
12
|
-
this.rawNode=null;
|
|
13
|
-
this.shape=null;
|
|
14
|
-
this.matrix=null;
|
|
15
|
-
this.fillStyle=null;
|
|
16
|
-
this.strokeStyle=null;
|
|
17
|
-
this.bbox=null;
|
|
18
|
-
this.parent=null;
|
|
19
|
-
this.parentMatrix=null;
|
|
20
|
-
if(_4("gfxRegistry")){
|
|
21
|
-
var _d=_c.register(this);
|
|
22
|
-
this.getUID=function(){
|
|
23
|
-
return _d;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
},destroy:function(){
|
|
27
|
-
if(_4("gfxRegistry")){
|
|
28
|
-
_c.dispose(this);
|
|
29
|
-
}
|
|
30
|
-
if(this.rawNode&&"__gfxObject__" in this.rawNode){
|
|
31
|
-
this.rawNode.__gfxObject__=null;
|
|
32
|
-
}
|
|
33
|
-
this.rawNode=null;
|
|
34
|
-
},getNode:function(){
|
|
35
|
-
return this.rawNode;
|
|
36
|
-
},getShape:function(){
|
|
37
|
-
return this.shape;
|
|
38
|
-
},getTransform:function(){
|
|
39
|
-
return this.matrix;
|
|
40
|
-
},getFill:function(){
|
|
41
|
-
return this.fillStyle;
|
|
42
|
-
},getStroke:function(){
|
|
43
|
-
return this.strokeStyle;
|
|
44
|
-
},getParent:function(){
|
|
45
|
-
return this.parent;
|
|
46
|
-
},getBoundingBox:function(){
|
|
47
|
-
return this.bbox;
|
|
48
|
-
},getTransformedBoundingBox:function(){
|
|
49
|
-
var b=this.getBoundingBox();
|
|
50
|
-
if(!b){
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
var m=this._getRealMatrix(),gm=_8;
|
|
54
|
-
return [gm.multiplyPoint(m,b.x,b.y),gm.multiplyPoint(m,b.x+b.width,b.y),gm.multiplyPoint(m,b.x+b.width,b.y+b.height),gm.multiplyPoint(m,b.x,b.y+b.height)];
|
|
55
|
-
},getEventSource:function(){
|
|
56
|
-
return this.rawNode;
|
|
57
|
-
},setClip:function(_e){
|
|
58
|
-
this.clip=_e;
|
|
59
|
-
},getClip:function(){
|
|
60
|
-
return this.clip;
|
|
61
|
-
},setShape:function(_f){
|
|
62
|
-
this.shape=g.makeParameters(this.shape,_f);
|
|
63
|
-
this.bbox=null;
|
|
64
|
-
return this;
|
|
65
|
-
},setFill:function(_10){
|
|
66
|
-
if(!_10){
|
|
67
|
-
this.fillStyle=null;
|
|
68
|
-
return this;
|
|
69
|
-
}
|
|
70
|
-
var f=null;
|
|
71
|
-
if(typeof (_10)=="object"&&"type" in _10){
|
|
72
|
-
switch(_10.type){
|
|
73
|
-
case "linear":
|
|
74
|
-
f=g.makeParameters(g.defaultLinearGradient,_10);
|
|
75
|
-
break;
|
|
76
|
-
case "radial":
|
|
77
|
-
f=g.makeParameters(g.defaultRadialGradient,_10);
|
|
78
|
-
break;
|
|
79
|
-
case "pattern":
|
|
80
|
-
f=g.makeParameters(g.defaultPattern,_10);
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
}else{
|
|
84
|
-
f=g.normalizeColor(_10);
|
|
85
|
-
}
|
|
86
|
-
this.fillStyle=f;
|
|
87
|
-
return this;
|
|
88
|
-
},setStroke:function(_11){
|
|
89
|
-
if(!_11){
|
|
90
|
-
this.strokeStyle=null;
|
|
91
|
-
return this;
|
|
92
|
-
}
|
|
93
|
-
if(typeof _11=="string"||_1.isArray(_11)||_11 instanceof _7){
|
|
94
|
-
_11={color:_11};
|
|
95
|
-
}
|
|
96
|
-
var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_11);
|
|
97
|
-
s.color=g.normalizeColor(s.color);
|
|
98
|
-
return this;
|
|
99
|
-
},setTransform:function(_12){
|
|
100
|
-
this.matrix=_8.clone(_12?_8.normalize(_12):_8.identity);
|
|
101
|
-
return this._applyTransform();
|
|
102
|
-
},_applyTransform:function(){
|
|
103
|
-
return this;
|
|
104
|
-
},moveToFront:function(){
|
|
105
|
-
var p=this.getParent();
|
|
106
|
-
if(p){
|
|
107
|
-
p._moveChildToFront(this);
|
|
108
|
-
this._moveToFront();
|
|
109
|
-
}
|
|
110
|
-
return this;
|
|
111
|
-
},moveToBack:function(){
|
|
112
|
-
var p=this.getParent();
|
|
113
|
-
if(p){
|
|
114
|
-
p._moveChildToBack(this);
|
|
115
|
-
this._moveToBack();
|
|
116
|
-
}
|
|
117
|
-
return this;
|
|
118
|
-
},_moveToFront:function(){
|
|
119
|
-
},_moveToBack:function(){
|
|
120
|
-
},applyRightTransform:function(_13){
|
|
121
|
-
return _13?this.setTransform([this.matrix,_13]):this;
|
|
122
|
-
},applyLeftTransform:function(_14){
|
|
123
|
-
return _14?this.setTransform([_14,this.matrix]):this;
|
|
124
|
-
},applyTransform:function(_15){
|
|
125
|
-
return _15?this.setTransform([this.matrix,_15]):this;
|
|
126
|
-
},removeShape:function(_16){
|
|
127
|
-
if(this.parent){
|
|
128
|
-
this.parent.remove(this,_16);
|
|
129
|
-
}
|
|
130
|
-
return this;
|
|
131
|
-
},_setParent:function(_17,_18){
|
|
132
|
-
this.parent=_17;
|
|
133
|
-
return this._updateParentMatrix(_18);
|
|
134
|
-
},_updateParentMatrix:function(_19){
|
|
135
|
-
this.parentMatrix=_19?_8.clone(_19):null;
|
|
136
|
-
return this._applyTransform();
|
|
137
|
-
},_getRealMatrix:function(){
|
|
138
|
-
var m=this.matrix;
|
|
139
|
-
var p=this.parent;
|
|
140
|
-
while(p){
|
|
141
|
-
if(p.matrix){
|
|
142
|
-
m=_8.multiply(p.matrix,m);
|
|
143
|
-
}
|
|
144
|
-
p=p.parent;
|
|
145
|
-
}
|
|
146
|
-
return m;
|
|
147
|
-
}});
|
|
148
|
-
_c._eventsProcessing={on:function(_1a,_1b){
|
|
149
|
-
return on(this.getEventSource(),_1a,_c.fixCallback(this,g.fixTarget,_1b));
|
|
150
|
-
},connect:function(_1c,_1d,_1e){
|
|
151
|
-
if(_1c.substring(0,2)=="on"){
|
|
152
|
-
_1c=_1c.substring(2);
|
|
153
|
-
}
|
|
154
|
-
return this.on(_1c,_1e?_1.hitch(_1d,_1e):_1d);
|
|
155
|
-
},disconnect:function(_1f){
|
|
156
|
-
return _1f.remove();
|
|
157
|
-
}};
|
|
158
|
-
_c.fixCallback=function(_20,_21,_22,_23){
|
|
159
|
-
if(!_23){
|
|
160
|
-
_23=_22;
|
|
161
|
-
_22=null;
|
|
162
|
-
}
|
|
163
|
-
if(_1.isString(_23)){
|
|
164
|
-
_22=_22||_3.global;
|
|
165
|
-
if(!_22[_23]){
|
|
166
|
-
throw (["dojox.gfx.shape.fixCallback: scope[\"",_23,"\"] is null (scope=\"",_22,"\")"].join(""));
|
|
167
|
-
}
|
|
168
|
-
return function(e){
|
|
169
|
-
return _21(e,_20)?_22[_23].apply(_22,arguments||[]):undefined;
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
return !_22?function(e){
|
|
173
|
-
return _21(e,_20)?_23.apply(_22,arguments):undefined;
|
|
174
|
-
}:function(e){
|
|
175
|
-
return _21(e,_20)?_23.apply(_22,arguments||[]):undefined;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
_1.extend(_c.Shape,_c._eventsProcessing);
|
|
179
|
-
_c.Container={_init:function(){
|
|
180
|
-
this.children=[];
|
|
181
|
-
this._batch=0;
|
|
182
|
-
},openBatch:function(){
|
|
183
|
-
return this;
|
|
184
|
-
},closeBatch:function(){
|
|
185
|
-
return this;
|
|
186
|
-
},add:function(_24){
|
|
187
|
-
var _25=_24.getParent();
|
|
188
|
-
if(_25){
|
|
189
|
-
_25.remove(_24,true);
|
|
190
|
-
}
|
|
191
|
-
this.children.push(_24);
|
|
192
|
-
return _24._setParent(this,this._getRealMatrix());
|
|
193
|
-
},remove:function(_26,_27){
|
|
194
|
-
for(var i=0;i<this.children.length;++i){
|
|
195
|
-
if(this.children[i]==_26){
|
|
196
|
-
if(_27){
|
|
197
|
-
}else{
|
|
198
|
-
_26.parent=null;
|
|
199
|
-
_26.parentMatrix=null;
|
|
200
|
-
}
|
|
201
|
-
_9(this.children,i);
|
|
202
|
-
break;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
return this;
|
|
206
|
-
},clear:function(_28){
|
|
207
|
-
var _29;
|
|
208
|
-
for(var i=0;i<this.children.length;++i){
|
|
209
|
-
_29=this.children[i];
|
|
210
|
-
_29.parent=null;
|
|
211
|
-
_29.parentMatrix=null;
|
|
212
|
-
if(_28){
|
|
213
|
-
_29.destroy();
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
this.children=[];
|
|
217
|
-
return this;
|
|
218
|
-
},getBoundingBox:function(){
|
|
219
|
-
if(this.children){
|
|
220
|
-
var _2a=null;
|
|
221
|
-
_5.forEach(this.children,function(_2b){
|
|
222
|
-
var bb=_2b.getBoundingBox();
|
|
223
|
-
if(bb){
|
|
224
|
-
var ct=_2b.getTransform();
|
|
225
|
-
if(ct){
|
|
226
|
-
bb=_8.multiplyRectangle(ct,bb);
|
|
227
|
-
}
|
|
228
|
-
if(_2a){
|
|
229
|
-
_2a.x=Math.min(_2a.x,bb.x);
|
|
230
|
-
_2a.y=Math.min(_2a.y,bb.y);
|
|
231
|
-
_2a.endX=Math.max(_2a.endX,bb.x+bb.width);
|
|
232
|
-
_2a.endY=Math.max(_2a.endY,bb.y+bb.height);
|
|
233
|
-
}else{
|
|
234
|
-
_2a={x:bb.x,y:bb.y,endX:bb.x+bb.width,endY:bb.y+bb.height};
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
if(_2a){
|
|
239
|
-
_2a.width=_2a.endX-_2a.x;
|
|
240
|
-
_2a.height=_2a.endY-_2a.y;
|
|
241
|
-
}
|
|
242
|
-
return _2a;
|
|
243
|
-
}
|
|
244
|
-
return null;
|
|
245
|
-
},_moveChildToFront:function(_2c){
|
|
246
|
-
for(var i=0;i<this.children.length;++i){
|
|
247
|
-
if(this.children[i]==_2c){
|
|
248
|
-
_9(this.children,i);
|
|
249
|
-
this.children.push(_2c);
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
return this;
|
|
254
|
-
},_moveChildToBack:function(_2d){
|
|
255
|
-
for(var i=0;i<this.children.length;++i){
|
|
256
|
-
if(this.children[i]==_2d){
|
|
257
|
-
_9(this.children,i);
|
|
258
|
-
this.children.unshift(_2d);
|
|
259
|
-
break;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
return this;
|
|
263
|
-
}};
|
|
264
|
-
_c.Surface=_2("dojox.gfx.shape.Surface",null,{constructor:function(){
|
|
265
|
-
this.rawNode=null;
|
|
266
|
-
this._parent=null;
|
|
267
|
-
this._nodes=[];
|
|
268
|
-
this._events=[];
|
|
269
|
-
},destroy:function(){
|
|
270
|
-
_5.forEach(this._nodes,_6.destroy);
|
|
271
|
-
this._nodes=[];
|
|
272
|
-
_5.forEach(this._events,function(h){
|
|
273
|
-
if(h){
|
|
274
|
-
h.remove();
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
this._events=[];
|
|
278
|
-
this.rawNode=null;
|
|
279
|
-
if(_4("ie")){
|
|
280
|
-
while(this._parent.lastChild){
|
|
281
|
-
_6.destroy(this._parent.lastChild);
|
|
282
|
-
}
|
|
283
|
-
}else{
|
|
284
|
-
this._parent.innerHTML="";
|
|
285
|
-
}
|
|
286
|
-
this._parent=null;
|
|
287
|
-
},getEventSource:function(){
|
|
288
|
-
return this.rawNode;
|
|
289
|
-
},_getRealMatrix:function(){
|
|
290
|
-
return null;
|
|
291
|
-
},isLoaded:true,onLoad:function(_2e){
|
|
292
|
-
},whenLoaded:function(_2f,_30){
|
|
293
|
-
var f=_1.hitch(_2f,_30);
|
|
294
|
-
if(this.isLoaded){
|
|
295
|
-
f(this);
|
|
296
|
-
}else{
|
|
297
|
-
on.once(this,"load",function(_31){
|
|
298
|
-
f(_31);
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
}});
|
|
302
|
-
_1.extend(_c.Surface,_c._eventsProcessing);
|
|
303
|
-
_c.Rect=_2("dojox.gfx.shape.Rect",_c.Shape,{constructor:function(_32){
|
|
304
|
-
this.shape=g.getDefault("Rect");
|
|
305
|
-
this.rawNode=_32;
|
|
306
|
-
},getBoundingBox:function(){
|
|
307
|
-
return this.shape;
|
|
308
|
-
}});
|
|
309
|
-
_c.Ellipse=_2("dojox.gfx.shape.Ellipse",_c.Shape,{constructor:function(_33){
|
|
310
|
-
this.shape=g.getDefault("Ellipse");
|
|
311
|
-
this.rawNode=_33;
|
|
312
|
-
},getBoundingBox:function(){
|
|
313
|
-
if(!this.bbox){
|
|
314
|
-
var _34=this.shape;
|
|
315
|
-
this.bbox={x:_34.cx-_34.rx,y:_34.cy-_34.ry,width:2*_34.rx,height:2*_34.ry};
|
|
316
|
-
}
|
|
317
|
-
return this.bbox;
|
|
318
|
-
}});
|
|
319
|
-
_c.Circle=_2("dojox.gfx.shape.Circle",_c.Shape,{constructor:function(_35){
|
|
320
|
-
this.shape=g.getDefault("Circle");
|
|
321
|
-
this.rawNode=_35;
|
|
322
|
-
},getBoundingBox:function(){
|
|
323
|
-
if(!this.bbox){
|
|
324
|
-
var _36=this.shape;
|
|
325
|
-
this.bbox={x:_36.cx-_36.r,y:_36.cy-_36.r,width:2*_36.r,height:2*_36.r};
|
|
326
|
-
}
|
|
327
|
-
return this.bbox;
|
|
328
|
-
}});
|
|
329
|
-
_c.Line=_2("dojox.gfx.shape.Line",_c.Shape,{constructor:function(_37){
|
|
330
|
-
this.shape=g.getDefault("Line");
|
|
331
|
-
this.rawNode=_37;
|
|
332
|
-
},getBoundingBox:function(){
|
|
333
|
-
if(!this.bbox){
|
|
334
|
-
var _38=this.shape;
|
|
335
|
-
this.bbox={x:Math.min(_38.x1,_38.x2),y:Math.min(_38.y1,_38.y2),width:Math.abs(_38.x2-_38.x1),height:Math.abs(_38.y2-_38.y1)};
|
|
336
|
-
}
|
|
337
|
-
return this.bbox;
|
|
338
|
-
}});
|
|
339
|
-
_c.Polyline=_2("dojox.gfx.shape.Polyline",_c.Shape,{constructor:function(_39){
|
|
340
|
-
this.shape=g.getDefault("Polyline");
|
|
341
|
-
this.rawNode=_39;
|
|
342
|
-
},setShape:function(_3a,_3b){
|
|
343
|
-
if(_3a&&_3a instanceof Array){
|
|
344
|
-
this.inherited(arguments,[{points:_3a}]);
|
|
345
|
-
if(_3b&&this.shape.points.length){
|
|
346
|
-
this.shape.points.push(this.shape.points[0]);
|
|
347
|
-
}
|
|
348
|
-
}else{
|
|
349
|
-
this.inherited(arguments,[_3a]);
|
|
350
|
-
}
|
|
351
|
-
return this;
|
|
352
|
-
},_normalizePoints:function(){
|
|
353
|
-
var p=this.shape.points,l=p&&p.length;
|
|
354
|
-
if(l&&typeof p[0]=="number"){
|
|
355
|
-
var _3c=[];
|
|
356
|
-
for(var i=0;i<l;i+=2){
|
|
357
|
-
_3c.push({x:p[i],y:p[i+1]});
|
|
358
|
-
}
|
|
359
|
-
this.shape.points=_3c;
|
|
360
|
-
}
|
|
361
|
-
},getBoundingBox:function(){
|
|
362
|
-
if(!this.bbox&&this.shape.points.length){
|
|
363
|
-
var p=this.shape.points;
|
|
364
|
-
var l=p.length;
|
|
365
|
-
var t=p[0];
|
|
366
|
-
var _3d={l:t.x,t:t.y,r:t.x,b:t.y};
|
|
367
|
-
for(var i=1;i<l;++i){
|
|
368
|
-
t=p[i];
|
|
369
|
-
if(_3d.l>t.x){
|
|
370
|
-
_3d.l=t.x;
|
|
371
|
-
}
|
|
372
|
-
if(_3d.r<t.x){
|
|
373
|
-
_3d.r=t.x;
|
|
374
|
-
}
|
|
375
|
-
if(_3d.t>t.y){
|
|
376
|
-
_3d.t=t.y;
|
|
377
|
-
}
|
|
378
|
-
if(_3d.b<t.y){
|
|
379
|
-
_3d.b=t.y;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
this.bbox={x:_3d.l,y:_3d.t,width:_3d.r-_3d.l,height:_3d.b-_3d.t};
|
|
383
|
-
}
|
|
384
|
-
return this.bbox;
|
|
385
|
-
}});
|
|
386
|
-
_c.Image=_2("dojox.gfx.shape.Image",_c.Shape,{constructor:function(_3e){
|
|
387
|
-
this.shape=g.getDefault("Image");
|
|
388
|
-
this.rawNode=_3e;
|
|
389
|
-
},getBoundingBox:function(){
|
|
390
|
-
return this.shape;
|
|
391
|
-
},setStroke:function(){
|
|
392
|
-
return this;
|
|
393
|
-
},setFill:function(){
|
|
394
|
-
return this;
|
|
395
|
-
}});
|
|
396
|
-
_c.Text=_2(_c.Shape,{constructor:function(_3f){
|
|
397
|
-
this.fontStyle=null;
|
|
398
|
-
this.shape=g.getDefault("Text");
|
|
399
|
-
this.rawNode=_3f;
|
|
400
|
-
},getFont:function(){
|
|
401
|
-
return this.fontStyle;
|
|
402
|
-
},setFont:function(_40){
|
|
403
|
-
this.fontStyle=typeof _40=="string"?g.splitFontString(_40):g.makeParameters(g.defaultFont,_40);
|
|
404
|
-
this._setFont();
|
|
405
|
-
return this;
|
|
406
|
-
},getBoundingBox:function(){
|
|
407
|
-
var _41=null,s=this.getShape();
|
|
408
|
-
if(s.text){
|
|
409
|
-
_41=g._base._computeTextBoundingBox(this);
|
|
410
|
-
}
|
|
411
|
-
return _41;
|
|
412
|
-
}});
|
|
413
|
-
_c.Creator={createShape:function(_42){
|
|
414
|
-
switch(_42.type){
|
|
415
|
-
case g.defaultPath.type:
|
|
416
|
-
return this.createPath(_42);
|
|
417
|
-
case g.defaultRect.type:
|
|
418
|
-
return this.createRect(_42);
|
|
419
|
-
case g.defaultCircle.type:
|
|
420
|
-
return this.createCircle(_42);
|
|
421
|
-
case g.defaultEllipse.type:
|
|
422
|
-
return this.createEllipse(_42);
|
|
423
|
-
case g.defaultLine.type:
|
|
424
|
-
return this.createLine(_42);
|
|
425
|
-
case g.defaultPolyline.type:
|
|
426
|
-
return this.createPolyline(_42);
|
|
427
|
-
case g.defaultImage.type:
|
|
428
|
-
return this.createImage(_42);
|
|
429
|
-
case g.defaultText.type:
|
|
430
|
-
return this.createText(_42);
|
|
431
|
-
case g.defaultTextPath.type:
|
|
432
|
-
return this.createTextPath(_42);
|
|
433
|
-
}
|
|
434
|
-
return null;
|
|
435
|
-
},createGroup:function(){
|
|
436
|
-
return this.createObject(g.Group);
|
|
437
|
-
},createRect:function(_43){
|
|
438
|
-
return this.createObject(g.Rect,_43);
|
|
439
|
-
},createEllipse:function(_44){
|
|
440
|
-
return this.createObject(g.Ellipse,_44);
|
|
441
|
-
},createCircle:function(_45){
|
|
442
|
-
return this.createObject(g.Circle,_45);
|
|
443
|
-
},createLine:function(_46){
|
|
444
|
-
return this.createObject(g.Line,_46);
|
|
445
|
-
},createPolyline:function(_47){
|
|
446
|
-
return this.createObject(g.Polyline,_47);
|
|
447
|
-
},createImage:function(_48){
|
|
448
|
-
return this.createObject(g.Image,_48);
|
|
449
|
-
},createText:function(_49){
|
|
450
|
-
return this.createObject(g.Text,_49);
|
|
451
|
-
},createPath:function(_4a){
|
|
452
|
-
return this.createObject(g.Path,_4a);
|
|
453
|
-
},createTextPath:function(_4b){
|
|
454
|
-
return this.createObject(g.TextPath,{}).setText(_4b);
|
|
455
|
-
},createObject:function(_4c,_4d){
|
|
456
|
-
return null;
|
|
457
|
-
}};
|
|
458
|
-
return _c;
|
|
459
|
-
});
|