Skip to content

Commit a6932ef

Browse files
committed
ss
1 parent 3caee8c commit a6932ef

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

components/tools/toolViz/ScatterPlot.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ export default function Scatterplot({
9898
const colorScaler = d3.scaleSequential(colorInterpolator).domain(colorDomain);
9999

100100
// Selection handlers
101-
const createSelectionHandlers = useCallback((g: d3.Selection<SVGGElement, unknown, null, undefined>,
102-
scatter: d3.Selection<SVGGElement, unknown, null, undefined>,
103-
width: number, height: number) => {
101+
const createSelectionHandlers = useCallback((g: d3.Selection<SVGGElement, unknown, null, undefined>,
102+
scatter: d3.Selection<SVGGElement, unknown, null, undefined>,
103+
width: number, height: number) => {
104104
let selectionStart: [number, number] | null = null;
105105
let selectionRect: d3.Selection<SVGRectElement, unknown, null, undefined> | null = null;
106106
let isSelecting = false;
@@ -340,7 +340,7 @@ export default function Scatterplot({
340340
});
341341

342342
// RIGHT CLICK DRAG = Selection window ONLY in select mode
343-
const { handleMouseDown, handleMouseMove, handleMouseUp, handleMouseLeave } =
343+
const { handleMouseDown, handleMouseMove, handleMouseUp, handleMouseLeave } =
344344
createSelectionHandlers(g, scatter, width, height);
345345

346346
// Remove any existing selection overlay first
@@ -459,15 +459,15 @@ export default function Scatterplot({
459459
}
460460
}
461461

462-
const modeInstruction = mode === 'zoom'
463-
? '🖱️ Click bubbles to open modal, wheel/drag to zoom'
462+
const modeInstruction = mode === 'zoom'
463+
? '🖱️ Click bubbles to open modal, wheel/drag to zoom'
464464
: '📦 Right-drag to select bubbles, click to open modal';
465465

466466
return (
467467
<div ref={parentRef} className="w-full">
468468
<svg ref={svgRef} />
469469
<Screenshotter svgRef={svgRef} />
470-
470+
471471
<Group justify="apart" mt="xs" mb="xs">
472472
<Group>
473473
<Button

0 commit comments

Comments
 (0)