diff --git a/visual-editor/src/auto/lang.json b/visual-editor/src/auto/lang.json index 5cc821f12..c730425ee 100644 --- a/visual-editor/src/auto/lang.json +++ b/visual-editor/src/auto/lang.json @@ -44,6 +44,7 @@ "props.align_bottom": "Снизу", "props.align_start": "В начале", "props.align_end": "В конце", + "props.align_baseline": "По базовой линии", "props.alpha": "Непрозрачность", "props.rotation": "Поворот", "props.insets": "Отступы", @@ -414,6 +415,7 @@ "props.align_bottom": "Bottom", "props.align_start": "Start", "props.align_end": "End", + "props.align_baseline": "Baseline", "props.alpha": "Alpha", "props.rotation": "Rotation", "props.insets": "Margins and paddings", diff --git a/visual-editor/src/lib.ts b/visual-editor/src/lib.ts index 04cca53bd..902d663b1 100644 --- a/visual-editor/src/lib.ts +++ b/visual-editor/src/lib.ts @@ -100,10 +100,13 @@ export type GetTranslationSuggest = (query: string, locale: string) => Promise Promise | undefined>; +export type FileDialogAlign = 'top' | 'center' | 'bottom' | 'baseline'; + export interface FileDialogValue { url: string; width?: number; height?: number; + align?: FileDialogAlign; } export type FileDialogCallback = (opts: FileDialogValue) => void; @@ -114,6 +117,7 @@ export interface FileDialogShowProps { subtype: 'image' | 'gif' | 'lottie' | 'video' | 'image_preview'; direction?: 'left' | 'right'; hasSize?: boolean; + hasAlign?: boolean; hasDelete?: boolean; target: HTMLElement; disabled?: boolean; diff --git a/visual-editor/src/lib/components/InplaceEditor.svelte b/visual-editor/src/lib/components/InplaceEditor.svelte index 863290d90..69e8eda8d 100644 --- a/visual-editor/src/lib/components/InplaceEditor.svelte +++ b/visual-editor/src/lib/components/InplaceEditor.svelte @@ -1,3 +1,7 @@ + +