@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
|
@@ -10,23 +10,23 @@ import limitCoordinate from './utils/limit-coordinate';
|
|
|
10
10
|
import { DEFAULT_PRECISION, BLACK } from '../common/constants';
|
|
11
11
|
import { deepExtend, defined, inArray, limitValue, round, setDefaultOptions, valueOrDefault } from '../common';
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const DEFAULT_MAJOR_UNIT = 10;
|
|
14
|
+
const MIN_VALUE_RANGE = 1e-6;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
class LogarithmicAxis extends Axis {
|
|
17
|
+
constructor(seriesMin, seriesMax, options, chartService) {
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
const axisOptions = deepExtend({ majorUnit: DEFAULT_MAJOR_UNIT, min: seriesMin, max: seriesMax }, options);
|
|
20
|
+
const base = axisOptions.majorUnit;
|
|
21
|
+
const autoMax = autoAxisMax(seriesMax, base);
|
|
22
|
+
const autoMin = autoAxisMin(seriesMin, seriesMax, axisOptions);
|
|
23
|
+
const range = initRange(autoMin, autoMax, axisOptions, options);
|
|
24
24
|
|
|
25
25
|
axisOptions.max = range.max;
|
|
26
26
|
axisOptions.min = range.min;
|
|
27
27
|
axisOptions.minorUnit = options.minorUnit || round(base - 1, DEFAULT_PRECISION);
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
super(axisOptions, chartService);
|
|
30
30
|
|
|
31
31
|
this.totalMin = defined(options.min) ? Math.min(autoMin, options.min) : autoMin;
|
|
32
32
|
this.totalMax = defined(options.max) ? Math.max(autoMax, options.max) : autoMax;
|
|
@@ -38,40 +38,26 @@ var LogarithmicAxis = (function (Axis) {
|
|
|
38
38
|
this.createLabels();
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
LogarithmicAxis.prototype = Object.create( Axis && Axis.prototype );
|
|
43
|
-
LogarithmicAxis.prototype.constructor = LogarithmicAxis;
|
|
44
|
-
|
|
45
|
-
LogarithmicAxis.prototype.clone = function clone () {
|
|
41
|
+
clone() {
|
|
46
42
|
return new LogarithmicAxis(
|
|
47
43
|
this.seriesMin,
|
|
48
44
|
this.seriesMax,
|
|
49
45
|
Object.assign({}, this.options),
|
|
50
46
|
this.chartService
|
|
51
47
|
);
|
|
52
|
-
}
|
|
48
|
+
}
|
|
53
49
|
|
|
54
|
-
|
|
50
|
+
startValue() {
|
|
55
51
|
return this.options.min;
|
|
56
|
-
}
|
|
52
|
+
}
|
|
57
53
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var max = options.max;
|
|
66
|
-
var ref$1 = this.lineInfo();
|
|
67
|
-
var axis = ref$1.axis;
|
|
68
|
-
var axisDir = ref$1.axisDir;
|
|
69
|
-
var lineBox = ref$1.lineBox;
|
|
70
|
-
var lineSize = ref$1.lineSize;
|
|
71
|
-
var lineStart = ref$1.lineStart;
|
|
72
|
-
var step = axisDir * (lineSize / (logMax - logMin));
|
|
73
|
-
var start = valueOrDefault(a, b || 1);
|
|
74
|
-
var end = valueOrDefault(b, a || 1);
|
|
54
|
+
getSlot(a, b, limit) {
|
|
55
|
+
const { options, logMin, logMax } = this;
|
|
56
|
+
const { majorUnit: base, min, max } = options;
|
|
57
|
+
const { axis, axisDir, lineBox, lineSize, lineStart } = this.lineInfo();
|
|
58
|
+
const step = axisDir * (lineSize / (logMax - logMin));
|
|
59
|
+
let start = valueOrDefault(a, b || 1);
|
|
60
|
+
let end = valueOrDefault(b, a || 1);
|
|
75
61
|
|
|
76
62
|
if (start <= 0 || end <= 0) {
|
|
77
63
|
return null;
|
|
@@ -85,57 +71,45 @@ var LogarithmicAxis = (function (Axis) {
|
|
|
85
71
|
start = log(start, base);
|
|
86
72
|
end = log(end, base);
|
|
87
73
|
|
|
88
|
-
|
|
89
|
-
|
|
74
|
+
const p1 = Math.min(start, end) - logMin;
|
|
75
|
+
const p2 = Math.max(start, end) - logMin;
|
|
90
76
|
|
|
91
|
-
|
|
77
|
+
const slotBox = new Box(lineBox.x1, lineBox.y1, lineBox.x1, lineBox.y1);
|
|
92
78
|
slotBox[axis + 1] = limitCoordinate(lineStart + step * (axisDir > 0 ? p1 : p2));
|
|
93
79
|
slotBox[axis + 2] = limitCoordinate(lineStart + step * (axisDir > 0 ? p2 : p1));
|
|
94
80
|
|
|
95
81
|
return slotBox;
|
|
96
|
-
}
|
|
82
|
+
}
|
|
97
83
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
var axis = ref$1.axis;
|
|
106
|
-
var axisDir = ref$1.axisDir;
|
|
107
|
-
var lineStart = ref$1.lineStart;
|
|
108
|
-
var lineSize = ref$1.lineSize;
|
|
109
|
-
var step = ((logMax - logMin) / lineSize);
|
|
110
|
-
var offset = axisDir * (point[axis] - lineStart);
|
|
111
|
-
var valueOffset = offset * step;
|
|
84
|
+
getValue(point) {
|
|
85
|
+
const { options, logMin, logMax } = this;
|
|
86
|
+
const { majorUnit: base } = options;
|
|
87
|
+
const { axis, axisDir, lineStart, lineSize } = this.lineInfo();
|
|
88
|
+
const step = ((logMax - logMin) / lineSize);
|
|
89
|
+
const offset = axisDir * (point[axis] - lineStart);
|
|
90
|
+
const valueOffset = offset * step;
|
|
112
91
|
|
|
113
92
|
if (offset < 0 || offset > lineSize) {
|
|
114
93
|
return null;
|
|
115
94
|
}
|
|
116
95
|
|
|
117
|
-
|
|
96
|
+
const value = logMin + valueOffset;
|
|
118
97
|
|
|
119
98
|
return round(Math.pow(base, value), DEFAULT_PRECISION);
|
|
120
|
-
}
|
|
99
|
+
}
|
|
121
100
|
|
|
122
|
-
|
|
123
|
-
|
|
101
|
+
range() {
|
|
102
|
+
const options = this.options;
|
|
124
103
|
return { min: options.min, max: options.max };
|
|
125
|
-
}
|
|
104
|
+
}
|
|
126
105
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
var base = options.majorUnit;
|
|
135
|
-
var lineBox = this.lineBox();
|
|
136
|
-
var size = vertical ? lineBox.height() : lineBox.width();
|
|
137
|
-
var scale = size / (logMax - logMin);
|
|
138
|
-
var offset = round(delta / scale, DEFAULT_PRECISION);
|
|
106
|
+
translateRange(delta) {
|
|
107
|
+
const { options, logMin, logMax } = this;
|
|
108
|
+
const { reverse, vertical, majorUnit: base } = options;
|
|
109
|
+
const lineBox = this.lineBox();
|
|
110
|
+
const size = vertical ? lineBox.height() : lineBox.width();
|
|
111
|
+
const scale = size / (logMax - logMin);
|
|
112
|
+
let offset = round(delta / scale, DEFAULT_PRECISION);
|
|
139
113
|
|
|
140
114
|
if ((vertical || reverse) && !(vertical && reverse )) {
|
|
141
115
|
offset = -offset;
|
|
@@ -146,34 +120,32 @@ var LogarithmicAxis = (function (Axis) {
|
|
|
146
120
|
max: Math.pow(base, logMax + offset),
|
|
147
121
|
offset: offset
|
|
148
122
|
};
|
|
149
|
-
}
|
|
123
|
+
}
|
|
150
124
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
125
|
+
labelsCount() {
|
|
126
|
+
const floorMax = Math.floor(this.logMax);
|
|
127
|
+
const count = Math.floor(floorMax - this.logMin) + 1;
|
|
154
128
|
|
|
155
129
|
return count;
|
|
156
|
-
}
|
|
130
|
+
}
|
|
157
131
|
|
|
158
|
-
|
|
159
|
-
|
|
132
|
+
getMajorTickPositions() {
|
|
133
|
+
const ticks = [];
|
|
160
134
|
|
|
161
|
-
this.traverseMajorTicksPositions(
|
|
135
|
+
this.traverseMajorTicksPositions((position) => {
|
|
162
136
|
ticks.push(position);
|
|
163
137
|
}, { step: 1, skip: 0 });
|
|
164
138
|
|
|
165
139
|
return ticks;
|
|
166
|
-
}
|
|
140
|
+
}
|
|
167
141
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
var ticks = [];
|
|
176
|
-
var tickLineOptions = {
|
|
142
|
+
createTicks(lineGroup) {
|
|
143
|
+
const options = this.options;
|
|
144
|
+
const { majorTicks, minorTicks, vertical } = options;
|
|
145
|
+
const mirror = options.labels.mirror;
|
|
146
|
+
const lineBox = this.lineBox();
|
|
147
|
+
const ticks = [];
|
|
148
|
+
const tickLineOptions = {
|
|
177
149
|
// TODO
|
|
178
150
|
// _alignLines: options._alignLines,
|
|
179
151
|
vertical: vertical
|
|
@@ -196,22 +168,20 @@ var LogarithmicAxis = (function (Axis) {
|
|
|
196
168
|
}
|
|
197
169
|
|
|
198
170
|
return ticks;
|
|
199
|
-
}
|
|
171
|
+
}
|
|
200
172
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
var lineBox = altAxis.lineBox();
|
|
207
|
-
var lineOptions = {
|
|
173
|
+
createGridLines(altAxis) {
|
|
174
|
+
const options = this.options;
|
|
175
|
+
const { minorGridLines, majorGridLines, vertical } = options;
|
|
176
|
+
const lineBox = altAxis.lineBox();
|
|
177
|
+
const lineOptions = {
|
|
208
178
|
lineStart: lineBox[vertical ? "x1" : "y1"],
|
|
209
179
|
lineEnd: lineBox[vertical ? "x2" : "y2"],
|
|
210
180
|
vertical: vertical
|
|
211
181
|
};
|
|
212
|
-
|
|
182
|
+
const majorTicks = [];
|
|
213
183
|
|
|
214
|
-
|
|
184
|
+
const container = this.gridLinesVisual();
|
|
215
185
|
function render(tickPosition, gridLine) {
|
|
216
186
|
if (!inArray(tickPosition, majorTicks)) {
|
|
217
187
|
lineOptions.position = tickPosition;
|
|
@@ -230,93 +200,78 @@ var LogarithmicAxis = (function (Axis) {
|
|
|
230
200
|
}
|
|
231
201
|
|
|
232
202
|
return container.children;
|
|
233
|
-
}
|
|
203
|
+
}
|
|
234
204
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
var step = ref.step;
|
|
239
|
-
var ref$1 = this;
|
|
240
|
-
var logMin = ref$1.logMin;
|
|
241
|
-
var logMax = ref$1.logMax;
|
|
205
|
+
traverseMajorTicksPositions(callback, tickOptions) {
|
|
206
|
+
const { lineStart, step } = this.lineInfo();
|
|
207
|
+
const { logMin, logMax } = this;
|
|
242
208
|
|
|
243
|
-
for (
|
|
244
|
-
|
|
209
|
+
for (let power = Math.ceil(logMin) + tickOptions.skip; power <= logMax; power += tickOptions.step) {
|
|
210
|
+
let position = round(lineStart + step * (power - logMin), DEFAULT_PRECISION);
|
|
245
211
|
callback(position, tickOptions);
|
|
246
212
|
}
|
|
247
|
-
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
traverseMinorTicksPositions(callback, tickOptions) {
|
|
216
|
+
const { min, max, minorUnit, majorUnit: base } = this.options;
|
|
217
|
+
const { lineStart, step } = this.lineInfo();
|
|
218
|
+
const { logMin, logMax } = this;
|
|
219
|
+
const start = Math.floor(logMin);
|
|
248
220
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
var min = ref.min;
|
|
254
|
-
var max = ref.max;
|
|
255
|
-
var minorUnit = ref.minorUnit;
|
|
256
|
-
var base = ref.majorUnit;
|
|
257
|
-
var ref$1 = this.lineInfo();
|
|
258
|
-
var lineStart = ref$1.lineStart;
|
|
259
|
-
var step = ref$1.step;
|
|
260
|
-
var ref$2 = this;
|
|
261
|
-
var logMin = ref$2.logMin;
|
|
262
|
-
var logMax = ref$2.logMax;
|
|
263
|
-
var start = Math.floor(logMin);
|
|
264
|
-
|
|
265
|
-
for (var power = start; power < logMax; power++) {
|
|
266
|
-
var minorOptions = this$1._minorIntervalOptions(power);
|
|
267
|
-
for (var idx = tickOptions.skip; idx < minorUnit; idx += tickOptions.step) {
|
|
268
|
-
var value = minorOptions.value + idx * minorOptions.minorStep;
|
|
221
|
+
for (let power = start; power < logMax; power++) {
|
|
222
|
+
const minorOptions = this._minorIntervalOptions(power);
|
|
223
|
+
for (let idx = tickOptions.skip; idx < minorUnit; idx += tickOptions.step) {
|
|
224
|
+
const value = minorOptions.value + idx * minorOptions.minorStep;
|
|
269
225
|
if (value > max) {
|
|
270
226
|
break;
|
|
271
227
|
}
|
|
272
228
|
if (value >= min) {
|
|
273
|
-
|
|
229
|
+
const position = round(lineStart + step * (log(value, base) - logMin), DEFAULT_PRECISION);
|
|
274
230
|
callback(position, tickOptions);
|
|
275
231
|
}
|
|
276
232
|
}
|
|
277
233
|
}
|
|
278
|
-
}
|
|
234
|
+
}
|
|
279
235
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
236
|
+
createAxisLabel(index, labelOptions, labelContext) {
|
|
237
|
+
const power = Math.ceil(this.logMin + index);
|
|
238
|
+
const value = Math.pow(this.options.majorUnit, power);
|
|
239
|
+
const text = this.axisLabelText(value, labelOptions, labelContext);
|
|
284
240
|
|
|
285
241
|
return new AxisLabel(value, text, index, null, labelOptions);
|
|
286
|
-
}
|
|
242
|
+
}
|
|
287
243
|
|
|
288
|
-
|
|
289
|
-
|
|
244
|
+
shouldRenderNote(value) {
|
|
245
|
+
const range = this.range();
|
|
290
246
|
return range.min <= value && value <= range.max;
|
|
291
|
-
}
|
|
247
|
+
}
|
|
292
248
|
|
|
293
|
-
|
|
294
|
-
|
|
249
|
+
pan(delta) {
|
|
250
|
+
const range = this.translateRange(delta);
|
|
295
251
|
return this.limitRange(range.min, range.max, this.totalMin, this.totalMax, range.offset);
|
|
296
|
-
}
|
|
252
|
+
}
|
|
297
253
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
254
|
+
pointsRange(start, end) {
|
|
255
|
+
const startValue = this.getValue(start);
|
|
256
|
+
const endValue = this.getValue(end);
|
|
257
|
+
const min = Math.min(startValue, endValue);
|
|
258
|
+
const max = Math.max(startValue, endValue);
|
|
303
259
|
|
|
304
260
|
return {
|
|
305
261
|
min: min,
|
|
306
262
|
max: max
|
|
307
263
|
};
|
|
308
|
-
}
|
|
264
|
+
}
|
|
309
265
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
var max = Math.pow(base, logMax - (1 - position) * delta);
|
|
266
|
+
scaleRange(scale, cursor) {
|
|
267
|
+
const { majorUnit: base } = this.options;
|
|
268
|
+
const logMin = log(this.options.min, base);
|
|
269
|
+
const logMax = log(this.options.max, base);
|
|
270
|
+
const position = Math.abs(this.pointOffset(cursor));
|
|
271
|
+
const range = logMax - logMin;
|
|
272
|
+
const delta = this.scaleToDelta(scale, range);
|
|
273
|
+
const min = Math.pow(base, logMin + position * delta);
|
|
274
|
+
let max = Math.pow(base, logMax - (1 - position) * delta);
|
|
320
275
|
|
|
321
276
|
if (max - min < MIN_VALUE_RANGE) {
|
|
322
277
|
max = min + MIN_VALUE_RANGE;
|
|
@@ -326,48 +281,41 @@ var LogarithmicAxis = (function (Axis) {
|
|
|
326
281
|
min: min,
|
|
327
282
|
max: max
|
|
328
283
|
};
|
|
329
|
-
}
|
|
284
|
+
}
|
|
330
285
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
var totalMin = ref.totalMin;
|
|
335
|
-
var totalMax = ref.totalMax;
|
|
286
|
+
zoomRange(scale, cursor) {
|
|
287
|
+
const range = this.scaleRange(scale, cursor);
|
|
288
|
+
const { totalMin, totalMax } = this;
|
|
336
289
|
|
|
337
290
|
return {
|
|
338
291
|
min: limitValue(range.min, totalMin, totalMax),
|
|
339
292
|
max: limitValue(range.max, totalMin, totalMax)
|
|
340
293
|
};
|
|
341
|
-
}
|
|
294
|
+
}
|
|
342
295
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
var difference = nextValue - value;
|
|
350
|
-
var minorStep = difference / minorUnit;
|
|
296
|
+
_minorIntervalOptions(power) {
|
|
297
|
+
const { minorUnit, majorUnit: base } = this.options;
|
|
298
|
+
const value = Math.pow(base, power);
|
|
299
|
+
const nextValue = Math.pow(base, power + 1);
|
|
300
|
+
const difference = nextValue - value;
|
|
301
|
+
const minorStep = difference / minorUnit;
|
|
351
302
|
|
|
352
303
|
return {
|
|
353
304
|
value: value,
|
|
354
305
|
minorStep: minorStep
|
|
355
306
|
};
|
|
356
|
-
}
|
|
307
|
+
}
|
|
357
308
|
|
|
358
|
-
|
|
359
|
-
|
|
309
|
+
lineInfo() {
|
|
310
|
+
const info = super.lineInfo();
|
|
360
311
|
info.step = info.axisDir * (info.lineSize / (this.logMax - this.logMin));
|
|
361
312
|
|
|
362
313
|
return info;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
return LogarithmicAxis;
|
|
366
|
-
}(Axis));
|
|
314
|
+
}
|
|
315
|
+
}
|
|
367
316
|
|
|
368
317
|
function initRange(autoMin, autoMax, axisOptions, options) {
|
|
369
|
-
|
|
370
|
-
var max = axisOptions.max;
|
|
318
|
+
let { min, max } = axisOptions;
|
|
371
319
|
|
|
372
320
|
if (defined(axisOptions.axisCrossingValue) && axisOptions.axisCrossingValue <= 0) {
|
|
373
321
|
throwNegativeValuesError();
|
|
@@ -392,8 +340,8 @@ function initRange(autoMin, autoMax, axisOptions, options) {
|
|
|
392
340
|
}
|
|
393
341
|
|
|
394
342
|
function autoAxisMin(min, max, options) {
|
|
395
|
-
|
|
396
|
-
|
|
343
|
+
const base = options.majorUnit;
|
|
344
|
+
let autoMin = min;
|
|
397
345
|
if (min <= 0) {
|
|
398
346
|
autoMin = max <= 1 ? Math.pow(base, -2) : 1;
|
|
399
347
|
} else if (!options.narrowRange) {
|
|
@@ -403,8 +351,8 @@ function autoAxisMin(min, max, options) {
|
|
|
403
351
|
}
|
|
404
352
|
|
|
405
353
|
function autoAxisMax(max, base) {
|
|
406
|
-
|
|
407
|
-
|
|
354
|
+
const logMaxRemainder = round(log(max, base), DEFAULT_PRECISION) % 1;
|
|
355
|
+
let autoMax;
|
|
408
356
|
if (max <= 0) {
|
|
409
357
|
autoMax = base;
|
|
410
358
|
} else if (logMaxRemainder !== 0 && (logMaxRemainder < 0.3 || logMaxRemainder > 0.9)) {
|
|
@@ -2,13 +2,13 @@ import { geometry as geom, drawing as draw } from '@progress/kendo-drawing';
|
|
|
2
2
|
|
|
3
3
|
import { append, map } from '../../common';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const GridLinesMixin = {
|
|
6
6
|
createGridLines: function(altAxis) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const options = this.options;
|
|
8
|
+
const radius = Math.abs(this.box.center().y - altAxis.lineBox().y1);
|
|
9
|
+
let gridLines = [];
|
|
10
|
+
let skipMajor = false;
|
|
11
|
+
let majorAngles, minorAngles;
|
|
12
12
|
|
|
13
13
|
if (options.majorGridLines.visible) {
|
|
14
14
|
majorAngles = this.majorGridLineAngles(altAxis);
|
|
@@ -35,12 +35,12 @@ var GridLinesMixin = {
|
|
|
35
35
|
},
|
|
36
36
|
|
|
37
37
|
renderMinorGridLines: function(angles, radius, options, altAxis, skipMajor) {
|
|
38
|
-
|
|
38
|
+
const radiusCallback = this.radiusCallback && this.radiusCallback(radius, altAxis, skipMajor);
|
|
39
39
|
return this.renderGridLines(angles, radius, options, radiusCallback);
|
|
40
40
|
},
|
|
41
41
|
|
|
42
42
|
renderGridLines: function(angles, radius, options, radiusCallback) {
|
|
43
|
-
|
|
43
|
+
const style = {
|
|
44
44
|
stroke: {
|
|
45
45
|
width: options.width,
|
|
46
46
|
color: options.color,
|
|
@@ -48,12 +48,12 @@ var GridLinesMixin = {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
const center = this.box.center();
|
|
52
|
+
const circle = new geom.Circle([ center.x, center.y ], radius);
|
|
53
|
+
const container = this.gridLinesVisual();
|
|
54
54
|
|
|
55
|
-
for (
|
|
56
|
-
|
|
55
|
+
for (let i = 0; i < angles.length; i++) {
|
|
56
|
+
const line = new draw.Path(style);
|
|
57
57
|
if (radiusCallback) {
|
|
58
58
|
circle.radius = radiusCallback(angles[i]);
|
|
59
59
|
}
|
|
@@ -68,14 +68,12 @@ var GridLinesMixin = {
|
|
|
68
68
|
},
|
|
69
69
|
|
|
70
70
|
gridLineAngles: function(altAxis, size, skip, step, skipAngles) {
|
|
71
|
-
|
|
71
|
+
const divs = this.intervals(size, skip, step, skipAngles);
|
|
72
|
+
const options = altAxis.options;
|
|
73
|
+
const altAxisVisible = options.visible && (options.line || {}).visible !== false;
|
|
72
74
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
var altAxisVisible = options.visible && (options.line || {}).visible !== false;
|
|
76
|
-
|
|
77
|
-
return map(divs, function (d) {
|
|
78
|
-
var alpha = this$1.intervalAngle(d);
|
|
75
|
+
return map(divs, (d) => {
|
|
76
|
+
const alpha = this.intervalAngle(d);
|
|
79
77
|
|
|
80
78
|
if (!altAxisVisible || alpha !== 90) {
|
|
81
79
|
return alpha;
|