kaabalah 6.11.0 → 6.12.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-FCAIGKB5.js → chunk-4XS3UZEI.js} +5 -5
- package/dist/{chunk-XUD2HQUG.js → chunk-6GDEXIDI.js} +180 -62
- package/dist/chunk-6GDEXIDI.js.map +1 -0
- package/dist/{chunk-M2FTEWY2.js → chunk-GET23WEG.js} +86 -1
- package/dist/chunk-GET23WEG.js.map +1 -0
- package/dist/{chunk-7LIIEUJB.mjs → chunk-KYYS4GHH.mjs} +2 -2
- package/dist/{chunk-4MACEIWO.mjs → chunk-LXJ3THNW.mjs} +180 -64
- package/dist/chunk-LXJ3THNW.mjs.map +1 -0
- package/dist/{chunk-Y3TLBFPD.mjs → chunk-WER5UY5M.mjs} +85 -2
- package/dist/chunk-WER5UY5M.mjs.map +1 -0
- package/dist/cli.js +493 -112
- package/dist/cli.js.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +99 -83
- package/dist/index.mjs +3 -3
- package/dist/semantic/index.js +21 -21
- package/dist/semantic/index.mjs +2 -2
- package/dist/tarot/index.d.mts +30 -1
- package/dist/tarot/index.d.ts +30 -1
- package/dist/tarot/index.js +29 -21
- package/dist/tarot/index.mjs +1 -1
- package/dist/visual/index.d.mts +3 -1
- package/dist/visual/index.d.ts +3 -1
- package/dist/visual/index.js +50 -42
- package/dist/visual/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-4MACEIWO.mjs.map +0 -1
- package/dist/chunk-M2FTEWY2.js.map +0 -1
- package/dist/chunk-XUD2HQUG.js.map +0 -1
- package/dist/chunk-Y3TLBFPD.mjs.map +0 -1
- /package/dist/{chunk-7LIIEUJB.mjs.map → chunk-4XS3UZEI.js.map} +0 -0
- /package/dist/{chunk-FCAIGKB5.js.map → chunk-KYYS4GHH.mjs.map} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunkUNXDDLZS_js = require('./chunk-UNXDDLZS.js');
|
|
4
4
|
var chunkSWWLTDR6_js = require('./chunk-SWWLTDR6.js');
|
|
5
5
|
var chunkCW6QDSMF_js = require('./chunk-CW6QDSMF.js');
|
|
6
|
-
var
|
|
6
|
+
var chunkGET23WEG_js = require('./chunk-GET23WEG.js');
|
|
7
7
|
var chunk47BAJUYW_js = require('./chunk-47BAJUYW.js');
|
|
8
8
|
var chunkQ7YAKPBH_js = require('./chunk-Q7YAKPBH.js');
|
|
9
9
|
|
|
@@ -1639,7 +1639,7 @@ function buildTarotThemeProfile(card) {
|
|
|
1639
1639
|
if (!cardNode) {
|
|
1640
1640
|
throw new Error(`Missing canonical tarot node for ${cardId}.`);
|
|
1641
1641
|
}
|
|
1642
|
-
const majorArchetypeData = card.type === "major" ?
|
|
1642
|
+
const majorArchetypeData = card.type === "major" ? chunkGET23WEG_js.getTarotArchetype({ tarotCardNumber: card.number }) : void 0;
|
|
1643
1643
|
const majorArchetype = majorArchetypeData ? {
|
|
1644
1644
|
pathId: majorArchetypeData.pathId,
|
|
1645
1645
|
pathNumber: majorArchetypeData.pathNumber,
|
|
@@ -1707,7 +1707,7 @@ function getTarotThemeProfileCache() {
|
|
|
1707
1707
|
if (tarotThemeProfilesCache) {
|
|
1708
1708
|
return tarotThemeProfilesCache;
|
|
1709
1709
|
}
|
|
1710
|
-
const profiles = Object.freeze(
|
|
1710
|
+
const profiles = Object.freeze(chunkGET23WEG_js.ARKANNUS.map((card) => buildTarotThemeProfile(card)));
|
|
1711
1711
|
tarotThemeProfilesCache = {
|
|
1712
1712
|
profiles,
|
|
1713
1713
|
byId: new Map(profiles.map((profile) => [profile.id, profile])),
|
|
@@ -1778,7 +1778,7 @@ function getTarotThemeProfile(lookup) {
|
|
|
1778
1778
|
return cache.byId.get(lookup);
|
|
1779
1779
|
}
|
|
1780
1780
|
if (lookup.startsWith(`${"path" /* PATH */}:`)) {
|
|
1781
|
-
const archetype =
|
|
1781
|
+
const archetype = chunkGET23WEG_js.getTarotArchetype({
|
|
1782
1782
|
pathId: lookup
|
|
1783
1783
|
});
|
|
1784
1784
|
return archetype ? cache.byCardNumber.get(archetype.tarotCardNumber) : void 0;
|
|
@@ -1823,4 +1823,4 @@ exports.listTarotThemeProfiles = listTarotThemeProfiles;
|
|
|
1823
1823
|
exports.listZodiacSignSymbolMetadata = listZodiacSignSymbolMetadata;
|
|
1824
1824
|
exports.tokenizeOccultThemeText = tokenizeOccultThemeText;
|
|
1825
1825
|
//# sourceMappingURL=out.js.map
|
|
1826
|
-
//# sourceMappingURL=chunk-
|
|
1826
|
+
//# sourceMappingURL=chunk-4XS3UZEI.js.map
|
|
@@ -2918,6 +2918,15 @@ function textFontFamily2() {
|
|
|
2918
2918
|
}
|
|
2919
2919
|
|
|
2920
2920
|
// src/visual/tree.ts
|
|
2921
|
+
var TREE_SVG_SUPPORTED_SYSTEM = "kaabalah";
|
|
2922
|
+
function getUnsupportedTreeSvgSystemMessage(system) {
|
|
2923
|
+
return `tree:svg is only supported for the Melkitzedeki system ('${TREE_SVG_SUPPORTED_SYSTEM}'); received '${system}'.`;
|
|
2924
|
+
}
|
|
2925
|
+
function assertTreeSvgSupportedSystem(system) {
|
|
2926
|
+
if (system !== TREE_SVG_SUPPORTED_SYSTEM) {
|
|
2927
|
+
throw new Error(getUnsupportedTreeSvgSystemMessage(system));
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2921
2930
|
var TREE_SVG_DEFAULT_VIEWBOX = {
|
|
2922
2931
|
minX: 0,
|
|
2923
2932
|
minY: 0,
|
|
@@ -2945,7 +2954,42 @@ var DEFAULT_PATH_HIGHLIGHT_WIDTH = 8;
|
|
|
2945
2954
|
var DEFAULT_SPHERE_HIT_RADIUS = DEFAULT_SPHERE_RADIUS + 8;
|
|
2946
2955
|
var DEFAULT_PATH_HIT_STROKE_WIDTH = DEFAULT_PATH_EDGE_WIDTH + 8;
|
|
2947
2956
|
var MUTED_TARGET_COLOR = "#AAA";
|
|
2957
|
+
var INNER_BORDER_SPHERE_NAMES = /* @__PURE__ */ new Set(["Tiphareth"]);
|
|
2958
|
+
var NAZAR_NACRE = "__nacre__";
|
|
2959
|
+
var NAZAR_IRIS = "#33a6dd";
|
|
2960
|
+
var NAZAR_PUPIL = "#0b0b12";
|
|
2948
2961
|
var sphereId = (name) => chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, name);
|
|
2962
|
+
var pathId = (value) => chunkQ7YAKPBH_js.id("path" /* PATH */, value);
|
|
2963
|
+
var SPLIT_GRADIENT_PATH_IDS = new Set(
|
|
2964
|
+
Array.from({ length: 22 }, (_, index) => pathId(String(index + 1)))
|
|
2965
|
+
);
|
|
2966
|
+
var SPLIT_GRADIENT_BLEND = 34;
|
|
2967
|
+
var SPECIAL_SPHERE_PATH_COLORS = {
|
|
2968
|
+
Kether: "#cfe0f2",
|
|
2969
|
+
Chokhmah: "#e6d6ef",
|
|
2970
|
+
Malkuth: "#8a6a52"
|
|
2971
|
+
};
|
|
2972
|
+
var CHOKHMAH_SWEEP_SPAN = 0.42;
|
|
2973
|
+
var CHOKHMAH_SWEEP_SAMPLES = 12;
|
|
2974
|
+
function iridescentColorAt(t) {
|
|
2975
|
+
const frac = (t % 1 + 1) % 1;
|
|
2976
|
+
return interpolateColorStops(IRIDESCENT_STOPS, frac);
|
|
2977
|
+
}
|
|
2978
|
+
function iridescentContactT(center, toward) {
|
|
2979
|
+
const degrees = Math.atan2(toward.y - center.y, toward.x - center.x) * 180 / Math.PI;
|
|
2980
|
+
return ((degrees + 90) / 360 % 1 + 1) % 1;
|
|
2981
|
+
}
|
|
2982
|
+
function edgeAnchoredVector(from, to, radius) {
|
|
2983
|
+
const length = Math.hypot(to.x - from.x, to.y - from.y) || 1;
|
|
2984
|
+
const ux = (to.x - from.x) / length;
|
|
2985
|
+
const uy = (to.y - from.y) / length;
|
|
2986
|
+
return {
|
|
2987
|
+
x1: round3(from.x + ux * radius),
|
|
2988
|
+
y1: round3(from.y + uy * radius),
|
|
2989
|
+
x2: round3(to.x - ux * radius),
|
|
2990
|
+
y2: round3(to.y - uy * radius)
|
|
2991
|
+
};
|
|
2992
|
+
}
|
|
2949
2993
|
var TREE_SPHERE_IDS = [...chunk47BAJUYW_js.TREE_TOPOLOGY_SPHERE_IDS];
|
|
2950
2994
|
var TREE_PATH_IDS = [...chunk47BAJUYW_js.TREE_TOPOLOGY_PATH_IDS];
|
|
2951
2995
|
var CANONICAL_SPHERE_PERCENTAGES = {
|
|
@@ -3140,6 +3184,7 @@ function getTreeRenderModel(options = {}) {
|
|
|
3140
3184
|
}
|
|
3141
3185
|
function generateTreeSvg(options = {}) {
|
|
3142
3186
|
const system = options.system ?? "kaabalah";
|
|
3187
|
+
assertTreeSvgSupportedSystem(system);
|
|
3143
3188
|
const daathLayer = options.daathLayer ?? "front";
|
|
3144
3189
|
const tree = chunkQ7YAKPBH_js.createTree({ system, parts: ["colors"] });
|
|
3145
3190
|
const viewBox = normalizeViewBox3(options.viewBox);
|
|
@@ -3197,21 +3242,44 @@ function generateTreeSvg(options = {}) {
|
|
|
3197
3242
|
`<clipPath id="clip-${slug}"><circle cx="${point.x}" cy="${point.y}" r="${radius}"/></clipPath>`
|
|
3198
3243
|
);
|
|
3199
3244
|
}
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3245
|
+
if (palette.mode === "color") {
|
|
3246
|
+
for (const splitPathId of SPLIT_GRADIENT_PATH_IDS) {
|
|
3247
|
+
const splitPath = layout.paths[splitPathId];
|
|
3248
|
+
if (!splitPath || highlights.pathColors[splitPathId] !== void 0 || activationMap.get(splitPathId) !== void 0) {
|
|
3249
|
+
continue;
|
|
3250
|
+
}
|
|
3251
|
+
const fromColor = resolveSplitEndpointColor({
|
|
3252
|
+
palette,
|
|
3253
|
+
sphereId: splitPath.fromId,
|
|
3254
|
+
tree
|
|
3255
|
+
});
|
|
3256
|
+
const toColor = resolveSplitEndpointColor({
|
|
3257
|
+
palette,
|
|
3258
|
+
sphereId: splitPath.toId,
|
|
3259
|
+
tree
|
|
3260
|
+
});
|
|
3261
|
+
const blendStart = round3(50 - SPLIT_GRADIENT_BLEND / 2);
|
|
3262
|
+
const blendEnd = round3(50 + SPLIT_GRADIENT_BLEND / 2);
|
|
3263
|
+
const fromName = chunkQ7YAKPBH_js.parseId(splitPath.fromId);
|
|
3264
|
+
const toName = chunkQ7YAKPBH_js.parseId(splitPath.toId);
|
|
3265
|
+
const contactT = toName === "Chokhmah" ? iridescentContactT(splitPath.to, splitPath.from) : fromName === "Chokhmah" ? iridescentContactT(splitPath.from, splitPath.to) : null;
|
|
3266
|
+
const stops = buildSplitGradientStops({
|
|
3267
|
+
fromName,
|
|
3268
|
+
toName,
|
|
3269
|
+
fromColor,
|
|
3270
|
+
toColor,
|
|
3271
|
+
blendStart,
|
|
3272
|
+
blendEnd,
|
|
3273
|
+
contactT
|
|
3274
|
+
});
|
|
3275
|
+
const edge = edgeAnchoredVector(splitPath.from, splitPath.to, radius);
|
|
3276
|
+
push(
|
|
3277
|
+
`<linearGradient id="path-grad-${chunkQ7YAKPBH_js.parseId(splitPathId)}" gradientUnits="userSpaceOnUse" x1="${edge.x1}" y1="${edge.y1}" x2="${edge.x2}" y2="${edge.y2}">
|
|
3278
|
+
${stops}
|
|
3279
|
+
</linearGradient>`
|
|
3280
|
+
);
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3215
3283
|
push(`</defs>`);
|
|
3216
3284
|
const background = options.background ?? "white";
|
|
3217
3285
|
if (background !== "transparent") {
|
|
@@ -3257,22 +3325,31 @@ function generateTreeSvg(options = {}) {
|
|
|
3257
3325
|
activation: activationMap.get(currentPathId),
|
|
3258
3326
|
canonicalColor
|
|
3259
3327
|
});
|
|
3260
|
-
const
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
}) :
|
|
3264
|
-
const
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3328
|
+
const useSplitGradient = palette.mode === "color" && !activation && highlights.pathColors[currentPathId] === void 0 && SPLIT_GRADIENT_PATH_IDS.has(currentPathId);
|
|
3329
|
+
const solidColor = activation ? resolvePathDisplayColor({ canonicalColor, activation }) : baseColor;
|
|
3330
|
+
const solidEdgeColor = resolvePathEdgeColor({ palette, pathColor: solidColor });
|
|
3331
|
+
const gradientRef = useSplitGradient ? `url(#path-grad-${chunkQ7YAKPBH_js.parseId(currentPathId)})` : null;
|
|
3332
|
+
const color = gradientRef ?? solidColor;
|
|
3333
|
+
const edgeColor = gradientRef ?? solidEdgeColor;
|
|
3334
|
+
const edgeFilter = palette.pathEdgeUseFilter ? ` filter="url(#pathDarken)"` : "";
|
|
3335
|
+
if (gradientRef) {
|
|
3336
|
+
push(
|
|
3337
|
+
`<line x1="${path.from.x}" y1="${path.from.y}" x2="${path.to.x}" y2="${path.to.y}" stroke="${escapeAttr3(solidEdgeColor)}" stroke-width="${pathEdgeWidth}" stroke-linecap="round"${edgeFilter}/>`
|
|
3338
|
+
);
|
|
3339
|
+
}
|
|
3268
3340
|
push(
|
|
3269
|
-
`<line x1="${path.from.x}" y1="${path.from.y}" x2="${path.to.x}" y2="${path.to.y}" stroke="${escapeAttr3(edgeColor)}" stroke-width="${pathEdgeWidth}" stroke-linecap="round"${
|
|
3341
|
+
`<line x1="${path.from.x}" y1="${path.from.y}" x2="${path.to.x}" y2="${path.to.y}" stroke="${escapeAttr3(edgeColor)}" stroke-width="${pathEdgeWidth}" stroke-linecap="round"${edgeFilter}/>`
|
|
3270
3342
|
);
|
|
3271
3343
|
if (activation?.visible && activation.emphasis > 0) {
|
|
3272
3344
|
push(
|
|
3273
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.18 + activation.emphasis * 0.28)}" stroke-width="${round3(pathEdgeWidth + activation.emphasis * 10)}" stroke-linecap="round"/>`
|
|
3274
3346
|
);
|
|
3275
3347
|
}
|
|
3348
|
+
if (gradientRef) {
|
|
3349
|
+
push(
|
|
3350
|
+
`<line x1="${path.from.x}" y1="${path.from.y}" x2="${path.to.x}" y2="${path.to.y}" stroke="${escapeAttr3(solidColor)}" stroke-width="${pathMainWidth}" stroke-linecap="round"/>`
|
|
3351
|
+
);
|
|
3352
|
+
}
|
|
3276
3353
|
push(
|
|
3277
3354
|
`<line x1="${path.from.x}" y1="${path.from.y}" x2="${path.to.x}" y2="${path.to.y}" stroke="${escapeAttr3(color)}" stroke-width="${pathMainWidth}" stroke-linecap="round"/>`
|
|
3278
3355
|
);
|
|
@@ -3387,6 +3464,16 @@ function renderSphere(push, params) {
|
|
|
3387
3464
|
push(
|
|
3388
3465
|
`<circle cx="${point.x}" cy="${point.y}" r="${params.radius}" fill="none" stroke="${escapeAttr3(params.palette.sphereStrokeColor)}" stroke-width="${params.sphereStrokeWidth}"/>`
|
|
3389
3466
|
);
|
|
3467
|
+
} else if (INNER_BORDER_SPHERE_NAMES.has(params.sphereName)) {
|
|
3468
|
+
const borderWidth = round3(params.radius * 0.05);
|
|
3469
|
+
const borderColor = interpolateColor(
|
|
3470
|
+
toPrimaryFill(activeFill, params.palette.defaultSphereFill),
|
|
3471
|
+
"#000000",
|
|
3472
|
+
0.2
|
|
3473
|
+
);
|
|
3474
|
+
push(
|
|
3475
|
+
`<circle cx="${point.x}" cy="${point.y}" r="${round3(params.radius - borderWidth / 2)}" fill="none" stroke="${escapeAttr3(borderColor)}" stroke-width="${borderWidth}"/>`
|
|
3476
|
+
);
|
|
3390
3477
|
}
|
|
3391
3478
|
}
|
|
3392
3479
|
function buildLayoutMap(tree, spherePositions) {
|
|
@@ -3473,6 +3560,40 @@ function resolveTargetActivation(params) {
|
|
|
3473
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
|
|
3474
3561
|
};
|
|
3475
3562
|
}
|
|
3563
|
+
function resolveSplitEndpointColor(params) {
|
|
3564
|
+
const name = chunkQ7YAKPBH_js.parseId(params.sphereId);
|
|
3565
|
+
return SPECIAL_SPHERE_PATH_COLORS[name] ?? resolveSphereCanonicalColor(params);
|
|
3566
|
+
}
|
|
3567
|
+
function buildSplitGradientStops(params) {
|
|
3568
|
+
const { fromName, toName, fromColor, toColor, blendStart, blendEnd, contactT } = params;
|
|
3569
|
+
const stop = (offset, color) => ` <stop offset="${round3(offset)}%" stop-color="${escapeAttr3(color)}"/>`;
|
|
3570
|
+
const sweep = (start, end, t0, sphereAtEnd) => Array.from({ length: CHOKHMAH_SWEEP_SAMPLES }, (_, index) => {
|
|
3571
|
+
const f = index / (CHOKHMAH_SWEEP_SAMPLES - 1);
|
|
3572
|
+
const offset = start + f * (end - start);
|
|
3573
|
+
const along = sphereAtEnd ? 1 - f : f;
|
|
3574
|
+
return stop(offset, iridescentColorAt(t0 + along * CHOKHMAH_SWEEP_SPAN));
|
|
3575
|
+
});
|
|
3576
|
+
if (toName === "Chokhmah" && contactT !== null) {
|
|
3577
|
+
return [
|
|
3578
|
+
stop(0, fromColor),
|
|
3579
|
+
stop(blendStart, fromColor),
|
|
3580
|
+
...sweep(blendEnd, 100, contactT, true)
|
|
3581
|
+
].join("\n");
|
|
3582
|
+
}
|
|
3583
|
+
if (fromName === "Chokhmah" && contactT !== null) {
|
|
3584
|
+
return [
|
|
3585
|
+
...sweep(0, blendStart, contactT, false),
|
|
3586
|
+
stop(blendEnd, toColor),
|
|
3587
|
+
stop(100, toColor)
|
|
3588
|
+
].join("\n");
|
|
3589
|
+
}
|
|
3590
|
+
return [
|
|
3591
|
+
stop(0, fromColor),
|
|
3592
|
+
stop(blendStart, fromColor),
|
|
3593
|
+
stop(blendEnd, toColor),
|
|
3594
|
+
stop(100, toColor)
|
|
3595
|
+
].join("\n");
|
|
3596
|
+
}
|
|
3476
3597
|
function resolveSphereCanonicalColor(params) {
|
|
3477
3598
|
const override = params.palette.sphereFills[params.sphereId];
|
|
3478
3599
|
if (override) {
|
|
@@ -3720,33 +3841,18 @@ function arcPath2(cx, cy, radius, startDegrees, endDegrees) {
|
|
|
3720
3841
|
const largeArc = endDegrees - startDegrees <= 180 ? 0 : 1;
|
|
3721
3842
|
return `M ${cx} ${cy} L ${start.x} ${start.y} A ${radius} ${radius} 0 ${largeArc} 1 ${end.x} ${end.y} Z`;
|
|
3722
3843
|
}
|
|
3723
|
-
function renderKether(push, point, radius, baseFill =
|
|
3844
|
+
function renderKether(push, point, radius, baseFill = NAZAR_NACRE) {
|
|
3845
|
+
const { x, y } = point;
|
|
3846
|
+
renderIridescent(push, point, radius, NACRE_STOPS);
|
|
3847
|
+
if (baseFill !== NAZAR_NACRE) {
|
|
3848
|
+
renderSphereTintOverlay(push, point, radius, baseFill, 0.5);
|
|
3849
|
+
}
|
|
3724
3850
|
push(
|
|
3725
|
-
`<circle cx="${
|
|
3851
|
+
`<circle cx="${x}" cy="${y}" r="${round3(radius * 0.42)}" fill="${escapeAttr3(NAZAR_IRIS)}"/>`
|
|
3852
|
+
);
|
|
3853
|
+
push(
|
|
3854
|
+
`<circle cx="${x}" cy="${y}" r="${round3(radius * 0.2)}" fill="${escapeAttr3(NAZAR_PUPIL)}"/>`
|
|
3726
3855
|
);
|
|
3727
|
-
push(`<circle cx="${point.x}" cy="${point.y}" r="${radius}" fill="url(#kether-glow)"/>`);
|
|
3728
|
-
const spokes = 16;
|
|
3729
|
-
const innerRadius = round3(radius * 0.18);
|
|
3730
|
-
const outerRadius = round3(radius * 0.92);
|
|
3731
|
-
const innerWidth = round3(radius * 0.04);
|
|
3732
|
-
const angleStep = 360 / spokes;
|
|
3733
|
-
push(`<g opacity="0.85">`);
|
|
3734
|
-
for (let index = 0; index < spokes; index++) {
|
|
3735
|
-
const angle = index * angleStep;
|
|
3736
|
-
push(`<g transform="rotate(${angle} ${point.x} ${point.y})">`);
|
|
3737
|
-
const x0 = round3(point.x - innerWidth);
|
|
3738
|
-
const y0 = round3(point.y - innerRadius);
|
|
3739
|
-
const x1 = point.x;
|
|
3740
|
-
const y1 = round3(point.y - outerRadius);
|
|
3741
|
-
const x2 = round3(point.x + innerWidth);
|
|
3742
|
-
const y2 = round3(point.y - innerRadius);
|
|
3743
|
-
push(
|
|
3744
|
-
`<polygon points="${x0},${y0} ${x1},${y1} ${x2},${y2} ${point.x},${point.y}" fill="url(#kether-facet)"/>`
|
|
3745
|
-
);
|
|
3746
|
-
push(`</g>`);
|
|
3747
|
-
}
|
|
3748
|
-
push(`</g>`);
|
|
3749
|
-
push(`<circle cx="${point.x}" cy="${point.y}" r="${radius}" fill="url(#kether-rim)"/>`);
|
|
3750
3856
|
}
|
|
3751
3857
|
function renderSlicedSphere(push, point, radius, colors, startAngle) {
|
|
3752
3858
|
const segmentCount = colors.length;
|
|
@@ -3758,18 +3864,28 @@ function renderSlicedSphere(push, point, radius, colors, startAngle) {
|
|
|
3758
3864
|
currentAngle += step;
|
|
3759
3865
|
}
|
|
3760
3866
|
}
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3867
|
+
var IRIDESCENT_STOPS = [
|
|
3868
|
+
[0, "#F0E8EE"],
|
|
3869
|
+
[0.1, "#ffa3e6"],
|
|
3870
|
+
[0.22, "#a7e0ff"],
|
|
3871
|
+
[0.34, "#baff9a"],
|
|
3872
|
+
[0.46, "#ffe28a"],
|
|
3873
|
+
[0.58, "#c6a4ff"],
|
|
3874
|
+
[0.7, "#9ad6ff"],
|
|
3875
|
+
[0.82, "#ffa3e6"],
|
|
3876
|
+
[1, "#F0E8EE"]
|
|
3877
|
+
];
|
|
3878
|
+
var NACRE_STOPS = [
|
|
3879
|
+
[0, "#eaf6f6"],
|
|
3880
|
+
[0.12, "#a8d6ec"],
|
|
3881
|
+
[0.25, "#c3b6ec"],
|
|
3882
|
+
[0.4, "#a6ecec"],
|
|
3883
|
+
[0.55, "#dfe6fb"],
|
|
3884
|
+
[0.7, "#a6cdf0"],
|
|
3885
|
+
[0.82, "#cbb4ec"],
|
|
3886
|
+
[1, "#eaf6f6"]
|
|
3887
|
+
];
|
|
3888
|
+
function renderIridescent(push, point, radius, stops = IRIDESCENT_STOPS) {
|
|
3773
3889
|
const slices = 72;
|
|
3774
3890
|
const sphereRadius = round3(radius * 0.96);
|
|
3775
3891
|
for (let index = 0; index < slices; index++) {
|
|
@@ -3875,6 +3991,7 @@ exports.TREE_PATH_IDS = TREE_PATH_IDS;
|
|
|
3875
3991
|
exports.TREE_SPHERE_IDS = TREE_SPHERE_IDS;
|
|
3876
3992
|
exports.TREE_SPHERE_NAMES = TREE_SPHERE_NAMES;
|
|
3877
3993
|
exports.TREE_SVG_DEFAULT_VIEWBOX = TREE_SVG_DEFAULT_VIEWBOX;
|
|
3994
|
+
exports.TREE_SVG_SUPPORTED_SYSTEM = TREE_SVG_SUPPORTED_SYSTEM;
|
|
3878
3995
|
exports.ZODIAC_GLYPHS = ZODIAC_GLYPHS;
|
|
3879
3996
|
exports.ZODIAC_GLYPH_PRIMITIVES = ZODIAC_GLYPH_PRIMITIVES;
|
|
3880
3997
|
exports.generateArcheometerSvg = generateArcheometerSvg;
|
|
@@ -3887,6 +4004,7 @@ exports.getAstroGlyph = getAstroGlyph;
|
|
|
3887
4004
|
exports.getRouteActivations = getRouteActivations;
|
|
3888
4005
|
exports.getTreeLayout = getTreeLayout;
|
|
3889
4006
|
exports.getTreeRenderModel = getTreeRenderModel;
|
|
4007
|
+
exports.getUnsupportedTreeSvgSystemMessage = getUnsupportedTreeSvgSystemMessage;
|
|
3890
4008
|
exports.listAstroGlyphs = listAstroGlyphs;
|
|
3891
4009
|
//# sourceMappingURL=out.js.map
|
|
3892
|
-
//# sourceMappingURL=chunk-
|
|
4010
|
+
//# sourceMappingURL=chunk-6GDEXIDI.js.map
|