kaabalah 6.6.0 → 6.6.1
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-BJYIWIQC.mjs → chunk-2FRLTA5B.mjs} +578 -88
- package/dist/chunk-2FRLTA5B.mjs.map +1 -0
- package/dist/{chunk-5LPSD4IA.js → chunk-RVMZBPNZ.js} +578 -88
- package/dist/chunk-RVMZBPNZ.js.map +1 -0
- package/dist/cli.js +54 -19
- 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 +98 -98
- package/dist/index.mjs +2 -2
- package/dist/visual/index.d.mts +32 -50
- package/dist/visual/index.d.ts +32 -50
- package/dist/visual/index.js +27 -27
- package/dist/visual/index.mjs +1 -1
- package/package.json +5 -2
- package/dist/chunk-5LPSD4IA.js.map +0 -1
- package/dist/chunk-BJYIWIQC.mjs.map +0 -1
|
@@ -5,8 +5,12 @@ var rawGlyph = (markup) => [
|
|
|
5
5
|
{ kind: "raw", markup }
|
|
6
6
|
];
|
|
7
7
|
var raw100 = (markup) => rawGlyph(`<g transform="scale(0.01)">${markup}</g>`);
|
|
8
|
+
var GLYPH_FILL = "var(--astro-glyph-fill, #fff)";
|
|
9
|
+
var rawPlanet = (markup) => rawGlyph(
|
|
10
|
+
`<g transform="scale(0.01)" stroke="currentColor" stroke-width="7" stroke-linecap="round" stroke-linejoin="round">${markup}</g>`
|
|
11
|
+
);
|
|
8
12
|
var SOURCE_POINT_TEXT_GLYPH = (text) => rawGlyph(
|
|
9
|
-
`<g transform="scale(0.01)"><text x="0" y="0" text-anchor="middle" dominant-baseline="central" font-family="Arial Narrow, Liberation Sans Narrow, Arial, Helvetica, sans-serif" font-size="
|
|
13
|
+
`<g transform="scale(0.01)"><text x="0" y="0" text-anchor="middle" dominant-baseline="central" font-family="Arial Narrow, Liberation Sans Narrow, Arial, Helvetica, sans-serif" font-size="90" font-weight="500" fill="currentColor" stroke="none">${text}</text></g>`
|
|
10
14
|
);
|
|
11
15
|
var SOURCE_ZODIAC_GLYPH_PRIMITIVES = {
|
|
12
16
|
"Aries": [{ kind: "raw", markup: '<g transform="scale(0.0172864) translate(-66.624999 -71.429581)"><path d="M 64.28125,95.179581 L 64.28125,91.398331 C 64.281226,88.419171 63.635393,83.106676 62.34375,75.460831 C 61.760395,71.856687 60.802062,68.106691 59.46875,64.210831 C 58.114565,60.252532 56.6979,57.148369 55.21875,54.898331 C 54.072902,53.190039 52.70832,52.335874 51.125,52.335831 C 49.333324,52.335874 48.083325,53.023373 47.375,54.398331 C 46.72916,55.669204 46.406243,57.054619 46.40625,58.554581 C 46.406243,61.721281 47.541659,64.585861 49.8125,67.148331 L 44.5,67.148331 C 42.666664,64.335862 41.749998,61.367115 41.75,58.242081 C 41.749998,54.971288 42.624997,52.40879 44.375,50.554581 C 46.187494,48.637961 48.385408,47.679628 50.96875,47.679581 C 54.302069,47.679628 56.906233,49.054627 58.78125,51.804581 C 60.906229,54.908788 62.67706,58.679617 64.09375,63.117081 C 65.093725,66.346276 65.937474,69.919189 66.625,73.835831 C 67.312472,69.919189 68.156222,66.346276 69.15625,63.117081 C 70.489553,58.783784 72.260384,55.012954 74.46875,51.804581 C 76.343713,49.054627 78.947878,47.679628 82.28125,47.679581 C 84.864538,47.679628 87.062453,48.637961 88.875,50.554581 C 90.624949,52.40879 91.499948,54.971288 91.5,58.242081 C 91.499948,61.367115 90.583283,64.335862 88.75,67.148331 L 83.4375,67.148331 C 85.708287,64.585861 86.843703,61.721281 86.84375,58.554581 C 86.843703,57.054619 86.520787,55.669204 85.875,54.398331 C 85.166621,53.023373 83.916623,52.335874 82.125,52.335831 C 80.541626,52.335874 79.177044,53.190039 78.03125,54.898331 C 76.552047,57.148369 75.135381,60.252532 73.78125,64.210831 C 72.447884,68.106691 71.489552,71.856687 70.90625,75.460831 C 69.614554,83.106676 68.968721,88.419171 68.96875,91.398331 L 68.96875,95.179581 L 64.28125,95.179581" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }],
|
|
@@ -23,22 +27,50 @@ var SOURCE_ZODIAC_GLYPH_PRIMITIVES = {
|
|
|
23
27
|
"Pisces": [{ kind: "raw", markup: '<g transform="scale(0.0184327) translate(-332.875000 -292.429565)"><path d="M 337.78125,294.78894 L 327.96875,294.78894 C 327.71873,298.91396 326.85415,302.7577 325.375,306.32019 C 324.02082,309.59103 322.06248,312.73686 319.5,315.75769 L 313.03125,315.75769 C 316.84374,312.04936 319.5104,308.29936 321.03125,304.50769 C 322.28123,301.42437 323.02082,298.18479 323.25,294.78894 L 313.96875,294.78894 L 313.96875,290.10144 L 323.25,290.10144 C 323.02082,286.70564 322.28123,283.46606 321.03125,280.38269 C 319.48957,276.59106 316.82291,272.83065 313.03125,269.10144 L 319.5,269.10144 C 322.04165,272.12232 323.99998,275.27856 325.375,278.57019 C 326.87498,282.13272 327.73956,285.97647 327.96875,290.10144 L 337.78125,290.10144 C 338.01038,285.97647 338.87497,282.13272 340.375,278.57019 C 341.74996,275.27856 343.7083,272.12232 346.25,269.10144 L 352.71875,269.10144 C 348.92704,272.83065 346.26038,276.59106 344.71875,280.38269 C 343.46871,283.46606 342.72913,286.70564 342.5,290.10144 L 351.46875,290.10144 L 351.46875,294.78894 L 342.5,294.78894 C 342.72913,298.18479 343.46871,301.42437 344.71875,304.50769 C 346.23954,308.29936 348.90621,312.04936 352.71875,315.75769 L 346.25,315.75769 C 343.68746,312.73686 341.72913,309.59103 340.375,306.32019 C 338.8958,302.6952 338.03122,298.85146 337.78125,294.78894" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>' }]
|
|
24
28
|
};
|
|
25
29
|
var SOURCE_PLANET_GLYPH_PRIMITIVES = {
|
|
26
|
-
"sun":
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
30
|
+
"sun": rawPlanet(
|
|
31
|
+
`<circle cx="0" cy="0" r="34" fill="${GLYPH_FILL}"/><circle cx="0" cy="0" r="8.5" fill="currentColor" stroke="none"/>`
|
|
32
|
+
),
|
|
33
|
+
"moon": rawPlanet(
|
|
34
|
+
`<path d="M-16,-38 C6,-34 24,-17 24,0 C24,17 6,34 -16,38 C-4,27 2,14 2,0 C2,-14 -4,-27 -16,-38 Z" fill="${GLYPH_FILL}"/>`
|
|
35
|
+
),
|
|
36
|
+
"mercury": rawPlanet(
|
|
37
|
+
`<path d="M-20,-40 C-10,-18 10,-18 20,-40" fill="none"/><circle cx="0" cy="0" r="22" fill="${GLYPH_FILL}"/><path d="M0,22 L0,48 M-14,38 L14,38" fill="none"/>`
|
|
38
|
+
),
|
|
39
|
+
"venus": rawPlanet(
|
|
40
|
+
`<circle cx="0" cy="-12" r="25" fill="${GLYPH_FILL}"/><path d="M0,13 L0,48 M-17,34 L17,34" fill="none"/>`
|
|
41
|
+
),
|
|
42
|
+
"mars": rawPlanet(
|
|
43
|
+
`<circle cx="-10" cy="10" r="25" fill="${GLYPH_FILL}"/><path d="M8,-8 L38,-38 M20,-38 L38,-38 L38,-20" fill="none"/>`
|
|
44
|
+
),
|
|
45
|
+
"jupiter": rawGlyph(`<g transform="scale(0.0209524) translate(-165.000000 -115.000000)"><path d="M 174,95 L 174,134" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M 180,124 L 151,124" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M 154,109 C 153,109 151,108 151,104 C 151,100 155,96 159,96 C 163,96 167,99 167,106 C 167,113 162,124 152,124" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M 156 109.5 A 0.5 0.5 0 1 1 155,109.5 A 0.5 0.5 0 1 1 156 109.5 z" transform="matrix(3.85432,0,0,3.99998,-445.3468,-329.9978)" fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round"/></g>`),
|
|
46
|
+
"saturn": rawGlyph(`<g transform="scale(0.0209524) translate(-226.000000 -116.000000)"><path d="M 226,98 L 226,127" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M 222,104 L 234,104" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M 240,133 C 239,134 238,135 237,135 C 236,135 234,134 234,132 C 234,130 235,128 237,126 C 239,124 241,120 241,116 C 241,112 239,108 235,108 C 231.21681,108 228,110 226,114" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></g>`),
|
|
47
|
+
"uranus": rawPlanet(
|
|
48
|
+
`<path d="M0,-42 L0,22 M-30,-25 L30,-25 M-40,-42 L-40,8 M40,-42 L40,8 M-40,-10 L-26,-10 M26,-10 L40,-10" fill="none"/><circle cx="0" cy="37" r="12" fill="${GLYPH_FILL}"/>`
|
|
49
|
+
),
|
|
50
|
+
"neptune": rawPlanet(
|
|
51
|
+
`<path d="M-34,-38 C-38,-4 -21,10 0,10 C21,10 38,-4 34,-38" fill="none"/><path d="M0,-42 L0,48 M-18,34 L18,34" fill="none"/>`
|
|
52
|
+
),
|
|
53
|
+
"pluto": rawPlanet(
|
|
54
|
+
`<circle cx="0" cy="-26" r="17" fill="${GLYPH_FILL}"/><path d="M-34,-26 C-31,0 31,0 34,-26" fill="none"/><path d="M0,-9 L0,48 M-20,30 L20,30" fill="none"/>`
|
|
55
|
+
),
|
|
56
|
+
"earth": rawPlanet(
|
|
57
|
+
`<circle cx="0" cy="0" r="34" fill="${GLYPH_FILL}"/><path d="M-34,0 L34,0 M0,-34 L0,34" fill="none"/>`
|
|
58
|
+
),
|
|
59
|
+
"chiron": rawPlanet(
|
|
60
|
+
`<circle cx="0" cy="28" r="19" fill="${GLYPH_FILL}"/><path d="M0,9 L0,-48 M0,-22 L28,-48 M0,-22 L28,4" fill="none"/>`
|
|
61
|
+
),
|
|
62
|
+
"north node": rawPlanet(
|
|
63
|
+
`<path d="M-30,18 C-39,-14 -29,-43 0,-43 C29,-43 39,-14 30,18" fill="none"/><circle cx="-30" cy="31" r="10" fill="${GLYPH_FILL}"/><circle cx="30" cy="31" r="10" fill="${GLYPH_FILL}"/>`
|
|
64
|
+
),
|
|
65
|
+
"south node": rawPlanet(
|
|
66
|
+
`<path d="M-30,-18 C-39,14 -29,43 0,43 C29,43 39,14 30,-18" fill="none"/><circle cx="-30" cy="-31" r="10" fill="${GLYPH_FILL}"/><circle cx="30" cy="-31" r="10" fill="${GLYPH_FILL}"/>`
|
|
67
|
+
),
|
|
68
|
+
"lilith": rawPlanet(
|
|
69
|
+
`<path d="M15,-44 C-10,-40 -30,-18 -30,4 C-30,23 -15,36 4,38 C-12,19 -10,-14 20,-38 C26,-43 23,-48 15,-44 Z" fill="currentColor" stroke="none"/><path d="M0,36 L0,50 M-15,44 L15,44" fill="none"/>`
|
|
70
|
+
),
|
|
71
|
+
"pars fortunae": rawPlanet(
|
|
72
|
+
`<circle cx="0" cy="0" r="34" fill="${GLYPH_FILL}"/><path d="M-24,-24 L24,24 M24,-24 L-24,24" fill="none"/>`
|
|
73
|
+
),
|
|
42
74
|
"ascendant": SOURCE_POINT_TEXT_GLYPH("AC"),
|
|
43
75
|
"midheaven": SOURCE_POINT_TEXT_GLYPH("MC"),
|
|
44
76
|
"descendant": SOURCE_POINT_TEXT_GLYPH("DC"),
|
|
@@ -217,6 +249,7 @@ function titleCaseGlyphKey(value) {
|
|
|
217
249
|
|
|
218
250
|
// src/visual/astro-wheel.ts
|
|
219
251
|
var TAU = Math.PI * 2;
|
|
252
|
+
var GLYPH_OUTLINE_FILTER_ID = "astro-wheel-glyph-outline";
|
|
220
253
|
var ASTRO_WHEEL_DEFAULT_VIEWBOX = {
|
|
221
254
|
minX: 0,
|
|
222
255
|
minY: 0,
|
|
@@ -292,6 +325,7 @@ var DEFAULT_PALETTE = {
|
|
|
292
325
|
angleLabel: "#0f172a",
|
|
293
326
|
planetGlyph: "#111827",
|
|
294
327
|
planetTick: "#111827",
|
|
328
|
+
glyphHalo: "#0a1628",
|
|
295
329
|
aspectGuide: "#d7d0c6",
|
|
296
330
|
elementColors: {
|
|
297
331
|
fire: "#e27657",
|
|
@@ -324,6 +358,7 @@ var MONOCHROME_PALETTE = {
|
|
|
324
358
|
angleLabel: "#111111",
|
|
325
359
|
planetGlyph: "#111111",
|
|
326
360
|
planetTick: "#111111",
|
|
361
|
+
glyphHalo: "#0a1628",
|
|
327
362
|
aspectGuide: "#c9c9c9",
|
|
328
363
|
elementColors: {
|
|
329
364
|
fire: "#ececec",
|
|
@@ -359,8 +394,9 @@ function generateGlyphSvg(primitives, options = {}) {
|
|
|
359
394
|
if (bg !== "transparent") {
|
|
360
395
|
push(`<rect width="${size}" height="${size}" fill="${escapeAttr(bg)}"/>`);
|
|
361
396
|
}
|
|
397
|
+
const glyphFill = bg === "transparent" ? "#fff" : bg;
|
|
362
398
|
push(`<g transform="translate(${cx} ${cy}) scale(${fmt(scale)})" color="${escapeAttr(color)}" fill="${escapeAttr(fillVal)}" stroke="${escapeAttr(color)}" stroke-width="${fmt(sw)}" stroke-linecap="round" stroke-linejoin="round">`);
|
|
363
|
-
renderGlyphPrimitives(push, primitives, { color});
|
|
399
|
+
renderGlyphPrimitives(push, primitives, { color, glyphFill });
|
|
364
400
|
push(`</g>`);
|
|
365
401
|
push(`</svg>`);
|
|
366
402
|
return lines.join("\n");
|
|
@@ -375,12 +411,13 @@ function generateAstroGlyphSvg(keyOrGlyph, options = {}) {
|
|
|
375
411
|
}
|
|
376
412
|
function getAstroWheelRenderModel(chart, options = {}) {
|
|
377
413
|
const viewBox = normalizeViewBox(options.viewBox);
|
|
378
|
-
const palette = resolvePalette(options.palette);
|
|
414
|
+
const palette = resolvePalette(options.palette, options.background ?? "transparent");
|
|
415
|
+
const excludedBodies = resolveExcludedBodies(options.excludeBodies);
|
|
379
416
|
const scale = Math.min(
|
|
380
417
|
viewBox.width / ASTRO_WHEEL_DEFAULT_VIEWBOX.width,
|
|
381
418
|
viewBox.height / ASTRO_WHEEL_DEFAULT_VIEWBOX.height
|
|
382
419
|
);
|
|
383
|
-
const padding = options.padding ?? round(18 * scale);
|
|
420
|
+
const padding = options.padding ?? round(18 * scale + getExternalPointPadding(options, scale));
|
|
384
421
|
const center = {
|
|
385
422
|
x: round(viewBox.minX + viewBox.width / 2),
|
|
386
423
|
y: round(viewBox.minY + viewBox.height / 2)
|
|
@@ -415,13 +452,15 @@ function getAstroWheelRenderModel(chart, options = {}) {
|
|
|
415
452
|
tickColor: palette.planetTick,
|
|
416
453
|
radius: "base",
|
|
417
454
|
nodes: resolvedPoints.nodes,
|
|
418
|
-
vertex: resolvedPoints.vertex
|
|
455
|
+
vertex: resolvedPoints.vertex,
|
|
456
|
+
collisionThresholdDegrees: resolvedPoints.collisionThresholdDegrees
|
|
419
457
|
},
|
|
420
458
|
center,
|
|
421
459
|
angleOf,
|
|
422
460
|
rings,
|
|
423
461
|
scale,
|
|
424
|
-
palette
|
|
462
|
+
palette,
|
|
463
|
+
excludedBodies
|
|
425
464
|
});
|
|
426
465
|
const extraPointLayers = (options.pointLayers ?? []).map(
|
|
427
466
|
(layer) => buildPointLayer({
|
|
@@ -430,7 +469,8 @@ function getAstroWheelRenderModel(chart, options = {}) {
|
|
|
430
469
|
angleOf,
|
|
431
470
|
rings,
|
|
432
471
|
scale,
|
|
433
|
-
palette
|
|
472
|
+
palette,
|
|
473
|
+
excludedBodies
|
|
434
474
|
})
|
|
435
475
|
);
|
|
436
476
|
const pointLayers = [
|
|
@@ -452,7 +492,8 @@ function getAstroWheelRenderModel(chart, options = {}) {
|
|
|
452
492
|
center,
|
|
453
493
|
angleOf,
|
|
454
494
|
rings,
|
|
455
|
-
palette
|
|
495
|
+
palette,
|
|
496
|
+
excludedBodies
|
|
456
497
|
}) : null;
|
|
457
498
|
const extraAspectLayers = (options.aspectLayers ?? []).map(
|
|
458
499
|
(layer) => buildAspectLayer({
|
|
@@ -462,7 +503,8 @@ function getAstroWheelRenderModel(chart, options = {}) {
|
|
|
462
503
|
center,
|
|
463
504
|
angleOf,
|
|
464
505
|
rings,
|
|
465
|
-
palette
|
|
506
|
+
palette,
|
|
507
|
+
excludedBodies
|
|
466
508
|
})
|
|
467
509
|
);
|
|
468
510
|
const aspectLayers = [
|
|
@@ -507,6 +549,7 @@ function generateAstroWheelSvg(chart, options = {}) {
|
|
|
507
549
|
].filter(Boolean);
|
|
508
550
|
push(`<svg ${svgAttributes.join(" ")}>`);
|
|
509
551
|
push(`<title>${escapeText(options.title ?? "Astrological birth chart wheel")}</title>`);
|
|
552
|
+
renderSvgDefs(push, model);
|
|
510
553
|
if (background !== "transparent") {
|
|
511
554
|
push(
|
|
512
555
|
`<rect x="${fmt(viewBox.minX)}" y="${fmt(viewBox.minY)}" width="${fmt(viewBox.width)}" height="${fmt(viewBox.height)}" fill="${escapeAttr(background)}"/>`
|
|
@@ -516,9 +559,31 @@ function generateAstroWheelSvg(chart, options = {}) {
|
|
|
516
559
|
renderZodiac(push, model, zodiacOptions);
|
|
517
560
|
renderHouses(push, model, houseOptions);
|
|
518
561
|
renderPlanets(push, model);
|
|
562
|
+
renderGlyphOverlay(push, model);
|
|
519
563
|
push(`</svg>`);
|
|
520
564
|
return lines.join("\n");
|
|
521
565
|
}
|
|
566
|
+
function renderSvgDefs(push, model) {
|
|
567
|
+
push(`<defs>`);
|
|
568
|
+
push(
|
|
569
|
+
`<filter id="${GLYPH_OUTLINE_FILTER_ID}" x="-45%" y="-45%" width="190%" height="190%">`
|
|
570
|
+
);
|
|
571
|
+
push(
|
|
572
|
+
`<feMorphology in="SourceAlpha" operator="dilate" radius="${fmt(1.75 * model.scale)}" result="dilated"/>`
|
|
573
|
+
);
|
|
574
|
+
push(
|
|
575
|
+
`<feFlood flood-color="${escapeAttr(model.palette.glyphHalo)}" result="haloColor"/>`
|
|
576
|
+
);
|
|
577
|
+
push(
|
|
578
|
+
`<feComposite in="haloColor" in2="dilated" operator="in" result="outline"/>`
|
|
579
|
+
);
|
|
580
|
+
push(`<feMerge>`);
|
|
581
|
+
push(`<feMergeNode in="outline"/>`);
|
|
582
|
+
push(`<feMergeNode in="SourceGraphic"/>`);
|
|
583
|
+
push(`</feMerge>`);
|
|
584
|
+
push(`</filter>`);
|
|
585
|
+
push(`</defs>`);
|
|
586
|
+
}
|
|
522
587
|
function renderAspects(push, model) {
|
|
523
588
|
if (model.aspectLayers.length === 0) {
|
|
524
589
|
return;
|
|
@@ -624,9 +689,6 @@ function renderHouses(push, model, options) {
|
|
|
624
689
|
push(
|
|
625
690
|
`<line x1="${fmt(marker.line.x1)}" y1="${fmt(marker.line.y1)}" x2="${fmt(marker.line.x2)}" y2="${fmt(marker.line.y2)}" stroke="${escapeAttr(model.palette.angleLine)}" stroke-width="${fmt(2 * model.scale)}"/>`
|
|
626
691
|
);
|
|
627
|
-
push(
|
|
628
|
-
`<text x="${fmt(marker.labelPosition.x)}" y="${fmt(marker.labelPosition.y)}" font-family="${textFontFamily()}" font-size="${fmt(marker.labelFontSize)}" text-anchor="middle" dominant-baseline="middle" fill="${escapeAttr(model.palette.angleLabel)}">${marker.key}</text>`
|
|
629
|
-
);
|
|
630
692
|
push(`</g>`);
|
|
631
693
|
}
|
|
632
694
|
}
|
|
@@ -637,6 +699,9 @@ function renderPlanets(push, model) {
|
|
|
637
699
|
return;
|
|
638
700
|
}
|
|
639
701
|
push(`<g id="astro-wheel-planets" aria-label="planets">`);
|
|
702
|
+
for (const layer of model.pointLayers) {
|
|
703
|
+
renderPointLayerGuide(push, layer, model);
|
|
704
|
+
}
|
|
640
705
|
for (const layer of model.pointLayers) {
|
|
641
706
|
push(`<g class="astro-wheel-point-layer" data-point-layer="${escapeAttr(layer.id)}"${layer.label ? ` aria-label="${escapeAttr(layer.label)}"` : ""}>`);
|
|
642
707
|
for (const point of layer.points) {
|
|
@@ -645,49 +710,346 @@ function renderPlanets(push, model) {
|
|
|
645
710
|
);
|
|
646
711
|
push(`<title>${escapeText(point.name)} ${fmt(point.longitude)}\xB0</title>`);
|
|
647
712
|
push(
|
|
648
|
-
`<line x1="${fmt(point.tickLine.x1)}" y1="${fmt(point.tickLine.y1)}" x2="${fmt(point.tickLine.x2)}" y2="${fmt(point.tickLine.y2)}" stroke="${escapeAttr(point.tickColor)}" stroke-opacity="0.
|
|
713
|
+
`<line x1="${fmt(point.tickLine.x1)}" y1="${fmt(point.tickLine.y1)}" x2="${fmt(point.tickLine.x2)}" y2="${fmt(point.tickLine.y2)}" stroke="${escapeAttr(point.tickColor)}" stroke-opacity="0.82" stroke-width="${fmt(model.scale)}" stroke-linecap="round"/>`
|
|
649
714
|
);
|
|
650
|
-
|
|
651
|
-
|
|
715
|
+
if (point.leaderLine) {
|
|
716
|
+
push(
|
|
717
|
+
`<line class="astro-wheel-point-leader" x1="${fmt(point.leaderLine.x1)}" y1="${fmt(point.leaderLine.y1)}" x2="${fmt(point.leaderLine.x2)}" y2="${fmt(point.leaderLine.y2)}" stroke="${escapeAttr(point.tickColor)}" stroke-opacity="0.52" stroke-width="${fmt(0.9 * model.scale)}" stroke-linecap="round"/>`
|
|
718
|
+
);
|
|
719
|
+
}
|
|
652
720
|
push(`</g>`);
|
|
653
721
|
}
|
|
654
722
|
push(`</g>`);
|
|
655
723
|
}
|
|
656
724
|
push(`</g>`);
|
|
657
725
|
}
|
|
658
|
-
function
|
|
726
|
+
function renderPointLayerGuide(push, layer, model) {
|
|
727
|
+
const isExternal = layer.radius > model.rings.houses.r2 + model.scale;
|
|
728
|
+
if (!isExternal) {
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
push(
|
|
732
|
+
`<circle class="astro-wheel-external-point-ring" data-point-layer="${escapeAttr(layer.id)}" cx="${fmt(model.center.x)}" cy="${fmt(model.center.y)}" r="${fmt(layer.radius)}" fill="none" stroke="${escapeAttr(layer.tickColor)}" stroke-opacity="0.32" stroke-width="${fmt(1.15 * model.scale)}"/>`
|
|
733
|
+
);
|
|
734
|
+
}
|
|
735
|
+
function renderGlyphOverlay(push, model) {
|
|
736
|
+
if (model.angleMarkers.length === 0 && model.pointLayers.length === 0) {
|
|
737
|
+
return;
|
|
738
|
+
}
|
|
739
|
+
push(`<g id="astro-wheel-glyph-layer" aria-label="chart glyphs">`);
|
|
740
|
+
if (model.angleMarkers.length > 0) {
|
|
741
|
+
push(`<g id="astro-wheel-angle-glyphs" aria-label="angle glyphs">`);
|
|
742
|
+
for (const marker of model.angleMarkers) {
|
|
743
|
+
renderAngleGlyph(push, marker, model);
|
|
744
|
+
}
|
|
745
|
+
push(`</g>`);
|
|
746
|
+
}
|
|
747
|
+
if (model.pointLayers.length > 0) {
|
|
748
|
+
push(`<g id="astro-wheel-point-glyphs" aria-label="planet glyphs">`);
|
|
749
|
+
for (const layer of model.pointLayers) {
|
|
750
|
+
push(`<g class="astro-wheel-point-glyph-layer" data-point-layer="${escapeAttr(layer.id)}"${layer.label ? ` aria-label="${escapeAttr(layer.label)} glyphs"` : ""}>`);
|
|
751
|
+
for (const point of layer.points) {
|
|
752
|
+
renderPointLabelGroup(push, point, model);
|
|
753
|
+
}
|
|
754
|
+
push(`</g>`);
|
|
755
|
+
}
|
|
756
|
+
push(`</g>`);
|
|
757
|
+
}
|
|
758
|
+
push(`</g>`);
|
|
759
|
+
}
|
|
760
|
+
function renderAngleGlyph(push, marker, model) {
|
|
761
|
+
const label = angleDisplayLabel(marker.key);
|
|
762
|
+
const position = formatInlinePosition(marker.zodiacPosition);
|
|
763
|
+
const labelFontSize = marker.labelFontSize;
|
|
764
|
+
const positionFontSize = clamp(marker.labelFontSize * 0.52, 5.5 * model.scale, 9 * model.scale);
|
|
765
|
+
const signScale = positionFontSize * 0.88;
|
|
766
|
+
const gap = clamp(3.2 * model.scale, 2.5, 5);
|
|
767
|
+
const labelWidth = estimateTextWidth(label, labelFontSize);
|
|
768
|
+
const degreeWidth = estimateTextWidth(position.degreesText, positionFontSize);
|
|
769
|
+
const minutesWidth = estimateTextWidth(position.minutesText, positionFontSize);
|
|
770
|
+
const totalWidth = labelWidth + gap + degreeWidth + gap + signScale + gap + minutesWidth;
|
|
771
|
+
const startX = -totalWidth / 2;
|
|
772
|
+
const labelX = startX;
|
|
773
|
+
const degreeX = labelX + labelWidth + gap;
|
|
774
|
+
const signX = degreeX + degreeWidth + gap + signScale / 2;
|
|
775
|
+
const minutesX = signX + signScale / 2 + gap;
|
|
776
|
+
push(
|
|
777
|
+
`<g class="astro-wheel-angle-glyph-label" data-angle-marker="${marker.key}" data-longitude="${fmt(marker.longitude)}" transform="translate(${fmt(marker.labelPosition.x)} ${fmt(marker.labelPosition.y)}) rotate(${fmt(marker.labelRotation)})" filter="url(#${GLYPH_OUTLINE_FILTER_ID})">`
|
|
778
|
+
);
|
|
779
|
+
push(`<title>${escapeText(`${label} ${position.degreesText} ${position.sign} ${position.minutesText}`)}</title>`);
|
|
780
|
+
push(
|
|
781
|
+
`<text class="astro-wheel-angle-label" x="${fmt(labelX)}" y="0" font-family="${textFontFamily()}" font-size="${fmt(labelFontSize)}" text-anchor="start" dominant-baseline="middle" fill="${escapeAttr(model.palette.angleLabel)}" font-weight="700">${escapeText(label)}</text>`
|
|
782
|
+
);
|
|
783
|
+
push(
|
|
784
|
+
`<text class="astro-wheel-angle-degree" x="${fmt(degreeX)}" y="0" font-family="${textFontFamily()}" font-size="${fmt(positionFontSize)}" text-anchor="start" dominant-baseline="middle" fill="${escapeAttr(model.palette.angleLabel)}">${escapeText(position.degreesText)}</text>`
|
|
785
|
+
);
|
|
786
|
+
renderInlineSignGlyph(
|
|
787
|
+
push,
|
|
788
|
+
position.sign,
|
|
789
|
+
signX,
|
|
790
|
+
0,
|
|
791
|
+
signScale,
|
|
792
|
+
model.palette.angleLabel
|
|
793
|
+
);
|
|
794
|
+
push(
|
|
795
|
+
`<text class="astro-wheel-angle-minutes" x="${fmt(minutesX)}" y="0" font-family="${textFontFamily()}" font-size="${fmt(positionFontSize)}" text-anchor="start" dominant-baseline="middle" fill="${escapeAttr(model.palette.angleLabel)}">${escapeText(position.minutesText)}</text>`
|
|
796
|
+
);
|
|
797
|
+
push(`</g>`);
|
|
798
|
+
}
|
|
799
|
+
function angleDisplayLabel(key) {
|
|
800
|
+
if (key === "ASC") return "AC";
|
|
801
|
+
if (key === "DSC") return "DC";
|
|
802
|
+
return key;
|
|
803
|
+
}
|
|
804
|
+
function renderPointLabelGroup(push, point, model) {
|
|
805
|
+
const layout = getPointLabelLayout(point, model.scale);
|
|
806
|
+
const boundsAttr = point.labelBounds ? ` data-label-bounds="${escapeAttr(formatLabelBounds(point.labelBounds))}"` : "";
|
|
807
|
+
push(
|
|
808
|
+
`<g class="astro-wheel-point-label" data-point-layer="${escapeAttr(point.layerId)}" data-point-key="${escapeAttr(point.key)}" data-point-name="${escapeAttr(point.name)}" data-point-kind="${point.kind}" data-longitude="${fmt(point.longitude)}"${boundsAttr} transform="translate(${fmt(point.glyphPosition.x)} ${fmt(point.glyphPosition.y)})" filter="url(#${GLYPH_OUTLINE_FILTER_ID})">`
|
|
809
|
+
);
|
|
810
|
+
push(`<title>${escapeText(pointLabelTitle(point))}</title>`);
|
|
811
|
+
renderPointGlyph(push, point, layout.glyphX, layout.glyphY, layout.glyphScale, model.palette.glyphHalo);
|
|
812
|
+
if (point.retrograde) {
|
|
813
|
+
renderRetrogradeMarker(
|
|
814
|
+
push,
|
|
815
|
+
layout.retrogradeX,
|
|
816
|
+
layout.retrogradeY,
|
|
817
|
+
layout.retrogradeFontSize,
|
|
818
|
+
point.color
|
|
819
|
+
);
|
|
820
|
+
}
|
|
821
|
+
renderPointInlineDegreeLabel(push, point, layout);
|
|
822
|
+
push(`</g>`);
|
|
823
|
+
}
|
|
824
|
+
function renderPointGlyph(push, point, x, y, glyphScale, glyphFill) {
|
|
659
825
|
const glyph = point.glyphKey ? getAstroGlyph(point.glyphKey) : resolvePointGlyph(point.name);
|
|
660
826
|
if (glyph) {
|
|
661
|
-
const glyphScale = point.glyphFontSize * 0.66;
|
|
662
827
|
const strokeWidth = clamp(0.12 / Math.max(glyphScale / 10, 0.6), 0.1, 0.18);
|
|
663
828
|
push(
|
|
664
|
-
`<g class="astro-wheel-glyph" data-astro-glyph="${escapeAttr(glyph.key)}" data-astro-glyph-category="${glyph.category}" data-point-glyph="${escapeAttr(point.name)}" transform="translate(${fmt(
|
|
829
|
+
`<g class="astro-wheel-glyph" data-astro-glyph="${escapeAttr(glyph.key)}" data-astro-glyph-category="${glyph.category}" data-point-glyph="${escapeAttr(point.name)}" transform="translate(${fmt(x)} ${fmt(y)}) scale(${fmt(glyphScale)})" color="${escapeAttr(point.color)}" fill="none" stroke="${escapeAttr(point.color)}" stroke-width="${fmt(strokeWidth)}" stroke-linecap="round" stroke-linejoin="round">`
|
|
665
830
|
);
|
|
666
|
-
renderGlyphPrimitives(push, glyph.primitives, { color: point.color });
|
|
831
|
+
renderGlyphPrimitives(push, glyph.primitives, { color: point.color, glyphFill });
|
|
667
832
|
push(`</g>`);
|
|
668
833
|
} else {
|
|
669
834
|
push(
|
|
670
|
-
`<text
|
|
835
|
+
`<text class="astro-wheel-glyph" data-point-glyph="${escapeAttr(point.name)}" x="${fmt(x)}" y="${fmt(y)}" font-family="${symbolFontFamily()}" font-size="${fmt(point.glyphFontSize)}" text-anchor="middle" dominant-baseline="middle" fill="${escapeAttr(point.color)}">${escapeText(point.glyph)}</text>`
|
|
671
836
|
);
|
|
672
837
|
}
|
|
673
838
|
}
|
|
674
|
-
function
|
|
675
|
-
const
|
|
676
|
-
if (
|
|
839
|
+
function renderRetrogradeMarker(push, x, y, fontSize, color) {
|
|
840
|
+
const glyph = resolvePointGlyph("retrograde");
|
|
841
|
+
if (glyph) {
|
|
842
|
+
const glyphScale = fontSize * 0.62;
|
|
843
|
+
const strokeWidth = clamp(0.12 / Math.max(glyphScale / 10, 0.6), 0.1, 0.18);
|
|
844
|
+
push(
|
|
845
|
+
`<g class="astro-wheel-point-retrograde" data-astro-glyph="${escapeAttr(glyph.key)}" data-astro-glyph-category="${glyph.category}" transform="translate(${fmt(x)} ${fmt(y)}) scale(${fmt(glyphScale)})" color="${escapeAttr(color)}" fill="none" stroke="${escapeAttr(color)}" stroke-width="${fmt(strokeWidth)}" stroke-linecap="round" stroke-linejoin="round">`
|
|
846
|
+
);
|
|
847
|
+
renderGlyphPrimitives(push, glyph.primitives, { color });
|
|
848
|
+
push(`</g>`);
|
|
677
849
|
return;
|
|
678
850
|
}
|
|
851
|
+
push(
|
|
852
|
+
`<text class="astro-wheel-point-retrograde" x="${fmt(x)}" y="${fmt(y)}" font-family="${textFontFamily()}" font-size="${fmt(fontSize)}" text-anchor="middle" dominant-baseline="middle" fill="${escapeAttr(color)}" font-weight="700">R</text>`
|
|
853
|
+
);
|
|
854
|
+
}
|
|
855
|
+
function renderPointInlineDegreeLabel(push, point, layout) {
|
|
856
|
+
if (!layout.position) {
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
push(
|
|
860
|
+
`<text class="astro-wheel-point-degree" x="${fmt(layout.degreeX)}" y="${fmt(layout.degreeY)}" font-family="${textFontFamily()}" font-size="${fmt(layout.fontSize)}" text-anchor="start" dominant-baseline="middle" fill="${escapeAttr(point.color)}" fill-opacity="0.9">${escapeText(layout.position.degreesText)}</text>`
|
|
861
|
+
);
|
|
862
|
+
renderInlineSignGlyph(push, layout.position.sign, layout.signX, layout.signY, layout.signScale, point.color);
|
|
863
|
+
push(
|
|
864
|
+
`<text class="astro-wheel-point-minutes" x="${fmt(layout.minutesX)}" y="${fmt(layout.minutesY)}" font-family="${textFontFamily()}" font-size="${fmt(layout.fontSize)}" text-anchor="start" dominant-baseline="middle" fill="${escapeAttr(point.color)}" fill-opacity="0.9">${escapeText(layout.position.minutesText)}</text>`
|
|
865
|
+
);
|
|
866
|
+
}
|
|
867
|
+
function renderInlineSignGlyph(push, sign, x, y, glyphScale, color) {
|
|
868
|
+
const glyph = ZODIAC_GLYPHS[sign];
|
|
869
|
+
if (glyph) {
|
|
870
|
+
const strokeWidth = clamp(0.11 / Math.max(glyphScale / 10, 0.6), 0.08, 0.16);
|
|
871
|
+
push(
|
|
872
|
+
`<g class="astro-wheel-point-sign-glyph" data-astro-glyph="${escapeAttr(glyph.key)}" data-astro-glyph-category="${glyph.category}" data-zodiac-glyph="${escapeAttr(sign)}" transform="translate(${fmt(x)} ${fmt(y)}) scale(${fmt(glyphScale)})" color="${escapeAttr(color)}" fill="none" stroke="${escapeAttr(color)}" stroke-width="${fmt(strokeWidth)}" stroke-linecap="round" stroke-linejoin="round">`
|
|
873
|
+
);
|
|
874
|
+
renderGlyphPrimitives(push, glyph.primitives, { color });
|
|
875
|
+
push(`</g>`);
|
|
876
|
+
return;
|
|
877
|
+
}
|
|
878
|
+
push(
|
|
879
|
+
`<text class="astro-wheel-point-sign-glyph" x="${fmt(x)}" y="${fmt(y)}" font-family="${symbolFontFamily()}" font-size="${fmt(glyphScale)}" text-anchor="middle" dominant-baseline="middle" fill="${escapeAttr(color)}">${escapeText(sign.charAt(0).toUpperCase())}</text>`
|
|
880
|
+
);
|
|
881
|
+
}
|
|
882
|
+
function getPointLabelLayout(point, scale) {
|
|
883
|
+
const glyphScale = point.glyphFontSize * 0.66;
|
|
884
|
+
const fontSize = clamp(point.glyphFontSize * 0.31, 5.5 * scale, 9 * scale);
|
|
885
|
+
const signScale = fontSize * 0.82;
|
|
886
|
+
const gap = clamp(3.2 * scale, 2.4, 5);
|
|
887
|
+
const railGap = clamp(4.4 * scale, 3.2, 7);
|
|
888
|
+
const retrogradeFontSize = clamp(fontSize * 0.74, 4.4 * scale, 7.2 * scale);
|
|
889
|
+
const retrogradeTextWidth = point.retrograde ? estimateTextWidth("Rx", retrogradeFontSize) : 0;
|
|
890
|
+
const retrogradeGap = point.retrograde ? clamp(1.7 * scale, 1.2, 3) : 0;
|
|
891
|
+
const position = point.zodiacPosition ? formatInlinePosition(point.zodiacPosition) : null;
|
|
892
|
+
const degreeWidth = position ? estimateTextWidth(position.degreesText, fontSize) : 0;
|
|
893
|
+
const minutesWidth = position ? estimateTextWidth(position.minutesText, fontSize) : 0;
|
|
894
|
+
const positionWidth = position ? degreeWidth + gap + signScale + gap + minutesWidth : 0;
|
|
895
|
+
const positionHeight = position ? Math.max(fontSize, signScale) : 0;
|
|
896
|
+
const inwardX = -Math.cos(point.labelAngle);
|
|
897
|
+
const inwardY = -Math.sin(point.labelAngle);
|
|
898
|
+
const glyphHalf = glyphScale / 2;
|
|
899
|
+
const retrogradeCenterDistance = point.retrograde ? glyphHalf + retrogradeGap + retrogradeTextWidth / 2 : 0;
|
|
900
|
+
const retrogradeRailWidth = point.retrograde ? retrogradeGap + retrogradeTextWidth : 0;
|
|
901
|
+
const positionCenterDistance = position ? glyphHalf + retrogradeRailWidth + railGap + positionWidth / 2 : 0;
|
|
902
|
+
const positionCenterX = inwardX * positionCenterDistance;
|
|
903
|
+
const positionCenterY = inwardY * positionCenterDistance;
|
|
904
|
+
const positionLeftX = positionCenterX - positionWidth / 2;
|
|
905
|
+
const glyphX = 0;
|
|
906
|
+
const glyphY = 0;
|
|
907
|
+
const retrogradeX = inwardX * retrogradeCenterDistance;
|
|
908
|
+
const retrogradeY = inwardY * retrogradeCenterDistance;
|
|
909
|
+
const degreeX = positionLeftX;
|
|
910
|
+
const degreeY = positionCenterY;
|
|
911
|
+
const signX = degreeX + degreeWidth + gap + signScale / 2;
|
|
912
|
+
const signY = positionCenterY;
|
|
913
|
+
const minutesX = signX + signScale / 2 + gap;
|
|
914
|
+
const minutesY = positionCenterY;
|
|
915
|
+
const boxes = [
|
|
916
|
+
{
|
|
917
|
+
x: -glyphHalf,
|
|
918
|
+
y: -glyphHalf,
|
|
919
|
+
width: glyphScale,
|
|
920
|
+
height: glyphScale
|
|
921
|
+
}
|
|
922
|
+
];
|
|
923
|
+
if (point.retrograde) {
|
|
924
|
+
boxes.push({
|
|
925
|
+
x: retrogradeX - retrogradeTextWidth / 2,
|
|
926
|
+
y: retrogradeY - retrogradeFontSize / 2,
|
|
927
|
+
width: retrogradeTextWidth,
|
|
928
|
+
height: retrogradeFontSize
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
if (position) {
|
|
932
|
+
boxes.push({
|
|
933
|
+
x: positionLeftX,
|
|
934
|
+
y: positionCenterY - positionHeight / 2,
|
|
935
|
+
width: positionWidth,
|
|
936
|
+
height: positionHeight
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
const boundsX = Math.min(...boxes.map((box) => box.x));
|
|
940
|
+
const boundsY = Math.min(...boxes.map((box) => box.y));
|
|
941
|
+
const boundsMaxX = Math.max(...boxes.map((box) => box.x + box.width));
|
|
942
|
+
const boundsMaxY = Math.max(...boxes.map((box) => box.y + box.height));
|
|
943
|
+
return {
|
|
944
|
+
glyphScale,
|
|
945
|
+
glyphX,
|
|
946
|
+
glyphY,
|
|
947
|
+
fontSize,
|
|
948
|
+
degreeX,
|
|
949
|
+
degreeY,
|
|
950
|
+
signX,
|
|
951
|
+
signScale,
|
|
952
|
+
signY,
|
|
953
|
+
minutesX,
|
|
954
|
+
minutesY,
|
|
955
|
+
retrogradeX,
|
|
956
|
+
retrogradeY,
|
|
957
|
+
retrogradeFontSize,
|
|
958
|
+
boundsX,
|
|
959
|
+
boundsY,
|
|
960
|
+
width: boundsMaxX - boundsX,
|
|
961
|
+
height: boundsMaxY - boundsY,
|
|
962
|
+
position
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
function formatInlinePosition(position) {
|
|
679
966
|
let degrees = Math.floor(position.decimalDegrees);
|
|
680
967
|
let minutes = Math.round((position.decimalDegrees - degrees) * 60);
|
|
681
968
|
if (minutes === 60) {
|
|
682
969
|
degrees += 1;
|
|
683
970
|
minutes = 0;
|
|
684
971
|
}
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
972
|
+
return {
|
|
973
|
+
sign: position.sign,
|
|
974
|
+
degreesText: `${degrees}\xB0`,
|
|
975
|
+
minutesText: `${String(minutes).padStart(2, "0")}'`
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
function pointLabelTitle(point) {
|
|
979
|
+
const position = point.zodiacPosition ? formatInlinePosition(point.zodiacPosition) : null;
|
|
980
|
+
if (!position) {
|
|
981
|
+
return `${point.name} ${fmt(point.longitude)}\xB0`;
|
|
982
|
+
}
|
|
983
|
+
const retrograde = point.retrograde ? " Rx" : "";
|
|
984
|
+
return `${point.name} ${position.degreesText} ${position.sign} ${position.minutesText}${retrograde}`;
|
|
985
|
+
}
|
|
986
|
+
function estimateTextWidth(value, fontSize) {
|
|
987
|
+
return value.length * fontSize * 0.56;
|
|
988
|
+
}
|
|
989
|
+
function labelBoundsFor(position, layout, padding) {
|
|
990
|
+
const width = layout.width + padding * 2;
|
|
991
|
+
const height = layout.height + padding * 2;
|
|
992
|
+
return {
|
|
993
|
+
x: round(position.x + layout.boundsX - padding),
|
|
994
|
+
y: round(position.y + layout.boundsY - padding),
|
|
995
|
+
width: round(width),
|
|
996
|
+
height: round(height)
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
function constrainLabelInsideCircle(params) {
|
|
1000
|
+
const { center, layout, padding, maxRadius } = params;
|
|
1001
|
+
if (!Number.isFinite(maxRadius)) {
|
|
1002
|
+
return {
|
|
1003
|
+
position: params.position,
|
|
1004
|
+
bounds: labelBoundsFor(params.position, layout, padding),
|
|
1005
|
+
moved: false
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
let position = params.position;
|
|
1009
|
+
let moved = false;
|
|
1010
|
+
for (let attempt = 0; attempt < 6; attempt++) {
|
|
1011
|
+
const bounds = labelBoundsFor(position, layout, padding);
|
|
1012
|
+
const overflow = labelBoundsCircleOverflow(center, bounds, maxRadius);
|
|
1013
|
+
if (overflow <= 0) {
|
|
1014
|
+
return { position, bounds, moved };
|
|
1015
|
+
}
|
|
1016
|
+
const dx = position.x - center.x;
|
|
1017
|
+
const dy = position.y - center.y;
|
|
1018
|
+
const distance = Math.max(Math.hypot(dx, dy), 1);
|
|
1019
|
+
position = {
|
|
1020
|
+
x: round(position.x - dx / distance * (overflow + 0.75)),
|
|
1021
|
+
y: round(position.y - dy / distance * (overflow + 0.75))
|
|
1022
|
+
};
|
|
1023
|
+
moved = true;
|
|
1024
|
+
}
|
|
1025
|
+
return {
|
|
1026
|
+
position,
|
|
1027
|
+
bounds: labelBoundsFor(position, layout, padding),
|
|
1028
|
+
moved
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
function labelBoundsCircleOverflow(center, bounds, maxRadius) {
|
|
1032
|
+
const corners = [
|
|
1033
|
+
{ x: bounds.x, y: bounds.y },
|
|
1034
|
+
{ x: bounds.x + bounds.width, y: bounds.y },
|
|
1035
|
+
{ x: bounds.x, y: bounds.y + bounds.height },
|
|
1036
|
+
{ x: bounds.x + bounds.width, y: bounds.y + bounds.height }
|
|
1037
|
+
];
|
|
1038
|
+
const farthestCorner = Math.max(
|
|
1039
|
+
...corners.map(
|
|
1040
|
+
(corner) => Math.hypot(corner.x - center.x, corner.y - center.y)
|
|
1041
|
+
)
|
|
690
1042
|
);
|
|
1043
|
+
return farthestCorner - maxRadius;
|
|
1044
|
+
}
|
|
1045
|
+
function hasLabelBoundsCollision(bounds, placed) {
|
|
1046
|
+
return placed.some((other) => labelBoundsOverlap(bounds, other));
|
|
1047
|
+
}
|
|
1048
|
+
function labelBoundsOverlap(a, b) {
|
|
1049
|
+
return !(a.x + a.width <= b.x || b.x + b.width <= a.x || a.y + a.height <= b.y || b.y + b.height <= a.y);
|
|
1050
|
+
}
|
|
1051
|
+
function formatLabelBounds(bounds) {
|
|
1052
|
+
return `${fmt(bounds.x)} ${fmt(bounds.y)} ${fmt(bounds.width)} ${fmt(bounds.height)}`;
|
|
691
1053
|
}
|
|
692
1054
|
var POINT_GLYPH_ALIASES = {
|
|
693
1055
|
"mean node": "north node",
|
|
@@ -722,6 +1084,15 @@ function resolvePointGlyph(name) {
|
|
|
722
1084
|
const resolved = POINT_GLYPH_ALIASES[key] ?? key;
|
|
723
1085
|
return PLANET_GLYPHS[resolved] ?? ANGLE_GLYPHS[resolved] ?? null;
|
|
724
1086
|
}
|
|
1087
|
+
function getExternalPointPadding(options, scale) {
|
|
1088
|
+
const externalLayers = options.pointLayers?.filter((layer) => layer.radius === "external") ?? [];
|
|
1089
|
+
if (externalLayers.length === 0) {
|
|
1090
|
+
return 0;
|
|
1091
|
+
}
|
|
1092
|
+
return Math.max(
|
|
1093
|
+
...externalLayers.map((layer) => (layer.radiusOffset ?? 18) + 36 * scale)
|
|
1094
|
+
);
|
|
1095
|
+
}
|
|
725
1096
|
function buildZodiacSegments(params) {
|
|
726
1097
|
const { center, angleOf, rings, scale, palette } = params;
|
|
727
1098
|
const boundaries = unwrapAngles(
|
|
@@ -760,7 +1131,7 @@ function buildZodiacSegments(params) {
|
|
|
760
1131
|
function buildHouseCusps(params) {
|
|
761
1132
|
const { houses, center, angleOf, rings, scale } = params;
|
|
762
1133
|
const ring = rings.houses;
|
|
763
|
-
const spokeInnerRadius =
|
|
1134
|
+
const spokeInnerRadius = rings.aspects.r2;
|
|
764
1135
|
const spokeOuterRadius = ring.r2 + 4 * scale;
|
|
765
1136
|
const labelRadius = ring.r2 + 12 * scale;
|
|
766
1137
|
const labelFontSize = clamp((ring.r2 - ring.r1) * 0.48, 10 * scale, 19 * scale);
|
|
@@ -782,7 +1153,7 @@ function buildHouseCusps(params) {
|
|
|
782
1153
|
function buildAngleMarkers(params) {
|
|
783
1154
|
const { chart, center, angleOf, rings, scale } = params;
|
|
784
1155
|
const ring = rings.houses;
|
|
785
|
-
const labelFontSize = clamp((ring.r2 - ring.r1) * 0.
|
|
1156
|
+
const labelFontSize = clamp((ring.r2 - ring.r1) * 0.32, 8 * scale, 18 * scale);
|
|
786
1157
|
const markers = [
|
|
787
1158
|
{ key: "ASC", position: chart.houses.ascendant },
|
|
788
1159
|
{ key: "MC", position: chart.houses.mc },
|
|
@@ -791,55 +1162,147 @@ function buildAngleMarkers(params) {
|
|
|
791
1162
|
];
|
|
792
1163
|
return markers.map((marker) => {
|
|
793
1164
|
const angle = angleOf(marker.position.longitude);
|
|
1165
|
+
const angleDeg = clamp360(angle * (180 / Math.PI));
|
|
1166
|
+
let labelRotation = angleDeg;
|
|
1167
|
+
if (labelRotation > 90 && labelRotation < 270) {
|
|
1168
|
+
labelRotation -= 180;
|
|
1169
|
+
}
|
|
794
1170
|
return {
|
|
795
1171
|
key: marker.key,
|
|
796
1172
|
longitude: normalizeAngle(marker.position.longitude),
|
|
1173
|
+
zodiacPosition: marker.position,
|
|
797
1174
|
line: lineFromPolar(center, ring.r1 + 4 * scale, ring.r2 - 4 * scale, angle),
|
|
798
|
-
labelPosition: polarWithNudge(
|
|
799
|
-
|
|
1175
|
+
labelPosition: polarWithNudge(
|
|
1176
|
+
center.x,
|
|
1177
|
+
center.y,
|
|
1178
|
+
ring.r2 + 9 * scale,
|
|
1179
|
+
angle,
|
|
1180
|
+
0,
|
|
1181
|
+
0
|
|
1182
|
+
),
|
|
1183
|
+
labelFontSize,
|
|
1184
|
+
labelRotation
|
|
800
1185
|
};
|
|
801
1186
|
});
|
|
802
1187
|
}
|
|
803
1188
|
function buildPointLayer(params) {
|
|
804
|
-
const { layer, center, angleOf, rings, scale, palette } = params;
|
|
1189
|
+
const { layer, center, angleOf, rings, scale, palette, excludedBodies } = params;
|
|
805
1190
|
const ring = rings.planets;
|
|
806
|
-
const
|
|
1191
|
+
const requestedRadius = resolvePointLayerRadius(layer, rings);
|
|
1192
|
+
const requestedExternalLayer = requestedRadius > rings.houses.r2 + scale;
|
|
807
1193
|
const thickness = ring.r2 - ring.r1;
|
|
808
1194
|
const glyphFontSize = clamp(thickness * 0.68, 14 * scale, 30 * scale) * (layer.glyphScale ?? 1);
|
|
1195
|
+
const autoPlanetRail = layer.radius === void 0 || layer.radius === "base";
|
|
1196
|
+
const radius = !requestedExternalLayer && autoPlanetRail ? clamp(
|
|
1197
|
+
ring.r2 - glyphFontSize * 0.58 - Math.max(3 * scale, 2),
|
|
1198
|
+
ring.r1 + glyphFontSize * 0.65,
|
|
1199
|
+
ring.r2 - glyphFontSize * 0.48
|
|
1200
|
+
) : requestedRadius;
|
|
1201
|
+
const isExternalLayer = radius > rings.houses.r2 + scale;
|
|
809
1202
|
const tickLength = Math.min(14 * scale, thickness * 0.34);
|
|
810
|
-
const
|
|
811
|
-
|
|
812
|
-
|
|
1203
|
+
const glyphMinSepDeg = glyphFontSize * 0.9 / Math.max(radius, 1) * (180 / Math.PI);
|
|
1204
|
+
const collisionThresholdDegrees = clamp(
|
|
1205
|
+
layer.collisionThresholdDegrees ?? Math.max(2, Math.min(8, glyphMinSepDeg)),
|
|
1206
|
+
0,
|
|
1207
|
+
30
|
|
813
1208
|
);
|
|
814
|
-
const
|
|
815
|
-
const
|
|
816
|
-
const
|
|
1209
|
+
const tangentStep = glyphFontSize * (isExternalLayer ? 0.68 : 0.74);
|
|
1210
|
+
const collisionPadding = Math.max(2 * scale, 1.5);
|
|
1211
|
+
const zodiacKeepOutGap = Math.max(5 * scale, 4);
|
|
1212
|
+
const labelMaxRadius = isExternalLayer ? Number.POSITIVE_INFINITY : rings.zodiac.r1 - zodiacKeepOutGap;
|
|
1213
|
+
const seeds = getPointSeeds(layer, excludedBodies);
|
|
1214
|
+
const clusters = clusterPointSeeds(seeds, collisionThresholdDegrees);
|
|
817
1215
|
const color = layer.color ?? palette.planetGlyph;
|
|
818
1216
|
const tickColor = layer.tickColor ?? color;
|
|
819
|
-
const
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
1217
|
+
const placedLabelBounds = [];
|
|
1218
|
+
const points = clusters.flatMap((cluster) => {
|
|
1219
|
+
const clusterMidpoint = (cluster.length - 1) / 2;
|
|
1220
|
+
return cluster.map((seed, index) => {
|
|
823
1221
|
const tickAngle = angleOf(seed.longitude);
|
|
824
|
-
const
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
1222
|
+
const pointGlyphFontSize = seed.kind === "vertex" ? glyphFontSize * 0.82 : glyphFontSize;
|
|
1223
|
+
const rawGlyphRadius = radius;
|
|
1224
|
+
const glyphRadius = isExternalLayer ? rawGlyphRadius : clamp(
|
|
1225
|
+
rawGlyphRadius,
|
|
1226
|
+
rings.aspects.r2 + pointGlyphFontSize * 0.65,
|
|
1227
|
+
labelMaxRadius - pointGlyphFontSize * 0.5
|
|
1228
|
+
);
|
|
1229
|
+
const tickLine = isExternalLayer ? lineFromPolar(
|
|
1230
|
+
center,
|
|
1231
|
+
rings.houses.r2 + 2 * scale,
|
|
1232
|
+
Math.max(rings.houses.r2 + 6 * scale, radius - glyphFontSize * 0.44),
|
|
1233
|
+
tickAngle
|
|
1234
|
+
) : lineFromPolar(center, ring.r2 - tickLength, ring.r2, tickAngle);
|
|
1235
|
+
const leaderStartRadius = isExternalLayer ? Math.max(rings.houses.r2 + 6 * scale, radius - glyphFontSize * 0.44) : radius;
|
|
1236
|
+
const leaderStart = polarToXY(center.x, center.y, leaderStartRadius, tickAngle);
|
|
1237
|
+
let tangentOffset = cluster.length > 1 ? (index - clusterMidpoint) * tangentStep : 0;
|
|
1238
|
+
const nudgeDirection = index - clusterMidpoint >= 0 ? 1 : -1;
|
|
1239
|
+
const makePoint = () => {
|
|
1240
|
+
const labelAngle = tickAngle + tangentOffset / Math.max(glyphRadius, 1);
|
|
1241
|
+
let glyphPosition = polarToXY(center.x, center.y, glyphRadius, labelAngle);
|
|
1242
|
+
const labelDisplaced = Math.abs(tangentOffset) > 0.01;
|
|
1243
|
+
let point2 = {
|
|
1244
|
+
layerId: layer.id,
|
|
1245
|
+
key: seed.key,
|
|
1246
|
+
name: seed.name,
|
|
1247
|
+
kind: seed.kind,
|
|
1248
|
+
glyph: seed.glyph,
|
|
1249
|
+
glyphKey: seed.glyphKey,
|
|
1250
|
+
longitude: normalizeAngle(seed.longitude),
|
|
1251
|
+
displayLongitude: normalizeAngle(seed.longitude),
|
|
1252
|
+
zodiacPosition: seed.zodiacPosition,
|
|
1253
|
+
tickLine,
|
|
1254
|
+
labelAngle,
|
|
1255
|
+
leaderLine: labelDisplaced ? {
|
|
1256
|
+
x1: leaderStart.x,
|
|
1257
|
+
y1: leaderStart.y,
|
|
1258
|
+
x2: glyphPosition.x,
|
|
1259
|
+
y2: glyphPosition.y
|
|
1260
|
+
} : void 0,
|
|
1261
|
+
glyphPosition,
|
|
1262
|
+
glyphFontSize: pointGlyphFontSize,
|
|
1263
|
+
retrograde: seed.retrograde,
|
|
1264
|
+
color,
|
|
1265
|
+
tickColor
|
|
1266
|
+
};
|
|
1267
|
+
const layout = getPointLabelLayout(point2, scale);
|
|
1268
|
+
const constrainedLabel = constrainLabelInsideCircle({
|
|
1269
|
+
center,
|
|
1270
|
+
position: glyphPosition,
|
|
1271
|
+
layout,
|
|
1272
|
+
padding: collisionPadding,
|
|
1273
|
+
maxRadius: labelMaxRadius
|
|
1274
|
+
});
|
|
1275
|
+
if (constrainedLabel.moved) {
|
|
1276
|
+
glyphPosition = constrainedLabel.position;
|
|
1277
|
+
point2 = {
|
|
1278
|
+
...point2,
|
|
1279
|
+
glyphPosition,
|
|
1280
|
+
leaderLine: {
|
|
1281
|
+
x1: leaderStart.x,
|
|
1282
|
+
y1: leaderStart.y,
|
|
1283
|
+
x2: glyphPosition.x,
|
|
1284
|
+
y2: glyphPosition.y
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
return {
|
|
1289
|
+
...point2,
|
|
1290
|
+
labelBounds: constrainedLabel.bounds
|
|
1291
|
+
};
|
|
840
1292
|
};
|
|
841
|
-
|
|
842
|
-
|
|
1293
|
+
let point = makePoint();
|
|
1294
|
+
let attempts = 0;
|
|
1295
|
+
while (point.labelBounds && hasLabelBoundsCollision(point.labelBounds, placedLabelBounds) && attempts < 16) {
|
|
1296
|
+
tangentOffset += nudgeDirection * (tangentStep * 0.45 + collisionPadding);
|
|
1297
|
+
point = makePoint();
|
|
1298
|
+
attempts += 1;
|
|
1299
|
+
}
|
|
1300
|
+
if (point.labelBounds) {
|
|
1301
|
+
placedLabelBounds.push(point.labelBounds);
|
|
1302
|
+
}
|
|
1303
|
+
return point;
|
|
1304
|
+
});
|
|
1305
|
+
});
|
|
843
1306
|
return {
|
|
844
1307
|
id: layer.id,
|
|
845
1308
|
label: layer.label,
|
|
@@ -850,7 +1313,7 @@ function buildPointLayer(params) {
|
|
|
850
1313
|
};
|
|
851
1314
|
}
|
|
852
1315
|
function buildAspectLayer(params) {
|
|
853
|
-
const { layer, chart, pointByKey, center, angleOf, rings, palette } = params;
|
|
1316
|
+
const { layer, chart, pointByKey, center, angleOf, rings, palette, excludedBodies } = params;
|
|
854
1317
|
const sourceEdges = getSourceAspectEdges(chart, {
|
|
855
1318
|
edges: layer.edges,
|
|
856
1319
|
aspectSpecs: layer.aspectSpecs
|
|
@@ -860,6 +1323,9 @@ function buildAspectLayer(params) {
|
|
|
860
1323
|
const layerPointPrefixA = layer.pointLayerIdA ? pointKeyPrefix(layer.pointLayerIdA) : layerPointPrefix;
|
|
861
1324
|
const layerPointPrefixB = layer.pointLayerIdB ? pointKeyPrefix(layer.pointLayerIdB) : layerPointPrefix;
|
|
862
1325
|
const aspectLines = sourceEdges.flatMap((edge) => {
|
|
1326
|
+
if (isExcludedBody(edge.planetA, excludedBodies) || isExcludedBody(edge.planetB, excludedBodies)) {
|
|
1327
|
+
return [];
|
|
1328
|
+
}
|
|
863
1329
|
const planetAKey = layerPointPrefixA + normalizePointKey(edge.planetA);
|
|
864
1330
|
const planetBKey = layerPointPrefixB + normalizePointKey(edge.planetB);
|
|
865
1331
|
const planetA = pointByKey[planetAKey];
|
|
@@ -899,7 +1365,7 @@ function buildAspectLayer(params) {
|
|
|
899
1365
|
aspectLines
|
|
900
1366
|
};
|
|
901
1367
|
}
|
|
902
|
-
function getPointSeeds(layer) {
|
|
1368
|
+
function getPointSeeds(layer, excludedBodies) {
|
|
903
1369
|
const seeds = [];
|
|
904
1370
|
const chart = layer.chart;
|
|
905
1371
|
if (chart) {
|
|
@@ -930,7 +1396,7 @@ function getPointSeeds(layer) {
|
|
|
930
1396
|
zodiacPosition: chart.houses.ascmc.vertex
|
|
931
1397
|
});
|
|
932
1398
|
}
|
|
933
|
-
return seeds.sort((a, b) => normalizeAngle(a.longitude) - normalizeAngle(b.longitude));
|
|
1399
|
+
return seeds.filter((seed) => !isExcludedBody(seed.name, excludedBodies)).sort((a, b) => normalizeAngle(a.longitude) - normalizeAngle(b.longitude));
|
|
934
1400
|
}
|
|
935
1401
|
function planetSeed(key, planet, layerId) {
|
|
936
1402
|
return {
|
|
@@ -940,6 +1406,7 @@ function planetSeed(key, planet, layerId) {
|
|
|
940
1406
|
glyph: pointGlyph(planet.name),
|
|
941
1407
|
glyphKey: pointGlyphKey(planet.name),
|
|
942
1408
|
longitude: planet.longitude,
|
|
1409
|
+
retrograde: (planet.longitudeSpeed ?? 0) < 0,
|
|
943
1410
|
zodiacPosition: planet.zodiacPosition
|
|
944
1411
|
};
|
|
945
1412
|
}
|
|
@@ -962,6 +1429,7 @@ function pointSeed(point, layerId) {
|
|
|
962
1429
|
glyph: point.glyph ?? pointGlyph(point.name),
|
|
963
1430
|
glyphKey: point.glyph ? void 0 : pointGlyphKey(point.name),
|
|
964
1431
|
longitude: point.longitude,
|
|
1432
|
+
retrograde: point.retrograde,
|
|
965
1433
|
zodiacPosition: point.zodiacPosition
|
|
966
1434
|
};
|
|
967
1435
|
}
|
|
@@ -1078,14 +1546,18 @@ function buildRingMap(radius, defs) {
|
|
|
1078
1546
|
}
|
|
1079
1547
|
return result;
|
|
1080
1548
|
}
|
|
1081
|
-
function resolvePalette(palette = "default") {
|
|
1549
|
+
function resolvePalette(palette = "default", background = "transparent") {
|
|
1082
1550
|
const base = palette === "monochrome" ? MONOCHROME_PALETTE : DEFAULT_PALETTE;
|
|
1083
1551
|
if (palette === "default" || palette === "monochrome") {
|
|
1084
|
-
return
|
|
1552
|
+
return {
|
|
1553
|
+
...clonePalette(base),
|
|
1554
|
+
glyphHalo: defaultGlyphHalo(background)
|
|
1555
|
+
};
|
|
1085
1556
|
}
|
|
1086
1557
|
return {
|
|
1087
1558
|
...base,
|
|
1088
1559
|
...palette,
|
|
1560
|
+
glyphHalo: palette.glyphHalo ?? defaultGlyphHalo(background),
|
|
1089
1561
|
signColors: {
|
|
1090
1562
|
...base.signColors,
|
|
1091
1563
|
...palette.signColors ?? {}
|
|
@@ -1100,6 +1572,9 @@ function resolvePalette(palette = "default") {
|
|
|
1100
1572
|
}
|
|
1101
1573
|
};
|
|
1102
1574
|
}
|
|
1575
|
+
function defaultGlyphHalo(background) {
|
|
1576
|
+
return background === "transparent" ? "#0a1628" : background;
|
|
1577
|
+
}
|
|
1103
1578
|
function clonePalette(palette) {
|
|
1104
1579
|
return {
|
|
1105
1580
|
...palette,
|
|
@@ -1144,7 +1619,8 @@ function resolvePointOptions(options) {
|
|
|
1144
1619
|
return {
|
|
1145
1620
|
enabled: options.enabled ?? true,
|
|
1146
1621
|
nodes: options.nodes ?? true,
|
|
1147
|
-
vertex: options.vertex ?? true
|
|
1622
|
+
vertex: options.vertex ?? true,
|
|
1623
|
+
collisionThresholdDegrees: options.collisionThresholdDegrees
|
|
1148
1624
|
};
|
|
1149
1625
|
}
|
|
1150
1626
|
function resolveAspectOptions(options) {
|
|
@@ -1160,7 +1636,11 @@ function resolveAspectOptions(options) {
|
|
|
1160
1636
|
aspectSpecs: options.aspectSpecs
|
|
1161
1637
|
};
|
|
1162
1638
|
}
|
|
1163
|
-
function resolvePointLayerRadius(layer,
|
|
1639
|
+
function resolvePointLayerRadius(layer, rings) {
|
|
1640
|
+
const ring = rings.planets;
|
|
1641
|
+
if (layer.radius === "external") {
|
|
1642
|
+
return rings.houses.r2 + (layer.radiusOffset ?? 18);
|
|
1643
|
+
}
|
|
1164
1644
|
const base = (ring.r1 + ring.r2) / 2;
|
|
1165
1645
|
const radius = layer.radius === "inner" ? ring.r1 : layer.radius === "outer" ? ring.r2 : typeof layer.radius === "number" ? layer.radius : base;
|
|
1166
1646
|
return radius + (layer.radiusOffset ?? 0);
|
|
@@ -1180,6 +1660,12 @@ function pointGlyphKey(name) {
|
|
|
1180
1660
|
const key = normalizePointKey(name);
|
|
1181
1661
|
return POINT_GLYPH_ALIASES[key] ?? key;
|
|
1182
1662
|
}
|
|
1663
|
+
function resolveExcludedBodies(excludeBodies) {
|
|
1664
|
+
return new Set((excludeBodies ?? []).map((body) => normalizePointKey(body)));
|
|
1665
|
+
}
|
|
1666
|
+
function isExcludedBody(name, excludedBodies) {
|
|
1667
|
+
return excludedBodies.has(normalizePointKey(name));
|
|
1668
|
+
}
|
|
1183
1669
|
function normalizePointKey(value) {
|
|
1184
1670
|
return value.trim().toLocaleLowerCase().replace(/[_-]+/g, " ").replace(/\s+/g, " ");
|
|
1185
1671
|
}
|
|
@@ -1205,7 +1691,11 @@ function renderGlyphPrimitives(push, primitives, options) {
|
|
|
1205
1691
|
`<text x="${fmt(p.x ?? 0)}" y="${fmt(p.y ?? 0)}" font-family="${textFontFamily()}" font-size="${fmt(p.fontSize ?? 0.72)}" font-weight="${escapeAttr(String(p.fontWeight ?? 500))}" text-anchor="middle" dominant-baseline="middle" fill="${escapeAttr(options.color)}" stroke="none">${escapeText(p.text)}</text>`
|
|
1206
1692
|
);
|
|
1207
1693
|
} else {
|
|
1208
|
-
|
|
1694
|
+
let markup = p.markup;
|
|
1695
|
+
if (options.glyphFill) {
|
|
1696
|
+
markup = markup.split(GLYPH_FILL).join(options.glyphFill);
|
|
1697
|
+
}
|
|
1698
|
+
push(markup);
|
|
1209
1699
|
}
|
|
1210
1700
|
}
|
|
1211
1701
|
}
|
|
@@ -2241,5 +2731,5 @@ function escapeAttr2(value) {
|
|
|
2241
2731
|
}
|
|
2242
2732
|
|
|
2243
2733
|
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, PLANET_GLYPHS, PLANET_GLYPH_PRIMITIVES, TREE_PATH_IDS, TREE_SPHERE_IDS, TREE_SPHERE_NAMES, TREE_SVG_DEFAULT_VIEWBOX, ZODIAC_GLYPHS, ZODIAC_GLYPH_PRIMITIVES, generateAstroGlyphSvg, generateAstroWheelSvg, generateGlyphSvg, generateTreeSvg, getAstroGlyph, getAstroWheelRenderModel, getTreeLayout, getTreeRenderModel, listAstroGlyphs };
|
|
2244
|
-
//# sourceMappingURL=chunk-
|
|
2245
|
-
//# sourceMappingURL=chunk-
|
|
2734
|
+
//# sourceMappingURL=chunk-2FRLTA5B.mjs.map
|
|
2735
|
+
//# sourceMappingURL=chunk-2FRLTA5B.mjs.map
|