kaabalah 6.12.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.
@@ -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 chunkM2FTEWY2_js = require('./chunk-M2FTEWY2.js');
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" ? chunkM2FTEWY2_js.getTarotArchetype({ tarotCardNumber: card.number }) : void 0;
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(chunkM2FTEWY2_js.ARKANNUS.map((card) => buildTarotThemeProfile(card)));
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 = chunkM2FTEWY2_js.getTarotArchetype({
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-FCAIGKB5.js.map
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,
@@ -3175,6 +3184,7 @@ function getTreeRenderModel(options = {}) {
3175
3184
  }
3176
3185
  function generateTreeSvg(options = {}) {
3177
3186
  const system = options.system ?? "kaabalah";
3187
+ assertTreeSvgSupportedSystem(system);
3178
3188
  const daathLayer = options.daathLayer ?? "front";
3179
3189
  const tree = chunkQ7YAKPBH_js.createTree({ system, parts: ["colors"] });
3180
3190
  const viewBox = normalizeViewBox3(options.viewBox);
@@ -3981,6 +3991,7 @@ exports.TREE_PATH_IDS = TREE_PATH_IDS;
3981
3991
  exports.TREE_SPHERE_IDS = TREE_SPHERE_IDS;
3982
3992
  exports.TREE_SPHERE_NAMES = TREE_SPHERE_NAMES;
3983
3993
  exports.TREE_SVG_DEFAULT_VIEWBOX = TREE_SVG_DEFAULT_VIEWBOX;
3994
+ exports.TREE_SVG_SUPPORTED_SYSTEM = TREE_SVG_SUPPORTED_SYSTEM;
3984
3995
  exports.ZODIAC_GLYPHS = ZODIAC_GLYPHS;
3985
3996
  exports.ZODIAC_GLYPH_PRIMITIVES = ZODIAC_GLYPH_PRIMITIVES;
3986
3997
  exports.generateArcheometerSvg = generateArcheometerSvg;
@@ -3993,6 +4004,7 @@ exports.getAstroGlyph = getAstroGlyph;
3993
4004
  exports.getRouteActivations = getRouteActivations;
3994
4005
  exports.getTreeLayout = getTreeLayout;
3995
4006
  exports.getTreeRenderModel = getTreeRenderModel;
4007
+ exports.getUnsupportedTreeSvgSystemMessage = getUnsupportedTreeSvgSystemMessage;
3996
4008
  exports.listAstroGlyphs = listAstroGlyphs;
3997
4009
  //# sourceMappingURL=out.js.map
3998
- //# sourceMappingURL=chunk-LUHQNKKJ.js.map
4010
+ //# sourceMappingURL=chunk-6GDEXIDI.js.map