@devexperts/dxcharts-lite 2.0.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chart/__tests__/chart.test.d.ts +6 -0
- package/dist/chart/__tests__/chart.test.js +51 -0
- package/dist/chart/__tests__/env.d.ts +5 -0
- package/dist/chart/__tests__/env.js +28 -0
- package/dist/chart/bootstrap.js +2 -2
- package/dist/chart/chart.config.d.ts +4 -1
- package/dist/chart/chart.config.js +1 -1
- package/dist/chart/components/chart/chart-base.model.d.ts +1 -1
- package/dist/chart/components/chart/chart.component.js +13 -3
- package/dist/chart/components/chart/chart.model.d.ts +2 -2
- package/dist/chart/components/chart/chart.model.js +9 -7
- package/dist/chart/components/cross_tool/cross-tool.component.d.ts +2 -1
- package/dist/chart/components/cross_tool/cross-tool.component.js +4 -3
- package/dist/chart/components/cross_tool/cross-tool.model.js +1 -0
- package/dist/chart/components/cross_tool/types/cross-and-labels.drawer.d.ts +3 -1
- package/dist/chart/components/cross_tool/types/cross-and-labels.drawer.js +3 -2
- package/dist/chart/components/dynamic-objects/dynamic-objects.component.js +1 -1
- package/dist/chart/components/dynamic-objects/dynamic-objects.model.d.ts +30 -10
- package/dist/chart/components/dynamic-objects/dynamic-objects.model.js +119 -57
- package/dist/chart/components/grid/grid.drawer.js +3 -1
- package/dist/chart/components/pane/extent/y-extent-component.js +2 -1
- package/dist/chart/components/pane/pane-hit-test.controller.js +2 -2
- package/dist/chart/components/volumes/volumes.component.d.ts +3 -0
- package/dist/chart/components/volumes/volumes.component.js +21 -4
- package/dist/chart/components/volumes/volumes.model.d.ts +2 -0
- package/dist/chart/components/volumes/volumes.model.js +2 -0
- package/dist/chart/components/x_axis/x-axis.component.js +2 -2
- package/dist/chart/components/y_axis/label-color.functions.d.ts +2 -1
- package/dist/chart/components/y_axis/label-color.functions.js +17 -0
- package/dist/chart/components/y_axis/price_labels/data-series-y-axis-labels.provider.d.ts +2 -2
- package/dist/chart/components/y_axis/price_labels/data-series-y-axis-labels.provider.js +27 -25
- package/dist/chart/components/y_axis/price_labels/labels-positions-calculator.js +24 -13
- package/dist/chart/components/y_axis/price_labels/last-candle-labels.provider.d.ts +3 -3
- package/dist/chart/components/y_axis/price_labels/last-candle-labels.provider.js +58 -40
- package/dist/chart/components/y_axis/price_labels/y-axis-price-labels.drawer.d.ts +3 -3
- package/dist/chart/components/y_axis/price_labels/y-axis-price-labels.drawer.js +15 -13
- package/dist/chart/components/y_axis/y-axis-scale.handler.js +1 -1
- package/dist/chart/components/y_axis/y-axis.component.d.ts +2 -1
- package/dist/chart/components/y_axis/y-axis.component.js +6 -2
- package/dist/chart/drawers/ht-data-series.drawer.js +1 -1
- package/dist/chart/inputhandlers/cross-event-producer.component.js +2 -1
- package/dist/chart/inputhandlers/hover-producer.component.d.ts +1 -1
- package/dist/chart/inputhandlers/hover-producer.component.js +8 -8
- package/dist/chart/inputlisteners/canvas-input-listener.component.d.ts +12 -5
- package/dist/chart/inputlisteners/canvas-input-listener.component.js +74 -62
- package/dist/chart/model/candle-series.model.d.ts +1 -1
- package/dist/chart/model/candle-series.model.js +2 -2
- package/dist/chart/model/compare-series-hover.d.ts +2 -1
- package/dist/chart/model/compare-series-hover.js +1 -0
- package/dist/chart/model/data-series.model.d.ts +3 -2
- package/dist/chart/model/data-series.model.js +2 -1
- package/dist/chart/model/main-candle-series.model.d.ts +1 -1
- package/dist/chart/model/main-candle-series.model.js +2 -2
- package/dist/chart/model/scale.model.d.ts +2 -0
- package/dist/chart/model/scale.model.js +11 -2
- package/dist/chart/utils/dom.utils.d.ts +7 -0
- package/dist/chart/utils/dom.utils.js +12 -0
- package/dist/chart/utils/linkedList.utils.d.ts +3 -3
- package/dist/chart/utils/linkedList.utils.js +55 -57
- package/dist/dxchart.min.js +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -8
- package/package.json +10 -4
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { Chart } from './chart/chart';
|
|
7
7
|
import { PartialChartConfig } from './chart/chart.config';
|
|
8
|
+
import { generateCandlesDataTS } from './chart/utils/candles-generator-ts.utils';
|
|
8
9
|
declare const createChart: (el: HTMLElement, config?: PartialChartConfig) => Chart;
|
|
9
|
-
export { createChart, Chart };
|
|
10
|
+
export { createChart, Chart, generateCandlesDataTS as generateCandlesData };
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
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
|
*/
|
|
6
6
|
import { Chart } from './chart/chart';
|
|
7
|
+
import { generateCandlesDataTS } from './chart/utils/candles-generator-ts.utils';
|
|
7
8
|
const createChart =
|
|
8
9
|
/**
|
|
9
10
|
* Creates a new chart instance using ChartBootstrap class and returns it.
|
|
@@ -15,11 +16,4 @@ const createChart =
|
|
|
15
16
|
const chart = new Chart(el, config);
|
|
16
17
|
return chart;
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
-
* DXChart global variable. Exposes ChartBootstrap constructor.
|
|
20
|
-
* @doc-tags chart-core,api
|
|
21
|
-
*/
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
window['DXChart'] = Object.assign(Object.assign({}, window['DXChart']), { Chart,
|
|
24
|
-
createChart });
|
|
25
|
-
export { createChart, Chart };
|
|
19
|
+
export { createChart, Chart, generateCandlesDataTS as generateCandlesData };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devexperts/dxcharts-lite",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "DXCharts Lite",
|
|
5
5
|
"author": "Devexperts Solutions IE Limited",
|
|
6
6
|
"license": "MPL 2.0",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"husky": "^8.0.2",
|
|
73
73
|
"is-glob": "^4.0.3",
|
|
74
74
|
"jest": "^24.9.0",
|
|
75
|
+
"jest-canvas-mock": "^2.5.2",
|
|
75
76
|
"lint-staged": "^13.0.4",
|
|
76
77
|
"mocha": "9.2.0",
|
|
77
78
|
"node-html-parser": "^6.1.5",
|
|
@@ -82,9 +83,9 @@
|
|
|
82
83
|
"ts-jest": "^24.1.0",
|
|
83
84
|
"ts-node": "^10.9.1",
|
|
84
85
|
"typescript": "^5.0.3",
|
|
85
|
-
"webpack": "^5.
|
|
86
|
-
"webpack-cli": "^5.1.
|
|
87
|
-
"webpack-dev-server": "^4.15.
|
|
86
|
+
"webpack": "^5.89.0",
|
|
87
|
+
"webpack-cli": "^5.1.4",
|
|
88
|
+
"webpack-dev-server": "^4.15.1"
|
|
88
89
|
},
|
|
89
90
|
"dependencies": {
|
|
90
91
|
"color": "^4.2.3",
|
|
@@ -92,6 +93,11 @@
|
|
|
92
93
|
"date-fns-tz": "^1.3.8",
|
|
93
94
|
"rxjs": "^7.5.7"
|
|
94
95
|
},
|
|
96
|
+
"peerDependencies": {
|
|
97
|
+
"rxjs": ">=6.5.2"
|
|
98
|
+
},
|
|
99
|
+
"main": "dist/index.js",
|
|
100
|
+
"types": "dist/index.d.ts",
|
|
95
101
|
"repository": {
|
|
96
102
|
"type": "git",
|
|
97
103
|
"url": "ssh://git@github.com:devexperts/dxcharts-lite.git"
|