diff --git a/src/components/ColorScatterPlot.svelte b/src/components/ColorScatterPlot.svelte
index 855d5585..2ff153de 100644
--- a/src/components/ColorScatterPlot.svelte
+++ b/src/components/ColorScatterPlot.svelte
@@ -248,7 +248,7 @@
}
}
- let CircleProps = (color: Color) => ({
+ let CircleProps = (color: Color, i: number) => ({
cx: x(color),
cy: y(color),
r: 10,
@@ -289,6 +289,12 @@
function selectionStart() {}
function selectionUpdate() {}
function selectionEnd() {}
+ const clickPoint = (i: number) => (e: any) => {
+ const isMeta = e.metaKey || e.shiftKey;
+ const newElements = isMeta ? toggleElement(focusedColors, i) : [i];
+
+ onFocusedColorsChange(newElements);
+ };
@@ -300,14 +306,7 @@
-