<?php

declare(strict_types=1);

namespace App\Framework\Svg\ValueObjects\Text;

/**
 * Enum for SVG dominant-baseline values
 * Defines vertical text alignment
 * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/dominant-baseline
 */
enum DominantBaseline: string
{
    case AUTO = 'auto';                     // Default
    case MIDDLE = 'middle';                 // Centered vertically
    case HANGING = 'hanging';               // Top-aligned
    case MATHEMATICAL = 'mathematical';     // Math baseline
    case TEXT_BOTTOM = 'text-bottom';      // Bottom-aligned
    case TEXT_TOP = 'text-top';            // Top of text
    case CENTRAL = 'central';               // Geometric center
}
