Skip to content

Commit 2e2b8a1

Browse files
committed
refactor(figures): type highlight function input
1 parent 9752836 commit 2e2b8a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/figures.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { Axis, ParallelAxis } from "./axes"
1010
import { ShapeCollection, GroupCollection, PointSet } from "./collections"
1111
import { RemoteFigure } from "./remoteFigure"
1212
import { DataInterface } from "./dataInterfaces"
13+
import { HighlightData } from "./interactions"
1314

1415
export class Figure extends RemoteFigure {
1516
constructor(
@@ -1171,7 +1172,7 @@ export class Draw extends Frame {
11711172

11721173
protected receiveRubberBandFromFigure(figure: Figure): void {}
11731174

1174-
public highlightFromReferencePath(highlightData) {
1175+
public highlightFromReferencePath(highlightData: HighlightData) {
11751176
const highlight = highlightData.highlight;
11761177
const shapes = this.getShapesFromPath(highlightData.referencePath);
11771178
shapes.forEach((shape) => {

0 commit comments

Comments
 (0)