Bug Report: Incorrect cusp angle access in RadixChart.js and TransitChart.js
Description
There's a bug in the RadixChart.js file at line 186 (and in TransitChart.js) where the code attempts to access cusp angles but returns the entire cusp object instead of just the angle value. And the Ascendant (AS) angle is hardcoded to 0, but it should use the angle from cusp 0.
Current Code (Line 186)
toPoints = toPoints ?? [...this.#data.points, {name:"AS", angle:0}, {name:"IC", angle:this.#data.cusps.at(3)}, {name:"DS", angle:this.#data.cusps.at(6)}, {name:"MC", angle:this.#data.cusps.at(9)}]
Problem
There are two issues in this code:
- Incorrect cusp angle access: The cusp data structure contains objects with an
angle property:
"cusps": [
{angle: 300},
{angle: 340},
{angle: 30},
{angle: 60},
{angle: 75},
{angle: 90},
{angle: 116},
{angle: 172},
{angle: 210},
{angle: 236},
{angle: 250},
{angle: 274}
]
Currently, this.#data.cusps.at(3) returns the entire object {angle: 60} instead of just the angle value 60.
- Incorrect Ascendant angle: The Ascendant (AS) angle is hardcoded to
0, but it should use the angle from cusp 0 (first house cusp), which represents the Ascendant in astrology.
Expected Behavior
The code should:
- Access the
angle property of each cusp object
- Use the correct cusp angle for the Ascendant (cusp 0)
Proposed Fix
toPoints = toPoints ?? [...this.#data.points, {name:"AS", angle:this.#data.cusps.at(0)?.angle}, {name:"IC", angle:this.#data.cusps.at(3)?.angle}, {name:"DS", angle:this.#data.cusps.at(6)?.angle}, {name:"MC", angle:this.#data.cusps.at(9)?.angle}]
Impact
This bug affects the proper positioning of all major astrological points (AS, IC, DS, MC) in the radix chart:
- AS, IC, DS, MC receive object references instead of numerical angle values
- Ascendant (AS) is positioned incorrectly at 0° instead of its actual calculated position
File Location
- File:
src/charts/RadixChart.js
- Line: 186
- File:
src/charts/TransitChart.js
- Line: 114
Bug Report: Incorrect cusp angle access in RadixChart.js and TransitChart.js
Description
There's a bug in the RadixChart.js file at line 186 (and in TransitChart.js) where the code attempts to access cusp angles but returns the entire cusp object instead of just the angle value. And the Ascendant (AS) angle is hardcoded to
0, but it should use the angle from cusp 0.Current Code (Line 186)
Problem
There are two issues in this code:
angleproperty:Currently,
this.#data.cusps.at(3)returns the entire object{angle: 60}instead of just the angle value60.0, but it should use the angle from cusp 0 (first house cusp), which represents the Ascendant in astrology.Expected Behavior
The code should:
angleproperty of each cusp objectProposed Fix
Impact
This bug affects the proper positioning of all major astrological points (AS, IC, DS, MC) in the radix chart:
File Location
src/charts/RadixChart.jssrc/charts/TransitChart.js