kaabalah 6.4.4 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-5LPSD4IA.js +2272 -0
- package/dist/chunk-5LPSD4IA.js.map +1 -0
- package/dist/{chunk-UN7QMOMX.mjs → chunk-A7KBFASN.mjs} +3 -3
- package/dist/{chunk-UN7QMOMX.mjs.map → chunk-A7KBFASN.mjs.map} +1 -1
- package/dist/chunk-BJYIWIQC.mjs +2245 -0
- package/dist/chunk-BJYIWIQC.mjs.map +1 -0
- package/dist/{chunk-UG6HZK3Z.js → chunk-CZKASW5W.js} +3 -3
- package/dist/{chunk-UG6HZK3Z.js.map → chunk-CZKASW5W.js.map} +1 -1
- package/dist/cli.js +741 -27
- package/dist/cli.js.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +186 -106
- package/dist/index.mjs +3 -3
- package/dist/semantic/index.js +21 -21
- package/dist/semantic/index.mjs +2 -2
- package/dist/visual/index.d.mts +618 -1
- package/dist/visual/index.d.ts +618 -1
- package/dist/visual/index.js +87 -7
- package/dist/visual/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-EMTVK46M.js +0 -605
- package/dist/chunk-EMTVK46M.js.map +0 -1
- package/dist/chunk-EVH4J5E2.mjs +0 -598
- package/dist/chunk-EVH4J5E2.mjs.map +0 -1
package/dist/visual/index.d.mts
CHANGED
|
@@ -1,5 +1,507 @@
|
|
|
1
|
+
import { AspectName, AspectEdge, AspectSpec, ZodiacPosition, BirthChart } from '../astrology/index.mjs';
|
|
1
2
|
import { a6 as NodeId, _ as KaabalahTypes, R as SystemKey } from '../correspondence-model-DWXbAjC-.mjs';
|
|
2
3
|
|
|
4
|
+
type AstroWheelZodiacSign = "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces";
|
|
5
|
+
type AstroGlyphPrimitive = {
|
|
6
|
+
kind: "path";
|
|
7
|
+
d: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: "circle";
|
|
10
|
+
cx: number;
|
|
11
|
+
cy: number;
|
|
12
|
+
r: number;
|
|
13
|
+
} | {
|
|
14
|
+
kind: "line";
|
|
15
|
+
x1: number;
|
|
16
|
+
y1: number;
|
|
17
|
+
x2: number;
|
|
18
|
+
y2: number;
|
|
19
|
+
} | {
|
|
20
|
+
kind: "polyline";
|
|
21
|
+
points: string;
|
|
22
|
+
} | {
|
|
23
|
+
kind: "text";
|
|
24
|
+
text: string;
|
|
25
|
+
x?: number;
|
|
26
|
+
y?: number;
|
|
27
|
+
fontSize?: number;
|
|
28
|
+
fontWeight?: string | number;
|
|
29
|
+
} | {
|
|
30
|
+
kind: "raw";
|
|
31
|
+
markup: string;
|
|
32
|
+
};
|
|
33
|
+
type AstroWheelPlanetGlyphKey = "sun" | "moon" | "mercury" | "venus" | "mars" | "jupiter" | "saturn" | "uranus" | "neptune" | "pluto" | "earth" | "chiron" | "lilith" | "north node" | "south node" | "pars fortunae" | "ascendant" | "midheaven" | "descendant" | "nadir" | "vertex" | "retrograde";
|
|
34
|
+
type AstroWheelAspectGlyphKey = "conjunction" | "opposition" | "square" | "trine" | "sextile" | "semisquare" | "sesquisquare" | "inconjunct" | "semisextile";
|
|
35
|
+
type AstroWheelAngleGlyphKey = "asc" | "mc" | "dsc" | "ic" | "vertex";
|
|
36
|
+
type AstroGlyphCategory = "zodiac" | "planet" | "aspect" | "angle";
|
|
37
|
+
interface AstroGlyphDefinition {
|
|
38
|
+
key: string;
|
|
39
|
+
label: string;
|
|
40
|
+
category: AstroGlyphCategory;
|
|
41
|
+
primitives: readonly AstroGlyphPrimitive[];
|
|
42
|
+
aliases?: readonly string[];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare const ZODIAC_GLYPH_PRIMITIVES: {
|
|
46
|
+
Aries: {
|
|
47
|
+
kind: "raw";
|
|
48
|
+
markup: string;
|
|
49
|
+
}[];
|
|
50
|
+
Taurus: {
|
|
51
|
+
kind: "raw";
|
|
52
|
+
markup: string;
|
|
53
|
+
}[];
|
|
54
|
+
Gemini: {
|
|
55
|
+
kind: "raw";
|
|
56
|
+
markup: string;
|
|
57
|
+
}[];
|
|
58
|
+
Cancer: {
|
|
59
|
+
kind: "raw";
|
|
60
|
+
markup: string;
|
|
61
|
+
}[];
|
|
62
|
+
Leo: {
|
|
63
|
+
kind: "raw";
|
|
64
|
+
markup: string;
|
|
65
|
+
}[];
|
|
66
|
+
Virgo: {
|
|
67
|
+
kind: "raw";
|
|
68
|
+
markup: string;
|
|
69
|
+
}[];
|
|
70
|
+
Libra: {
|
|
71
|
+
kind: "raw";
|
|
72
|
+
markup: string;
|
|
73
|
+
}[];
|
|
74
|
+
Scorpio: {
|
|
75
|
+
kind: "raw";
|
|
76
|
+
markup: string;
|
|
77
|
+
}[];
|
|
78
|
+
Sagittarius: {
|
|
79
|
+
kind: "raw";
|
|
80
|
+
markup: string;
|
|
81
|
+
}[];
|
|
82
|
+
Capricorn: {
|
|
83
|
+
kind: "raw";
|
|
84
|
+
markup: string;
|
|
85
|
+
}[];
|
|
86
|
+
Aquarius: {
|
|
87
|
+
kind: "raw";
|
|
88
|
+
markup: string;
|
|
89
|
+
}[];
|
|
90
|
+
Pisces: {
|
|
91
|
+
kind: "raw";
|
|
92
|
+
markup: string;
|
|
93
|
+
}[];
|
|
94
|
+
};
|
|
95
|
+
declare const PLANET_GLYPH_PRIMITIVES: {
|
|
96
|
+
sun: {
|
|
97
|
+
kind: "raw";
|
|
98
|
+
markup: string;
|
|
99
|
+
}[];
|
|
100
|
+
moon: {
|
|
101
|
+
kind: "raw";
|
|
102
|
+
markup: string;
|
|
103
|
+
}[];
|
|
104
|
+
mercury: {
|
|
105
|
+
kind: "raw";
|
|
106
|
+
markup: string;
|
|
107
|
+
}[];
|
|
108
|
+
venus: {
|
|
109
|
+
kind: "raw";
|
|
110
|
+
markup: string;
|
|
111
|
+
}[];
|
|
112
|
+
mars: {
|
|
113
|
+
kind: "raw";
|
|
114
|
+
markup: string;
|
|
115
|
+
}[];
|
|
116
|
+
jupiter: {
|
|
117
|
+
kind: "raw";
|
|
118
|
+
markup: string;
|
|
119
|
+
}[];
|
|
120
|
+
saturn: {
|
|
121
|
+
kind: "raw";
|
|
122
|
+
markup: string;
|
|
123
|
+
}[];
|
|
124
|
+
uranus: {
|
|
125
|
+
kind: "raw";
|
|
126
|
+
markup: string;
|
|
127
|
+
}[];
|
|
128
|
+
neptune: {
|
|
129
|
+
kind: "raw";
|
|
130
|
+
markup: string;
|
|
131
|
+
}[];
|
|
132
|
+
pluto: {
|
|
133
|
+
kind: "raw";
|
|
134
|
+
markup: string;
|
|
135
|
+
}[];
|
|
136
|
+
earth: {
|
|
137
|
+
kind: "raw";
|
|
138
|
+
markup: string;
|
|
139
|
+
}[];
|
|
140
|
+
chiron: {
|
|
141
|
+
kind: "raw";
|
|
142
|
+
markup: string;
|
|
143
|
+
}[];
|
|
144
|
+
"north node": readonly AstroGlyphPrimitive[];
|
|
145
|
+
"south node": readonly AstroGlyphPrimitive[];
|
|
146
|
+
lilith: readonly AstroGlyphPrimitive[];
|
|
147
|
+
"pars fortunae": readonly AstroGlyphPrimitive[];
|
|
148
|
+
ascendant: readonly AstroGlyphPrimitive[];
|
|
149
|
+
midheaven: readonly AstroGlyphPrimitive[];
|
|
150
|
+
descendant: readonly AstroGlyphPrimitive[];
|
|
151
|
+
nadir: readonly AstroGlyphPrimitive[];
|
|
152
|
+
vertex: readonly AstroGlyphPrimitive[];
|
|
153
|
+
retrograde: readonly AstroGlyphPrimitive[];
|
|
154
|
+
};
|
|
155
|
+
declare const ASPECT_GLYPH_PRIMITIVES: {
|
|
156
|
+
conjunction: readonly AstroGlyphPrimitive[];
|
|
157
|
+
opposition: readonly AstroGlyphPrimitive[];
|
|
158
|
+
square: readonly AstroGlyphPrimitive[];
|
|
159
|
+
trine: readonly AstroGlyphPrimitive[];
|
|
160
|
+
sextile: readonly AstroGlyphPrimitive[];
|
|
161
|
+
semisquare: readonly AstroGlyphPrimitive[];
|
|
162
|
+
sesquisquare: readonly AstroGlyphPrimitive[];
|
|
163
|
+
semisextile: readonly AstroGlyphPrimitive[];
|
|
164
|
+
inconjunct: readonly AstroGlyphPrimitive[];
|
|
165
|
+
};
|
|
166
|
+
declare const ANGLE_GLYPH_PRIMITIVES: {
|
|
167
|
+
asc: readonly AstroGlyphPrimitive[];
|
|
168
|
+
mc: readonly AstroGlyphPrimitive[];
|
|
169
|
+
dsc: readonly AstroGlyphPrimitive[];
|
|
170
|
+
ic: readonly AstroGlyphPrimitive[];
|
|
171
|
+
vertex: readonly AstroGlyphPrimitive[];
|
|
172
|
+
};
|
|
173
|
+
declare const ZODIAC_GLYPHS: Record<AstroWheelZodiacSign, AstroGlyphDefinition>;
|
|
174
|
+
declare const PLANET_GLYPHS: Record<AstroWheelPlanetGlyphKey, AstroGlyphDefinition>;
|
|
175
|
+
declare const ASPECT_GLYPHS: Record<AstroWheelAspectGlyphKey, AstroGlyphDefinition>;
|
|
176
|
+
declare const ANGLE_GLYPHS: Record<AstroWheelAngleGlyphKey, AstroGlyphDefinition>;
|
|
177
|
+
declare const ASTRO_GLYPHS: Record<string, AstroGlyphDefinition>;
|
|
178
|
+
declare function getAstroGlyph(key: string): AstroGlyphDefinition | undefined;
|
|
179
|
+
declare function listAstroGlyphs(category?: AstroGlyphCategory): AstroGlyphDefinition[];
|
|
180
|
+
|
|
181
|
+
interface AstroWheelViewBox {
|
|
182
|
+
minX?: number;
|
|
183
|
+
minY?: number;
|
|
184
|
+
width: number;
|
|
185
|
+
height: number;
|
|
186
|
+
}
|
|
187
|
+
type AstroWheelElement = "fire" | "earth" | "air" | "water";
|
|
188
|
+
interface AstroWheelPaletteOverrides {
|
|
189
|
+
ringStroke?: string;
|
|
190
|
+
label?: string;
|
|
191
|
+
subtle?: string;
|
|
192
|
+
zodiacStroke?: string;
|
|
193
|
+
zodiacGlyph?: string;
|
|
194
|
+
houseLine?: string;
|
|
195
|
+
houseLabel?: string;
|
|
196
|
+
angleLine?: string;
|
|
197
|
+
angleLabel?: string;
|
|
198
|
+
planetGlyph?: string;
|
|
199
|
+
planetTick?: string;
|
|
200
|
+
aspectGuide?: string;
|
|
201
|
+
signColors?: Partial<Record<AstroWheelZodiacSign, string>>;
|
|
202
|
+
elementColors?: Partial<Record<AstroWheelElement, string>>;
|
|
203
|
+
aspects?: Partial<Record<AspectName | (string & {}), string>>;
|
|
204
|
+
}
|
|
205
|
+
type AstroWheelPalette = "default" | "monochrome" | AstroWheelPaletteOverrides;
|
|
206
|
+
interface AstroWheelAspectOptions {
|
|
207
|
+
enabled?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Explicit aspect edges to render. When omitted, the renderer uses
|
|
210
|
+
* `chart.aspects`; if `aspectSpecs` is supplied it recomputes planet aspects.
|
|
211
|
+
*/
|
|
212
|
+
edges?: readonly AspectEdge[];
|
|
213
|
+
/** Recompute aspects from chart planets with caller-controlled orbs. */
|
|
214
|
+
aspectSpecs?: readonly AspectSpec[];
|
|
215
|
+
}
|
|
216
|
+
interface AstroWheelZodiacOptions {
|
|
217
|
+
segments?: boolean;
|
|
218
|
+
glyphs?: boolean;
|
|
219
|
+
ticks?: boolean;
|
|
220
|
+
}
|
|
221
|
+
interface AstroWheelHouseOptions {
|
|
222
|
+
labels?: boolean;
|
|
223
|
+
cuspLines?: boolean;
|
|
224
|
+
angles?: boolean;
|
|
225
|
+
}
|
|
226
|
+
interface AstroWheelPointOptions {
|
|
227
|
+
enabled?: boolean;
|
|
228
|
+
nodes?: boolean;
|
|
229
|
+
vertex?: boolean;
|
|
230
|
+
}
|
|
231
|
+
interface AstroWheelPointSource {
|
|
232
|
+
key?: string;
|
|
233
|
+
name: string;
|
|
234
|
+
longitude: number;
|
|
235
|
+
kind?: AstroWheelPointKind;
|
|
236
|
+
glyph?: string;
|
|
237
|
+
zodiacPosition?: ZodiacPosition;
|
|
238
|
+
}
|
|
239
|
+
interface AstroWheelPointLayerInput {
|
|
240
|
+
id: string;
|
|
241
|
+
label?: string;
|
|
242
|
+
chart?: BirthChart;
|
|
243
|
+
points?: readonly AstroWheelPointSource[];
|
|
244
|
+
color?: string;
|
|
245
|
+
tickColor?: string;
|
|
246
|
+
radius?: number | "inner" | "base" | "outer";
|
|
247
|
+
radiusOffset?: number;
|
|
248
|
+
glyphScale?: number;
|
|
249
|
+
nodes?: boolean;
|
|
250
|
+
vertex?: boolean;
|
|
251
|
+
}
|
|
252
|
+
interface AstroWheelAspectLayerInput {
|
|
253
|
+
id: string;
|
|
254
|
+
label?: string;
|
|
255
|
+
chart?: BirthChart;
|
|
256
|
+
edges?: readonly AspectEdge[];
|
|
257
|
+
aspectSpecs?: readonly AspectSpec[];
|
|
258
|
+
pointLayerId?: string;
|
|
259
|
+
color?: string;
|
|
260
|
+
colors?: Partial<Record<AspectName | (string & {}), string>>;
|
|
261
|
+
radius?: number;
|
|
262
|
+
radiusScale?: number;
|
|
263
|
+
strokeWidth?: number;
|
|
264
|
+
opacityScale?: number;
|
|
265
|
+
pointLayerIdA?: string;
|
|
266
|
+
pointLayerIdB?: string;
|
|
267
|
+
}
|
|
268
|
+
interface AstroWheelSvgOptions {
|
|
269
|
+
width?: number | string;
|
|
270
|
+
height?: number | string;
|
|
271
|
+
viewBox?: AstroWheelViewBox;
|
|
272
|
+
background?: string | "transparent";
|
|
273
|
+
palette?: AstroWheelPalette;
|
|
274
|
+
zodiac?: boolean | AstroWheelZodiacOptions;
|
|
275
|
+
aspects?: boolean | AstroWheelAspectOptions;
|
|
276
|
+
houses?: boolean | AstroWheelHouseOptions;
|
|
277
|
+
points?: boolean | AstroWheelPointOptions;
|
|
278
|
+
pointLayers?: readonly AstroWheelPointLayerInput[];
|
|
279
|
+
aspectLayers?: readonly AstroWheelAspectLayerInput[];
|
|
280
|
+
padding?: number;
|
|
281
|
+
title?: string;
|
|
282
|
+
}
|
|
283
|
+
interface AstroWheelCoordinate {
|
|
284
|
+
x: number;
|
|
285
|
+
y: number;
|
|
286
|
+
}
|
|
287
|
+
interface AstroWheelLine {
|
|
288
|
+
x1: number;
|
|
289
|
+
y1: number;
|
|
290
|
+
x2: number;
|
|
291
|
+
y2: number;
|
|
292
|
+
}
|
|
293
|
+
interface AstroWheelRing {
|
|
294
|
+
id: "aspects" | "planets" | "zodiac" | "houses";
|
|
295
|
+
r1: number;
|
|
296
|
+
r2: number;
|
|
297
|
+
}
|
|
298
|
+
interface AstroWheelZodiacSegment {
|
|
299
|
+
sign: AstroWheelZodiacSign;
|
|
300
|
+
glyph: string;
|
|
301
|
+
element: AstroWheelElement;
|
|
302
|
+
longitudeStart: number;
|
|
303
|
+
longitudeEnd: number;
|
|
304
|
+
angleStart: number;
|
|
305
|
+
angleEnd: number;
|
|
306
|
+
path: string;
|
|
307
|
+
fill: string;
|
|
308
|
+
labelPosition: AstroWheelCoordinate;
|
|
309
|
+
labelFontSize: number;
|
|
310
|
+
}
|
|
311
|
+
interface AstroWheelHouseCusp {
|
|
312
|
+
house: number;
|
|
313
|
+
longitude: number;
|
|
314
|
+
sign: string;
|
|
315
|
+
line: AstroWheelLine;
|
|
316
|
+
labelPosition: AstroWheelCoordinate;
|
|
317
|
+
labelFontSize: number;
|
|
318
|
+
}
|
|
319
|
+
interface AstroWheelAngleMarker {
|
|
320
|
+
key: "ASC" | "MC" | "DSC" | "IC";
|
|
321
|
+
longitude: number;
|
|
322
|
+
line: AstroWheelLine;
|
|
323
|
+
labelPosition: AstroWheelCoordinate;
|
|
324
|
+
labelFontSize: number;
|
|
325
|
+
}
|
|
326
|
+
type AstroWheelPointKind = "planet" | "node" | "vertex";
|
|
327
|
+
interface AstroWheelPoint {
|
|
328
|
+
layerId: string;
|
|
329
|
+
key: string;
|
|
330
|
+
name: string;
|
|
331
|
+
kind: AstroWheelPointKind;
|
|
332
|
+
glyph: string;
|
|
333
|
+
glyphKey?: string;
|
|
334
|
+
longitude: number;
|
|
335
|
+
displayLongitude: number;
|
|
336
|
+
zodiacPosition?: ZodiacPosition;
|
|
337
|
+
tickLine: AstroWheelLine;
|
|
338
|
+
glyphPosition: AstroWheelCoordinate;
|
|
339
|
+
glyphFontSize: number;
|
|
340
|
+
color: string;
|
|
341
|
+
tickColor: string;
|
|
342
|
+
}
|
|
343
|
+
interface AstroWheelAspectLine {
|
|
344
|
+
layerId: string;
|
|
345
|
+
planetA: string;
|
|
346
|
+
planetB: string;
|
|
347
|
+
planetAKey: string;
|
|
348
|
+
planetBKey: string;
|
|
349
|
+
aspect: AspectName | (string & {});
|
|
350
|
+
aspectAngle: number;
|
|
351
|
+
delta: number;
|
|
352
|
+
orb: number;
|
|
353
|
+
color: string;
|
|
354
|
+
opacity: number;
|
|
355
|
+
line: AstroWheelLine;
|
|
356
|
+
strokeWidth: number;
|
|
357
|
+
}
|
|
358
|
+
interface AstroWheelPointLayer {
|
|
359
|
+
id: string;
|
|
360
|
+
label?: string;
|
|
361
|
+
color: string;
|
|
362
|
+
tickColor: string;
|
|
363
|
+
radius: number;
|
|
364
|
+
points: readonly AstroWheelPoint[];
|
|
365
|
+
}
|
|
366
|
+
interface AstroWheelAspectLayer {
|
|
367
|
+
id: string;
|
|
368
|
+
label?: string;
|
|
369
|
+
aspectLines: readonly AstroWheelAspectLine[];
|
|
370
|
+
}
|
|
371
|
+
interface AstroWheelRenderModel {
|
|
372
|
+
viewBox: Required<AstroWheelViewBox>;
|
|
373
|
+
center: AstroWheelCoordinate;
|
|
374
|
+
outerRadius: number;
|
|
375
|
+
scale: number;
|
|
376
|
+
ascendantLongitude: number;
|
|
377
|
+
rings: Record<AstroWheelRing["id"], AstroWheelRing>;
|
|
378
|
+
zodiacSegments: readonly AstroWheelZodiacSegment[];
|
|
379
|
+
houseCusps: readonly AstroWheelHouseCusp[];
|
|
380
|
+
angleMarkers: readonly AstroWheelAngleMarker[];
|
|
381
|
+
points: readonly AstroWheelPoint[];
|
|
382
|
+
pointByKey: Record<string, AstroWheelPoint>;
|
|
383
|
+
aspectLines: readonly AstroWheelAspectLine[];
|
|
384
|
+
pointLayers: readonly AstroWheelPointLayer[];
|
|
385
|
+
aspectLayers: readonly AstroWheelAspectLayer[];
|
|
386
|
+
palette: ResolvedAstroWheelPalette;
|
|
387
|
+
}
|
|
388
|
+
interface ResolvedAstroWheelPalette {
|
|
389
|
+
ringStroke: string;
|
|
390
|
+
label: string;
|
|
391
|
+
subtle: string;
|
|
392
|
+
zodiacStroke: string;
|
|
393
|
+
zodiacGlyph: string;
|
|
394
|
+
houseLine: string;
|
|
395
|
+
houseLabel: string;
|
|
396
|
+
angleLine: string;
|
|
397
|
+
angleLabel: string;
|
|
398
|
+
planetGlyph: string;
|
|
399
|
+
planetTick: string;
|
|
400
|
+
aspectGuide: string;
|
|
401
|
+
signColors: Partial<Record<AstroWheelZodiacSign, string>>;
|
|
402
|
+
elementColors: Record<AstroWheelElement, string>;
|
|
403
|
+
aspects: Record<string, string>;
|
|
404
|
+
}
|
|
405
|
+
declare const ASTRO_WHEEL_DEFAULT_VIEWBOX: Required<AstroWheelViewBox>;
|
|
406
|
+
declare const ASTRO_WHEEL_DEFAULT_ASPECT_SPECS: readonly [{
|
|
407
|
+
readonly name: "conjunction";
|
|
408
|
+
readonly angle: 0;
|
|
409
|
+
readonly orb: 8;
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "duodecile";
|
|
412
|
+
readonly angle: 30;
|
|
413
|
+
readonly orb: 2;
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "octile";
|
|
416
|
+
readonly angle: 45;
|
|
417
|
+
readonly orb: 3;
|
|
418
|
+
}, {
|
|
419
|
+
readonly name: "sextile";
|
|
420
|
+
readonly angle: 60;
|
|
421
|
+
readonly orb: 5;
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "square";
|
|
424
|
+
readonly angle: 90;
|
|
425
|
+
readonly orb: 6;
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "trine";
|
|
428
|
+
readonly angle: 120;
|
|
429
|
+
readonly orb: 7;
|
|
430
|
+
}, {
|
|
431
|
+
readonly name: "trioctile";
|
|
432
|
+
readonly angle: 135;
|
|
433
|
+
readonly orb: 3;
|
|
434
|
+
}, {
|
|
435
|
+
readonly name: "quincunx";
|
|
436
|
+
readonly angle: 150;
|
|
437
|
+
readonly orb: 3;
|
|
438
|
+
}, {
|
|
439
|
+
readonly name: "opposition";
|
|
440
|
+
readonly angle: 180;
|
|
441
|
+
readonly orb: 8;
|
|
442
|
+
}];
|
|
443
|
+
declare const ASTRO_WHEEL_ZODIAC_SIGNS: readonly [{
|
|
444
|
+
readonly sign: "Aries";
|
|
445
|
+
readonly glyph: "♈";
|
|
446
|
+
readonly element: "fire";
|
|
447
|
+
}, {
|
|
448
|
+
readonly sign: "Taurus";
|
|
449
|
+
readonly glyph: "♉";
|
|
450
|
+
readonly element: "earth";
|
|
451
|
+
}, {
|
|
452
|
+
readonly sign: "Gemini";
|
|
453
|
+
readonly glyph: "♊";
|
|
454
|
+
readonly element: "air";
|
|
455
|
+
}, {
|
|
456
|
+
readonly sign: "Cancer";
|
|
457
|
+
readonly glyph: "♋";
|
|
458
|
+
readonly element: "water";
|
|
459
|
+
}, {
|
|
460
|
+
readonly sign: "Leo";
|
|
461
|
+
readonly glyph: "♌";
|
|
462
|
+
readonly element: "fire";
|
|
463
|
+
}, {
|
|
464
|
+
readonly sign: "Virgo";
|
|
465
|
+
readonly glyph: "♍";
|
|
466
|
+
readonly element: "earth";
|
|
467
|
+
}, {
|
|
468
|
+
readonly sign: "Libra";
|
|
469
|
+
readonly glyph: "♎";
|
|
470
|
+
readonly element: "air";
|
|
471
|
+
}, {
|
|
472
|
+
readonly sign: "Scorpio";
|
|
473
|
+
readonly glyph: "♏";
|
|
474
|
+
readonly element: "water";
|
|
475
|
+
}, {
|
|
476
|
+
readonly sign: "Sagittarius";
|
|
477
|
+
readonly glyph: "♐";
|
|
478
|
+
readonly element: "fire";
|
|
479
|
+
}, {
|
|
480
|
+
readonly sign: "Capricorn";
|
|
481
|
+
readonly glyph: "♑";
|
|
482
|
+
readonly element: "earth";
|
|
483
|
+
}, {
|
|
484
|
+
readonly sign: "Aquarius";
|
|
485
|
+
readonly glyph: "♒";
|
|
486
|
+
readonly element: "air";
|
|
487
|
+
}, {
|
|
488
|
+
readonly sign: "Pisces";
|
|
489
|
+
readonly glyph: "♓";
|
|
490
|
+
readonly element: "water";
|
|
491
|
+
}];
|
|
492
|
+
declare const ASTRO_WHEEL_POINT_GLYPHS: Record<string, string>;
|
|
493
|
+
interface GlyphSvgOptions {
|
|
494
|
+
size?: number;
|
|
495
|
+
color?: string;
|
|
496
|
+
strokeWidth?: number;
|
|
497
|
+
fill?: "none" | string;
|
|
498
|
+
background?: string | "transparent";
|
|
499
|
+
}
|
|
500
|
+
declare function generateGlyphSvg(primitives: readonly AstroGlyphPrimitive[], options?: GlyphSvgOptions): string;
|
|
501
|
+
declare function generateAstroGlyphSvg(keyOrGlyph: string | AstroGlyphDefinition, options?: GlyphSvgOptions): string;
|
|
502
|
+
declare function getAstroWheelRenderModel(chart: BirthChart, options?: AstroWheelSvgOptions): AstroWheelRenderModel;
|
|
503
|
+
declare function generateAstroWheelSvg(chart: BirthChart, options?: AstroWheelSvgOptions): string;
|
|
504
|
+
|
|
3
505
|
interface TreeSvgViewBox {
|
|
4
506
|
minX?: number;
|
|
5
507
|
minY?: number;
|
|
@@ -10,6 +512,7 @@ interface TreeLayoutCoordinate {
|
|
|
10
512
|
x: number;
|
|
11
513
|
y: number;
|
|
12
514
|
}
|
|
515
|
+
type TreeTargetState = "active" | "hovered" | "selected" | "inactive";
|
|
13
516
|
type TreeSphereName = "Kether" | "Chokhmah" | "Binah" | "Daath" | "Chesed" | "Geburah" | "Tiphareth" | "Netzach" | "Hod" | "Yesod" | "Malkuth";
|
|
14
517
|
type TreeSphereId = NodeId<KaabalahTypes.SPHERE>;
|
|
15
518
|
type TreePathId = NodeId<KaabalahTypes.PATH>;
|
|
@@ -50,6 +553,118 @@ interface TreeSvgHighlights {
|
|
|
50
553
|
spheres?: Partial<Record<TreeSphereId, string | string[]>>;
|
|
51
554
|
specialSphereMode?: "preserve" | "plain";
|
|
52
555
|
}
|
|
556
|
+
interface TreeTargetActivationInput {
|
|
557
|
+
targetId: TreeSphereId | TreePathId;
|
|
558
|
+
targetType: "sphere" | "path";
|
|
559
|
+
count: number;
|
|
560
|
+
total: number;
|
|
561
|
+
strength?: number;
|
|
562
|
+
state?: TreeTargetState;
|
|
563
|
+
color?: string;
|
|
564
|
+
}
|
|
565
|
+
interface TreeRenderAnchor {
|
|
566
|
+
x: number;
|
|
567
|
+
y: number;
|
|
568
|
+
vertical: "above" | "below";
|
|
569
|
+
}
|
|
570
|
+
interface TreeRenderCircleHitTarget {
|
|
571
|
+
kind: "circle";
|
|
572
|
+
cx: number;
|
|
573
|
+
cy: number;
|
|
574
|
+
r: number;
|
|
575
|
+
}
|
|
576
|
+
interface TreeRenderLineHitTarget {
|
|
577
|
+
kind: "line";
|
|
578
|
+
x1: number;
|
|
579
|
+
y1: number;
|
|
580
|
+
x2: number;
|
|
581
|
+
y2: number;
|
|
582
|
+
strokeWidth: number;
|
|
583
|
+
}
|
|
584
|
+
type TreeRenderHitTarget = TreeRenderCircleHitTarget | TreeRenderLineHitTarget;
|
|
585
|
+
interface TreeRenderActivationState {
|
|
586
|
+
state: TreeTargetState;
|
|
587
|
+
count: number;
|
|
588
|
+
total: number;
|
|
589
|
+
strength: number;
|
|
590
|
+
canonicalColor: string;
|
|
591
|
+
displayColor: string;
|
|
592
|
+
colorOverride?: string;
|
|
593
|
+
mutedColor: string;
|
|
594
|
+
visible: boolean;
|
|
595
|
+
emphasis: number;
|
|
596
|
+
}
|
|
597
|
+
interface TreeRenderSphereGeometry {
|
|
598
|
+
percentages: {
|
|
599
|
+
center: TreeLayoutCoordinate;
|
|
600
|
+
anchor: TreeRenderAnchor;
|
|
601
|
+
};
|
|
602
|
+
viewBoxUnits: {
|
|
603
|
+
center: TreeLayoutCoordinate;
|
|
604
|
+
anchor: TreeRenderAnchor;
|
|
605
|
+
hitTarget: TreeRenderCircleHitTarget;
|
|
606
|
+
};
|
|
607
|
+
radius: {
|
|
608
|
+
viewBoxUnits: number;
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
interface TreeRenderPathGeometry {
|
|
612
|
+
percentages: {
|
|
613
|
+
from: TreeLayoutCoordinate;
|
|
614
|
+
to: TreeLayoutCoordinate;
|
|
615
|
+
anchor: TreeRenderAnchor;
|
|
616
|
+
};
|
|
617
|
+
viewBoxUnits: {
|
|
618
|
+
from: TreeLayoutCoordinate;
|
|
619
|
+
to: TreeLayoutCoordinate;
|
|
620
|
+
anchor: TreeRenderAnchor;
|
|
621
|
+
hitTarget: TreeRenderLineHitTarget;
|
|
622
|
+
};
|
|
623
|
+
widths: {
|
|
624
|
+
edge: number;
|
|
625
|
+
main: number;
|
|
626
|
+
highlight: number;
|
|
627
|
+
hitTarget: number;
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
interface TreeRenderSphere {
|
|
631
|
+
id: TreeSphereId;
|
|
632
|
+
name: TreeSphereName;
|
|
633
|
+
slug: string;
|
|
634
|
+
canonicalColor: string;
|
|
635
|
+
displayFill: string | string[];
|
|
636
|
+
geometry: TreeRenderSphereGeometry;
|
|
637
|
+
material: {
|
|
638
|
+
kind: "standard" | "special";
|
|
639
|
+
specialSphereName?: Extract<TreeSphereName, "Kether" | "Chokhmah" | "Daath" | "Malkuth">;
|
|
640
|
+
preserveOnActivation: boolean;
|
|
641
|
+
};
|
|
642
|
+
activation: TreeRenderActivationState | null;
|
|
643
|
+
}
|
|
644
|
+
interface TreeRenderPath {
|
|
645
|
+
id: TreePathId;
|
|
646
|
+
geometry: TreeRenderPathGeometry;
|
|
647
|
+
canonicalColor: string;
|
|
648
|
+
displayColor: string;
|
|
649
|
+
activation: TreeRenderActivationState | null;
|
|
650
|
+
}
|
|
651
|
+
interface TreeRenderLayer {
|
|
652
|
+
name: "background" | "paths" | "spheres-behind-paths" | "spheres" | "hit-targets";
|
|
653
|
+
order: number;
|
|
654
|
+
description: string;
|
|
655
|
+
}
|
|
656
|
+
interface TreeRenderModel {
|
|
657
|
+
system: SystemKey;
|
|
658
|
+
viewBox: Required<TreeSvgViewBox>;
|
|
659
|
+
scale: number;
|
|
660
|
+
layout: TreeLayout;
|
|
661
|
+
layerOrder: readonly TreeRenderLayer["name"][];
|
|
662
|
+
layers: readonly TreeRenderLayer[];
|
|
663
|
+
spheres: readonly TreeRenderSphere[];
|
|
664
|
+
paths: readonly TreeRenderPath[];
|
|
665
|
+
sphereById: Record<TreeSphereId, TreeRenderSphere>;
|
|
666
|
+
pathById: Record<TreePathId, TreeRenderPath>;
|
|
667
|
+
}
|
|
53
668
|
interface TreeSvgOptions {
|
|
54
669
|
width?: number | string;
|
|
55
670
|
height?: number | string;
|
|
@@ -59,12 +674,14 @@ interface TreeSvgOptions {
|
|
|
59
674
|
system?: SystemKey;
|
|
60
675
|
daathLayer?: TreeSvgDaathLayer;
|
|
61
676
|
highlights?: TreeSvgHighlights;
|
|
677
|
+
activations?: readonly TreeTargetActivationInput[];
|
|
62
678
|
}
|
|
63
679
|
declare const TREE_SVG_DEFAULT_VIEWBOX: Required<TreeSvgViewBox>;
|
|
64
680
|
declare const TREE_SPHERE_NAMES: readonly ["Kether", "Chokhmah", "Binah", "Daath", "Chesed", "Geburah", "Tiphareth", "Netzach", "Hod", "Yesod", "Malkuth"];
|
|
65
681
|
declare const TREE_SPHERE_IDS: TreeSphereId[];
|
|
66
682
|
declare const TREE_PATH_IDS: TreePathId[];
|
|
67
683
|
declare function getTreeLayout(system?: SystemKey): TreeLayout;
|
|
684
|
+
declare function getTreeRenderModel(options?: TreeSvgOptions): TreeRenderModel;
|
|
68
685
|
declare function generateTreeSvg(options?: TreeSvgOptions): string;
|
|
69
686
|
|
|
70
|
-
export { TREE_PATH_IDS, TREE_SPHERE_IDS, TREE_SPHERE_NAMES, TREE_SVG_DEFAULT_VIEWBOX, type TreeLayout, type TreeLayoutCoordinate, type TreeLayoutMap, type TreeLayoutPath, type TreePathId, type TreeSphereId, type TreeSphereName, type TreeSvgCustomPalette, type TreeSvgDaathLayer, type TreeSvgHighlights, type TreeSvgOptions, type TreeSvgPalette, type TreeSvgViewBox, generateTreeSvg, getTreeLayout };
|
|
687
|
+
export { ANGLE_GLYPHS, ANGLE_GLYPH_PRIMITIVES, ASPECT_GLYPHS, ASPECT_GLYPH_PRIMITIVES, ASTRO_GLYPHS, ASTRO_WHEEL_DEFAULT_ASPECT_SPECS, ASTRO_WHEEL_DEFAULT_VIEWBOX, ASTRO_WHEEL_POINT_GLYPHS, ASTRO_WHEEL_ZODIAC_SIGNS, AspectSpec, type AstroGlyphCategory, type AstroGlyphDefinition, type AstroGlyphPrimitive, type AstroWheelAngleGlyphKey, type AstroWheelAngleMarker, type AstroWheelAspectGlyphKey, type AstroWheelAspectLayer, type AstroWheelAspectLayerInput, type AstroWheelAspectLine, type AstroWheelAspectOptions, type AstroWheelCoordinate, type AstroWheelElement, type AstroWheelHouseCusp, type AstroWheelHouseOptions, type AstroWheelLine, type AstroWheelPalette, type AstroWheelPaletteOverrides, type AstroWheelPlanetGlyphKey, type AstroWheelPoint, type AstroWheelPointKind, type AstroWheelPointLayer, type AstroWheelPointLayerInput, type AstroWheelPointOptions, type AstroWheelPointSource, type AstroWheelRenderModel, type AstroWheelRing, type AstroWheelSvgOptions, type AstroWheelViewBox, type AstroWheelZodiacOptions, type AstroWheelZodiacSegment, type AstroWheelZodiacSign, type GlyphSvgOptions, PLANET_GLYPHS, PLANET_GLYPH_PRIMITIVES, type ResolvedAstroWheelPalette, TREE_PATH_IDS, TREE_SPHERE_IDS, TREE_SPHERE_NAMES, TREE_SVG_DEFAULT_VIEWBOX, type TreeLayout, type TreeLayoutCoordinate, type TreeLayoutMap, type TreeLayoutPath, type TreePathId, type TreeRenderActivationState, type TreeRenderAnchor, type TreeRenderCircleHitTarget, type TreeRenderHitTarget, type TreeRenderLayer, type TreeRenderLineHitTarget, type TreeRenderModel, type TreeRenderPath, type TreeRenderPathGeometry, type TreeRenderSphere, type TreeRenderSphereGeometry, type TreeSphereId, type TreeSphereName, type TreeSvgCustomPalette, type TreeSvgDaathLayer, type TreeSvgHighlights, type TreeSvgOptions, type TreeSvgPalette, type TreeSvgViewBox, type TreeTargetActivationInput, type TreeTargetState, ZODIAC_GLYPHS, ZODIAC_GLYPH_PRIMITIVES, generateAstroGlyphSvg, generateAstroWheelSvg, generateGlyphSvg, generateTreeSvg, getAstroGlyph, getAstroWheelRenderModel, getTreeLayout, getTreeRenderModel, listAstroGlyphs };
|