1- import { FormedAspect } from './aspect' ;
1+ import { type FormedAspect } from './aspect' ;
22import Transit from './transit' ;
3- import SVG from './svg' ;
4- import { Settings } from './settings' ;
5- export declare type Points = {
6- [ key : string ] : number [ ] ;
7- } ;
8- export declare type LocatedPoint = {
9- name ?: string ;
3+ import type SVG from './svg' ;
4+ import { type Settings } from './settings' ;
5+ export type Points = Record < string , number [ ] > ;
6+ export interface LocatedPoint {
7+ name : string ;
108 x : number ;
119 y : number ;
1210 r : number ;
1311 angle : number ;
1412 pointer ?: number ;
1513 index ?: number ;
16- } ;
17- export declare type AstroData = {
14+ }
15+ export interface AstroData {
1816 planets : Points ;
1917 cusps : number [ ] ;
20- } ;
18+ }
2119/**
22- * Radix charts.
23- *
24- * @class
25- * @public
26- * @constructor
27- * @param {this.settings.SVG } paper
28- * @param {int } cx
29- * @param {int } cy
30- * @param {int } radius
31- * @param {Object } data
32- */
20+ * Radix charts.
21+ *
22+ * @class
23+ * @public
24+ * @constructor
25+ * @param {this.settings.SVG } paper
26+ * @param {int } cx
27+ * @param {int } cy
28+ * @param {int } radius
29+ * @param {Object } data
30+ */
3331declare class Radix {
3432 settings : Settings ;
3533 data : AstroData ;
@@ -46,8 +44,8 @@ declare class Radix {
4644 context : this;
4745 constructor ( paper : SVG , cx : number , cy : number , radius : number , data : AstroData , settings : Settings ) ;
4846 /**
49- * Draw background
50- */
47+ * Draw background
48+ */
5149 drawBg ( ) : void ;
5250 /**
5351 * Draw universe.
@@ -66,13 +64,13 @@ declare class Radix {
6664 * Draw aspects
6765 * @param {Array<Object> | null } customAspects - posible custom aspects to draw;
6866 */
69- aspects ( customAspects ?: FormedAspect [ ] | null ) : this ;
67+ aspects ( customAspects ?: FormedAspect [ ] | null ) : Radix ;
7068 /**
7169 * Add points of interest for aspects calculation
7270 * @param {Obect } points, {"As":[0],"Ic":[90],"Ds":[180],"Mc":[270]}
7371 * @see (this.settings.AspectCalculator( toPoints) )
7472 */
75- addPointsOfInterest ( points : Points ) : this ;
73+ addPointsOfInterest ( points : Points ) : Radix ;
7674 drawRuler ( ) : void ;
7775 /**
7876 * Draw circles
@@ -83,12 +81,12 @@ declare class Radix {
8381 *
8482 * @param {Object } data
8583 * @example
86- * {
87- * "planets":{"Moon":[0], "Sun":[30], ... },
88- * "cusps":[300, 340, 30, 60, 75, 90, 116, 172, 210, 236, 250, 274], *
89- * }
84+ * {
85+ * "planets":{"Moon":[0], "Sun":[30], ... },
86+ * "cusps":[300, 340, 30, 60, 75, 90, 116, 172, 210, 236, 250, 274], *
87+ * }
9088 *
91- * @return {this.settings. Transit } transit
89+ * @return {Transit } transit
9290 */
9391 transit ( data : AstroData ) : Transit ;
9492}
0 commit comments