@progress/kendo-charts 2.7.2-dev.202502101310 → 2.7.2-develop.1
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/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/barcode/barcode-validator.js +10 -12
- package/dist/es/barcode/barcode.js +84 -96
- package/dist/es/barcode/encodings/code11.js +41 -57
- package/dist/es/barcode/encodings/code128.js +222 -354
- package/dist/es/barcode/encodings/code39-extended.js +20 -34
- package/dist/es/barcode/encodings/code39.js +49 -75
- package/dist/es/barcode/encodings/code93-extended.js +12 -24
- package/dist/es/barcode/encodings/code93.js +52 -70
- package/dist/es/barcode/encodings/ean13.js +28 -42
- package/dist/es/barcode/encodings/ean8.js +8 -18
- package/dist/es/barcode/encodings/encoding.js +18 -24
- package/dist/es/barcode/encodings/main.js +13 -10
- package/dist/es/barcode/encodings/msi.js +56 -112
- package/dist/es/barcode/encodings/postnet.js +31 -45
- package/dist/es/barcode/surface-size.js +2 -2
- package/dist/es/chart/aggregates/aggregates.js +23 -23
- package/dist/es/chart/aggregates/default-aggregates.js +10 -18
- package/dist/es/chart/aggregates/series-aggregator.js +42 -54
- package/dist/es/chart/animations/bar-chart-animation.js +15 -26
- package/dist/es/chart/animations/bubble-animation.js +7 -17
- package/dist/es/chart/animations/clip-animation.js +13 -23
- package/dist/es/chart/animations/fade-in-animation.js +6 -16
- package/dist/es/chart/animations/pie-animation.js +6 -16
- package/dist/es/chart/api-elements/chart-axis.js +14 -22
- package/dist/es/chart/api-elements/chart-pane.js +10 -8
- package/dist/es/chart/api-elements/chart-plotarea.js +4 -10
- package/dist/es/chart/api-elements/find-axis-by-name.js +1 -1
- package/dist/es/chart/area-chart/area-chart.js +46 -60
- package/dist/es/chart/area-chart/area-segment.js +46 -52
- package/dist/es/chart/area-chart/spline-area-segment.js +12 -21
- package/dist/es/chart/area-chart/step-area-segment.js +6 -15
- package/dist/es/chart/axis-group-range-tracker.js +14 -20
- package/dist/es/chart/bar-chart/bar-chart.js +65 -80
- package/dist/es/chart/bar-chart/bar-label.js +25 -32
- package/dist/es/chart/bar-chart/bar.js +76 -91
- package/dist/es/chart/box-plot-chart/box-plot-chart.js +33 -48
- package/dist/es/chart/box-plot-chart/box-plot.js +55 -68
- package/dist/es/chart/box-plot-chart/vertical-box-plot.js +13 -23
- package/dist/es/chart/bubble-chart/bubble-chart.js +51 -64
- package/dist/es/chart/bubble-chart/bubble.js +21 -27
- package/dist/es/chart/bullet-chart/bullet-chart.js +45 -57
- package/dist/es/chart/bullet-chart/bullet.js +48 -57
- package/dist/es/chart/bullet-chart/target.js +1 -11
- package/dist/es/chart/candlestick-chart/candlestick-chart.js +41 -55
- package/dist/es/chart/candlestick-chart/candlestick.js +60 -69
- package/dist/es/chart/categorical-chart.js +178 -206
- package/dist/es/chart/chart-container.js +30 -39
- package/dist/es/chart/chart.js +641 -701
- package/dist/es/chart/constants.js +103 -103
- package/dist/es/chart/crosshair/crosshair-tooltip.js +22 -34
- package/dist/es/chart/crosshair/crosshair.js +39 -47
- package/dist/es/chart/donut-chart/donut-chart.js +36 -48
- package/dist/es/chart/donut-chart/donut-segment.js +12 -24
- package/dist/es/chart/error-bars/categorical-error-bar.js +5 -15
- package/dist/es/chart/error-bars/error-bar-base.js +37 -49
- package/dist/es/chart/error-bars/error-range-calculator.js +46 -56
- package/dist/es/chart/error-bars/scatter-error-bar.js +6 -16
- package/dist/es/chart/funnel-chart/funnel-chart.js +86 -103
- package/dist/es/chart/funnel-chart/funnel-segment.js +46 -54
- package/dist/es/chart/funnel-chart/pyramid-chart.js +5 -11
- package/dist/es/chart/heatmap-chart/color-scale.js +7 -9
- package/dist/es/chart/heatmap-chart/heatmap-chart.js +87 -110
- package/dist/es/chart/heatmap-chart/heatmap-point.js +72 -78
- package/dist/es/chart/highlight.js +26 -36
- package/dist/es/chart/layout/cluster-layout.js +16 -25
- package/dist/es/chart/layout/radar-cluster-layout.js +15 -24
- package/dist/es/chart/layout/radar-stack-layout.js +10 -22
- package/dist/es/chart/layout/stack-wrap.js +12 -24
- package/dist/es/chart/layout/utils.js +2 -2
- package/dist/es/chart/legend/legend-item-line-area.js +8 -19
- package/dist/es/chart/legend/legend-item-line.js +21 -31
- package/dist/es/chart/legend/legend-item-marker.js +18 -28
- package/dist/es/chart/legend/legend-item-square.js +8 -18
- package/dist/es/chart/legend/legend-item.js +91 -105
- package/dist/es/chart/legend/legend-layout.js +18 -25
- package/dist/es/chart/legend/legend.js +68 -92
- package/dist/es/chart/line-chart/line-chart.js +35 -48
- package/dist/es/chart/line-chart/line-point.js +90 -103
- package/dist/es/chart/line-chart/line-segment.js +23 -34
- package/dist/es/chart/line-chart/spline-segment.js +10 -20
- package/dist/es/chart/line-chart/step-line-mixin.js +14 -17
- package/dist/es/chart/line-chart/step-line-segment.js +4 -14
- package/dist/es/chart/mixins/accessibility-attributes-mixin.js +7 -7
- package/dist/es/chart/mixins/clip-animation-mixin.js +7 -7
- package/dist/es/chart/mixins/line-chart-mixin.js +27 -31
- package/dist/es/chart/mixins/note-mixin.js +3 -3
- package/dist/es/chart/mixins/pie-chart-mixin.js +9 -9
- package/dist/es/chart/mixins/plotarea-events-mixin.js +1 -1
- package/dist/es/chart/mixins/point-events-mixin.js +1 -1
- package/dist/es/chart/ohlc-chart/ohlc-chart.js +4 -14
- package/dist/es/chart/ohlc-chart/ohlc-point.js +15 -28
- package/dist/es/chart/pan-and-zoom/accept-key.js +3 -3
- package/dist/es/chart/pan-and-zoom/mousewheel-zoom.js +25 -33
- package/dist/es/chart/pan-and-zoom/pannable.js +29 -37
- package/dist/es/chart/pan-and-zoom/to-chart-axis-ranges.js +3 -3
- package/dist/es/chart/pan-and-zoom/zoom-selection.js +61 -70
- package/dist/es/chart/pane.js +71 -79
- package/dist/es/chart/pie-chart/pie-chart.js +153 -183
- package/dist/es/chart/pie-chart/pie-segment.js +82 -98
- package/dist/es/chart/plotarea/categorical-plotarea.js +285 -318
- package/dist/es/chart/plotarea/donut-plotarea.js +12 -22
- package/dist/es/chart/plotarea/funnel-plotarea.js +17 -27
- package/dist/es/chart/plotarea/heatmap-plotarea.js +139 -167
- package/dist/es/chart/plotarea/pie-plotarea.js +15 -25
- package/dist/es/chart/plotarea/plotarea-base.js +423 -462
- package/dist/es/chart/plotarea/plotarea-factory.js +15 -20
- package/dist/es/chart/plotarea/polar-plotarea-base.js +37 -51
- package/dist/es/chart/plotarea/polar-plotarea.js +39 -49
- package/dist/es/chart/plotarea/radar-plotarea.js +55 -65
- package/dist/es/chart/plotarea/xy-plotarea.js +111 -128
- package/dist/es/chart/polar-area-chart/polar-area-chart.js +22 -36
- package/dist/es/chart/polar-area-chart/polar-area-segment.js +7 -17
- package/dist/es/chart/polar-area-chart/spline-polar-area-segment.js +15 -25
- package/dist/es/chart/polar-line-chart/polar-line-chart.js +2 -11
- package/dist/es/chart/polar-scatter-chart/polar-scatter-chart.js +6 -16
- package/dist/es/chart/radar-area-chart/radar-area-chart.js +11 -21
- package/dist/es/chart/radar-area-chart/radar-area-segment.js +3 -13
- package/dist/es/chart/radar-area-chart/spline-radar-area-segment.js +3 -13
- package/dist/es/chart/radar-bar-chart/radar-bar-chart.js +19 -29
- package/dist/es/chart/radar-bar-chart/radar-segment.js +6 -12
- package/dist/es/chart/radar-line-chart/radar-line-chart.js +26 -35
- package/dist/es/chart/range-area-chart/range-area-chart.js +46 -58
- package/dist/es/chart/range-area-chart/range-area-point.js +55 -66
- package/dist/es/chart/range-area-chart/range-area-segment.js +19 -28
- package/dist/es/chart/range-area-chart/range-line-point.js +4 -14
- package/dist/es/chart/range-area-chart/spline-range-area-segment.js +11 -18
- package/dist/es/chart/range-area-chart/step-range-area-segment.js +7 -16
- package/dist/es/chart/range-bar-chart/range-bar-chart.js +18 -29
- package/dist/es/chart/range-bar-chart/range-bar.js +10 -23
- package/dist/es/chart/register-charts.js +20 -16
- package/dist/es/chart/scatter-charts/scatter-chart.js +100 -122
- package/dist/es/chart/scatter-charts/scatter-line-chart.js +15 -25
- package/dist/es/chart/selection.js +176 -201
- package/dist/es/chart/series-binder.js +55 -66
- package/dist/es/chart/theme/base-theme.js +75 -79
- package/dist/es/chart/theme/load-theme.js +52 -52
- package/dist/es/chart/tooltip/base-tooltip.js +17 -24
- package/dist/es/chart/tooltip/shared-tooltip.js +25 -31
- package/dist/es/chart/tooltip/tooltip.js +10 -20
- package/dist/es/chart/trendlines/calculate-moving-average.js +11 -13
- package/dist/es/chart/trendlines/calculate-polynomial.js +24 -26
- package/dist/es/chart/trendlines/calculate-slope.js +12 -14
- package/dist/es/chart/trendlines/check-all-positive.js +2 -5
- package/dist/es/chart/trendlines/exponential-trendline.js +15 -24
- package/dist/es/chart/trendlines/get-scatter-trendline-data.js +6 -7
- package/dist/es/chart/trendlines/get-trendline-data.js +6 -6
- package/dist/es/chart/trendlines/linear-trendline.js +12 -21
- package/dist/es/chart/trendlines/logarithmic-trendline.js +14 -23
- package/dist/es/chart/trendlines/moving-average.js +15 -26
- package/dist/es/chart/trendlines/polynomial-trendline.js +13 -21
- package/dist/es/chart/trendlines/power-trendline.js +15 -24
- package/dist/es/chart/trendlines/scatter-exponential-trendline.js +15 -24
- package/dist/es/chart/trendlines/scatter-linear-trendline.js +10 -16
- package/dist/es/chart/trendlines/scatter-logarithmic-trendline.js +17 -27
- package/dist/es/chart/trendlines/scatter-moving-average.js +7 -10
- package/dist/es/chart/trendlines/scatter-polynomial-trendline.js +11 -16
- package/dist/es/chart/trendlines/scatter-power-trendline.js +15 -22
- package/dist/es/chart/trendlines/scatter-trendline-registry.js +1 -1
- package/dist/es/chart/trendlines/scatter-value-getter.js +2 -5
- package/dist/es/chart/trendlines/trendline-factory.js +1 -1
- package/dist/es/chart/trendlines/trendline-registry.js +1 -1
- package/dist/es/chart/trendlines/x-value-limits.js +6 -8
- package/dist/es/chart/utils/any-has-z-index.js +1 -1
- package/dist/es/chart/utils/bind-segments.js +8 -8
- package/dist/es/chart/utils/categories-count.js +3 -3
- package/dist/es/chart/utils/count-numbers.js +4 -4
- package/dist/es/chart/utils/create-out-of-range-points.js +13 -22
- package/dist/es/chart/utils/eval-options.js +7 -10
- package/dist/es/chart/utils/filter-series-by-type.js +4 -4
- package/dist/es/chart/utils/get-field.js +1 -1
- package/dist/es/chart/utils/has-gradient-overlay.js +1 -1
- package/dist/es/chart/utils/is-date-axis.js +2 -2
- package/dist/es/chart/utils/parse-date-category.js +2 -2
- package/dist/es/chart/utils/segment-visible.js +2 -2
- package/dist/es/chart/waterfall-chart/waterfall-chart.js +41 -55
- package/dist/es/chart/waterfall-chart/waterfall-segment.js +16 -24
- package/dist/es/chart-wizard/get-wizard-data-from-data-rows.js +5 -6
- package/dist/es/chart-wizard/messages.js +1 -1
- package/dist/es/chart-wizard/state.js +145 -137
- package/dist/es/chart-wizard.js +12 -12
- package/dist/es/common/add-class.js +3 -3
- package/dist/es/common/align-path-to-pixel.js +2 -2
- package/dist/es/common/auto-text-color.js +1 -1
- package/dist/es/common/constants.js +53 -53
- package/dist/es/common/create-hash-set.js +59 -65
- package/dist/es/common/cycleDown.js +1 -1
- package/dist/es/common/deep-extend.js +10 -12
- package/dist/es/common/element-scale.js +9 -9
- package/dist/es/common/element-styles.js +8 -8
- package/dist/es/common/event-map.js +4 -4
- package/dist/es/common/event-utils.js +13 -13
- package/dist/es/common/find.js +2 -2
- package/dist/es/common/font-loader.js +42 -44
- package/dist/es/common/get-aria-template.js +2 -4
- package/dist/es/common/get-spacing.js +2 -4
- package/dist/es/common/get-supported-features.js +7 -7
- package/dist/es/common/get-template.js +2 -4
- package/dist/es/common/getter.js +5 -5
- package/dist/es/common/grep.js +3 -3
- package/dist/es/common/has-classes.js +2 -2
- package/dist/es/common/hash-map.js +11 -11
- package/dist/es/common/instance-observer.js +28 -33
- package/dist/es/common/keys.js +1 -1
- package/dist/es/common/map.js +4 -4
- package/dist/es/common/matrix.js +142 -150
- package/dist/es/common/mousewheel-delta.js +2 -2
- package/dist/es/common/observable.js +40 -52
- package/dist/es/common/remove-class.js +1 -1
- package/dist/es/common/render-icon.js +50 -60
- package/dist/es/common/set-default-options.js +1 -1
- package/dist/es/common/sparse-array-limits.js +4 -4
- package/dist/es/common/user-events.js +124 -150
- package/dist/es/core/axis-label.js +38 -43
- package/dist/es/core/axis.js +293 -345
- package/dist/es/core/box-element.js +36 -46
- package/dist/es/core/box.js +75 -83
- package/dist/es/core/category-axis.js +265 -314
- package/dist/es/core/chart-element.js +98 -109
- package/dist/es/core/constants.js +3 -3
- package/dist/es/core/curve-processor.js +86 -93
- package/dist/es/core/date-category-axis.js +381 -413
- package/dist/es/core/date-value-axis.js +108 -118
- package/dist/es/core/float-element.js +54 -78
- package/dist/es/core/gradients.js +3 -3
- package/dist/es/core/logarithmic-axis.js +134 -186
- package/dist/es/core/mixins/grid-lines-mixin.js +18 -20
- package/dist/es/core/mixins/radar-numeric-axis-mixin.js +46 -51
- package/dist/es/core/note.js +58 -73
- package/dist/es/core/numeric-axis.js +111 -133
- package/dist/es/core/pattern.js +4 -8
- package/dist/es/core/point.js +25 -34
- package/dist/es/core/polar-axis.js +73 -91
- package/dist/es/core/radar-category-axis.js +90 -114
- package/dist/es/core/radar-logarithmic-axis.js +10 -20
- package/dist/es/core/radar-numeric-axis.js +10 -20
- package/dist/es/core/ring.js +61 -68
- package/dist/es/core/root-element.js +40 -48
- package/dist/es/core/sector.js +11 -17
- package/dist/es/core/shape-builder.js +13 -23
- package/dist/es/core/shape-element.js +27 -37
- package/dist/es/core/text-box.js +50 -59
- package/dist/es/core/text.js +13 -24
- package/dist/es/core/title.js +19 -25
- package/dist/es/core/utils/auto-axis-max.js +3 -3
- package/dist/es/core/utils/auto-axis-min.js +3 -3
- package/dist/es/core/utils/auto-major-unit.js +4 -4
- package/dist/es/core/utils/box-diff.js +9 -9
- package/dist/es/core/utils/create-axis-grid-line.js +2 -4
- package/dist/es/core/utils/create-axis-tick.js +2 -4
- package/dist/es/core/utils/guid.js +3 -3
- package/dist/es/core/utils/rect-to-box.js +2 -2
- package/dist/es/date-utils/absolute-date-diff.js +2 -2
- package/dist/es/date-utils/add-duration.js +5 -5
- package/dist/es/date-utils/ceil-date.js +1 -1
- package/dist/es/date-utils/constants.js +17 -17
- package/dist/es/date-utils/date-index.js +3 -3
- package/dist/es/date-utils/duration.js +1 -1
- package/dist/es/date-utils/lte-date-index.js +4 -4
- package/dist/es/date-utils/parse-date.js +1 -1
- package/dist/es/date-utils/parse-dates.js +2 -2
- package/dist/es/date-utils/start-of-week.js +3 -5
- package/dist/es/date-utils/to-date.js +1 -1
- package/dist/es/date-utils/to-time.js +2 -2
- package/dist/es/drawing-utils.js +18 -17
- package/dist/es/gauges/arc/arc-gauge.js +29 -38
- package/dist/es/gauges/arc/arc-scale.js +16 -29
- package/dist/es/gauges/arc/range-pointer-animation.js +16 -25
- package/dist/es/gauges/arc/range-pointer.js +25 -46
- package/dist/es/gauges/circular/circular-gauge.js +7 -17
- package/dist/es/gauges/constants.js +14 -14
- package/dist/es/gauges/gauge.js +84 -96
- package/dist/es/gauges/linear/arrow-linear-pointer-animation.js +13 -25
- package/dist/es/gauges/linear/arrow-linear-pointer.js +23 -35
- package/dist/es/gauges/linear/bar-linear-pointer-animation.js +15 -24
- package/dist/es/gauges/linear/bar-linear-pointer.js +38 -51
- package/dist/es/gauges/linear/linear-gauge.js +61 -83
- package/dist/es/gauges/linear/linear-pointer.js +25 -39
- package/dist/es/gauges/linear/linear-scale.js +57 -74
- package/dist/es/gauges/pointer.js +11 -21
- package/dist/es/gauges/radial/radial-gauge.js +58 -81
- package/dist/es/gauges/radial/radial-pointer-animation.js +9 -15
- package/dist/es/gauges/radial/radial-pointer.js +33 -48
- package/dist/es/gauges/radial/radial-scale.js +154 -186
- package/dist/es/gauges/utils/build-label-element.js +10 -12
- package/dist/es/gauges/utils/get-range.js +2 -2
- package/dist/es/gauges/utils/pad.js +3 -3
- package/dist/es/gauges/utils/unpad.js +1 -1
- package/dist/es/map/attribution.js +42 -52
- package/dist/es/map/constants.js +5 -5
- package/dist/es/map/crs.js +68 -112
- package/dist/es/map/datums.js +3 -3
- package/dist/es/map/extent.js +40 -54
- package/dist/es/map/layers/bubble.js +52 -70
- package/dist/es/map/layers/layer.js +50 -56
- package/dist/es/map/layers/marker.js +109 -129
- package/dist/es/map/layers/shape.js +111 -133
- package/dist/es/map/layers/tile.js +144 -170
- package/dist/es/map/location.js +70 -78
- package/dist/es/map/map.js +261 -291
- package/dist/es/map/navigator.js +33 -39
- package/dist/es/map/scroller/draggable.js +98 -134
- package/dist/es/map/scroller/fx.js +39 -46
- package/dist/es/map/scroller/scroller.js +144 -174
- package/dist/es/map/tooltip/tooltip.js +15 -25
- package/dist/es/map/utils.js +25 -26
- package/dist/es/map/zoom.js +30 -36
- package/dist/es/qrcode/encodings/data-modes/alpha-numeric-data-mode.js +14 -26
- package/dist/es/qrcode/encodings/data-modes/byte-data-mode.js +15 -25
- package/dist/es/qrcode/encodings/data-modes/data-mode-instances.js +8 -7
- package/dist/es/qrcode/encodings/data-modes/numeric-data-mode.js +14 -24
- package/dist/es/qrcode/encodings/data-modes/qr-data-mode.js +15 -21
- package/dist/es/qrcode/encodings/encoders/iso-encoder.js +6 -16
- package/dist/es/qrcode/encodings/encoders/utf8-encoder.js +28 -36
- package/dist/es/qrcode/encodings/encoding-result.js +4 -10
- package/dist/es/qrcode/encodings/encoding.js +68 -192
- package/dist/es/qrcode/encodings/free-cell-visitor.js +16 -24
- package/dist/es/qrcode/encodings/utils/choose-mode.js +44 -0
- package/dist/es/qrcode/encodings/utils/get-data-codewords-count.js +13 -0
- package/dist/es/qrcode/encodings/utils/get-data-string.js +13 -0
- package/dist/es/qrcode/encodings/utils/get-modes.js +35 -0
- package/dist/es/qrcode/encodings/utils/get-version.js +23 -0
- package/dist/es/qrcode/encodings/utils/index.js +5 -0
- package/dist/es/qrcode/encodings/version-codewords.js +1 -1
- package/dist/es/qrcode/qrcode-validator.js +3 -5
- package/dist/es/qrcode/qrcode.js +104 -114
- package/dist/es/qrcode/utils.js +4 -4
- package/dist/es/sankey/calculation.js +286 -307
- package/dist/es/sankey/element.js +15 -23
- package/dist/es/sankey/label.js +29 -44
- package/dist/es/sankey/legend.js +15 -29
- package/dist/es/sankey/link.js +80 -98
- package/dist/es/sankey/node.js +26 -37
- package/dist/es/sankey/sankey.js +318 -385
- package/dist/es/sankey/title.js +9 -20
- package/dist/es/sankey/utils.js +18 -23
- package/dist/es/services/chart-service.js +24 -28
- package/dist/es/services/dom-events-builder.js +15 -15
- package/dist/es/services/format-service.js +30 -35
- package/dist/es/services/intl-service.js +14 -18
- package/dist/es/services/map-service.js +11 -11
- package/dist/es/services/template-service.js +9 -9
- package/dist/es/sparkline/shared-tooltip.js +11 -21
- package/dist/es/sparkline/sparkline.js +50 -60
- package/dist/es/stock/constants.js +3 -3
- package/dist/es/stock/fade-out-animation.js +12 -21
- package/dist/es/stock/navigator-hint.js +37 -49
- package/dist/es/stock/navigator.js +130 -161
- package/dist/es/stock/stock-chart.js +58 -67
- package/dist/es2015/chart/legend/legend-item.js +1 -1
- package/dist/es2015/qrcode/encodings/encoders/iso-encoder.js +1 -1
- package/dist/es2015/qrcode/encodings/encoders/utf8-encoder.js +1 -1
- package/dist/es2015/qrcode/encodings/encoding.js +3 -127
- package/dist/es2015/qrcode/encodings/utils/choose-mode.js +44 -0
- package/dist/es2015/qrcode/encodings/utils/get-data-codewords-count.js +13 -0
- package/dist/es2015/qrcode/encodings/utils/get-data-string.js +13 -0
- package/dist/es2015/qrcode/encodings/utils/get-modes.js +35 -0
- package/dist/es2015/qrcode/encodings/utils/get-version.js +23 -0
- package/dist/es2015/qrcode/encodings/utils/index.js +5 -0
- package/dist/npm/main.js +3222 -3589
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +19 -57
|
@@ -13,84 +13,77 @@ import floor from './utils/floor';
|
|
|
13
13
|
import ceil from './utils/ceil';
|
|
14
14
|
import limitCoordinate from './utils/limit-coordinate';
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const MIN_VALUE_RANGE = Math.pow(10, -DEFAULT_PRECISION + 1);
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
class NumericAxis extends Axis {
|
|
19
|
+
|
|
20
|
+
constructor(seriesMin, seriesMax, options, chartService) {
|
|
21
|
+
super(Object.assign({}, options, {
|
|
21
22
|
seriesMin: seriesMin,
|
|
22
23
|
seriesMax: seriesMax
|
|
23
24
|
}), chartService);
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
NumericAxis.prototype.constructor = NumericAxis;
|
|
29
|
-
|
|
30
|
-
NumericAxis.prototype.initUserOptions = function initUserOptions (options) {
|
|
31
|
-
var autoOptions = autoAxisOptions(options.seriesMin, options.seriesMax, options);
|
|
27
|
+
initUserOptions(options) {
|
|
28
|
+
const autoOptions = autoAxisOptions(options.seriesMin, options.seriesMax, options);
|
|
32
29
|
this.totalOptions = totalAxisOptions(autoOptions, options);
|
|
33
30
|
|
|
34
31
|
return axisOptions(autoOptions, options);
|
|
35
|
-
}
|
|
32
|
+
}
|
|
36
33
|
|
|
37
|
-
|
|
34
|
+
initFields() {
|
|
38
35
|
this.totalMin = this.totalOptions.min;
|
|
39
36
|
this.totalMax = this.totalOptions.max;
|
|
40
37
|
this.totalMajorUnit = this.totalOptions.majorUnit;
|
|
41
38
|
this.seriesMin = this.options.seriesMin;
|
|
42
39
|
this.seriesMax = this.options.seriesMax;
|
|
43
|
-
}
|
|
40
|
+
}
|
|
44
41
|
|
|
45
|
-
|
|
42
|
+
clone() {
|
|
46
43
|
return new NumericAxis(
|
|
47
44
|
this.seriesMin,
|
|
48
45
|
this.seriesMax,
|
|
49
46
|
Object.assign({}, this.options),
|
|
50
47
|
this.chartService
|
|
51
48
|
);
|
|
52
|
-
}
|
|
49
|
+
}
|
|
53
50
|
|
|
54
|
-
|
|
51
|
+
startValue() {
|
|
55
52
|
return 0;
|
|
56
|
-
}
|
|
53
|
+
}
|
|
57
54
|
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
range() {
|
|
56
|
+
const options = this.options;
|
|
60
57
|
return { min: options.min, max: options.max };
|
|
61
|
-
}
|
|
58
|
+
}
|
|
62
59
|
|
|
63
|
-
|
|
60
|
+
getDivisions(stepValue) {
|
|
64
61
|
if (stepValue === 0) {
|
|
65
62
|
return 1;
|
|
66
63
|
}
|
|
67
64
|
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
const options = this.options;
|
|
66
|
+
const range = options.max - options.min;
|
|
70
67
|
|
|
71
68
|
return Math.floor(round(range / stepValue, COORD_PRECISION)) + 1;
|
|
72
|
-
}
|
|
69
|
+
}
|
|
73
70
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
var divisions = this.getDivisions(unit);
|
|
85
|
-
var positions = [];
|
|
86
|
-
var pos = lineBox[axisOrigin];
|
|
87
|
-
var skipStep = 0;
|
|
71
|
+
getTickPositions(unit, skipUnit) {
|
|
72
|
+
const options = this.options;
|
|
73
|
+
const { axisDir, axisOrigin, lineBox, lineSize } = this.lineInfo();
|
|
74
|
+
const range = options.max - options.min;
|
|
75
|
+
const scale = lineSize / range;
|
|
76
|
+
const step = unit * scale;
|
|
77
|
+
const divisions = this.getDivisions(unit);
|
|
78
|
+
const positions = [];
|
|
79
|
+
let pos = lineBox[axisOrigin];
|
|
80
|
+
let skipStep = 0;
|
|
88
81
|
|
|
89
82
|
if (skipUnit) {
|
|
90
83
|
skipStep = skipUnit / unit;
|
|
91
84
|
}
|
|
92
85
|
|
|
93
|
-
for (
|
|
86
|
+
for (let idx = 0; idx < divisions; idx++) {
|
|
94
87
|
if (idx % skipStep !== 0) {
|
|
95
88
|
positions.push(round(pos, COORD_PRECISION));
|
|
96
89
|
}
|
|
@@ -99,72 +92,61 @@ var NumericAxis = (function (Axis) {
|
|
|
99
92
|
}
|
|
100
93
|
|
|
101
94
|
return positions;
|
|
102
|
-
}
|
|
95
|
+
}
|
|
103
96
|
|
|
104
|
-
|
|
97
|
+
getMajorTickPositions() {
|
|
105
98
|
return this.getTickPositions(this.options.majorUnit);
|
|
106
|
-
}
|
|
99
|
+
}
|
|
107
100
|
|
|
108
|
-
|
|
101
|
+
getMinorTickPositions() {
|
|
109
102
|
return this.getTickPositions(this.options.minorUnit);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
NumericAxis.prototype.getSlot = function getSlot (a, b, limit) {
|
|
113
|
-
if ( limit === void 0 ) limit = false;
|
|
103
|
+
}
|
|
114
104
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
var lineBox = ref.lineBox;
|
|
120
|
-
var lineSize = ref.lineSize;
|
|
121
|
-
var lineStart = ref.lineStart;
|
|
122
|
-
var step = axisDir * (lineSize / (options.max - options.min));
|
|
105
|
+
getSlot(a, b, limit = false) {
|
|
106
|
+
const options = this.options;
|
|
107
|
+
const { axis, axisDir, lineBox, lineSize, lineStart } = this.lineInfo();
|
|
108
|
+
const step = axisDir * (lineSize / (options.max - options.min));
|
|
123
109
|
|
|
124
|
-
|
|
125
|
-
|
|
110
|
+
let start = valueOrDefault(a, b || 0);
|
|
111
|
+
let end = valueOrDefault(b, a || 0);
|
|
126
112
|
|
|
127
113
|
if (limit) {
|
|
128
114
|
start = limitValue(start, options.min, options.max);
|
|
129
115
|
end = limitValue(end, options.min, options.max);
|
|
130
116
|
}
|
|
131
117
|
|
|
132
|
-
|
|
133
|
-
|
|
118
|
+
const p1 = Math.min(start, end) - options.min;
|
|
119
|
+
const p2 = Math.max(start, end) - options.min;
|
|
134
120
|
|
|
135
|
-
|
|
121
|
+
const slotBox = new Box(lineBox.x1, lineBox.y1, lineBox.x1, lineBox.y1);
|
|
136
122
|
slotBox[axis + 1] = limitCoordinate(lineStart + step * (axisDir > 0 ? p1 : p2));
|
|
137
123
|
slotBox[axis + 2] = limitCoordinate(lineStart + step * (axisDir > 0 ? p2 : p1));
|
|
138
124
|
|
|
139
125
|
return slotBox;
|
|
140
|
-
}
|
|
126
|
+
}
|
|
141
127
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
128
|
+
getValue(point) {
|
|
129
|
+
const options = this.options;
|
|
130
|
+
const max = Number(options.max);
|
|
131
|
+
const min = Number(options.min);
|
|
132
|
+
const offset = this.pointOffset(point);
|
|
133
|
+
const valueOffset = offset * (max - min);
|
|
148
134
|
|
|
149
135
|
if (offset < 0 || offset > 1) {
|
|
150
136
|
return null;
|
|
151
137
|
}
|
|
152
138
|
|
|
153
|
-
|
|
139
|
+
const value = min + valueOffset;
|
|
154
140
|
return round(value, DEFAULT_PRECISION);
|
|
155
|
-
}
|
|
141
|
+
}
|
|
156
142
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
var lineSize = ref.lineSize;
|
|
165
|
-
var range = max - min;
|
|
166
|
-
var scale = lineSize / range;
|
|
167
|
-
var offset = round(delta / scale, DEFAULT_PRECISION);
|
|
143
|
+
translateRange(delta) {
|
|
144
|
+
const options = this.options;
|
|
145
|
+
const { vertical, reverse, max, min } = options;
|
|
146
|
+
const { lineSize } = this.lineInfo();
|
|
147
|
+
const range = max - min;
|
|
148
|
+
const scale = lineSize / range;
|
|
149
|
+
let offset = round(delta / scale, DEFAULT_PRECISION);
|
|
168
150
|
|
|
169
151
|
if ((vertical || reverse) && !(vertical && reverse )) {
|
|
170
152
|
offset = -offset;
|
|
@@ -175,35 +157,35 @@ var NumericAxis = (function (Axis) {
|
|
|
175
157
|
max: max + offset,
|
|
176
158
|
offset: offset
|
|
177
159
|
};
|
|
178
|
-
}
|
|
160
|
+
}
|
|
179
161
|
|
|
180
|
-
|
|
162
|
+
labelsCount() {
|
|
181
163
|
return this.getDivisions(this.options.majorUnit);
|
|
182
|
-
}
|
|
164
|
+
}
|
|
183
165
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
166
|
+
createAxisLabel(index, labelOptions, labelContext) {
|
|
167
|
+
const options = this.options;
|
|
168
|
+
const value = round(options.min + (index * options.majorUnit), DEFAULT_PRECISION);
|
|
169
|
+
const text = this.axisLabelText(value, labelOptions, labelContext);
|
|
188
170
|
|
|
189
171
|
return new AxisLabel(value, text, index, null, labelOptions);
|
|
190
|
-
}
|
|
172
|
+
}
|
|
191
173
|
|
|
192
|
-
|
|
193
|
-
|
|
174
|
+
shouldRenderNote(value) {
|
|
175
|
+
const range = this.range();
|
|
194
176
|
return range.min <= value && value <= range.max;
|
|
195
|
-
}
|
|
177
|
+
}
|
|
196
178
|
|
|
197
|
-
|
|
198
|
-
|
|
179
|
+
pan(delta) {
|
|
180
|
+
const range = this.translateRange(delta);
|
|
199
181
|
return this.limitRange(range.min, range.max, this.totalMin, this.totalMax, range.offset);
|
|
200
|
-
}
|
|
182
|
+
}
|
|
201
183
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
184
|
+
pointsRange(start, end) {
|
|
185
|
+
const startValue = this.getValue(start);
|
|
186
|
+
const endValue = this.getValue(end);
|
|
187
|
+
const min = Math.min(startValue, endValue);
|
|
188
|
+
const max = Math.max(startValue, endValue);
|
|
207
189
|
|
|
208
190
|
if (this.isValidRange(min, max)) {
|
|
209
191
|
return {
|
|
@@ -211,16 +193,16 @@ var NumericAxis = (function (Axis) {
|
|
|
211
193
|
max: max
|
|
212
194
|
};
|
|
213
195
|
}
|
|
214
|
-
}
|
|
196
|
+
}
|
|
215
197
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
198
|
+
scaleRange(scale, cursor) {
|
|
199
|
+
const position = Math.abs(this.pointOffset(cursor));
|
|
200
|
+
const range = this.options.max - this.options.min;
|
|
201
|
+
const delta = this.scaleToDelta(scale, range);
|
|
202
|
+
const minDelta = position * delta;
|
|
203
|
+
const maxDelta = (1 - position) * delta;
|
|
204
|
+
const min = round(this.options.min + minDelta, DEFAULT_PRECISION);
|
|
205
|
+
let max = round(this.options.max - maxDelta, DEFAULT_PRECISION);
|
|
224
206
|
|
|
225
207
|
if (max - min < MIN_VALUE_RANGE) {
|
|
226
208
|
max = min + MIN_VALUE_RANGE;
|
|
@@ -230,36 +212,32 @@ var NumericAxis = (function (Axis) {
|
|
|
230
212
|
min: min,
|
|
231
213
|
max: max
|
|
232
214
|
};
|
|
233
|
-
}
|
|
215
|
+
}
|
|
234
216
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
var totalMax = ref.totalMax;
|
|
239
|
-
var range = this.scaleRange(scale, cursor);
|
|
217
|
+
zoomRange(scale, cursor) {
|
|
218
|
+
const { totalMin, totalMax } = this;
|
|
219
|
+
const range = this.scaleRange(scale, cursor);
|
|
240
220
|
|
|
241
221
|
return {
|
|
242
222
|
min: limitValue(range.min, totalMin, totalMax),
|
|
243
223
|
max: limitValue(range.max, totalMin, totalMax),
|
|
244
224
|
narrowRange: false
|
|
245
225
|
};
|
|
246
|
-
}
|
|
226
|
+
}
|
|
247
227
|
|
|
248
|
-
|
|
228
|
+
isValidRange(min, max) {
|
|
249
229
|
return max - min > MIN_VALUE_RANGE;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
return NumericAxis;
|
|
253
|
-
}(Axis));
|
|
230
|
+
}
|
|
231
|
+
}
|
|
254
232
|
|
|
255
233
|
function autoAxisOptions(seriesMin, seriesMax, options) {
|
|
256
|
-
|
|
234
|
+
const narrowRange = options.narrowRange;
|
|
257
235
|
|
|
258
|
-
|
|
259
|
-
|
|
236
|
+
let autoMin = autoAxisMin(seriesMin, seriesMax, narrowRange);
|
|
237
|
+
let autoMax = autoAxisMax(seriesMin, seriesMax, narrowRange);
|
|
260
238
|
|
|
261
|
-
|
|
262
|
-
|
|
239
|
+
const majorUnit = autoMajorUnit(autoMin, autoMax);
|
|
240
|
+
const autoOptions = {
|
|
263
241
|
majorUnit: majorUnit
|
|
264
242
|
};
|
|
265
243
|
|
|
@@ -288,8 +266,8 @@ function totalAxisOptions(autoOptions, options) {
|
|
|
288
266
|
}
|
|
289
267
|
|
|
290
268
|
function clearNullValues(options, fields) {
|
|
291
|
-
for (
|
|
292
|
-
|
|
269
|
+
for (let idx = 0; idx < fields.length; idx++) {
|
|
270
|
+
const field = fields[idx];
|
|
293
271
|
if (options[field] === null) {
|
|
294
272
|
options[field] = undefined;
|
|
295
273
|
}
|
|
@@ -297,8 +275,8 @@ function clearNullValues(options, fields) {
|
|
|
297
275
|
}
|
|
298
276
|
|
|
299
277
|
function axisOptions(autoOptions, userOptions) {
|
|
300
|
-
|
|
301
|
-
|
|
278
|
+
let options = userOptions;
|
|
279
|
+
let userSetMin, userSetMax;
|
|
302
280
|
|
|
303
281
|
if (userOptions) {
|
|
304
282
|
clearNullValues(userOptions, [ 'min', 'max' ]);
|
|
@@ -306,7 +284,7 @@ function axisOptions(autoOptions, userOptions) {
|
|
|
306
284
|
userSetMin = defined(userOptions.min);
|
|
307
285
|
userSetMax = defined(userOptions.max);
|
|
308
286
|
|
|
309
|
-
|
|
287
|
+
const userSetLimits = userSetMin || userSetMax;
|
|
310
288
|
|
|
311
289
|
if (userSetLimits) {
|
|
312
290
|
if (userOptions.min === userOptions.max) {
|
|
@@ -331,7 +309,7 @@ function axisOptions(autoOptions, userOptions) {
|
|
|
331
309
|
|
|
332
310
|
autoOptions.minorUnit = (options.majorUnit || autoOptions.majorUnit) / 5;
|
|
333
311
|
|
|
334
|
-
|
|
312
|
+
const result = deepExtend(autoOptions, options);
|
|
335
313
|
if (result.min >= result.max) {
|
|
336
314
|
if (userSetMin && !userSetMax) {
|
|
337
315
|
result.max = result.min + result.majorUnit;
|
|
@@ -344,8 +322,8 @@ function axisOptions(autoOptions, userOptions) {
|
|
|
344
322
|
}
|
|
345
323
|
|
|
346
324
|
function remainderClose(value, divisor, ratio) {
|
|
347
|
-
|
|
348
|
-
|
|
325
|
+
const remainder = round(Math.abs(value % divisor), DEFAULT_PRECISION);
|
|
326
|
+
const threshold = divisor * (1 - ratio);
|
|
349
327
|
|
|
350
328
|
return remainder === 0 || remainder > threshold;
|
|
351
329
|
}
|
package/dist/es/core/pattern.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { drawing } from '@progress/kendo-drawing';
|
|
2
2
|
import { isFunction } from './../common';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
var verticalStripesPattern = drawing.verticalStripesPattern;
|
|
6
|
-
var crosshatchPattern = drawing.crosshatchPattern;
|
|
7
|
-
var diagonalStripesPattern = drawing.diagonalStripesPattern;
|
|
8
|
-
var gridPattern = drawing.gridPattern;
|
|
4
|
+
const { dotsPattern, verticalStripesPattern, crosshatchPattern, diagonalStripesPattern, gridPattern } = drawing;
|
|
9
5
|
|
|
10
|
-
|
|
6
|
+
const patternMap = {
|
|
11
7
|
dots: dotsPattern,
|
|
12
8
|
verticalStripes: verticalStripesPattern,
|
|
13
9
|
crosshatch: crosshatchPattern,
|
|
@@ -20,8 +16,8 @@ export function evaluatePattern(options, point) {
|
|
|
20
16
|
}
|
|
21
17
|
|
|
22
18
|
export function createPatternFill(options, fill, point) {
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
const patternOptions = evaluatePattern(options, point);
|
|
20
|
+
const pattern = patternOptions && patternMap[patternOptions.type];
|
|
25
21
|
|
|
26
22
|
return pattern ? pattern(Object.assign({}, fill, patternOptions)) : fill;
|
|
27
23
|
}
|
package/dist/es/core/point.js
CHANGED
|
@@ -1,35 +1,28 @@
|
|
|
1
1
|
import { COORD_PRECISION } from '../common/constants';
|
|
2
2
|
import { Class, rad, round } from '../common';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
class Point extends Class {
|
|
5
|
+
constructor(x, y) {
|
|
6
|
+
super();
|
|
7
7
|
|
|
8
8
|
this.x = x || 0;
|
|
9
9
|
this.y = y || 0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
Point.prototype = Object.create( Class && Class.prototype );
|
|
14
|
-
Point.prototype.constructor = Point;
|
|
15
|
-
|
|
16
|
-
Point.prototype.clone = function clone () {
|
|
12
|
+
clone() {
|
|
17
13
|
return new Point(this.x, this.y);
|
|
18
|
-
}
|
|
14
|
+
}
|
|
19
15
|
|
|
20
|
-
|
|
16
|
+
equals(point) {
|
|
21
17
|
return point && this.x === point.x && this.y === point.y;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var ref = this;
|
|
31
|
-
var x = ref.x;
|
|
32
|
-
var y = ref.y;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
rotate(center, degrees) {
|
|
21
|
+
const theta = rad(degrees);
|
|
22
|
+
const cosT = Math.cos(theta);
|
|
23
|
+
const sinT = Math.sin(theta);
|
|
24
|
+
const { x: cx, y: cy } = center;
|
|
25
|
+
const { x, y } = this;
|
|
33
26
|
|
|
34
27
|
this.x = round(
|
|
35
28
|
cx + (x - cx) * cosT + (y - cy) * sinT,
|
|
@@ -42,34 +35,32 @@ var Point = (function (Class) {
|
|
|
42
35
|
);
|
|
43
36
|
|
|
44
37
|
return this;
|
|
45
|
-
}
|
|
38
|
+
}
|
|
46
39
|
|
|
47
|
-
|
|
40
|
+
multiply(a) {
|
|
48
41
|
|
|
49
42
|
this.x *= a;
|
|
50
43
|
this.y *= a;
|
|
51
44
|
|
|
52
45
|
return this;
|
|
53
|
-
}
|
|
46
|
+
}
|
|
54
47
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
distanceTo(point) {
|
|
49
|
+
const dx = this.x - point.x;
|
|
50
|
+
const dy = this.y - point.y;
|
|
58
51
|
|
|
59
52
|
return Math.sqrt(dx * dx + dy * dy);
|
|
60
|
-
}
|
|
53
|
+
}
|
|
61
54
|
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
static onCircle(center, angle, radius) {
|
|
56
|
+
const radians = rad(angle);
|
|
64
57
|
|
|
65
58
|
return new Point(
|
|
66
59
|
center.x - radius * Math.cos(radians),
|
|
67
60
|
center.y - radius * Math.sin(radians)
|
|
68
61
|
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return Point;
|
|
72
|
-
}(Class));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
73
64
|
|
|
74
65
|
|
|
75
66
|
export default Point;
|