chore: remove unused code
This commit is contained in:
@@ -75,7 +75,6 @@ export type {
|
|||||||
export {
|
export {
|
||||||
appliedFontsManager,
|
appliedFontsManager,
|
||||||
createUnifiedFontStore,
|
createUnifiedFontStore,
|
||||||
selectedFontsStore,
|
|
||||||
unifiedFontStore,
|
unifiedFontStore,
|
||||||
} from './model';
|
} from './model';
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ export {
|
|||||||
appliedFontsManager,
|
appliedFontsManager,
|
||||||
createUnifiedFontStore,
|
createUnifiedFontStore,
|
||||||
type FontConfigRequest,
|
type FontConfigRequest,
|
||||||
selectedFontsStore,
|
|
||||||
type UnifiedFontStore,
|
type UnifiedFontStore,
|
||||||
unifiedFontStore,
|
unifiedFontStore,
|
||||||
} from './store';
|
} from './store';
|
||||||
|
|||||||
@@ -18,6 +18,3 @@ export {
|
|||||||
appliedFontsManager,
|
appliedFontsManager,
|
||||||
type FontConfigRequest,
|
type FontConfigRequest,
|
||||||
} from './appliedFontsStore/appliedFontsStore.svelte';
|
} from './appliedFontsStore/appliedFontsStore.svelte';
|
||||||
|
|
||||||
// Selected fonts store (user selection - unchanged)
|
|
||||||
export { selectedFontsStore } from './selectedFontsStore/selectedFontsStore.svelte';
|
|
||||||
|
|||||||
@@ -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>([]);
|
|
||||||
@@ -6,10 +6,7 @@
|
|||||||
import { cn } from '$shared/shadcn/utils/shadcn-utils';
|
import { cn } from '$shared/shadcn/utils/shadcn-utils';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
import { Spring } from 'svelte/motion';
|
import { Spring } from 'svelte/motion';
|
||||||
import {
|
import { type UnifiedFont } from '../../model';
|
||||||
type UnifiedFont,
|
|
||||||
selectedFontsStore,
|
|
||||||
} from '../../model';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
/**
|
/**
|
||||||
@@ -36,7 +33,6 @@ interface Props {
|
|||||||
|
|
||||||
const { font, isFullyVisible, isPartiallyVisible, proximity, children }: Props = $props();
|
const { font, isFullyVisible, isPartiallyVisible, proximity, children }: Props = $props();
|
||||||
|
|
||||||
const selected = $derived(selectedFontsStore.has(font.id));
|
|
||||||
let timeoutId = $state<NodeJS.Timeout | null>(null);
|
let timeoutId = $state<NodeJS.Timeout | null>(null);
|
||||||
|
|
||||||
// Create a spring for smooth scale animation
|
// Create a spring for smooth scale animation
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
import {
|
import {
|
||||||
FontApplicator,
|
FontApplicator,
|
||||||
type UnifiedFont,
|
type UnifiedFont,
|
||||||
selectedFontsStore,
|
|
||||||
} from '$entities/Font';
|
} from '$entities/Font';
|
||||||
import { controlManager } from '$features/SetupFont';
|
import { controlManager } from '$features/SetupFont';
|
||||||
import {
|
import {
|
||||||
@@ -48,10 +47,6 @@ const fontWeight = $derived(controlManager.weight);
|
|||||||
const fontSize = $derived(controlManager.renderedSize);
|
const fontSize = $derived(controlManager.renderedSize);
|
||||||
const lineHeight = $derived(controlManager.height);
|
const lineHeight = $derived(controlManager.height);
|
||||||
const letterSpacing = $derived(controlManager.spacing);
|
const letterSpacing = $derived(controlManager.spacing);
|
||||||
|
|
||||||
function removeSample() {
|
|
||||||
selectedFontsStore.removeOne(font.id);
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user