Skip to content

Commit 8f6b0ac

Browse files
authored
Merge pull request #363 from Dessia-tech/fix/point_tooltip
Fix/point tooltip
2 parents fe56d8f + ef04bbe commit 8f6b0ac

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

code_pylint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
'trailing-whitespace': 11,
3636
'empty-docstring': 7,
3737
'missing-module-docstring': 4,
38-
'too-many-arguments': 22,
38+
'too-many-arguments': 23,
3939
'too-few-public-methods': 5,
4040
'unnecessary-comprehension': 5,
4141
'no-value-for-parameter': 2,

src/primitives.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,6 @@ export class Point extends Shape {
668668
return marker
669669
}
670670

671-
protected updateTooltipOrigin(matrix: DOMMatrix): void { this.tooltipOrigin = this.center.copy() }
672-
673671
get markerOrientation(): string { return this._markerOrientation };
674672

675673
set markerOrientation(value: string) { this._markerOrientation = value };

src/shapes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,8 @@ export class ScatterPoint extends Point {
665665
this.update();
666666
}
667667

668+
protected updateTooltipOrigin(matrix: DOMMatrix): void { this.tooltipOrigin = this.center.copy() }
669+
668670
public updateTooltipMap() { this._tooltipMap = new Map<string, any>([["Number", this.values.length], ["X mean", this.mean.x], ["Y mean", this.mean.y],]) };
669671

670672
public updateTooltip(tooltipAttributes: string[], features: Map<string, number[]>, axes: Axis[], xName: string, yName: string) {

0 commit comments

Comments
 (0)