From 720590450d84169f9a3490b7646f0984bb147c19 Mon Sep 17 00:00:00 2001 From: Andrew Michael McNutt Date: Thu, 11 Jan 2024 12:51:30 -0800 Subject: [PATCH] clean up --- src/content-modules/ComparePal.svelte | 2 ++ src/lib/Color.ts | 1 - src/stores/color-store.ts | 6 ------ 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/content-modules/ComparePal.svelte b/src/content-modules/ComparePal.svelte index 435497a4..613874ac 100644 --- a/src/content-modules/ComparePal.svelte +++ b/src/content-modules/ComparePal.svelte @@ -31,6 +31,8 @@ width={450} onColorsChange={() => {}} onFocusedColorsChange={() => {}} + startDragging={() => {}} + stopDragging={() => {}} /> {/if} diff --git a/src/lib/Color.ts b/src/lib/Color.ts index 6a369dbd..fc6facac 100644 --- a/src/lib/Color.ts +++ b/src/lib/Color.ts @@ -16,7 +16,6 @@ export class Color { } const newHex = this.toColorIO().to("srgb").toString({ format: "hex" }); // const oldHex = this.chromaBind(...this.toChannels()).hex(); - // console.log(newHex, oldHex); // return this.chromaBind(...this.toChannels()).hex(); hexCache.set(str, newHex); return newHex; diff --git a/src/stores/color-store.ts b/src/stores/color-store.ts index f18bc11f..c156f48e 100644 --- a/src/stores/color-store.ts +++ b/src/stores/color-store.ts @@ -157,12 +157,6 @@ function createStore() { ); const persistUpdate = (updateFunc: (old: StoreData) => StoreData) => update((oldStore) => { - console.log( - "persist update", - pausePersistance, - undoStack.length, - redoStack.length - ); if (pausePersistance) { lastStore = oldStore; return updateFunc(oldStore);