Zodiac
Zodiac
Section titled “Zodiac”Utilities for working with zodiac signs and astrological positions.
Functions
Section titled “Functions”getZodiacSign(degrees: number): string
Section titled “getZodiacSign(degrees: number): string”Gets the zodiac sign for a given degree position.
Parameters:
degrees— Position in degrees (0–360)
Returns: Zodiac sign name (e.g., “Aries”, “Taurus”)
getZodiacDegrees(sign: string): number
Section titled “getZodiacDegrees(sign: string): number”Gets the starting degree for a zodiac sign.
Parameters:
sign— Zodiac sign name
Returns: Starting degree position (0–360)
Example
Section titled “Example”import { getZodiacSign, getZodiacDegrees } from '@astrodraw/astrochart'
const sign = getZodiacSign(120) // "Leo"const degrees = getZodiacDegrees('Aries') // 0Next Steps
Section titled “Next Steps”- Guides — See zodiac in action
- API Reference — See all methods