@gitlab/ui 42.10.0 → 42.10.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [42.10.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v42.10.0...v42.10.1) (2022-06-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **GlChart:** tooltip conflicting with datazoom ([d791719](https://gitlab.com/gitlab-org/gitlab-ui/commit/d791719638b3a20d4f175d5793648d2b57ddf47b))
|
|
7
|
+
|
|
1
8
|
# [42.10.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v42.9.0...v42.10.0) (2022-06-23)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import merge from 'lodash/merge';
|
|
2
2
|
import defaultChartOptions, { yAxis, generateBarSeries, generateLineSeries, gridWithSecondaryYAxis, grid, dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
|
|
3
|
-
import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE, CHART_TYPE_LINE } from '../../../utils/charts/constants';
|
|
3
|
+
import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE, CHART_TYPE_LINE, ANNOTATION_TOOLTIP_TOP_OFFSET } from '../../../utils/charts/constants';
|
|
4
4
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
5
5
|
import { columnOptions } from '../../../utils/constants';
|
|
6
6
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
@@ -281,7 +281,7 @@ var script = {
|
|
|
281
281
|
moveShowTooltip(mouseEvent) {
|
|
282
282
|
this.tooltipPosition = {
|
|
283
283
|
left: `${mouseEvent.zrX}px`,
|
|
284
|
-
top: `${mouseEvent.zrY}px`
|
|
284
|
+
top: `${mouseEvent.zrY + ANNOTATION_TOOLTIP_TOP_OFFSET}px`
|
|
285
285
|
};
|
|
286
286
|
this.showTooltip = this.chart.containPixel('grid', [mouseEvent.zrX, mouseEvent.zrY]);
|
|
287
287
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "42.10.
|
|
3
|
+
"version": "42.10.1",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@babel/preset-env": "^7.10.2",
|
|
84
84
|
"@gitlab/eslint-plugin": "12.3.0",
|
|
85
85
|
"@gitlab/stylelint-config": "4.1.0",
|
|
86
|
-
"@gitlab/svgs": "2.
|
|
86
|
+
"@gitlab/svgs": "2.22.0",
|
|
87
87
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
88
88
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
89
89
|
"@rollup/plugin-replace": "^2.3.2",
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
LEGEND_MIN_TEXT,
|
|
18
18
|
LEGEND_MAX_TEXT,
|
|
19
19
|
CHART_TYPE_LINE,
|
|
20
|
+
ANNOTATION_TOOLTIP_TOP_OFFSET,
|
|
20
21
|
} from '../../../utils/charts/constants';
|
|
21
22
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
22
23
|
import { columnOptions } from '../../../utils/constants';
|
|
@@ -259,7 +260,7 @@ export default {
|
|
|
259
260
|
moveShowTooltip(mouseEvent) {
|
|
260
261
|
this.tooltipPosition = {
|
|
261
262
|
left: `${mouseEvent.zrX}px`,
|
|
262
|
-
top: `${mouseEvent.zrY}px`,
|
|
263
|
+
top: `${mouseEvent.zrY + ANNOTATION_TOOLTIP_TOP_OFFSET}px`,
|
|
263
264
|
};
|
|
264
265
|
this.showTooltip = this.chart.containPixel('grid', [mouseEvent.zrX, mouseEvent.zrY]);
|
|
265
266
|
},
|