mdt-charts 1.38.0 → 1.38.2
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/lib/engine/elementHighlighter/elementHighlighter.js +1 -1
- package/lib/engine/features/tolltip/tooltip.js +1 -3
- package/lib/model/chartStyleModel/chartStyleModel.js +1 -1
- package/lib/model/chartStyleModel/twoDimensionalChartStyleModel.js +1 -1
- package/package.json +2 -2
- package/tsconfig.production.json +2 -1
|
@@ -5,7 +5,7 @@ import { DomSelectionHelper, SelectionCondition } from "../helpers/domSelectionH
|
|
|
5
5
|
import { Donut } from "../polarNotation/donut/donut";
|
|
6
6
|
import { MarkDot } from "../features/markDots/markDot";
|
|
7
7
|
import { Helper } from "../helpers/helper";
|
|
8
|
-
import
|
|
8
|
+
import chroma from "chroma-js";
|
|
9
9
|
import { NamesHelper } from "../helpers/namesHelper";
|
|
10
10
|
import { DonutHelper } from "../polarNotation/donut/donutHelper";
|
|
11
11
|
export class ElementHighlighter {
|
|
@@ -115,9 +115,7 @@ export class Tooltip {
|
|
|
115
115
|
tooltipArrow = TooltipComponentsManager.renderTooltipArrow(tooltipBlock.getEl());
|
|
116
116
|
if (tooltipSettings.position === "followCursor") {
|
|
117
117
|
elements.on("mousemove", function (e) {
|
|
118
|
-
const pointerCoordinate =
|
|
119
|
-
? e.detail.pointer
|
|
120
|
-
: pointer(e, block.getSvg().node());
|
|
118
|
+
const pointerCoordinate = e instanceof CustomEvent ? e.detail.pointer : pointer(e, block.getSvg().node());
|
|
121
119
|
const tooltipCoordinate = TooltipHelper.getTooltipCursorCoordinate(pointerCoordinate, block.getSvg().node().getBoundingClientRect(), tooltipBlock.getEl().node().getBoundingClientRect());
|
|
122
120
|
tooltipBlock.setCoordinate(tooltipCoordinate);
|
|
123
121
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdt-charts",
|
|
3
|
-
"version": "1.38.
|
|
3
|
+
"version": "1.38.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/main.js",
|
|
6
6
|
"scripts": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"webpack-cli": "^6.0.1"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"chroma-js": "^2.
|
|
49
|
+
"chroma-js": "^2.6.0",
|
|
50
50
|
"d3-array": "^3.2.4",
|
|
51
51
|
"d3-axis": "^3.0.0",
|
|
52
52
|
"d3-ease": "^3.0.1",
|
package/tsconfig.production.json
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"allowJs": true,
|
|
9
9
|
"types": ["jest"],
|
|
10
10
|
"declaration": true,
|
|
11
|
-
"moduleResolution": "Node"
|
|
11
|
+
"moduleResolution": "Node",
|
|
12
|
+
"allowSyntheticDefaultImports": true
|
|
12
13
|
},
|
|
13
14
|
"include": ["src"],
|
|
14
15
|
"exclude": ["node_modules", "**/__tests__/*", "src/playground/*", "**/*Example.ts", "**/*.test.ts"]
|