fixes/immediate #23

Merged
ilia merged 9 commits from fixes/immediate into main 2026-02-10 08:50:46 +00:00
6 changed files with 1 additions and 22 deletions
Showing only changes of commit 422363d329 - Show all commits

View File

@@ -75,7 +75,6 @@ export type {
export {
appliedFontsManager,
createUnifiedFontStore,
selectedFontsStore,
unifiedFontStore,
} from './model';

View File

@@ -38,7 +38,6 @@ export {
appliedFontsManager,
createUnifiedFontStore,
type FontConfigRequest,
selectedFontsStore,
type UnifiedFontStore,
unifiedFontStore,
} from './store';

View File

@@ -18,6 +18,3 @@ export {
appliedFontsManager,
type FontConfigRequest,
} from './appliedFontsStore/appliedFontsStore.svelte';
// Selected fonts store (user selection - unchanged)
export { selectedFontsStore } from './selectedFontsStore/selectedFontsStore.svelte';

View File

@@ -1,7 +0,0 @@
import { createEntityStore } from '$shared/lib';
import type { UnifiedFont } from '../../types';
/**
* Store that handles collection of selected fonts
*/
export const selectedFontsStore = createEntityStore<UnifiedFont>([]);

View File

@@ -6,10 +6,7 @@
import { cn } from '$shared/shadcn/utils/shadcn-utils';
import type { Snippet } from 'svelte';
import { Spring } from 'svelte/motion';
import {
type UnifiedFont,
selectedFontsStore,
} from '../../model';
import { type UnifiedFont } from '../../model';
interface Props {
/**
@@ -36,7 +33,6 @@ interface Props {
const { font, isFullyVisible, isPartiallyVisible, proximity, children }: Props = $props();
const selected = $derived(selectedFontsStore.has(font.id));
let timeoutId = $state<NodeJS.Timeout | null>(null);
// Create a spring for smooth scale animation

View File

@@ -6,7 +6,6 @@
import {
FontApplicator,
type UnifiedFont,
selectedFontsStore,
} from '$entities/Font';
import { controlManager } from '$features/SetupFont';
import {
@@ -48,10 +47,6 @@ const fontWeight = $derived(controlManager.weight);
const fontSize = $derived(controlManager.renderedSize);
const lineHeight = $derived(controlManager.height);
const letterSpacing = $derived(controlManager.spacing);
function removeSample() {
selectedFontsStore.removeOne(font.id);
}
</script>
<div