From 46b6b54d8d105d4719f8c71194fb6de301ab68d2 Mon Sep 17 00:00:00 2001 From: Andrew Michael McNutt Date: Wed, 14 Feb 2024 14:36:44 -0800 Subject: [PATCH] some refactoring to make pal manipulation easier --- src/controls/Config.svelte | 2 + src/controls/NewPal.svelte | 20 ++---- src/controls/SuggestColorPal.svelte | 4 +- .../SuggestionModificationToSelection.svelte | 16 +---- src/example/Examples.svelte | 21 ++---- src/lib/ColorLint.test.ts | 64 +++++++------------ src/lib/CustomLint.ts | 4 +- src/lib/lint-language/LintLanguage.test.ts | 2 + src/lib/linter-tools/lint-worker.worker.ts | 2 + src/lib/lints/diverging-order.ts | 4 +- src/lib/lints/even-distribution.ts | 4 +- src/lib/utils.ts | 53 ++++++++++++++- src/stores/color-store.ts | 17 +---- src/stores/lint-store.ts | 4 +- src/types.ts | 14 ++++ 15 files changed, 123 insertions(+), 108 deletions(-) diff --git a/src/controls/Config.svelte b/src/controls/Config.svelte index e67a17e4..d3c7271f 100644 --- a/src/controls/Config.svelte +++ b/src/controls/Config.svelte @@ -55,6 +55,8 @@ evalConfig: {}, name, type, + intendedAffects: [], + intendedContexts: [], }; }); colorStore.setPalettes(pals); diff --git a/src/controls/NewPal.svelte b/src/controls/NewPal.svelte index 037b02af..61f3d779 100644 --- a/src/controls/NewPal.svelte +++ b/src/controls/NewPal.svelte @@ -1,13 +1,18 @@