@devexperts/dxcharts-lite 2.4.4 → 2.4.6
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/chart/__tests__/chart.test.d.ts +1 -1
- package/dist/chart/__tests__/chart.test.js +1 -1
- package/dist/chart/__tests__/env.d.ts +1 -1
- package/dist/chart/__tests__/env.js +1 -1
- package/dist/chart/animation/canvas-animation.d.ts +3 -1
- package/dist/chart/animation/canvas-animation.js +4 -1
- package/dist/chart/animation/types/animation.d.ts +1 -1
- package/dist/chart/animation/types/animation.js +1 -1
- package/dist/chart/animation/types/color-alpha-animation.d.ts +1 -1
- package/dist/chart/animation/types/color-alpha-animation.js +1 -1
- package/dist/chart/animation/types/color-transition-animation.d.ts +1 -1
- package/dist/chart/animation/types/color-transition-animation.js +1 -1
- package/dist/chart/animation/types/viewport-movement-animation.d.ts +1 -1
- package/dist/chart/animation/types/viewport-movement-animation.js +1 -1
- package/dist/chart/animation/viewport-model-animation.d.ts +1 -1
- package/dist/chart/animation/viewport-model-animation.js +7 -3
- package/dist/chart/bootstrap.d.ts +3 -1
- package/dist/chart/bootstrap.js +5 -1
- package/dist/chart/canvas/canvas-bounds-container.d.ts +1 -1
- package/dist/chart/canvas/canvas-bounds-container.js +25 -13
- package/dist/chart/canvas/canvas-chart-html.d.ts +1 -1
- package/dist/chart/canvas/canvas-chart-html.js +1 -1
- package/dist/chart/canvas/chart-elements.d.ts +1 -1
- package/dist/chart/canvas/chart-elements.js +1 -1
- package/dist/chart/canvas/cursor.handler.d.ts +1 -1
- package/dist/chart/canvas/cursor.handler.js +1 -1
- package/dist/chart/canvas/layout-creator.d.ts +1 -1
- package/dist/chart/canvas/layout-creator.js +1 -1
- package/dist/chart/canvas/y-axis-bounds.container.d.ts +1 -1
- package/dist/chart/canvas/y-axis-bounds.container.js +1 -1
- package/dist/chart/chart.config.d.ts +5 -11
- package/dist/chart/chart.config.js +1 -3
- package/dist/chart/chart.d.ts +1 -1
- package/dist/chart/chart.js +1 -1
- package/dist/chart/components/chart/basic-scale.d.ts +1 -1
- package/dist/chart/components/chart/basic-scale.js +1 -1
- package/dist/chart/components/chart/candle-transformer.functions.d.ts +1 -1
- package/dist/chart/components/chart/candle-transformer.functions.js +1 -1
- package/dist/chart/components/chart/candle-width-calculator.functions.d.ts +1 -1
- package/dist/chart/components/chart/candle-width-calculator.functions.js +1 -1
- package/dist/chart/components/chart/candle.functions.d.ts +1 -1
- package/dist/chart/components/chart/candle.functions.js +1 -1
- package/dist/chart/components/chart/chart-area-pan.handler.d.ts +9 -2
- package/dist/chart/components/chart/chart-area-pan.handler.js +41 -31
- package/dist/chart/components/chart/chart-base.model.d.ts +1 -1
- package/dist/chart/components/chart/chart-base.model.js +2 -2
- package/dist/chart/components/chart/chart.component.d.ts +1 -1
- package/dist/chart/components/chart/chart.component.js +1 -1
- package/dist/chart/components/chart/chart.model.d.ts +2 -3
- package/dist/chart/components/chart/chart.model.js +1 -2
- package/dist/chart/components/chart/data-series.high-low-provider.d.ts +1 -1
- package/dist/chart/components/chart/data-series.high-low-provider.js +1 -1
- package/dist/chart/components/chart/fake-candles.d.ts +3 -10
- package/dist/chart/components/chart/fake-candles.js +2 -52
- package/dist/chart/components/chart/fake-visual-candle.d.ts +16 -0
- package/dist/chart/components/chart/fake-visual-candle.js +56 -0
- package/dist/chart/components/chart/price.formatter.d.ts +1 -1
- package/dist/chart/components/chart/price.formatter.js +1 -1
- package/dist/chart/components/chart/secondary-chart-colors-pool.d.ts +1 -1
- package/dist/chart/components/chart/secondary-chart-colors-pool.js +1 -1
- package/dist/chart/components/cross_tool/cross-tool.component.d.ts +1 -1
- package/dist/chart/components/cross_tool/cross-tool.component.js +1 -1
- package/dist/chart/components/cross_tool/cross-tool.drawer.d.ts +1 -1
- package/dist/chart/components/cross_tool/cross-tool.drawer.js +1 -1
- package/dist/chart/components/cross_tool/cross-tool.model.d.ts +1 -1
- package/dist/chart/components/cross_tool/cross-tool.model.js +1 -1
- package/dist/chart/components/cross_tool/types/cross-and-labels.drawer.d.ts +1 -1
- package/dist/chart/components/cross_tool/types/cross-and-labels.drawer.js +1 -1
- package/dist/chart/components/cross_tool/types/none.drawer.d.ts +1 -1
- package/dist/chart/components/cross_tool/types/none.drawer.js +1 -1
- package/dist/chart/components/dran-n-drop_helper/drag-n-drop-x.component.d.ts +1 -1
- package/dist/chart/components/dran-n-drop_helper/drag-n-drop-x.component.js +1 -1
- package/dist/chart/components/dran-n-drop_helper/drag-n-drop-y.component.d.ts +1 -1
- package/dist/chart/components/dran-n-drop_helper/drag-n-drop-y.component.js +1 -1
- package/dist/chart/components/dran-n-drop_helper/drag-n-drop.component.d.ts +2 -2
- package/dist/chart/components/dran-n-drop_helper/drag-n-drop.component.js +21 -16
- package/dist/chart/components/dynamic-objects/dynamic-objects.component.d.ts +1 -1
- package/dist/chart/components/dynamic-objects/dynamic-objects.component.js +1 -1
- package/dist/chart/components/dynamic-objects/dynamic-objects.drawer.d.ts +1 -1
- package/dist/chart/components/dynamic-objects/dynamic-objects.drawer.js +1 -1
- package/dist/chart/components/dynamic-objects/dynamic-objects.model.d.ts +7 -4
- package/dist/chart/components/dynamic-objects/dynamic-objects.model.js +15 -4
- package/dist/chart/components/events/events-hit-test.drawer.d.ts +1 -1
- package/dist/chart/components/events/events-hit-test.drawer.js +1 -1
- package/dist/chart/components/events/events.component.d.ts +1 -1
- package/dist/chart/components/events/events.component.js +1 -1
- package/dist/chart/components/events/events.drawer.d.ts +1 -1
- package/dist/chart/components/events/events.drawer.js +1 -1
- package/dist/chart/components/events/events.model.d.ts +1 -1
- package/dist/chart/components/events/events.model.js +1 -1
- package/dist/chart/components/grid/grid.component.d.ts +1 -1
- package/dist/chart/components/grid/grid.component.js +1 -1
- package/dist/chart/components/grid/grid.drawer.d.ts +1 -1
- package/dist/chart/components/grid/grid.drawer.js +1 -1
- package/dist/chart/components/high_low/high-low.component.d.ts +1 -1
- package/dist/chart/components/high_low/high-low.component.js +1 -1
- package/dist/chart/components/high_low/high-low.drawer.d.ts +1 -1
- package/dist/chart/components/high_low/high-low.drawer.js +1 -1
- package/dist/chart/components/highlights/highlights.component.d.ts +1 -1
- package/dist/chart/components/highlights/highlights.component.js +1 -1
- package/dist/chart/components/highlights/highlights.drawer.d.ts +1 -1
- package/dist/chart/components/highlights/highlights.drawer.js +1 -1
- package/dist/chart/components/highlights/highlights.model.d.ts +1 -1
- package/dist/chart/components/highlights/highlights.model.js +1 -1
- package/dist/chart/components/hit-test/hit-test.component.d.ts +16 -0
- package/dist/chart/components/hit-test/hit-test.component.js +25 -0
- package/dist/chart/components/labels_generator/numeric-axis-labels.generator.d.ts +1 -1
- package/dist/chart/components/labels_generator/numeric-axis-labels.generator.js +1 -1
- package/dist/chart/components/navigation_map/navigation-map-move.handler.d.ts +1 -1
- package/dist/chart/components/navigation_map/navigation-map-move.handler.js +1 -1
- package/dist/chart/components/navigation_map/navigation-map.component.d.ts +1 -1
- package/dist/chart/components/navigation_map/navigation-map.component.js +1 -1
- package/dist/chart/components/navigation_map/navigation-map.drawer.d.ts +1 -1
- package/dist/chart/components/navigation_map/navigation-map.drawer.js +1 -1
- package/dist/chart/components/navigation_map/navigation-map.model.d.ts +1 -1
- package/dist/chart/components/navigation_map/navigation-map.model.js +1 -1
- package/dist/chart/components/pan/chart-pan.component.d.ts +2 -1
- package/dist/chart/components/pan/chart-pan.component.js +4 -1
- package/dist/chart/components/pane/extent/y-extent-component.d.ts +3 -1
- package/dist/chart/components/pane/extent/y-extent-component.js +1 -1
- package/dist/chart/components/pane/pane-hit-test.controller.d.ts +1 -1
- package/dist/chart/components/pane/pane-hit-test.controller.js +1 -1
- package/dist/chart/components/pane/pane-manager.component.d.ts +1 -1
- package/dist/chart/components/pane/pane-manager.component.js +3 -2
- package/dist/chart/components/pane/pane.component.d.ts +1 -1
- package/dist/chart/components/pane/pane.component.js +3 -2
- package/dist/chart/components/resizer/bar-resizer.component.d.ts +3 -2
- package/dist/chart/components/resizer/bar-resizer.component.js +9 -6
- package/dist/chart/components/resizer/bar-resizer.drawer.d.ts +1 -1
- package/dist/chart/components/resizer/bar-resizer.drawer.js +1 -1
- package/dist/chart/components/snapshot/snapshot.component.d.ts +1 -1
- package/dist/chart/components/snapshot/snapshot.component.js +1 -1
- package/dist/chart/components/volumes/separate-volumes.component.d.ts +1 -1
- package/dist/chart/components/volumes/separate-volumes.component.js +1 -1
- package/dist/chart/components/volumes/volume-color-resolvers.functions.d.ts +1 -1
- package/dist/chart/components/volumes/volume-color-resolvers.functions.js +1 -1
- package/dist/chart/components/volumes/volumes.component.d.ts +1 -1
- package/dist/chart/components/volumes/volumes.component.js +1 -1
- package/dist/chart/components/volumes/volumes.drawer.d.ts +1 -1
- package/dist/chart/components/volumes/volumes.drawer.js +1 -1
- package/dist/chart/components/volumes/volumes.formatter.d.ts +1 -1
- package/dist/chart/components/volumes/volumes.formatter.js +1 -1
- package/dist/chart/components/volumes/volumes.model.d.ts +1 -1
- package/dist/chart/components/volumes/volumes.model.js +1 -1
- package/dist/chart/components/watermark/water-mark.component.d.ts +1 -1
- package/dist/chart/components/watermark/water-mark.component.js +1 -1
- package/dist/chart/components/watermark/water-mark.drawer.d.ts +1 -1
- package/dist/chart/components/watermark/water-mark.drawer.js +1 -1
- package/dist/chart/components/x_axis/numeric-x-axis-labels.generator.d.ts +1 -1
- package/dist/chart/components/x_axis/numeric-x-axis-labels.generator.js +1 -1
- package/dist/chart/components/x_axis/time/parser/time-formats-matchers.functions.d.ts +1 -1
- package/dist/chart/components/x_axis/time/parser/time-formats-matchers.functions.js +1 -1
- package/dist/chart/components/x_axis/time/parser/time-formats-parser.functions.d.ts +1 -1
- package/dist/chart/components/x_axis/time/parser/time-formats-parser.functions.js +1 -1
- package/dist/chart/components/x_axis/time/parser/time-formats-validators.functions.d.ts +1 -1
- package/dist/chart/components/x_axis/time/parser/time-formats-validators.functions.js +1 -1
- package/dist/chart/components/x_axis/time/parser/time-formats.model.d.ts +1 -1
- package/dist/chart/components/x_axis/time/parser/time-formats.model.js +1 -1
- package/dist/chart/components/x_axis/time/x-axis-weights.functions.d.ts +1 -1
- package/dist/chart/components/x_axis/time/x-axis-weights.functions.js +1 -1
- package/dist/chart/components/x_axis/time/x-axis-weights.generator.d.ts +1 -1
- package/dist/chart/components/x_axis/time/x-axis-weights.generator.js +1 -1
- package/dist/chart/components/x_axis/x-axis-draw.functions.d.ts +1 -1
- package/dist/chart/components/x_axis/x-axis-draw.functions.js +1 -1
- package/dist/chart/components/x_axis/x-axis-labels.drawer.d.ts +1 -1
- package/dist/chart/components/x_axis/x-axis-labels.drawer.js +1 -1
- package/dist/chart/components/x_axis/x-axis-labels.generator.d.ts +1 -1
- package/dist/chart/components/x_axis/x-axis-labels.generator.js +2 -2
- package/dist/chart/components/x_axis/x-axis-labels.model.d.ts +1 -1
- package/dist/chart/components/x_axis/x-axis-labels.model.js +1 -1
- package/dist/chart/components/x_axis/x-axis-scale.handler.d.ts +1 -1
- package/dist/chart/components/x_axis/x-axis-scale.handler.js +2 -2
- package/dist/chart/components/x_axis/x-axis-time-labels.drawer.d.ts +1 -1
- package/dist/chart/components/x_axis/x-axis-time-labels.drawer.js +1 -1
- package/dist/chart/components/x_axis/x-axis.component.d.ts +1 -1
- package/dist/chart/components/x_axis/x-axis.component.js +1 -1
- package/dist/chart/components/y_axis/label-color.functions.d.ts +1 -1
- package/dist/chart/components/y_axis/label-color.functions.js +2 -2
- package/dist/chart/components/y_axis/numeric-y-axis-labels.generator.d.ts +1 -1
- package/dist/chart/components/y_axis/numeric-y-axis-labels.generator.js +1 -1
- package/dist/chart/components/y_axis/price_labels/data-series-y-axis-labels.provider.d.ts +1 -1
- package/dist/chart/components/y_axis/price_labels/data-series-y-axis-labels.provider.js +1 -1
- package/dist/chart/components/y_axis/price_labels/labels-positions-calculator.d.ts +1 -1
- package/dist/chart/components/y_axis/price_labels/labels-positions-calculator.js +1 -1
- package/dist/chart/components/y_axis/price_labels/last-candle-labels.provider.d.ts +1 -1
- package/dist/chart/components/y_axis/price_labels/last-candle-labels.provider.js +1 -1
- package/dist/chart/components/y_axis/price_labels/price-label.drawer.d.ts +1 -1
- package/dist/chart/components/y_axis/price_labels/price-label.drawer.js +1 -1
- package/dist/chart/components/y_axis/price_labels/y-axis-labels.model.d.ts +2 -4
- package/dist/chart/components/y_axis/price_labels/y-axis-labels.model.js +2 -4
- package/dist/chart/components/y_axis/price_labels/y-axis-price-labels.drawer.d.ts +1 -1
- package/dist/chart/components/y_axis/price_labels/y-axis-price-labels.drawer.js +1 -1
- package/dist/chart/components/y_axis/y-axis-base-labels.model.d.ts +1 -1
- package/dist/chart/components/y_axis/y-axis-base-labels.model.js +1 -1
- package/dist/chart/components/y_axis/y-axis-labels.drawer.d.ts +1 -1
- package/dist/chart/components/y_axis/y-axis-labels.drawer.js +1 -1
- package/dist/chart/components/y_axis/y-axis-scale.handler.d.ts +1 -1
- package/dist/chart/components/y_axis/y-axis-scale.handler.js +5 -7
- package/dist/chart/components/y_axis/y-axis.component.d.ts +2 -2
- package/dist/chart/components/y_axis/y-axis.component.js +7 -4
- package/dist/chart/components/y_axis/y-axis.drawer.d.ts +1 -1
- package/dist/chart/components/y_axis/y-axis.drawer.js +1 -1
- package/dist/chart/components/y_axis/y-axis.model.d.ts +1 -1
- package/dist/chart/components/y_axis/y-axis.model.js +1 -1
- package/dist/chart/drawers/chart-background.drawer.d.ts +1 -1
- package/dist/chart/drawers/chart-background.drawer.js +1 -1
- package/dist/chart/drawers/chart-type-drawers/area.drawer.d.ts +1 -1
- package/dist/chart/drawers/chart-type-drawers/area.drawer.js +1 -1
- package/dist/chart/drawers/chart-type-drawers/bar.drawer.d.ts +1 -1
- package/dist/chart/drawers/chart-type-drawers/bar.drawer.js +1 -1
- package/dist/chart/drawers/chart-type-drawers/baseline.drawer.d.ts +1 -1
- package/dist/chart/drawers/chart-type-drawers/baseline.drawer.js +1 -1
- package/dist/chart/drawers/chart-type-drawers/candle.drawer.d.ts +1 -1
- package/dist/chart/drawers/chart-type-drawers/candle.drawer.js +1 -1
- package/dist/chart/drawers/chart-type-drawers/histogram.drawer.d.ts +1 -1
- package/dist/chart/drawers/chart-type-drawers/histogram.drawer.js +1 -1
- package/dist/chart/drawers/chart-type-drawers/line.drawer.d.ts +1 -1
- package/dist/chart/drawers/chart-type-drawers/line.drawer.js +1 -1
- package/dist/chart/drawers/chart-type-drawers/scatter-plot.drawer.d.ts +1 -1
- package/dist/chart/drawers/chart-type-drawers/scatter-plot.drawer.js +1 -1
- package/dist/chart/drawers/clear-canvas.drawer.d.ts +1 -1
- package/dist/chart/drawers/clear-canvas.drawer.js +1 -1
- package/dist/chart/drawers/composite.drawer.d.ts +1 -1
- package/dist/chart/drawers/composite.drawer.js +1 -1
- package/dist/chart/drawers/data-series-drawers/candle-series-wrapper.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/candle-series-wrapper.js +1 -1
- package/dist/chart/drawers/data-series-drawers/color-candle.drawer.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/color-candle.drawer.js +1 -1
- package/dist/chart/drawers/data-series-drawers/data-series-drawers.utils.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/data-series-drawers.utils.js +1 -1
- package/dist/chart/drawers/data-series-drawers/difference-cloud.drawer.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/difference-cloud.drawer.js +1 -1
- package/dist/chart/drawers/data-series-drawers/histogram.drawer.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/histogram.drawer.js +1 -1
- package/dist/chart/drawers/data-series-drawers/linear.drawer.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/linear.drawer.js +1 -1
- package/dist/chart/drawers/data-series-drawers/points.drawer.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/points.drawer.js +1 -1
- package/dist/chart/drawers/data-series-drawers/rectangular-tool.drawer.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/rectangular-tool.drawer.js +1 -1
- package/dist/chart/drawers/data-series-drawers/text.drawer.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/text.drawer.js +1 -1
- package/dist/chart/drawers/data-series-drawers/trend-histogram.drawer.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/trend-histogram.drawer.js +52 -15
- package/dist/chart/drawers/data-series-drawers/triangle.drawer.d.ts +1 -1
- package/dist/chart/drawers/data-series-drawers/triangle.drawer.js +1 -1
- package/dist/chart/drawers/data-series.drawer.d.ts +1 -1
- package/dist/chart/drawers/data-series.drawer.js +1 -1
- package/dist/chart/drawers/drawing-manager.d.ts +1 -1
- package/dist/chart/drawers/drawing-manager.js +1 -1
- package/dist/chart/drawers/ht-data-series.drawer.d.ts +1 -1
- package/dist/chart/drawers/ht-data-series.drawer.js +1 -1
- package/dist/chart/events/event-bus.d.ts +1 -1
- package/dist/chart/events/event-bus.js +1 -1
- package/dist/chart/events/events.d.ts +1 -1
- package/dist/chart/events/events.js +1 -1
- package/dist/chart/inputhandlers/candle-tap.handler.d.ts +1 -1
- package/dist/chart/inputhandlers/candle-tap.handler.js +1 -1
- package/dist/chart/inputhandlers/chart-resize.handler.d.ts +1 -1
- package/dist/chart/inputhandlers/chart-resize.handler.js +1 -1
- package/dist/chart/inputhandlers/cross-event-producer.component.d.ts +1 -1
- package/dist/chart/inputhandlers/cross-event-producer.component.js +1 -1
- package/dist/chart/inputhandlers/hover-producer.component.d.ts +1 -1
- package/dist/chart/inputhandlers/hover-producer.component.js +1 -1
- package/dist/chart/inputhandlers/main-canvas-touch.handler.d.ts +2 -7
- package/dist/chart/inputhandlers/main-canvas-touch.handler.js +2 -7
- package/dist/chart/inputlisteners/canvas-input-listener.component.d.ts +1 -15
- package/dist/chart/inputlisteners/canvas-input-listener.component.js +2 -36
- package/dist/chart/model/baseline.model.d.ts +1 -1
- package/dist/chart/model/baseline.model.js +1 -1
- package/dist/chart/model/bounds.model.d.ts +1 -1
- package/dist/chart/model/bounds.model.js +1 -1
- package/dist/chart/model/candle-hover.d.ts +1 -1
- package/dist/chart/model/candle-hover.js +1 -1
- package/dist/chart/model/candle-series-high-low.provider.d.ts +1 -1
- package/dist/chart/model/candle-series-high-low.provider.js +1 -1
- package/dist/chart/model/candle-series.model.d.ts +11 -2
- package/dist/chart/model/candle-series.model.js +22 -4
- package/dist/chart/model/candle.model.d.ts +1 -1
- package/dist/chart/model/candle.model.js +1 -1
- package/dist/chart/model/canvas.model.d.ts +1 -1
- package/dist/chart/model/canvas.model.js +1 -1
- package/dist/chart/model/chart-base-element.d.ts +1 -1
- package/dist/chart/model/chart-base-element.js +1 -1
- package/dist/chart/model/compare-series-hover.d.ts +1 -1
- package/dist/chart/model/compare-series-hover.js +1 -1
- package/dist/chart/model/data-series-view.d.ts +1 -1
- package/dist/chart/model/data-series-view.js +1 -1
- package/dist/chart/model/data-series.config.d.ts +9 -2
- package/dist/chart/model/data-series.config.js +1 -1
- package/dist/chart/model/data-series.model.d.ts +1 -1
- package/dist/chart/model/data-series.model.js +6 -4
- package/dist/chart/model/date-time.formatter.d.ts +1 -1
- package/dist/chart/model/date-time.formatter.js +1 -1
- package/dist/chart/model/hit-test-canvas.model.d.ts +1 -1
- package/dist/chart/model/hit-test-canvas.model.js +1 -1
- package/dist/chart/model/main-candle-series.model.d.ts +1 -1
- package/dist/chart/model/main-candle-series.model.js +1 -1
- package/dist/chart/model/scale.model.d.ts +1 -1
- package/dist/chart/model/scale.model.js +1 -1
- package/dist/chart/model/scaling/auto-scale.model.d.ts +1 -1
- package/dist/chart/model/scaling/auto-scale.model.js +1 -1
- package/dist/chart/model/scaling/constrait.functions.d.ts +1 -1
- package/dist/chart/model/scaling/constrait.functions.js +1 -1
- package/dist/chart/model/scaling/lock-ratio.model.d.ts +1 -1
- package/dist/chart/model/scaling/lock-ratio.model.js +1 -1
- package/dist/chart/model/scaling/move-chart.functions.d.ts +1 -1
- package/dist/chart/model/scaling/move-chart.functions.js +1 -1
- package/dist/chart/model/scaling/viewport.model.d.ts +1 -1
- package/dist/chart/model/scaling/viewport.model.js +1 -1
- package/dist/chart/model/scaling/x-zooming.functions.d.ts +1 -1
- package/dist/chart/model/scaling/x-zooming.functions.js +1 -1
- package/dist/chart/model/time-zone.model.d.ts +1 -1
- package/dist/chart/model/time-zone.model.js +1 -1
- package/dist/chart/model/visual-candle.d.ts +1 -1
- package/dist/chart/model/visual-candle.js +1 -1
- package/dist/chart/utils/__tests__/array.utils.test.d.ts +1 -1
- package/dist/chart/utils/__tests__/array.utils.test.js +1 -1
- package/dist/chart/utils/__tests__/math.utils.test.d.ts +1 -1
- package/dist/chart/utils/__tests__/math.utils.test.js +1 -1
- package/dist/chart/utils/__tests__/object.utils.test.d.ts +1 -1
- package/dist/chart/utils/__tests__/object.utils.test.js +1 -1
- package/dist/chart/utils/__tests__/priceIncrementsUtils.test.d.ts +1 -1
- package/dist/chart/utils/__tests__/priceIncrementsUtils.test.js +1 -1
- package/dist/chart/utils/array.utils.d.ts +1 -1
- package/dist/chart/utils/array.utils.js +1 -1
- package/dist/chart/utils/auto-period-detector.utils.d.ts +1 -1
- package/dist/chart/utils/auto-period-detector.utils.js +1 -1
- package/dist/chart/utils/candles-generator-ts.utils.d.ts +1 -1
- package/dist/chart/utils/candles-generator-ts.utils.js +1 -1
- package/dist/chart/utils/candles-generator.utils.d.ts +1 -1
- package/dist/chart/utils/candles-generator.utils.js +1 -1
- package/dist/chart/utils/candles.utils.d.ts +1 -1
- package/dist/chart/utils/candles.utils.js +1 -1
- package/dist/chart/utils/canvas/canvas-drawing-functions.utils.d.ts +1 -1
- package/dist/chart/utils/canvas/canvas-drawing-functions.utils.js +1 -1
- package/dist/chart/utils/canvas/canvas-font-measure-tool.utils.d.ts +1 -1
- package/dist/chart/utils/canvas/canvas-font-measure-tool.utils.js +1 -1
- package/dist/chart/utils/canvas/canvas-text-functions.utils.d.ts +1 -1
- package/dist/chart/utils/canvas/canvas-text-functions.utils.js +1 -1
- package/dist/chart/utils/color.utils.d.ts +1 -1
- package/dist/chart/utils/color.utils.js +1 -1
- package/dist/chart/utils/device/browser.utils.d.ts +1 -1
- package/dist/chart/utils/device/browser.utils.js +1 -1
- package/dist/chart/utils/device/device-detector.utils.d.ts +1 -1
- package/dist/chart/utils/device/device-detector.utils.js +1 -1
- package/dist/chart/utils/device/device-pixel-ratio.utils.d.ts +1 -1
- package/dist/chart/utils/device/device-pixel-ratio.utils.js +1 -1
- package/dist/chart/utils/device/touchpad.utils.d.ts +1 -1
- package/dist/chart/utils/device/touchpad.utils.js +1 -1
- package/dist/chart/utils/dom.utils.d.ts +1 -1
- package/dist/chart/utils/dom.utils.js +1 -1
- package/dist/chart/utils/function.utils.d.ts +1 -1
- package/dist/chart/utils/function.utils.js +1 -1
- package/dist/chart/utils/linkedList.utils.d.ts +1 -1
- package/dist/chart/utils/linkedList.utils.js +1 -1
- package/dist/chart/utils/math.utils.d.ts +1 -1
- package/dist/chart/utils/math.utils.js +2 -2
- package/dist/chart/utils/merge.utils.d.ts +1 -1
- package/dist/chart/utils/merge.utils.js +1 -1
- package/dist/chart/utils/object.utils.d.ts +1 -1
- package/dist/chart/utils/object.utils.js +1 -1
- package/dist/chart/utils/performance/animation-frame-cache.utils.d.ts +1 -1
- package/dist/chart/utils/performance/animation-frame-cache.utils.js +1 -1
- package/dist/chart/utils/performance/debounce.utils.d.ts +1 -1
- package/dist/chart/utils/performance/debounce.utils.js +1 -1
- package/dist/chart/utils/performance/memoize.utils.d.ts +1 -1
- package/dist/chart/utils/performance/memoize.utils.js +1 -1
- package/dist/chart/utils/performance/request-animation-frame-throttle.utils.d.ts +1 -1
- package/dist/chart/utils/performance/request-animation-frame-throttle.utils.js +1 -1
- package/dist/chart/utils/performance/throttle.utils.d.ts +1 -1
- package/dist/chart/utils/performance/throttle.utils.js +1 -1
- package/dist/chart/utils/price-increments.utils.d.ts +1 -1
- package/dist/chart/utils/price-increments.utils.js +1 -1
- package/dist/chart/utils/timezone.utils.d.ts +1 -1
- package/dist/chart/utils/timezone.utils.js +4 -4
- package/dist/chart/utils/uuid.utils.d.ts +1 -1
- package/dist/chart/utils/uuid.utils.js +1 -1
- package/dist/dxchart.min.js +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -31,12 +31,7 @@ export declare class MainCanvasTouchHandler extends ChartBaseElement {
|
|
|
31
31
|
* Handles touch move event
|
|
32
32
|
* @param {TouchEvent} e - The touch event object
|
|
33
33
|
* @returns {void}
|
|
34
|
-
|
|
35
|
-
private handleTouchMoveEvent(e: TouchEvent): void {
|
|
36
|
-
if (e.touches.length === 2) {
|
|
37
|
-
this.pinchHandler(this.touchedCandleIndexes, this.getXPositions(e));
|
|
38
|
-
}
|
|
39
|
-
}*/
|
|
34
|
+
*/
|
|
40
35
|
private handleTouchMoveEvent;
|
|
41
36
|
/**
|
|
42
37
|
* Gets candle positions touched by user in pixels.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -41,12 +41,7 @@ export class MainCanvasTouchHandler extends ChartBaseElement {
|
|
|
41
41
|
* Handles touch move event
|
|
42
42
|
* @param {TouchEvent} e - The touch event object
|
|
43
43
|
* @returns {void}
|
|
44
|
-
|
|
45
|
-
private handleTouchMoveEvent(e: TouchEvent): void {
|
|
46
|
-
if (e.touches.length === 2) {
|
|
47
|
-
this.pinchHandler(this.touchedCandleIndexes, this.getXPositions(e));
|
|
48
|
-
}
|
|
49
|
-
}*/
|
|
44
|
+
*/
|
|
50
45
|
handleTouchMoveEvent(e) {
|
|
51
46
|
if (e.touches.length === 2) {
|
|
52
47
|
this.pinchHandler(this.touchedCandleIndexes, this.getXPositions(e));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -51,8 +51,6 @@ export declare class CanvasInputListenerComponent extends ChartBaseElement {
|
|
|
51
51
|
private longTouchStartSubject;
|
|
52
52
|
private longTouchEndSubject;
|
|
53
53
|
private contextMenuSubject;
|
|
54
|
-
private pinchSubject;
|
|
55
|
-
private scrollGestureSubject;
|
|
56
54
|
private fastTouchScroll;
|
|
57
55
|
mouseLeavesCanvasSubject: Subject<boolean>;
|
|
58
56
|
dragStartPoint: Point;
|
|
@@ -242,18 +240,6 @@ export declare class CanvasInputListenerComponent extends ChartBaseElement {
|
|
|
242
240
|
* @returns {Observable<WheelEvent>} - An Observable that emits WheelEvent objects.
|
|
243
241
|
*/
|
|
244
242
|
observeWheel(hitBoundsTest?: HitBoundsTest): Observable<WheelEvent>;
|
|
245
|
-
/**
|
|
246
|
-
* Returns an Observable that emits WheelEvent when a pinch event occurs and the hitBoundsTest function returns true for the current point.
|
|
247
|
-
* @param {HitBoundsTest} hitBoundsTest - A function that takes the current point's x and y coordinates as arguments and returns a boolean indicating whether the point is within the desired bounds.
|
|
248
|
-
* @returns {Observable<WheelEvent>} - An Observable that emits WheelEvent when a pinch event occurs and the hitBoundsTest function returns true for the current point.
|
|
249
|
-
*/
|
|
250
|
-
observePinch(hitBoundsTest?: HitBoundsTest): Observable<WheelEvent>;
|
|
251
|
-
/**
|
|
252
|
-
* Returns an Observable that emits a WheelEvent whenever a scroll gesture is detected.
|
|
253
|
-
* The Observable is created from a Subject that is subscribed to by the component's template.
|
|
254
|
-
* @returns {Observable<WheelEvent>} An Observable that emits a WheelEvent whenever a scroll gesture is detected.
|
|
255
|
-
*/
|
|
256
|
-
observeScrollGesture(): Observable<WheelEvent>;
|
|
257
243
|
/**
|
|
258
244
|
* Returns an Observable that emits TouchEvent when a touchstart event occurs within the bounds of the current point.
|
|
259
245
|
* @param {HitBoundsTest} [hitBoundsTest=() => true] - A function that tests if the touch event occurred within the bounds of the current point.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -8,7 +8,6 @@ import { merge, Subject } from 'rxjs';
|
|
|
8
8
|
import { ChartBaseElement } from '../model/chart-base-element';
|
|
9
9
|
import { distinctUntilChanged, filter, map, tap } from 'rxjs/operators';
|
|
10
10
|
import { EVENT_RESIZED } from '../events/events';
|
|
11
|
-
import { touchpadDetector } from '../utils/device/touchpad.utils';
|
|
12
11
|
import { deviceDetector } from '../utils/device/device-detector.utils';
|
|
13
12
|
/**
|
|
14
13
|
* Gathers user input on canvas element:
|
|
@@ -53,8 +52,6 @@ class CanvasInputListenerComponent extends ChartBaseElement {
|
|
|
53
52
|
this.longTouchStartSubject = new Subject();
|
|
54
53
|
this.longTouchEndSubject = new Subject();
|
|
55
54
|
this.contextMenuSubject = new Subject();
|
|
56
|
-
this.pinchSubject = new Subject();
|
|
57
|
-
this.scrollGestureSubject = new Subject();
|
|
58
55
|
this.fastTouchScroll = new Subject();
|
|
59
56
|
this.mouseLeavesCanvasSubject = new Subject();
|
|
60
57
|
// point at which start dragging
|
|
@@ -269,20 +266,7 @@ class CanvasInputListenerComponent extends ChartBaseElement {
|
|
|
269
266
|
this.addSubscription(subscribeListener(this.element, (e) => this.touchEndSubject.next(e), 'touchend'));
|
|
270
267
|
this.addSubscription(subscribeListener(this.element, (e) => this.touchCancelSubject.next(e), 'touchcancel'));
|
|
271
268
|
this.addSubscription(subscribeListener(this.element, (e) => {
|
|
272
|
-
|
|
273
|
-
if (e.ctrlKey) {
|
|
274
|
-
this.pinchSubject.next(e);
|
|
275
|
-
}
|
|
276
|
-
else {
|
|
277
|
-
// mouse wheel or scroll gesture
|
|
278
|
-
const isTouchpad = touchpadDetector(e);
|
|
279
|
-
if (isTouchpad) {
|
|
280
|
-
this.scrollGestureSubject.next(e);
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
this.wheelSubject.next(e);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
269
|
+
this.wheelSubject.next(e);
|
|
286
270
|
e.preventDefault(); // to disable the scroll over the document, if for example chart is used as widget
|
|
287
271
|
}, 'wheel'));
|
|
288
272
|
this.addSubscription(subscribeListener(this.element, (e) => this.contextMenuSubject.next(e), 'contextmenu'));
|
|
@@ -557,24 +541,6 @@ class CanvasInputListenerComponent extends ChartBaseElement {
|
|
|
557
541
|
.asObservable()
|
|
558
542
|
.pipe(filter(() => hitBoundsTest(this.currentPoint.x, this.currentPoint.y)));
|
|
559
543
|
}
|
|
560
|
-
/**
|
|
561
|
-
* Returns an Observable that emits WheelEvent when a pinch event occurs and the hitBoundsTest function returns true for the current point.
|
|
562
|
-
* @param {HitBoundsTest} hitBoundsTest - A function that takes the current point's x and y coordinates as arguments and returns a boolean indicating whether the point is within the desired bounds.
|
|
563
|
-
* @returns {Observable<WheelEvent>} - An Observable that emits WheelEvent when a pinch event occurs and the hitBoundsTest function returns true for the current point.
|
|
564
|
-
*/
|
|
565
|
-
observePinch(hitBoundsTest = () => true) {
|
|
566
|
-
return this.pinchSubject
|
|
567
|
-
.asObservable()
|
|
568
|
-
.pipe(filter(() => hitBoundsTest(this.currentPoint.x, this.currentPoint.y)));
|
|
569
|
-
}
|
|
570
|
-
/**
|
|
571
|
-
* Returns an Observable that emits a WheelEvent whenever a scroll gesture is detected.
|
|
572
|
-
* The Observable is created from a Subject that is subscribed to by the component's template.
|
|
573
|
-
* @returns {Observable<WheelEvent>} An Observable that emits a WheelEvent whenever a scroll gesture is detected.
|
|
574
|
-
*/
|
|
575
|
-
observeScrollGesture() {
|
|
576
|
-
return this.scrollGestureSubject.asObservable();
|
|
577
|
-
}
|
|
578
544
|
/**
|
|
579
545
|
* Returns an Observable that emits TouchEvent when a touchstart event occurs within the bounds of the current point.
|
|
580
546
|
* @param {HitBoundsTest} [hitBoundsTest=() => true] - A function that tests if the touch event occurred within the bounds of the current point.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -12,7 +12,7 @@ import EventBus from '../events/event-bus';
|
|
|
12
12
|
import { DeepPartial } from '../utils/object.utils';
|
|
13
13
|
import { Candle } from './candle.model';
|
|
14
14
|
import { DataSeriesType } from './data-series.config';
|
|
15
|
-
import { DataSeriesModel } from './data-series.model';
|
|
15
|
+
import { DataSeriesModel, DataSeriesViewportIndexes } from './data-series.model';
|
|
16
16
|
import { HighLowWithIndex, ScaleModel } from './scale.model';
|
|
17
17
|
import { Unit } from './scaling/viewport.model';
|
|
18
18
|
import VisualCandle from './visual-candle';
|
|
@@ -44,6 +44,15 @@ export declare class CandleSeriesModel extends DataSeriesModel<Candle, VisualCan
|
|
|
44
44
|
* @returns {void}
|
|
45
45
|
*/
|
|
46
46
|
recalculateDataViewportIndexes(xStart?: number, xEnd?: number): void;
|
|
47
|
+
/**
|
|
48
|
+
* Calculates and returns the indexes of the start and end points of the data viewport,
|
|
49
|
+
* based on the given start and end units on the x-axis.
|
|
50
|
+
*
|
|
51
|
+
* @param {Unit} xStart - The start value of the viewport on the x-axis.
|
|
52
|
+
* @param {Unit} xEnd - The end value of the viewport on the x-axis.
|
|
53
|
+
* @returns {DataSeriesViewportIndexes} An object containing the calculated start and end indexes of the data viewport.
|
|
54
|
+
*/
|
|
55
|
+
calculateDataViewportIndexes(xStart: Unit, xEnd: Unit): DataSeriesViewportIndexes;
|
|
47
56
|
/**
|
|
48
57
|
* Calculates the price movement of the last candle by comparing the open and close prices.
|
|
49
58
|
* Sets the lastPriceMovement property of the instance with the name of the direction of the price movement.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ import { Subject } from 'rxjs';
|
|
|
7
7
|
import { getDefaultConfig } from '../chart.config';
|
|
8
8
|
import { defaultCandleTransformer } from '../components/chart/candle-transformer.functions';
|
|
9
9
|
import { calculateCandleWidth } from '../components/chart/candle-width-calculator.functions';
|
|
10
|
-
import { lastOf } from '../utils/array.utils';
|
|
10
|
+
import { binarySearch, lastOf } from '../utils/array.utils';
|
|
11
11
|
import { merge } from '../utils/merge.utils';
|
|
12
12
|
import { PriceIncrementsUtils } from '../utils/price-increments.utils';
|
|
13
13
|
import { calculateCandlesHighLow, createCandleSeriesHighLowProvider } from './candle-series-high-low.provider';
|
|
@@ -58,10 +58,28 @@ export class CandleSeriesModel extends DataSeriesModel {
|
|
|
58
58
|
* @returns {void}
|
|
59
59
|
*/
|
|
60
60
|
recalculateDataViewportIndexes(xStart = this.scale.xStart, xEnd = this.scale.xEnd) {
|
|
61
|
-
|
|
61
|
+
const { dataIdxStart, dataIdxEnd } = this.calculateDataViewportIndexes(xStart, xEnd);
|
|
62
|
+
this.dataIdxStart = dataIdxStart;
|
|
63
|
+
this.dataIdxEnd = dataIdxEnd;
|
|
62
64
|
this.recalculateZippedHighLow();
|
|
63
65
|
this.eventBus.fireDraw();
|
|
64
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Calculates and returns the indexes of the start and end points of the data viewport,
|
|
69
|
+
* based on the given start and end units on the x-axis.
|
|
70
|
+
*
|
|
71
|
+
* @param {Unit} xStart - The start value of the viewport on the x-axis.
|
|
72
|
+
* @param {Unit} xEnd - The end value of the viewport on the x-axis.
|
|
73
|
+
* @returns {DataSeriesViewportIndexes} An object containing the calculated start and end indexes of the data viewport.
|
|
74
|
+
*/
|
|
75
|
+
calculateDataViewportIndexes(xStart, xEnd) {
|
|
76
|
+
const dataIdxStart = binarySearch(this.visualPoints, xStart, (it) => it.startUnit).index;
|
|
77
|
+
const dataIdxEnd = binarySearch(this.visualPoints, xEnd, (it) => it.startUnit).index;
|
|
78
|
+
return {
|
|
79
|
+
dataIdxStart,
|
|
80
|
+
dataIdxEnd,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
65
83
|
/**
|
|
66
84
|
* Calculates the price movement of the last candle by comparing the open and close prices.
|
|
67
85
|
* Sets the lastPriceMovement property of the instance with the name of the direction of the price movement.
|
|
@@ -168,7 +186,7 @@ export class CandleSeriesModel extends DataSeriesModel {
|
|
|
168
186
|
// x - middle of candle
|
|
169
187
|
const x = accumulatedWidth + width / 2;
|
|
170
188
|
const transformer = (_b = this.candlesTransformersByChartType[type]) !== null && _b !== void 0 ? _b : defaultCandleTransformer;
|
|
171
|
-
visualCandles.push(transformer(candle, { x, width, prevCandle, activeCandle: this.activeCandle }));
|
|
189
|
+
visualCandles.push(transformer(candle, { x, width, prevCandle, activeCandle: this.activeCandle }, visualCandles[i - 1]));
|
|
172
190
|
accumulatedWidth += width;
|
|
173
191
|
}
|
|
174
192
|
return visualCandles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -21,11 +21,18 @@ export interface DataSeriesConfig {
|
|
|
21
21
|
labelPaddingTop?: number;
|
|
22
22
|
labelPaddingEnd?: number;
|
|
23
23
|
}
|
|
24
|
+
type NegativeColor = string;
|
|
25
|
+
type PositiveColor = string;
|
|
26
|
+
type NegativeAndDownColor = string;
|
|
27
|
+
type NegativeAndUpColor = string;
|
|
28
|
+
type PositiveAndDownColor = string;
|
|
29
|
+
type PositiveAndUpColor = string;
|
|
24
30
|
export interface DataSeriesPaintConfig {
|
|
25
31
|
color: string;
|
|
26
32
|
lineWidth: number;
|
|
27
33
|
hoveredLineWidth: number;
|
|
28
|
-
|
|
34
|
+
multiplyColors?: [NegativeColor, PositiveColor] | [NegativeAndDownColor, NegativeAndUpColor, PositiveAndDownColor, PositiveAndUpColor];
|
|
29
35
|
}
|
|
30
36
|
export declare const DEFAULT_DATA_SERIES_PAINT_CONFIG: DataSeriesPaintConfig;
|
|
31
37
|
export declare const DEFAULT_DATA_SERIES_CONFIG: DataSeriesConfig;
|
|
38
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -138,7 +138,9 @@ export class DataSeriesModel extends ChartBaseElement {
|
|
|
138
138
|
}
|
|
139
139
|
doActivate() {
|
|
140
140
|
this.addRxSubscription(this.scale.xChanged.subscribe(() => this.recalculateDataViewportIndexes()));
|
|
141
|
-
this.addRxSubscription(this.scale.scaleInversedSubject.subscribe(() => {
|
|
141
|
+
this.addRxSubscription(this.scale.scaleInversedSubject.subscribe(() => {
|
|
142
|
+
this.recalculateVisualPoints();
|
|
143
|
+
}));
|
|
142
144
|
}
|
|
143
145
|
/**
|
|
144
146
|
* Sets the data points and recalculates internal state
|
|
@@ -215,8 +217,8 @@ export class DataSeriesModel extends ChartBaseElement {
|
|
|
215
217
|
* @returns {DataSeriesViewportIndexes} An object containing the calculated start and end indexes of the data viewport.
|
|
216
218
|
*/
|
|
217
219
|
calculateDataViewportIndexes(xStart, xEnd) {
|
|
218
|
-
const dataIdxStart = binarySearch(this.visualPoints, xStart, i => i.centerUnit).index;
|
|
219
|
-
const dataIdxEnd = binarySearch(this.visualPoints, xEnd, i => i.centerUnit).index;
|
|
220
|
+
const dataIdxStart = binarySearch(this.visualPoints, xStart, (i) => i.centerUnit).index;
|
|
221
|
+
const dataIdxEnd = binarySearch(this.visualPoints, xEnd, (i) => i.centerUnit).index;
|
|
220
222
|
return {
|
|
221
223
|
dataIdxStart,
|
|
222
224
|
dataIdxEnd,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 -
|
|
2
|
+
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
|
|
3
3
|
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
4
4
|
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|