From 97b511fb909c4afbf4b44496e6acdc02be3adb11 Mon Sep 17 00:00:00 2001 From: Andrew Michael McNutt Date: Sat, 27 Jan 2024 16:08:49 -0800 Subject: [PATCH] selection bugs, rearranging things for maureen --- README.md | 8 ++ src/App.svelte | 33 ++++--- src/components/PalPreview.svelte | 16 ++- src/components/SwatchTooltipContent.svelte | 25 ----- src/content-modules/ComparePal.svelte | 57 +++++++---- src/content-modules/Controls.svelte | 9 +- src/content-modules/LeftPanel.svelte | 2 +- src/controls/AdjustOrder.svelte | 56 +++++++++++ src/controls/GetColorsFromString.svelte | 20 ++-- src/controls/ModifySelection.svelte | 108 ++++++++++++--------- src/scatterplot/ColorScatterPlot.svelte | 6 +- 11 files changed, 225 insertions(+), 115 deletions(-) create mode 100644 src/controls/AdjustOrder.svelte diff --git a/README.md b/README.md index 96b447ef..d65e3465 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,11 @@ First time you start it up you should also run `yarn prep data` # Todo bankruptcy +- [ ] Gamut algorithm broken again +- [ ] Allow no palettes, allows renaming of non-current palettes +- [ ] MS didn't like the location of the new button +- [ ] Colors from String should save on enter +- [ ] Changing spaces is pretty bad on lab <-> oklab, cf ("#35ffbf", "#87b995", "#e84f82") - [ ] "new from blank" "new from small generic palette" buttons in the new menu. - [ ] "Easy on ramp" progressive disclosure - [ ] per cols 4 all: color blindness metric should maybe be sensitive to task? @@ -26,6 +31,9 @@ First time you start it up you should also run `yarn prep data` - [ ] Bug: rotate in polar coordinates doesn't work right - [ ] Ad hoc lints seem possible, do a spike - [ ] Directional subtlies for aligns, they do not work in polar also +- [x] Bug: if comparing the same palette in two spaces, make a change and the space reverts +- [x] Compare: should show the values a pal preview +- [x] Deselect: In the row of colors, clicking on a selected color should deselect it - [x] Tool tip not staying put - [x] Chore: Extract some common types into a top level location (like types.ts type thing) - [x] For the palettes, there is a copy and delete bug. Try this: Copy Example 2, then immediately click delete (menu is still up). Surpise! diff --git a/src/App.svelte b/src/App.svelte index 1c9b9f6f..ba454a82 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -21,6 +21,8 @@ import SuggestName from "./controls/SuggestName.svelte"; import GetColorsFromString from "./controls/GetColorsFromString.svelte"; import NewPal from "./controls/NewPal.svelte"; + import AdjustOrder from "./controls/AdjustOrder.svelte"; + import ModifySelection from "./controls/ModifySelection.svelte"; import ContentEditable from "./components/ContentEditable.svelte"; @@ -78,6 +80,17 @@ +
+ colorStore.setColorSpace(space)} + /> + colorStore.setBackground(bg)} + bg={currentPal.background} + colorSpace={currentPal.colorSpace} + /> +
- colorStore.setBackground(bg)} - bg={currentPal.background} - colorSpace={currentPal.colorSpace} - /> - colorStore.setColorSpace(space)} - /> - + + +
@@ -117,7 +123,12 @@ pal={currentPal} allowModification={true} /> - + colorStore.setCurrentPalColors(colors)} + colorSpace={currentPal.colorSpace} + colors={currentPal.colors} + />
This is a