@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
package/dist/es/map/navigator.js
CHANGED
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
convertToHtml
|
|
16
16
|
} from './utils';
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const PAN = "pan";
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
const directionsMap = {
|
|
21
21
|
up: {
|
|
22
22
|
className: "k-navigator-n",
|
|
23
23
|
iconClass: "k-i-caret-alt-up"
|
|
@@ -37,27 +37,27 @@ var directionsMap = {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
function createButton(direction, iconOptions) {
|
|
40
|
-
|
|
40
|
+
const html =
|
|
41
41
|
'<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button ' +
|
|
42
42
|
directionsMap[direction].className +
|
|
43
43
|
'" aria-label="move ' + direction + '">' +
|
|
44
|
-
renderIcon({ icon:
|
|
44
|
+
renderIcon({ icon: `caret-alt-${direction}`, iconClass: "k-button-icon", svgIcons: iconOptions.svgIcons, type: iconOptions.type }) +
|
|
45
45
|
'</button>';
|
|
46
46
|
|
|
47
47
|
return convertToHtml(html);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
export class Navigator extends Observable {
|
|
51
|
+
constructor(element, options) {
|
|
52
|
+
super();
|
|
53
53
|
|
|
54
54
|
this.element = element;
|
|
55
55
|
this._initOptions(options);
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
const navigateUpButton = createButton("up", options.icons);
|
|
58
|
+
const navigateRightlButton = createButton("right", options.icons);
|
|
59
|
+
const navigateDownButton = createButton("down", options.icons);
|
|
60
|
+
const navigateLeftButton = createButton("left", options.icons);
|
|
61
61
|
|
|
62
62
|
this.element.appendChild(navigateUpButton);
|
|
63
63
|
this.element.appendChild(navigateRightlButton);
|
|
@@ -68,7 +68,7 @@ export var Navigator = (function (Observable) {
|
|
|
68
68
|
|
|
69
69
|
on(this.element, "click", ".k-button", proxy(this._click, this));
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
let parentElement = this.element.parentNode.closest("[data-role]");
|
|
72
72
|
|
|
73
73
|
this._keyroot = parentElement ? parentElement : this.element;
|
|
74
74
|
this._tabindex(this._keyroot);
|
|
@@ -77,48 +77,44 @@ export var Navigator = (function (Observable) {
|
|
|
77
77
|
on(this._keyroot, "keydown", this._keydownHandler);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
Navigator.prototype = Object.create( Observable && Observable.prototype );
|
|
82
|
-
Navigator.prototype.constructor = Navigator;
|
|
83
|
-
|
|
84
|
-
Navigator.prototype.destroy = function destroy () {
|
|
80
|
+
destroy() {
|
|
85
81
|
this.dispose();
|
|
86
|
-
}
|
|
82
|
+
}
|
|
87
83
|
|
|
88
84
|
// originates from the kendo.jquery version
|
|
89
|
-
|
|
85
|
+
dispose() {
|
|
90
86
|
off(this._keyroot, "keydown", this._keydownHandler);
|
|
91
|
-
}
|
|
87
|
+
}
|
|
92
88
|
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
_tabindex(target) {
|
|
90
|
+
const targetElement = target || this.wrapper || this.element;
|
|
95
91
|
|
|
96
|
-
|
|
92
|
+
let element = this.element,
|
|
97
93
|
TABINDEX = "tabindex",
|
|
98
94
|
tabindex = targetElement.getAttribute(TABINDEX) || element.getAttribute(TABINDEX);
|
|
99
95
|
|
|
100
96
|
element.removeAttribute(TABINDEX);
|
|
101
97
|
|
|
102
98
|
targetElement.setAttribute(TABINDEX, !isNaN(tabindex) ? tabindex : 0);
|
|
103
|
-
}
|
|
99
|
+
}
|
|
104
100
|
|
|
105
|
-
|
|
101
|
+
_initOptions(options) {
|
|
106
102
|
this.options = deepExtend({}, this.options, options);
|
|
107
|
-
}
|
|
103
|
+
}
|
|
108
104
|
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
_pan(x, y) {
|
|
106
|
+
let panStep = this.options.panStep;
|
|
111
107
|
|
|
112
108
|
this.trigger(PAN, {
|
|
113
109
|
x: x * panStep,
|
|
114
110
|
y: y * panStep
|
|
115
111
|
});
|
|
116
|
-
}
|
|
112
|
+
}
|
|
117
113
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
_click(e) {
|
|
115
|
+
let x = 0;
|
|
116
|
+
let y = 0;
|
|
117
|
+
let button = e.currentTarget;
|
|
122
118
|
|
|
123
119
|
if (button.matches('.k-navigator-n')) {
|
|
124
120
|
y = 1;
|
|
@@ -133,9 +129,9 @@ export var Navigator = (function (Observable) {
|
|
|
133
129
|
this._pan(x, y);
|
|
134
130
|
|
|
135
131
|
e.preventDefault();
|
|
136
|
-
}
|
|
132
|
+
}
|
|
137
133
|
|
|
138
|
-
|
|
134
|
+
_keydown(e) {
|
|
139
135
|
switch (e.which) {
|
|
140
136
|
case keys.UP:
|
|
141
137
|
this._pan(0, 1);
|
|
@@ -156,10 +152,8 @@ export var Navigator = (function (Observable) {
|
|
|
156
152
|
default:
|
|
157
153
|
break;
|
|
158
154
|
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
return Navigator;
|
|
162
|
-
}(Observable));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
163
157
|
|
|
164
158
|
setDefaultOptions(Navigator, {
|
|
165
159
|
name: 'Navigator',
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
proxy
|
|
10
10
|
} from '../utils';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const extend = Object.assign;
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const CHANGE = 'change';
|
|
15
15
|
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
export class TapCapture extends Observable {
|
|
17
|
+
constructor(element, options) {
|
|
18
|
+
super();
|
|
19
|
+
let that = this,
|
|
20
20
|
domElement = element[0] || element;
|
|
21
21
|
|
|
22
22
|
that.capture = false;
|
|
@@ -43,30 +43,26 @@ export var TapCapture = (function (Observable) {
|
|
|
43
43
|
], options || {});
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
TapCapture.prototype = Object.create( Observable && Observable.prototype );
|
|
48
|
-
TapCapture.prototype.constructor = TapCapture;
|
|
49
|
-
|
|
50
|
-
TapCapture.prototype.captureNext = function captureNext () {
|
|
46
|
+
captureNext() {
|
|
51
47
|
this.capture = true;
|
|
52
|
-
}
|
|
48
|
+
}
|
|
53
49
|
|
|
54
|
-
|
|
50
|
+
cancelCapture() {
|
|
55
51
|
this.capture = false;
|
|
56
|
-
}
|
|
52
|
+
}
|
|
57
53
|
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
_press(e) {
|
|
55
|
+
let that = this;
|
|
60
56
|
|
|
61
57
|
that.trigger('press');
|
|
62
58
|
|
|
63
59
|
if (that.capture) {
|
|
64
60
|
e.preventDefault();
|
|
65
61
|
}
|
|
66
|
-
}
|
|
62
|
+
}
|
|
67
63
|
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
_release(e) {
|
|
65
|
+
let that = this;
|
|
70
66
|
|
|
71
67
|
that.trigger('release');
|
|
72
68
|
|
|
@@ -74,15 +70,13 @@ export var TapCapture = (function (Observable) {
|
|
|
74
70
|
e.preventDefault();
|
|
75
71
|
that.cancelCapture();
|
|
76
72
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return TapCapture;
|
|
80
|
-
}(Observable));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
81
75
|
|
|
82
|
-
export
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
export class PaneDimension extends Observable {
|
|
77
|
+
constructor(options) {
|
|
78
|
+
super();
|
|
79
|
+
let that = this;
|
|
86
80
|
that.forcedEnabled = false;
|
|
87
81
|
extend(that, options);
|
|
88
82
|
that.scale = 1;
|
|
@@ -98,49 +92,45 @@ export var PaneDimension = (function (Observable) {
|
|
|
98
92
|
}
|
|
99
93
|
}
|
|
100
94
|
|
|
101
|
-
|
|
102
|
-
PaneDimension.prototype = Object.create( Observable && Observable.prototype );
|
|
103
|
-
PaneDimension.prototype.constructor = PaneDimension;
|
|
104
|
-
|
|
105
|
-
PaneDimension.prototype.makeVirtual = function makeVirtual () {
|
|
95
|
+
makeVirtual() {
|
|
106
96
|
extend(this, {
|
|
107
97
|
virtual: true,
|
|
108
98
|
forcedEnabled: true,
|
|
109
99
|
_virtualMin: 0,
|
|
110
100
|
_virtualMax: 0
|
|
111
101
|
});
|
|
112
|
-
}
|
|
102
|
+
}
|
|
113
103
|
|
|
114
|
-
|
|
104
|
+
virtualSize(min, max) {
|
|
115
105
|
if (this._virtualMin !== min || this._virtualMax !== max) {
|
|
116
106
|
this._virtualMin = min;
|
|
117
107
|
this._virtualMax = max;
|
|
118
108
|
this.update();
|
|
119
109
|
}
|
|
120
|
-
}
|
|
110
|
+
}
|
|
121
111
|
|
|
122
|
-
|
|
112
|
+
outOfBounds(offset) {
|
|
123
113
|
return offset > this.max || offset < this.min;
|
|
124
|
-
}
|
|
114
|
+
}
|
|
125
115
|
|
|
126
|
-
|
|
116
|
+
forceEnabled() {
|
|
127
117
|
this.forcedEnabled = true;
|
|
128
|
-
}
|
|
118
|
+
}
|
|
129
119
|
|
|
130
|
-
|
|
120
|
+
getSize() {
|
|
131
121
|
return this.container[this.measure];
|
|
132
|
-
}
|
|
122
|
+
}
|
|
133
123
|
|
|
134
|
-
|
|
124
|
+
getTotal() {
|
|
135
125
|
return this.element[this.scrollSize];
|
|
136
|
-
}
|
|
126
|
+
}
|
|
137
127
|
|
|
138
|
-
|
|
128
|
+
rescale(scale) {
|
|
139
129
|
this.scale = scale;
|
|
140
|
-
}
|
|
130
|
+
}
|
|
141
131
|
|
|
142
|
-
|
|
143
|
-
|
|
132
|
+
update(silent) {
|
|
133
|
+
let that = this,
|
|
144
134
|
total = that.virtual ? that._virtualMax : that.getTotal(),
|
|
145
135
|
scaledTotal = total * that.scale,
|
|
146
136
|
size = that.getSize();
|
|
@@ -160,15 +150,13 @@ export var PaneDimension = (function (Observable) {
|
|
|
160
150
|
if (!silent) {
|
|
161
151
|
that.trigger(CHANGE, that);
|
|
162
152
|
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
return PaneDimension;
|
|
166
|
-
}(Observable));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
167
155
|
|
|
168
|
-
export
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
156
|
+
export class PaneDimensions extends Observable {
|
|
157
|
+
constructor(options) {
|
|
158
|
+
super();
|
|
159
|
+
let that = this;
|
|
172
160
|
|
|
173
161
|
that.x = new PaneDimension(extend({
|
|
174
162
|
horizontal: true
|
|
@@ -184,52 +172,42 @@ export var PaneDimensions = (function (Observable) {
|
|
|
184
172
|
that.bind(CHANGE, options);
|
|
185
173
|
}
|
|
186
174
|
|
|
187
|
-
|
|
188
|
-
PaneDimensions.prototype = Object.create( Observable && Observable.prototype );
|
|
189
|
-
PaneDimensions.prototype.constructor = PaneDimensions;
|
|
190
|
-
|
|
191
|
-
PaneDimensions.prototype.rescale = function rescale (newScale) {
|
|
175
|
+
rescale(newScale) {
|
|
192
176
|
this.x.rescale(newScale);
|
|
193
177
|
this.y.rescale(newScale);
|
|
194
178
|
this.refresh();
|
|
195
|
-
}
|
|
179
|
+
}
|
|
196
180
|
|
|
197
|
-
|
|
181
|
+
centerCoordinates() {
|
|
198
182
|
return {
|
|
199
183
|
x: Math.min(0, -this.x.centerOffset),
|
|
200
184
|
y: Math.min(0, -this.y.centerOffset)
|
|
201
185
|
};
|
|
202
|
-
}
|
|
186
|
+
}
|
|
203
187
|
|
|
204
|
-
|
|
205
|
-
|
|
188
|
+
refresh() {
|
|
189
|
+
let that = this;
|
|
206
190
|
that.x.update();
|
|
207
191
|
that.y.update();
|
|
208
192
|
that.enabled = that.x.enabled || that.y.enabled;
|
|
209
193
|
that.minScale = that.forcedMinScale || Math.min(that.x.minScale, that.y.minScale);
|
|
210
194
|
that.fitScale = Math.max(that.x.minScale, that.y.minScale);
|
|
211
195
|
that.trigger(CHANGE);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
return PaneDimensions;
|
|
215
|
-
}(Observable));
|
|
196
|
+
}
|
|
197
|
+
}
|
|
216
198
|
|
|
217
|
-
export
|
|
218
|
-
|
|
219
|
-
|
|
199
|
+
export class PaneAxis extends Observable {
|
|
200
|
+
constructor(options) {
|
|
201
|
+
super();
|
|
220
202
|
extend(this, options);
|
|
221
203
|
}
|
|
222
204
|
|
|
223
|
-
|
|
224
|
-
PaneAxis.prototype = Object.create( Observable && Observable.prototype );
|
|
225
|
-
PaneAxis.prototype.constructor = PaneAxis;
|
|
226
|
-
|
|
227
|
-
PaneAxis.prototype.outOfBounds = function outOfBounds () {
|
|
205
|
+
outOfBounds() {
|
|
228
206
|
return this.dimension.outOfBounds(this.movable[this.axis]);
|
|
229
|
-
}
|
|
207
|
+
}
|
|
230
208
|
|
|
231
|
-
|
|
232
|
-
|
|
209
|
+
dragMove(delta) {
|
|
210
|
+
let that = this,
|
|
233
211
|
dimension = that.dimension,
|
|
234
212
|
axis = that.axis,
|
|
235
213
|
movable = that.movable,
|
|
@@ -239,7 +217,7 @@ export var PaneAxis = (function (Observable) {
|
|
|
239
217
|
return;
|
|
240
218
|
}
|
|
241
219
|
|
|
242
|
-
|
|
220
|
+
let dragDelta = delta;
|
|
243
221
|
|
|
244
222
|
if (position < dimension.min && delta < 0 || position > dimension.max && delta > 0) {
|
|
245
223
|
dragDelta *= that.resistance;
|
|
@@ -247,16 +225,14 @@ export var PaneAxis = (function (Observable) {
|
|
|
247
225
|
|
|
248
226
|
movable.translateAxis(axis, dragDelta);
|
|
249
227
|
that.trigger(CHANGE, that);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
return PaneAxis;
|
|
253
|
-
}(Observable));
|
|
228
|
+
}
|
|
229
|
+
}
|
|
254
230
|
|
|
255
|
-
export
|
|
256
|
-
|
|
257
|
-
|
|
231
|
+
export class Pane extends Class {
|
|
232
|
+
constructor(options) {
|
|
233
|
+
super();
|
|
258
234
|
|
|
259
|
-
|
|
235
|
+
let that = this,
|
|
260
236
|
x, y,
|
|
261
237
|
resistance,
|
|
262
238
|
movable;
|
|
@@ -289,20 +265,20 @@ export var Pane = (function (Class) {
|
|
|
289
265
|
'gesturestart',
|
|
290
266
|
'gesturechange'
|
|
291
267
|
], {
|
|
292
|
-
gesturestart
|
|
268
|
+
gesturestart(e) {
|
|
293
269
|
that.gesture = e;
|
|
294
270
|
|
|
295
271
|
that.offset = elementOffset(that.dimensions.container);
|
|
296
272
|
},
|
|
297
|
-
press
|
|
298
|
-
|
|
273
|
+
press(e) {
|
|
274
|
+
const closestAnchor = e.event.target.closest('a');
|
|
299
275
|
|
|
300
276
|
if (closestAnchor && closestAnchor.matches('[data-navigate-on-press=true]')) {
|
|
301
277
|
e.sender.cancel();
|
|
302
278
|
}
|
|
303
279
|
},
|
|
304
|
-
gesturechange
|
|
305
|
-
|
|
280
|
+
gesturechange(e) {
|
|
281
|
+
let previousGesture = that.gesture,
|
|
306
282
|
previousCenter = previousGesture.center,
|
|
307
283
|
center = e.center,
|
|
308
284
|
scaleDelta = e.distance / previousGesture.distance,
|
|
@@ -317,7 +293,7 @@ export var Pane = (function (Class) {
|
|
|
317
293
|
scaleDelta = maxScale / movable.scale;
|
|
318
294
|
}
|
|
319
295
|
|
|
320
|
-
|
|
296
|
+
let offsetX = movable.x + that.offset.left,
|
|
321
297
|
offsetY = movable.y + that.offset.top;
|
|
322
298
|
coordinates = {
|
|
323
299
|
x: (offsetX - previousCenter.x) * scaleDelta + center.x - offsetX,
|
|
@@ -334,7 +310,7 @@ export var Pane = (function (Class) {
|
|
|
334
310
|
|
|
335
311
|
e.preventDefault();
|
|
336
312
|
},
|
|
337
|
-
move
|
|
313
|
+
move(e) {
|
|
338
314
|
if (e.event.target.tagName.match(/textarea|input/i)) {
|
|
339
315
|
return;
|
|
340
316
|
}
|
|
@@ -347,28 +323,22 @@ export var Pane = (function (Class) {
|
|
|
347
323
|
e.touch.skip();
|
|
348
324
|
}
|
|
349
325
|
},
|
|
350
|
-
end
|
|
326
|
+
end(e) {
|
|
351
327
|
e.preventDefault();
|
|
352
328
|
}
|
|
353
329
|
});
|
|
354
330
|
}
|
|
331
|
+
}
|
|
355
332
|
|
|
356
|
-
|
|
357
|
-
Pane.prototype = Object.create( Class && Class.prototype );
|
|
358
|
-
Pane.prototype.constructor = Pane;
|
|
359
|
-
|
|
360
|
-
return Pane;
|
|
361
|
-
}(Class));
|
|
362
|
-
|
|
363
|
-
var translate = function(x, y, scale) {
|
|
333
|
+
let translate = function(x, y, scale) {
|
|
364
334
|
return 'translate3d(' + x + 'px,' + y + 'px,0) scale(' + scale + ')';
|
|
365
335
|
};
|
|
366
336
|
|
|
367
|
-
export
|
|
368
|
-
|
|
369
|
-
|
|
337
|
+
export class Movable extends Observable {
|
|
338
|
+
constructor(element) {
|
|
339
|
+
super();
|
|
370
340
|
|
|
371
|
-
|
|
341
|
+
let that = this;
|
|
372
342
|
|
|
373
343
|
that.element = element;
|
|
374
344
|
that.element.style.transformOrigin = 'left top';
|
|
@@ -376,49 +346,45 @@ export var Movable = (function (Observable) {
|
|
|
376
346
|
that.y = 0;
|
|
377
347
|
that.scale = 1;
|
|
378
348
|
|
|
379
|
-
|
|
349
|
+
const coordinates = translate(that.x, that.y, that.scale);
|
|
380
350
|
that.element.style.transform = coordinates;
|
|
381
351
|
|
|
382
352
|
that._saveCoordinates(coordinates);
|
|
383
353
|
}
|
|
384
354
|
|
|
385
|
-
|
|
386
|
-
Movable.prototype = Object.create( Observable && Observable.prototype );
|
|
387
|
-
Movable.prototype.constructor = Movable;
|
|
388
|
-
|
|
389
|
-
Movable.prototype.translateAxis = function translateAxis (axis, by) {
|
|
355
|
+
translateAxis(axis, by) {
|
|
390
356
|
this[axis] += by;
|
|
391
357
|
this.refresh();
|
|
392
|
-
}
|
|
358
|
+
}
|
|
393
359
|
|
|
394
|
-
|
|
360
|
+
scaleTo(scale) {
|
|
395
361
|
this.scale = scale;
|
|
396
362
|
this.refresh();
|
|
397
|
-
}
|
|
363
|
+
}
|
|
398
364
|
|
|
399
|
-
|
|
365
|
+
scaleWith(scaleDelta) {
|
|
400
366
|
this.scale *= scaleDelta;
|
|
401
367
|
this.refresh();
|
|
402
|
-
}
|
|
368
|
+
}
|
|
403
369
|
|
|
404
|
-
|
|
370
|
+
translate(coordinates) {
|
|
405
371
|
this.x += coordinates.x;
|
|
406
372
|
this.y += coordinates.y;
|
|
407
373
|
this.refresh();
|
|
408
|
-
}
|
|
374
|
+
}
|
|
409
375
|
|
|
410
|
-
|
|
376
|
+
moveAxis(axis, value) {
|
|
411
377
|
this[axis] = value;
|
|
412
378
|
this.refresh();
|
|
413
|
-
}
|
|
379
|
+
}
|
|
414
380
|
|
|
415
|
-
|
|
381
|
+
moveTo(coordinates) {
|
|
416
382
|
extend(this, coordinates);
|
|
417
383
|
this.refresh();
|
|
418
|
-
}
|
|
384
|
+
}
|
|
419
385
|
|
|
420
|
-
|
|
421
|
-
|
|
386
|
+
refresh() {
|
|
387
|
+
let that = this,
|
|
422
388
|
x = that.x,
|
|
423
389
|
y = that.y,
|
|
424
390
|
newCoordinates;
|
|
@@ -436,11 +402,9 @@ export var Movable = (function (Observable) {
|
|
|
436
402
|
that._saveCoordinates(newCoordinates);
|
|
437
403
|
that.trigger(CHANGE);
|
|
438
404
|
}
|
|
439
|
-
}
|
|
405
|
+
}
|
|
440
406
|
|
|
441
|
-
|
|
407
|
+
_saveCoordinates(coordinates) {
|
|
442
408
|
this.coordinates = coordinates;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
return Movable;
|
|
446
|
-
}(Observable));
|
|
409
|
+
}
|
|
410
|
+
}
|