UNPKG

hatch-slidev-builder-mcp

Version:

A comprehensive MCP server for creating Slidev presentations with component library, interactive elements, and team collaboration features

39 lines (38 loc) 1.29 kB
/** * Layer 2: Layout Optimization Engine * Smart layout selection based on content type and design patterns */ export interface LayoutPattern { name: string; grid_system: '12-column' | '8-column' | 'flexbox' | 'css-grid'; visual_hierarchy: 'Z-pattern' | 'F-pattern' | 'center-focused' | 'left-aligned'; layout_type: 'hero' | 'split' | 'grid' | 'timeline' | 'comparison' | 'process_flow'; responsive_breakpoints: string[]; best_for: string[]; } export interface LayoutRecommendation { pattern: LayoutPattern; confidence_score: number; accessibility_score: number; reason: string; css_framework: string; } export declare class LayoutOptimizationEngine { private static layouts; /** * Recommend optimal layout based on content analysis */ static recommendLayout(slideType: string, contentDensity: 'low' | 'medium' | 'high', audience: string, hasVisuals?: boolean): LayoutRecommendation; /** * Calculate accessibility score for layout */ private static calculateAccessibilityScore; /** * Generate CSS framework code for layout */ private static generateCSSFramework; /** * Generate responsive breakpoints */ static generateResponsiveCSS(layout: LayoutPattern): string; }