/** * 模板编辑器常量 */ import type { TransitionEffect, EditPlanStatus } from "./types" /** 转场效果选项(14 种预设) */ export const TRANSITION_OPTIONS: { value: TransitionEffect["type"] label: string icon: string }[] = [ { value: "none", label: "无转场", icon: "⊘" }, { value: "cut", label: "硬切", icon: "✂" }, { value: "fade", label: "淡入淡出", icon: "◐" }, { value: "dissolve", label: "溶解", icon: "◈" }, { value: "zoom", label: "缩放", icon: "⊕" }, { value: "slide_left", label: "左滑", icon: "←" }, { value: "slide_right", label: "右滑", icon: "→" }, { value: "slide_up", label: "上滑", icon: "↑" }, { value: "slide_down", label: "下滑", icon: "↓" }, { value: "wipe_left", label: "左擦除", icon: "▸|" }, { value: "wipe_right", label: "右擦除", icon: "|◂" }, { value: "wipe_up", label: "上擦除", icon: "▴̄" }, { value: "wipe_down", label: "下擦除", icon: "▾̄" }, { value: "circlecrop", label: "圆形裁切", icon: "●" }, { value: "rectcrop", label: "矩形裁切", icon: "■" }, ] /** 素材类型标签 */ export const MATERIAL_TYPE_LABELS: Record = { video: "视频", image: "图片", audio: "音频", voiceover: "配音", } /** 素材类型图标 */ export const MATERIAL_TYPE_ICONS: Record = { video: "🎬", image: "🖼️", audio: "🎵", voiceover: "🎙️", } /** 计划状态标签 */ export const PLAN_STATUS_LABELS: Record = { draft: "草稿", editing: "编辑中", rendering: "渲染中", completed: "已完成", failed: "失败", cancelled: "已取消", } /** 质量分筛选选项 */ export const QUALITY_OPTIONS: { value: string label: string min?: number max?: number }[] = [ { value: "all", label: "全部质量" }, { value: "high", label: "高质量 (80-100)", min: 80, max: 100 }, { value: "medium", label: "中质量 (50-79)", min: 50, max: 79 }, { value: "low", label: "低质量 (0-49)", min: 0, max: 49 }, ]