termcinema-engine 0.1.0

🧠 Core typewriter-style terminal animation engine (SVG renderer) for termcinema
Documentation
//! Default values for style, cursor, and control configurations.
//!
//! These constants are used as fallbacks when no values are provided
//! via CLI arguments, theme presets, or user overrides.

// ───────────────🎨 Style Defaults ───────────────

/// Default font size in pixels.
pub const DEFAULT_STYLE_FONT_SIZE: u32 = 18;

/// Default font family name (used in CSS `font-family`).
pub const DEFAULT_STYLE_FONT_FAMILY: &str = "Monospace";

/// Default text color in hexadecimal (e.g. white).
pub const DEFAULT_STYLE_TEXT_COLOR: &str = "#ffffff";

/// Default background color in hexadecimal (e.g. black).
pub const DEFAULT_STYLE_BACKGROUND_COLOR: &str = "#000000";

// ───────────────🖋 Cursor Defaults ───────────────

/// Default cursor character (e.g. vertical bar).
pub const DEFAULT_CURSOR_CHAR: &str = "|";

/// Horizontal cursor offset in pixels.
pub const DEFAULT_CURSOR_OFFSET_X: u32 = 20;

/// Whether cursor blinking is enabled by default.
pub const DEFAULT_CURSOR_BLINK: bool = true;

/// Default blinking interval in milliseconds.
pub const DEFAULT_CURSOR_BLINK_MS: u32 = 900;

/// Cursor opacity from 0.0 (transparent) to 1.0 (fully visible).
pub const DEFAULT_CURSOR_OPACITY: f32 = 1.0;

// ───────────────⏱ Control Defaults ───────────────

/// Delay before animation starts, in milliseconds.
pub const DEFAULT_CONTROL_START_DELAY: u32 = 600;

/// Duration of character fade-in, in milliseconds.
pub const DEFAULT_CONTROL_FADE_DURATION: u32 = 100;

/// Delay between each character during typing, in milliseconds.
pub const DEFAULT_CONTROL_FRAME_DELAY: u32 = 60;