diff --git a/components.d.ts b/components.d.ts index 83060de44..f9a2687db 100644 --- a/components.d.ts +++ b/components.d.ts @@ -16,6 +16,9 @@ declare module 'vue' { EditorCanvas: typeof import('./src/components/EditorCanvas.vue')['default'] FillSection: typeof import('./src/components/properties/FillSection.vue')['default'] IconLucideALargeSmall: typeof import('~icons/lucide/a-large-small')['default'] + IconLucideAlignCenter: typeof import('~icons/lucide/align-center')['default'] + IconLucideAlignLeft: typeof import('~icons/lucide/align-left')['default'] + IconLucideAlignRight: typeof import('~icons/lucide/align-right')['default'] IconLucideBaseline: typeof import('~icons/lucide/baseline')['default'] IconLucideCheck: typeof import('~icons/lucide/check')['default'] IconLucideChevronDown: typeof import('~icons/lucide/chevron-down')['default'] diff --git a/src/components/properties/TypographySection.vue b/src/components/properties/TypographySection.vue index 7ec27e53b..1a76cec7e 100644 --- a/src/components/properties/TypographySection.vue +++ b/src/components/properties/TypographySection.vue @@ -41,11 +41,7 @@ const currentWeightLabel = computed(() => WEIGHTS.find((w) => w.value === node.fontWeight)?.label ?? 'Regular' ) -const ALIGN_OPTIONS = [ - { value: 'LEFT' as const, icon: 'icon-lucide-align-left' }, - { value: 'CENTER' as const, icon: 'icon-lucide-align-center' }, - { value: 'RIGHT' as const, icon: 'icon-lucide-align-right' } -] +type TextAlign = 'LEFT' | 'CENTER' | 'RIGHT' async function openFontPicker() { fontPickerOpen.value = true @@ -181,15 +177,17 @@ onMounted(async () => {