kaabalah 6.14.0 → 6.16.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/README.md +15 -0
- package/dist/astrology/index.d.mts +39 -1
- package/dist/astrology/index.d.ts +39 -1
- package/dist/astrology/index.js +75 -53
- package/dist/astrology/index.mjs +3 -1
- package/dist/chunk-2IC6H3FI.js +1600 -0
- package/dist/chunk-2IC6H3FI.js.map +1 -0
- package/dist/{chunk-RAQDVWNK.mjs → chunk-3JMY4U4S.mjs} +546 -3
- package/dist/chunk-3JMY4U4S.mjs.map +1 -0
- package/dist/chunk-3QN5V3DP.js +4737 -0
- package/dist/chunk-3QN5V3DP.js.map +1 -0
- package/dist/{chunk-UNXDDLZS.js → chunk-6LZOAU6E.js} +548 -3
- package/dist/chunk-6LZOAU6E.js.map +1 -0
- package/dist/{chunk-LXJ3THNW.mjs → chunk-7JWBIAUF.mjs} +12 -9
- package/dist/chunk-7JWBIAUF.mjs.map +1 -0
- package/dist/{chunk-Q7YAKPBH.js → chunk-7OWGGDRF.js} +80 -1015
- package/dist/chunk-7OWGGDRF.js.map +1 -0
- package/dist/{chunk-2WCC2KCJ.js → chunk-BALOSCWQ.mjs} +22 -3
- package/dist/chunk-BALOSCWQ.mjs.map +1 -0
- package/dist/{chunk-4PVIDUPI.js → chunk-BKFHIKFY.js} +647 -187
- package/dist/chunk-BKFHIKFY.js.map +1 -0
- package/dist/{chunk-7C7VO76O.js → chunk-CMXTZKWW.js} +574 -147
- package/dist/chunk-CMXTZKWW.js.map +1 -0
- package/dist/{chunk-6GDEXIDI.js → chunk-HEZCZXQC.js} +25 -22
- package/dist/chunk-HEZCZXQC.js.map +1 -0
- package/dist/chunk-ICUDGCYX.js +15 -0
- package/dist/chunk-ICUDGCYX.js.map +1 -0
- package/dist/chunk-IT7GZ337.mjs +4679 -0
- package/dist/chunk-IT7GZ337.mjs.map +1 -0
- package/dist/{chunk-NOZKIUGP.mjs → chunk-J5Y325TG.mjs} +80 -1015
- package/dist/chunk-J5Y325TG.mjs.map +1 -0
- package/dist/chunk-JY4QC6FR.js +2214 -0
- package/dist/chunk-JY4QC6FR.js.map +1 -0
- package/dist/{chunk-URDMOQRN.mjs → chunk-L5EYUE4B.js} +27 -2
- package/dist/chunk-L5EYUE4B.js.map +1 -0
- package/dist/{chunk-QQN54SLY.mjs → chunk-LQVHJ3VY.mjs} +454 -32
- package/dist/chunk-LQVHJ3VY.mjs.map +1 -0
- package/dist/{chunk-WA52P72D.mjs → chunk-MWLSSRHL.mjs} +628 -168
- package/dist/chunk-MWLSSRHL.mjs.map +1 -0
- package/dist/{chunk-CW6QDSMF.js → chunk-PBBF5DKC.js} +88 -21
- package/dist/chunk-PBBF5DKC.js.map +1 -0
- package/dist/chunk-RUE6NTVT.mjs +2211 -0
- package/dist/chunk-RUE6NTVT.mjs.map +1 -0
- package/dist/{chunk-X5HGLMEF.mjs → chunk-UO2RQQZO.mjs} +770 -3
- package/dist/chunk-UO2RQQZO.mjs.map +1 -0
- package/dist/chunk-W2N7STO3.mjs +13 -0
- package/dist/chunk-W2N7STO3.mjs.map +1 -0
- package/dist/chunk-WP5MRAYG.mjs +6289 -0
- package/dist/chunk-WP5MRAYG.mjs.map +1 -0
- package/dist/chunk-WRF3EORB.js +6333 -0
- package/dist/chunk-WRF3EORB.js.map +1 -0
- package/dist/{chunk-OSMB2MJR.mjs → chunk-Z3JZ5DZN.mjs} +68 -3
- package/dist/chunk-Z3JZ5DZN.mjs.map +1 -0
- package/dist/cli.js +39837 -28550
- package/dist/cli.js.map +1 -1
- package/dist/core/index.d.mts +24 -1
- package/dist/core/index.d.ts +24 -1
- package/dist/core/index.js +67 -53
- package/dist/core/index.mjs +4 -2
- package/dist/{data-BRi5-xg_.d.ts → data-Dle4z75J.d.ts} +1 -1
- package/dist/{data-BoQrkrWX.d.mts → data-DvKCOgjb.d.mts} +1 -1
- package/dist/gematria/index.d.mts +153 -1
- package/dist/gematria/index.d.ts +153 -1
- package/dist/gematria/index.js +15 -5
- package/dist/gematria/index.mjs +4 -2
- package/dist/iching/index.d.mts +802 -30
- package/dist/iching/index.d.ts +802 -30
- package/dist/iching/index.js +72 -38
- package/dist/iching/index.mjs +5 -3
- package/dist/ifa/index.d.mts +44 -1
- package/dist/ifa/index.d.ts +44 -1
- package/dist/ifa/index.js +11 -2
- package/dist/ifa/index.mjs +2 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +375 -265
- package/dist/index.mjs +12 -10
- package/dist/numerology/index.d.mts +872 -1
- package/dist/numerology/index.d.ts +872 -1
- package/dist/numerology/index.js +28 -18
- package/dist/numerology/index.mjs +5 -3
- package/dist/semantic/index.d.mts +94 -17
- package/dist/semantic/index.d.ts +94 -17
- package/dist/semantic/index.js +57 -35
- package/dist/semantic/index.mjs +9 -7
- package/dist/tarot/index.d.mts +15 -10
- package/dist/tarot/index.d.ts +15 -10
- package/dist/tarot/index.js +32 -30
- package/dist/tarot/index.mjs +5 -3
- package/dist/visual/index.js +48 -46
- package/dist/visual/index.mjs +5 -3
- package/package.json +7 -3
- package/dist/chunk-2WCC2KCJ.js.map +0 -1
- package/dist/chunk-47BAJUYW.js +0 -830
- package/dist/chunk-47BAJUYW.js.map +0 -1
- package/dist/chunk-4PVIDUPI.js.map +0 -1
- package/dist/chunk-6GDEXIDI.js.map +0 -1
- package/dist/chunk-7C7VO76O.js.map +0 -1
- package/dist/chunk-CW6QDSMF.js.map +0 -1
- package/dist/chunk-LXJ3THNW.mjs.map +0 -1
- package/dist/chunk-NOZKIUGP.mjs.map +0 -1
- package/dist/chunk-OSMB2MJR.mjs.map +0 -1
- package/dist/chunk-OZUEDZ4U.mjs +0 -3699
- package/dist/chunk-OZUEDZ4U.mjs.map +0 -1
- package/dist/chunk-PEHDLSUH.mjs +0 -2227
- package/dist/chunk-PEHDLSUH.mjs.map +0 -1
- package/dist/chunk-Q7YAKPBH.js.map +0 -1
- package/dist/chunk-QQN54SLY.mjs.map +0 -1
- package/dist/chunk-RAQDVWNK.mjs.map +0 -1
- package/dist/chunk-SWWLTDR6.js +0 -2280
- package/dist/chunk-SWWLTDR6.js.map +0 -1
- package/dist/chunk-UNXDDLZS.js.map +0 -1
- package/dist/chunk-URDMOQRN.mjs.map +0 -1
- package/dist/chunk-WA52P72D.mjs.map +0 -1
- package/dist/chunk-X5HGLMEF.mjs.map +0 -1
- package/dist/chunk-XWVT3SI7.js +0 -3735
- package/dist/chunk-XWVT3SI7.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk2IC6H3FI_js = require('./chunk-2IC6H3FI.js');
|
|
4
|
+
var chunk7OWGGDRF_js = require('./chunk-7OWGGDRF.js');
|
|
5
5
|
|
|
6
6
|
// src/visual/archeometer.ts
|
|
7
7
|
var TAU = Math.PI * 2;
|
|
@@ -2934,7 +2934,7 @@ var TREE_SVG_DEFAULT_VIEWBOX = {
|
|
|
2934
2934
|
height: 561
|
|
2935
2935
|
};
|
|
2936
2936
|
var TREE_SPHERE_NAMES = [
|
|
2937
|
-
...
|
|
2937
|
+
...chunk2IC6H3FI_js.TREE_TOPOLOGY_SPHERE_NAMES
|
|
2938
2938
|
];
|
|
2939
2939
|
var CANONICAL_X_PERCENTAGES = { left: 13.25, mid: 49.94, right: 86.66 };
|
|
2940
2940
|
var CANONICAL_ROW_Y_PERCENTAGES = [
|
|
@@ -2958,8 +2958,8 @@ var INNER_BORDER_SPHERE_NAMES = /* @__PURE__ */ new Set(["Tiphareth"]);
|
|
|
2958
2958
|
var NAZAR_NACRE = "__nacre__";
|
|
2959
2959
|
var NAZAR_IRIS = "#33a6dd";
|
|
2960
2960
|
var NAZAR_PUPIL = "#0b0b12";
|
|
2961
|
-
var sphereId = (name) =>
|
|
2962
|
-
var pathId = (value) =>
|
|
2961
|
+
var sphereId = (name) => chunk7OWGGDRF_js.id("sphere" /* SPHERE */, name);
|
|
2962
|
+
var pathId = (value) => chunk7OWGGDRF_js.id("path" /* PATH */, value);
|
|
2963
2963
|
var SPLIT_GRADIENT_PATH_IDS = new Set(
|
|
2964
2964
|
Array.from({ length: 22 }, (_, index) => pathId(String(index + 1)))
|
|
2965
2965
|
);
|
|
@@ -2990,8 +2990,8 @@ function edgeAnchoredVector(from, to, radius) {
|
|
|
2990
2990
|
y2: round3(to.y - uy * radius)
|
|
2991
2991
|
};
|
|
2992
2992
|
}
|
|
2993
|
-
var TREE_SPHERE_IDS = [...
|
|
2994
|
-
var TREE_PATH_IDS = [...
|
|
2993
|
+
var TREE_SPHERE_IDS = [...chunk2IC6H3FI_js.TREE_TOPOLOGY_SPHERE_IDS];
|
|
2994
|
+
var TREE_PATH_IDS = [...chunk2IC6H3FI_js.TREE_TOPOLOGY_PATH_IDS];
|
|
2995
2995
|
var CANONICAL_SPHERE_PERCENTAGES = {
|
|
2996
2996
|
[sphereId("Kether")]: { x: CANONICAL_X_PERCENTAGES.mid, y: CANONICAL_ROW_Y_PERCENTAGES[0] },
|
|
2997
2997
|
[sphereId("Chokhmah")]: { x: CANONICAL_X_PERCENTAGES.right, y: CANONICAL_ROW_Y_PERCENTAGES[1] },
|
|
@@ -3006,7 +3006,7 @@ var CANONICAL_SPHERE_PERCENTAGES = {
|
|
|
3006
3006
|
[sphereId("Malkuth")]: { x: CANONICAL_X_PERCENTAGES.mid, y: CANONICAL_ROW_Y_PERCENTAGES[7] }
|
|
3007
3007
|
};
|
|
3008
3008
|
function getTreeLayout(system = "kaabalah") {
|
|
3009
|
-
const tree =
|
|
3009
|
+
const tree = chunk7OWGGDRF_js.createTree({ system });
|
|
3010
3010
|
const percentages = buildLayoutMap(tree, CANONICAL_SPHERE_PERCENTAGES);
|
|
3011
3011
|
const viewBoxUnits = buildLayoutMap(
|
|
3012
3012
|
tree,
|
|
@@ -3035,7 +3035,7 @@ function getRouteActivations(route, options = {}) {
|
|
|
3035
3035
|
}
|
|
3036
3036
|
function getTreeRenderModel(options = {}) {
|
|
3037
3037
|
const system = options.system ?? "kaabalah";
|
|
3038
|
-
const tree =
|
|
3038
|
+
const tree = chunk7OWGGDRF_js.createTree({ system, parts: ["colors"] });
|
|
3039
3039
|
const viewBox = normalizeViewBox3(options.viewBox);
|
|
3040
3040
|
const palette = resolvePalette3(options.palette);
|
|
3041
3041
|
const highlights = resolveHighlights(options.highlights);
|
|
@@ -3186,7 +3186,7 @@ function generateTreeSvg(options = {}) {
|
|
|
3186
3186
|
const system = options.system ?? "kaabalah";
|
|
3187
3187
|
assertTreeSvgSupportedSystem(system);
|
|
3188
3188
|
const daathLayer = options.daathLayer ?? "front";
|
|
3189
|
-
const tree =
|
|
3189
|
+
const tree = chunk7OWGGDRF_js.createTree({ system, parts: ["colors"] });
|
|
3190
3190
|
const viewBox = normalizeViewBox3(options.viewBox);
|
|
3191
3191
|
const palette = resolvePalette3(options.palette);
|
|
3192
3192
|
const highlights = resolveHighlights(options.highlights);
|
|
@@ -3245,7 +3245,9 @@ function generateTreeSvg(options = {}) {
|
|
|
3245
3245
|
if (palette.mode === "color") {
|
|
3246
3246
|
for (const splitPathId of SPLIT_GRADIENT_PATH_IDS) {
|
|
3247
3247
|
const splitPath = layout.paths[splitPathId];
|
|
3248
|
-
|
|
3248
|
+
const splitActivation = activationMap.get(splitPathId);
|
|
3249
|
+
const recoloured = splitActivation !== void 0 && (splitActivation.color !== void 0 || (splitActivation.state ?? (splitActivation.count > 0 ? "active" : "inactive")) === "inactive");
|
|
3250
|
+
if (!splitPath || highlights.pathColors[splitPathId] !== void 0 || recoloured) {
|
|
3249
3251
|
continue;
|
|
3250
3252
|
}
|
|
3251
3253
|
const fromColor = resolveSplitEndpointColor({
|
|
@@ -3260,8 +3262,8 @@ function generateTreeSvg(options = {}) {
|
|
|
3260
3262
|
});
|
|
3261
3263
|
const blendStart = round3(50 - SPLIT_GRADIENT_BLEND / 2);
|
|
3262
3264
|
const blendEnd = round3(50 + SPLIT_GRADIENT_BLEND / 2);
|
|
3263
|
-
const fromName =
|
|
3264
|
-
const toName =
|
|
3265
|
+
const fromName = chunk7OWGGDRF_js.parseId(splitPath.fromId);
|
|
3266
|
+
const toName = chunk7OWGGDRF_js.parseId(splitPath.toId);
|
|
3265
3267
|
const contactT = toName === "Chokhmah" ? iridescentContactT(splitPath.to, splitPath.from) : fromName === "Chokhmah" ? iridescentContactT(splitPath.from, splitPath.to) : null;
|
|
3266
3268
|
const stops = buildSplitGradientStops({
|
|
3267
3269
|
fromName,
|
|
@@ -3274,7 +3276,7 @@ function generateTreeSvg(options = {}) {
|
|
|
3274
3276
|
});
|
|
3275
3277
|
const edge = edgeAnchoredVector(splitPath.from, splitPath.to, radius);
|
|
3276
3278
|
push(
|
|
3277
|
-
`<linearGradient id="path-grad-${
|
|
3279
|
+
`<linearGradient id="path-grad-${chunk7OWGGDRF_js.parseId(splitPathId)}" gradientUnits="userSpaceOnUse" x1="${edge.x1}" y1="${edge.y1}" x2="${edge.x2}" y2="${edge.y2}">
|
|
3278
3280
|
${stops}
|
|
3279
3281
|
</linearGradient>`
|
|
3280
3282
|
);
|
|
@@ -3325,10 +3327,11 @@ ${stops}
|
|
|
3325
3327
|
activation: activationMap.get(currentPathId),
|
|
3326
3328
|
canonicalColor
|
|
3327
3329
|
});
|
|
3328
|
-
const useSplitGradient = palette.mode === "color" &&
|
|
3330
|
+
const useSplitGradient = palette.mode === "color" && // A lit path keeps its sphere-to-sphere colours unless the caller recolours it.
|
|
3331
|
+
(!activation || activation.visible && !activation.colorOverride) && highlights.pathColors[currentPathId] === void 0 && SPLIT_GRADIENT_PATH_IDS.has(currentPathId);
|
|
3329
3332
|
const solidColor = activation ? resolvePathDisplayColor({ canonicalColor, activation }) : baseColor;
|
|
3330
3333
|
const solidEdgeColor = resolvePathEdgeColor({ palette, pathColor: solidColor });
|
|
3331
|
-
const gradientRef = useSplitGradient ? `url(#path-grad-${
|
|
3334
|
+
const gradientRef = useSplitGradient ? `url(#path-grad-${chunk7OWGGDRF_js.parseId(currentPathId)})` : null;
|
|
3332
3335
|
const color = gradientRef ?? solidColor;
|
|
3333
3336
|
const edgeColor = gradientRef ?? solidEdgeColor;
|
|
3334
3337
|
const edgeFilter = palette.pathEdgeUseFilter ? ` filter="url(#pathDarken)"` : "";
|
|
@@ -3342,7 +3345,7 @@ ${stops}
|
|
|
3342
3345
|
);
|
|
3343
3346
|
if (activation?.visible && activation.emphasis > 0) {
|
|
3344
3347
|
push(
|
|
3345
|
-
`<line x1="${path.from.x}" y1="${path.from.y}" x2="${path.to.x}" y2="${path.to.y}" stroke="${escapeAttr3(color)}" stroke-opacity="${round3(0.
|
|
3348
|
+
`<line x1="${path.from.x}" y1="${path.from.y}" x2="${path.to.x}" y2="${path.to.y}" stroke="${escapeAttr3(color)}" stroke-opacity="${round3(0.2 + activation.emphasis * 0.4)}" stroke-width="${round3(pathEdgeWidth + 2 * (1.5 + activation.emphasis * 9.5))}" stroke-linecap="round"/>`
|
|
3346
3349
|
);
|
|
3347
3350
|
}
|
|
3348
3351
|
if (gradientRef) {
|
|
@@ -3411,11 +3414,11 @@ function renderSphere(push, params) {
|
|
|
3411
3414
|
activation: params.activation
|
|
3412
3415
|
});
|
|
3413
3416
|
if (params.activation?.visible && params.activation.emphasis > 0) {
|
|
3414
|
-
const haloStrokeWidth = round3(
|
|
3417
|
+
const haloStrokeWidth = round3(1.5 + params.activation.emphasis * 9.5);
|
|
3415
3418
|
const haloRadius = round3(params.radius + haloStrokeWidth / 2 + 0.7);
|
|
3416
3419
|
const haloColor = params.activation.displayColor;
|
|
3417
3420
|
push(
|
|
3418
|
-
`<circle cx="${point.x}" cy="${point.y}" r="${haloRadius}" fill="none" stroke="${escapeAttr3(haloColor)}" stroke-opacity="${round3(0.
|
|
3421
|
+
`<circle cx="${point.x}" cy="${point.y}" r="${haloRadius}" fill="none" stroke="${escapeAttr3(haloColor)}" stroke-opacity="${round3(0.2 + params.activation.emphasis * 0.4)}" stroke-width="${haloStrokeWidth}"/>`
|
|
3419
3422
|
);
|
|
3420
3423
|
}
|
|
3421
3424
|
push(`<g id="sphere-${slug}" clip-path="url(#clip-${slug})">`);
|
|
@@ -3557,11 +3560,11 @@ function resolveTargetActivation(params) {
|
|
|
3557
3560
|
colorOverride: params.activation.color,
|
|
3558
3561
|
mutedColor: MUTED_TARGET_COLOR,
|
|
3559
3562
|
visible: state !== "inactive",
|
|
3560
|
-
emphasis: state === "selected" ? clamp01(Math.max(strength, 0.9)) : state === "hovered" ? clamp01(Math.max(strength, 0.72)) : state === "active" ? clamp01(Math.max(strength, 0.56)) : 0
|
|
3563
|
+
emphasis: state === "selected" ? clamp01(Math.max(strength, 0.9)) : state === "hovered" ? clamp01(Math.max(strength, 0.72)) : state === "active" ? params.activation.strength !== void 0 ? strength : clamp01(Math.max(strength, 0.56)) : 0
|
|
3561
3564
|
};
|
|
3562
3565
|
}
|
|
3563
3566
|
function resolveSplitEndpointColor(params) {
|
|
3564
|
-
const name =
|
|
3567
|
+
const name = chunk7OWGGDRF_js.parseId(params.sphereId);
|
|
3565
3568
|
return SPECIAL_SPHERE_PATH_COLORS[name] ?? resolveSphereCanonicalColor(params);
|
|
3566
3569
|
}
|
|
3567
3570
|
function buildSplitGradientStops(params) {
|
|
@@ -4007,4 +4010,4 @@ exports.getTreeRenderModel = getTreeRenderModel;
|
|
|
4007
4010
|
exports.getUnsupportedTreeSvgSystemMessage = getUnsupportedTreeSvgSystemMessage;
|
|
4008
4011
|
exports.listAstroGlyphs = listAstroGlyphs;
|
|
4009
4012
|
//# sourceMappingURL=out.js.map
|
|
4010
|
-
//# sourceMappingURL=chunk-
|
|
4013
|
+
//# sourceMappingURL=chunk-HEZCZXQC.js.map
|