western-signs 1.6.0 → 1.7.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 +1 -1
- package/assets/aquarius.svg +8 -0
- package/assets/aries.svg +9 -0
- package/assets/cancer.svg +9 -0
- package/assets/capricorn.svg +8 -0
- package/assets/gemini.svg +9 -0
- package/assets/leo.svg +8 -0
- package/assets/libra.svg +9 -0
- package/assets/pisces.svg +8 -0
- package/assets/sagittarius.svg +3 -0
- package/assets/scorpio.svg +9 -0
- package/assets/taurus.svg +9 -0
- package/assets/virgo.svg +8 -0
- package/dist/index.d.ts +66 -1
- package/dist/index.js +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M1.33334 10.3333C1.77576 9.89203 2.37513 9.64421 3.00001 9.64421C3.62489 9.64421 4.22426 9.89203 4.66668 10.3333C4.88548 10.5523 5.14529 10.726 5.43127 10.8446C5.71725 10.9631 6.02378 11.0241 6.33334 11.0241C6.64291 11.0241 6.94944 10.9631 7.23542 10.8446C7.52139 10.726 7.78121 10.5523 8.00001 10.3333C8.44242 9.89203 9.0418 9.64421 9.66668 9.64421C10.2916 9.64421 10.8909 9.89203 11.3333 10.3333C11.5521 10.5523 11.812 10.726 12.0979 10.8446C12.3839 10.9631 12.6904 11.0241 13 11.0241C13.3096 11.0241 13.6161 10.9631 13.9021 10.8446C14.1881 10.726 14.4479 10.5523 14.6667 10.3333M1.33334 5.66666C1.77576 5.22537 2.37513 4.97754 3.00001 4.97754C3.62489 4.97754 4.22426 5.22537 4.66668 5.66666C4.88548 5.88566 5.14529 6.05938 5.43127 6.17791C5.71725 6.29644 6.02378 6.35744 6.33334 6.35744C6.64291 6.35744 6.94944 6.29644 7.23542 6.17791C7.52139 6.05938 7.78121 5.88566 8.00001 5.66666C8.44242 5.22537 9.0418 4.97754 9.66668 4.97754C10.2916 4.97754 10.8909 5.22537 11.3333 5.66666C11.5521 5.88566 11.812 6.05938 12.0979 6.17791C12.3839 6.29644 12.6904 6.35744 13 6.35744C13.3096 6.35744 13.6161 6.29644 13.9021 6.17791C14.1881 6.05938 14.4479 5.88566 14.6667 5.66666"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linejoin="round"
|
|
7
|
+
/>
|
|
8
|
+
</svg>
|
package/assets/aries.svg
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M2.30934 7.22398C1.92181 6.83635 1.63585 6.35913 1.47679 5.83459C1.31772 5.31005 1.29046 4.75439 1.39743 4.2168C1.50439 3.67921 1.74227 3.1763 2.09 2.75259C2.43773 2.32889 2.88459 1.99748 3.39098 1.78771C3.89738 1.57793 4.44769 1.49628 4.99318 1.54997C5.53867 1.60365 6.0625 1.79103 6.51828 2.09551C6.97406 2.39998 7.34773 2.81215 7.60618 3.29552C7.86464 3.77888 7.99991 4.31852 8.00001 4.86665M8.00001 4.86665C8.00011 4.31852 8.13538 3.77888 8.39384 3.29552C8.65229 2.81215 9.02596 2.39998 9.48174 2.09551C9.93752 1.79103 10.4614 1.60365 11.0068 1.54997C11.5523 1.49628 12.1026 1.57793 12.609 1.78771C13.1154 1.99748 13.5623 2.32889 13.91 2.75259C14.2578 3.1763 14.4956 3.67921 14.6026 4.2168C14.7096 4.75439 14.6823 5.31005 14.5232 5.83459C14.3642 6.35913 14.0782 6.83635 13.6907 7.22398M8.00001 4.86665V14.8666"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linecap="square"
|
|
7
|
+
stroke-linejoin="round"
|
|
8
|
+
/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M14.6667 7.99996C14.6667 7.70808 14.6092 7.41905 14.4975 7.14939C14.3858 6.87972 14.2221 6.63469 14.0157 6.4283C13.8093 6.22191 13.5643 6.05819 13.2946 5.94649C13.0249 5.83479 12.7359 5.7773 12.444 5.7773C12.1521 5.7773 11.8631 5.83479 11.5934 5.94649C11.3238 6.05819 11.0787 6.22191 10.8723 6.4283C10.666 6.63469 10.5022 6.87972 10.3905 7.14939C10.2788 7.41905 10.2213 7.70808 10.2213 7.99996C10.2213 8.58945 10.4555 9.1548 10.8723 9.57163C11.2892 9.98846 11.8545 10.2226 12.444 10.2226C13.0335 10.2226 13.5988 9.98846 14.0157 9.57163C14.4325 9.1548 14.6667 8.58945 14.6667 7.99996ZM14.6667 7.99996C14.6664 6.68163 14.2753 5.39297 13.5427 4.29691C12.8101 3.20084 11.769 2.34658 10.551 1.84211C9.33304 1.33764 7.99282 1.20562 6.6998 1.46274C5.40678 1.71986 4.21902 2.35457 3.28668 3.28663M1.33334 7.99996C1.33334 8.29185 1.39083 8.58087 1.50253 8.85054C1.61423 9.12021 1.77795 9.36523 1.98435 9.57163C2.19074 9.77802 2.43577 9.94174 2.70543 10.0534C2.9751 10.1651 3.26413 10.2226 3.55601 10.2226C3.8479 10.2226 4.13692 10.1651 4.40659 10.0534C4.67625 9.94174 4.92128 9.77802 5.12767 9.57163C5.33407 9.36523 5.49779 9.12021 5.60949 8.85054C5.72119 8.58087 5.77868 8.29185 5.77868 7.99996C5.77868 7.41048 5.5445 6.84513 5.12767 6.4283C4.71084 6.01147 4.1455 5.7773 3.55601 5.7773C2.96652 5.7773 2.40118 6.01147 1.98435 6.4283C1.56752 6.84513 1.33334 7.41048 1.33334 7.99996ZM1.33334 7.99996C1.33363 9.3183 1.72477 10.607 2.45733 11.703C3.18989 12.7991 4.23098 13.6534 5.44898 14.1578C6.66698 14.6623 8.0072 14.7943 9.30022 14.5372C10.5932 14.2801 11.781 13.6454 12.7133 12.7133"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linecap="square"
|
|
7
|
+
stroke-linejoin="round"
|
|
8
|
+
/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M1.13333 5.77739H3.356L5.57733 14.6667L7.8 5.77739H12.244C12.733 5.77733 13.2083 5.61593 13.5962 5.31821C13.9841 5.0205 14.2629 4.60311 14.3894 4.13078C14.5159 3.65845 14.4831 3.15757 14.2959 2.70583C14.1088 2.25409 13.7778 1.87672 13.3543 1.63225C12.9308 1.38779 12.4385 1.28989 11.9537 1.35374C11.4689 1.41758 11.0187 1.63961 10.673 1.98538C10.3272 2.33115 10.1052 2.78135 10.0414 3.26614C9.97758 3.75094 10.0755 4.24325 10.32 4.66672L14.1693 11.3334C14.3401 11.6286 14.4407 11.9593 14.4632 12.2996C14.4857 12.64 14.4295 12.9809 14.2991 13.2961C14.1687 13.6113 13.9675 13.8922 13.711 14.1172C13.4546 14.3421 13.1499 14.505 12.8204 14.5932C12.4909 14.6815 12.1455 14.6927 11.811 14.6261C11.4765 14.5594 11.1618 14.4167 10.8913 14.2089C10.6208 14.0011 10.4018 13.7338 10.2511 13.4278C10.1005 13.1217 10.0223 12.7852 10.0227 12.4441"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linejoin="round"
|
|
7
|
+
/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M4.66668 2.69598V13.304M11.3333 2.69598V13.304M14.6667 1.33331C12.64 2.50421 10.3406 3.12067 8.00001 3.12067C5.65939 3.12067 3.36005 2.50421 1.33334 1.33331M14.6667 14.6666C12.6397 13.4965 10.3405 12.8805 8.00001 12.8805C5.65955 12.8805 3.36031 13.4965 1.33334 14.6666"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linecap="square"
|
|
7
|
+
stroke-linejoin="round"
|
|
8
|
+
/>
|
|
9
|
+
</svg>
|
package/assets/leo.svg
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M6.33333 9.66671C6.33333 8.00004 4.66667 6.33337 4.66667 4.66671C4.66667 3.78265 5.01786 2.93481 5.64298 2.30968C6.2681 1.68456 7.11595 1.33337 8 1.33337C8.88406 1.33337 9.7319 1.68456 10.357 2.30968C10.9821 2.93481 11.3333 3.78265 11.3333 4.66671C11.3333 8.00004 9.66667 9.66671 9.66667 13C9.66667 13.4421 9.84226 13.866 10.1548 14.1786C10.4674 14.4911 10.8913 14.6667 11.3333 14.6667C11.7754 14.6667 12.1993 14.4911 12.5118 14.1786C12.8244 13.866 13 13.4421 13 13M6.33333 9.66671C6.33333 9.22468 6.15774 8.80076 5.84518 8.4882C5.53262 8.17564 5.10869 8.00004 4.66667 8.00004C4.22464 8.00004 3.80072 8.17564 3.48816 8.4882C3.17559 8.80076 3 9.22468 3 9.66671C3 10.1087 3.17559 10.5327 3.48816 10.8452C3.80072 11.1578 4.22464 11.3334 4.66667 11.3334C5.10869 11.3334 5.53262 11.1578 5.84518 10.8452C6.15774 10.5327 6.33333 10.1087 6.33333 9.66671Z"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linejoin="round"
|
|
7
|
+
/>
|
|
8
|
+
</svg>
|
package/assets/libra.svg
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M0.299957 8.00004H4.14998C4.14998 6.97896 4.5556 5.99969 5.27762 5.27767C5.99964 4.55565 6.97891 4.15002 8 4.15002C9.02108 4.15002 10.0004 4.55565 10.7224 5.27767C11.4444 5.99969 11.85 6.97896 11.85 8.00004H15.7M0.299957 11.8501L15.7 11.8501"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linecap="square"
|
|
7
|
+
stroke-linejoin="round"
|
|
8
|
+
/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M12.1667 2.22668C11.1533 2.81183 10.3118 3.6534 9.72672 4.66683C9.14165 5.68026 8.83364 6.82983 8.83364 8.00002C8.83364 9.17021 9.14165 10.3198 9.72672 11.3332C10.3118 12.3466 11.1533 13.1882 12.1667 13.7734M3.83334 13.7734C4.84673 13.1882 5.68824 12.3466 6.2733 11.3332C6.85837 10.3198 7.16638 9.17021 7.16638 8.00002C7.16638 6.82983 6.85837 5.68026 6.2733 4.66683C5.68824 3.6534 4.84673 2.81183 3.83334 2.22668M1.33334 7.99735H14.6707"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linejoin="round"
|
|
7
|
+
/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4.60799 4.7253L11.2747 11.392M1.27466 14.7253L14.608 1.39197M14.608 1.39197H11.2747M14.608 1.39197V4.7253" stroke="black" stroke-width="1" stroke-linejoin="round" />
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M13.3453 10.988L13.3453 9.32133H15.012M1.82134 5.84533C1.62758 5.65152 1.4846 5.41291 1.40507 5.15064C1.32553 4.88837 1.3119 4.61054 1.36539 4.34174C1.41887 4.07295 1.53781 3.82149 1.71167 3.60964C1.88554 3.39779 2.10896 3.23208 2.36216 3.1272C2.61536 3.02231 2.89052 2.98148 3.16326 3.00833C3.43601 3.03517 3.69792 3.12886 3.92581 3.2811C4.1537 3.43333 4.34054 3.63942 4.46976 3.8811C4.59899 4.12278 4.66663 4.3926 4.66668 4.66667M4.66668 4.66667L4.66668 11.3333M4.66668 4.66667C4.66668 4.22464 4.84227 3.80072 5.15483 3.48816C5.46739 3.17559 5.89132 3 6.33334 3C6.77537 3 7.19929 3.17559 7.51185 3.48816C7.82442 3.80072 8.00001 4.22464 8.00001 4.66667M8.00001 4.66667V11.3333M8.00001 4.66667C8.00001 4.22464 8.17561 3.80072 8.48817 3.48816C8.80073 3.17559 9.22465 3 9.66668 3C10.1087 3 10.5326 3.17559 10.8452 3.48816C11.1577 3.80072 11.3333 4.22464 11.3333 4.66667L11.3333 11.3333C11.3334 11.6074 11.401 11.8772 11.5303 12.1189C11.6595 12.3606 11.8463 12.5667 12.0742 12.7189C12.3021 12.8711 12.564 12.9648 12.8368 12.9917C13.1095 13.0185 13.3847 12.9777 13.6379 12.8728C13.8911 12.7679 14.1145 12.6022 14.2883 12.3904C14.4622 12.1785 14.5812 11.9271 14.6346 11.6583C14.6881 11.3895 14.6745 11.1116 14.595 10.8494C14.5154 10.5871 14.3724 10.3485 14.1787 10.1547L13.512 9.488"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linecap="square"
|
|
7
|
+
stroke-linejoin="round"
|
|
8
|
+
/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M7.94743 5.54741C9.2912 5.54761 10.5798 6.08161 11.5299 7.03194C12.4799 7.98226 13.0135 9.27107 13.0133 10.6148V10.6133C13.0133 11.9571 12.4795 13.2458 11.5293 14.196C10.5792 15.1462 9.29044 15.68 7.94667 15.68C6.60291 15.68 5.31418 15.1462 4.364 14.196C3.41381 13.2458 2.88 11.9571 2.88 10.6133C2.88021 9.26955 3.41421 7.9809 4.36453 7.03086C5.31486 6.08082 6.60367 5.54721 7.94743 5.54741ZM7.94743 5.54741C6.60367 5.54741 5.31418 5.01284 4.364 4.06265C3.41381 3.11247 2.88 1.82374 2.88 0.47998M7.94743 5.54741C9.2912 5.54741 10.5792 5.01284 11.5293 4.06265C12.4795 3.11247 13.0133 1.82374 13.0133 0.47998"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linecap="square"
|
|
7
|
+
stroke-linejoin="round"
|
|
8
|
+
/>
|
|
9
|
+
</svg>
|
package/assets/virgo.svg
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M1.5124 5.84533C1.30895 5.65152 1.15882 5.41291 1.07531 5.15064C0.991799 4.88837 0.977489 4.61054 1.03364 4.34174C1.0898 4.07295 1.21469 3.82149 1.39725 3.60964C1.57981 3.39779 1.8144 3.23208 2.08026 3.1272C2.34612 3.02231 2.63503 2.98148 2.92141 3.00833C3.2078 3.03517 3.48281 3.12886 3.72209 3.2811C3.96138 3.43333 4.15755 3.63942 4.29324 3.8811C4.42893 4.12278 4.49995 4.3926 4.5 4.66667M4.5 4.66667V11.3333M4.5 4.66667C4.5 4.22464 4.68437 3.80072 5.01256 3.48816C5.34075 3.17559 5.78587 3 6.25 3C6.71413 3 7.15925 3.17559 7.48744 3.48816C7.81563 3.80072 8 4.22464 8 4.66667M11.5 6.33333C11.5 5.89131 11.6844 5.46738 12.0126 5.15482C12.3408 4.84226 12.7859 4.66667 13.25 4.66667C13.7141 4.66667 14.1592 4.84226 14.4874 5.15482C14.8156 5.46738 15 5.89131 15 6.33333C15 7.65942 14.4469 8.93119 13.4623 9.86887C12.4777 10.8065 11.1424 11.3333 9.75 11.3333M8 4.66667C8 4.22464 8.18437 3.80072 8.51256 3.48816C8.84075 3.17559 9.28587 3 9.75 3C10.2141 3 10.6592 3.17559 10.9874 3.48816C11.3156 3.80072 11.5 4.22464 11.5 4.66667V11.3333C11.5 12.2533 12.284 13 13.25 13M8 4.66667L8 11.3333"
|
|
4
|
+
stroke="black"
|
|
5
|
+
stroke-width="1"
|
|
6
|
+
stroke-linejoin="round"
|
|
7
|
+
/>
|
|
8
|
+
</svg>
|
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,13 @@ export declare const HOUSE_MODALITIES: {
|
|
|
84
84
|
readonly SUCCEDENT: "succedent";
|
|
85
85
|
readonly CADENT: "cadent";
|
|
86
86
|
};
|
|
87
|
+
declare const PLANET_TYPE: {
|
|
88
|
+
readonly LUMINARY: "luminary";
|
|
89
|
+
readonly PERSONAL: "personal";
|
|
90
|
+
readonly SOCIAL: "social";
|
|
91
|
+
readonly TRANSPERSONAL: "transpersonal";
|
|
92
|
+
readonly OTHER: "other";
|
|
93
|
+
};
|
|
87
94
|
declare const dictionaries: {
|
|
88
95
|
en: Dictionary;
|
|
89
96
|
es: Dictionary;
|
|
@@ -101,6 +108,7 @@ export type Characters = ObjectValues<typeof CHARACTERS>;
|
|
|
101
108
|
export type Seasons = ObjectValues<typeof SEASONS>;
|
|
102
109
|
export type Hemispheres = ObjectValues<typeof HEMISPHERES>;
|
|
103
110
|
export type HouseModalities = ObjectValues<typeof HOUSE_MODALITIES>;
|
|
111
|
+
export type PlanetType = ObjectValues<typeof PLANET_TYPE>;
|
|
104
112
|
export interface Sign {
|
|
105
113
|
/**
|
|
106
114
|
* The body part associated with the zodiac sign.
|
|
@@ -253,8 +261,25 @@ export interface House {
|
|
|
253
261
|
*/
|
|
254
262
|
modality: HouseModalities;
|
|
255
263
|
}
|
|
264
|
+
export interface Planet {
|
|
265
|
+
/**
|
|
266
|
+
* The name of the celestial body.
|
|
267
|
+
* Examples: "Sun", "Moon".
|
|
268
|
+
*/
|
|
269
|
+
name: string;
|
|
270
|
+
/**
|
|
271
|
+
* The glyph or symbol associated with the celestial body.
|
|
272
|
+
* Examples: "☉" for the Sun, "☽" for the Moon, "♂" for Mars.
|
|
273
|
+
*/
|
|
274
|
+
glyph: string;
|
|
275
|
+
/**
|
|
276
|
+
* The type or category of the celestial body.
|
|
277
|
+
* Examples: "Personal", "Luminary".
|
|
278
|
+
*/
|
|
279
|
+
type: PlanetType;
|
|
280
|
+
}
|
|
256
281
|
export type Dictionary = {
|
|
257
|
-
[key in Signs | Element | Modalities | Planets | Polarities | BodyParts | Characters | Seasons | Hemispheres | HouseModalities]: string;
|
|
282
|
+
[key in Signs | Element | Modalities | Planets | Polarities | BodyParts | Characters | Seasons | Hemispheres | HouseModalities | PlanetType]: string;
|
|
258
283
|
} & {
|
|
259
284
|
houseTitles: string[];
|
|
260
285
|
houseKeywords: string[][];
|
|
@@ -289,6 +314,34 @@ export type Dictionary = {
|
|
|
289
314
|
* // ]
|
|
290
315
|
*/
|
|
291
316
|
export declare function getHouses(lang?: Language): House[];
|
|
317
|
+
/**
|
|
318
|
+
* Get all planets with their translated properties for a specified language.
|
|
319
|
+
*
|
|
320
|
+
* @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to `'en'`.
|
|
321
|
+
* @returns {Planet[]} An array of Planet objects with translated values based on the specified language.
|
|
322
|
+
*
|
|
323
|
+
* @example
|
|
324
|
+
* import { getPlanets } from 'western-signs';
|
|
325
|
+
*
|
|
326
|
+
* // Retrieve information about all planets in English
|
|
327
|
+
* const data = getPlanets();
|
|
328
|
+
* console.log(data);
|
|
329
|
+
* // Output:
|
|
330
|
+
* // [
|
|
331
|
+
* // {
|
|
332
|
+
* // name: 'Mercury',
|
|
333
|
+
* // glyph: '☿',
|
|
334
|
+
* // type: 'Personal'
|
|
335
|
+
* // },
|
|
336
|
+
* // {
|
|
337
|
+
* // name: 'Venus',
|
|
338
|
+
* // glyph: '♀',
|
|
339
|
+
* // type: 'Personal'
|
|
340
|
+
* // },
|
|
341
|
+
* // ...
|
|
342
|
+
* // ]
|
|
343
|
+
*/
|
|
344
|
+
export declare function getPlanets(lang?: Language): Planet[];
|
|
292
345
|
/**
|
|
293
346
|
* Retrieve the astrological sign corresponding to a given date, with optional translations for the specified language.
|
|
294
347
|
*
|
|
@@ -371,5 +424,17 @@ export declare function getSignByName(sign: Signs, lang?: Language): Sign | null
|
|
|
371
424
|
* // ]
|
|
372
425
|
*/
|
|
373
426
|
export declare function getSigns(lang?: Language): Sign[];
|
|
427
|
+
export interface SymbolOptions {
|
|
428
|
+
dataUrl?: boolean;
|
|
429
|
+
stroke?: string;
|
|
430
|
+
strokeWidth?: string;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Gets an SVG as a string or as a Data URL, with option to modify attributes.
|
|
434
|
+
* @param {Signs} signName Name of the icon without extension .svg
|
|
435
|
+
* @param {SymbolOptions} options Options to modify attributes or return as a Data URL
|
|
436
|
+
* @returns SVG as string or Data URL
|
|
437
|
+
*/
|
|
438
|
+
export declare function getSymbol(signName: Signs, options?: SymbolOptions): string;
|
|
374
439
|
|
|
375
440
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var a={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},s={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},o={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},n={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},c={POSITIVE:"positive",NEGATIVE:"negative"},u={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},m={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},E={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},p=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],S=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"],i={LOWER:"lower",UPPER:"upper"},l={ANGULAR:"angular",SUCCEDENT:"succedent",CADENT:"cadent"};var g=[{element:n.FIRE,hemisphere:i.LOWER,keywords:S[0],number:1,phase:1,quadrant:1,rulingPlanet:s.MARS,sign:a.ARIES,title:p[0],modality:l.ANGULAR},{element:n.EARTH,hemisphere:i.LOWER,keywords:S[1],modality:l.SUCCEDENT,number:2,phase:1,quadrant:1,rulingPlanet:s.VENUS,sign:a.TAURUS,title:p[1]},{element:n.AIR,hemisphere:i.LOWER,keywords:S[2],modality:l.CADENT,number:3,phase:1,quadrant:1,rulingPlanet:s.MERCURY,sign:a.GEMINI,title:p[2]},{element:n.WATER,hemisphere:i.LOWER,keywords:S[3],modality:l.ANGULAR,number:4,phase:1,quadrant:2,rulingPlanet:s.MOON,sign:a.CANCER,title:p[3]},{element:n.FIRE,hemisphere:i.LOWER,keywords:S[4],modality:l.SUCCEDENT,number:5,phase:2,quadrant:2,rulingPlanet:s.SUN,sign:a.LEO,title:p[4]},{element:n.EARTH,hemisphere:i.LOWER,keywords:S[5],modality:l.CADENT,number:6,phase:2,quadrant:2,rulingPlanet:s.MERCURY,sign:a.VIRGO,title:p[5]},{element:n.AIR,hemisphere:i.UPPER,keywords:S[6],modality:l.ANGULAR,number:7,phase:2,quadrant:3,rulingPlanet:s.VENUS,sign:a.LIBRA,title:p[6]},{element:n.WATER,hemisphere:i.UPPER,keywords:S[7],modality:l.SUCCEDENT,number:8,phase:2,quadrant:3,rulingPlanet:s.PLUTO,sign:a.SCORPIO,title:p[7]},{element:n.FIRE,hemisphere:i.UPPER,keywords:S[8],modality:l.CADENT,number:9,phase:3,quadrant:3,rulingPlanet:s.JUPITER,sign:a.SAGITTARIUS,title:p[8]},{element:n.EARTH,hemisphere:i.UPPER,keywords:S[9],modality:l.ANGULAR,number:10,phase:3,quadrant:4,rulingPlanet:s.SATURN,sign:a.CAPRICORN,title:p[9]},{element:n.AIR,hemisphere:i.UPPER,keywords:S[10],modality:l.SUCCEDENT,number:11,phase:3,quadrant:4,rulingPlanet:s.URANUS,sign:a.AQUARIUS,title:p[10]},{element:n.WATER,hemisphere:i.UPPER,keywords:S[11],modality:l.CADENT,number:12,phase:3,quadrant:4,rulingPlanet:s.NEPTUNE,sign:a.PISCES,title:p[11]}],h=g;import V from"iso-639-1";var H={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter",houseTitles:["The individual personality","Values and Possessions","Communication","Roots and Origins","Pleasure and Creativity","Work and Routine","Relating","Loss and Common Property","Philosophies and Far Countries","Occupation and Calling","Friends and Acquaintances","Beyond the Personal"],houseKeywords:[["Self-image","Identity","Impressions on others","Personality"],["Personal resources","Values","Security","Possessions"],["Surroundings","Siblings","Communication","Knowledge"],["Home","Family","The Past","Roots"],["Children","Creativity","Expression","Pleasure"],["Routines","Service","Health","Productivity"],["Partnerships","Relationships","Balance","Collaboration"],["Transformations","Crises","Beginnings","Rebirth"],["Philosophy","Travel","Openness","Wisdom"],["Public","Legacy","Career","Ambition"],["Friends","Community","Dreams","Aspirations"],["Unconscious","Fantasies","Connections","Healing"]],lower:"Lower",upper:"Upper",angular:"Angular",succedent:"Succedent",cadent:"Cadent"},C=H;var D={aries:"Aries",taurus:"Tauro",gemini:"Géminis",cancer:"Cáncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plutón",jupiter:"Júpiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Estómago",heart:"Corazón",bowels:"Intestinos",reins:"Riñones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"León",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpión",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Otoño",winter:"Invierno",houseTitles:["La personalidad individual","Valores y Posesiones","Comunicación","Raíces y Orígenes","Placer y Creatividad","Trabajo y Rutina","Relacionarse","Pérdida y Propiedad Común","Filosofías y Países Lejanos","Ocupación y Vocación","Amigos y Conocidos","Más Allá de lo Personal"],houseKeywords:[["Autoimagen","Identidad","Impresiones en los demás","Personalidad"],["Recursos personales","Valores","Seguridad","Posesiones"],["Entorno","Hermanos","Comunicación","Conocimiento"],["Hogar","Familia","El pasado","Raíces"],["Niños","Creatividad","Expresión","Placer"],["Rutinas","Servicio","Salud","Productividad"],["Asociaciones","Relaciones","Equilibrio","Colaboración"],["Transformaciones","Crisis","Inicios","Renacimiento"],["Filosofía","Viajes","Apertura","Sabiduría"],["Público","Legado","Carrera","Ambición"],["Amigos","Comunidad","Sueños","Aspiraciones"],["Inconsciente","Fantasías","Conexiones","Sanación"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Sucedente",cadent:"Cadente"},N=D;var w={aries:"Àries",taurus:"Taure",gemini:"Bessons",cancer:"Cranc",leo:"Lleó",virgo:"Verge",libra:"Balança",scorpio:"Escorpió",sagittarius:"Sagitari",capricorn:"Capricorn",aquarius:"Aquari",pisces:"Peixos",fire:"Foc",earth:"Terra",air:"Aire",water:"Aigua",cardinal:"Cardinal",fixed:"Fix",mutable:"Mutable",mars:"Mart",venus:"Venus",mercury:"Mercuri",moon:"Lluna",sun:"Sol",pluto:"Plutó",jupiter:"Júpiter",saturn:"Saturn",uranus:"Urà",neptune:"Neptú",positive:"Positiu",negative:"Negatiu",head:"Cap",throat:"Gola",lungs:"Pulmons",stomach:"Estómac",heart:"Cor",bowels:"Intestins",reins:"Ronyons",secrets:"Genitals",thighs:"Cuixes",knees:"Genolls",ankles:"Turmells",feet:"Peus",ram:"Carner",bull:"Bou",twins:"Bessons",crab:"Cranc",lion:"Lleó",virgin:"Verge",balance:"Balança",scorpion:"Escorpí",archer:"Arquer",goat:"Cabra","the-man":"L'Home","the-fishes":"Els Peixos",spring:"Primavera",summer:"Estiu",autumn:"Tardor",winter:"Hivern",houseTitles:["La personalitat individual","Valors i possessions","Comunicació","Arrels i orígens","Plaer i creativitat","Feina i rutina","Relacionar-se","Pèrdua i propietat comuna","Filosofia i països llunyans","Ocupació i vocació","Amics i coneguts","Més enllà del personal"],houseKeywords:[["Autoimatge","Identitat","Impressions als altres","Personalitat"],["Recursos personals","Valors","Seguretat","Possessions"],["Entorn","Germans","Comunicació","Coneixement"],["Llar","Família","El passat","Arrels"],["Infants","Creativitat","Expressió","Plaer"],["Rutines","Servei","Salut","Productivitat"],["Associacions","Relacions","Equilibri","Col·laboració"],["Transformacions","Crisi","Inicis","Renaixement"],["Filosofia","Viatges","Obertura","Saviesa"],["Públic","Llegat","Carrera","Ambició"],["Amics","Comunitat","Somnis","Aspiracions"],["Inconscient","Fantasies","Connexions","Sanació"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Successiva",cadent:"Cadent"},U=w;var T={en:C,es:N,ca:U};var G={aries:{bodyPart:u.HEAD,character:m.RAM,element:n.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:o.CARDINAL,name:a.ARIES,number:1,pole:c.POSITIVE,rulingPlanet:s.MARS,season:E.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:u.THROAT,character:m.BULL,element:n.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:o.FIXED,name:a.TAURUS,number:2,pole:c.NEGATIVE,rulingPlanet:s.VENUS,season:E.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:u.LUNGS,character:m.TWINS,element:n.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:o.MUTABLE,name:a.GEMINI,number:3,pole:c.POSITIVE,rulingPlanet:s.MERCURY,season:E.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:u.STOMACH,character:m.CRAB,element:n.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:o.CARDINAL,name:a.CANCER,number:4,pole:c.NEGATIVE,rulingPlanet:s.MOON,season:E.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:u.HEART,character:m.LION,element:n.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:o.FIXED,name:a.LEO,number:5,pole:c.POSITIVE,rulingPlanet:s.SUN,season:E.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:u.BOWELS,character:m.VIRGIN,element:n.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:o.MUTABLE,name:a.VIRGO,number:6,pole:c.NEGATIVE,rulingPlanet:s.MERCURY,season:E.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:u.REINS,character:m.BALANCE,element:n.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:o.CARDINAL,name:a.LIBRA,number:7,pole:c.POSITIVE,rulingPlanet:s.VENUS,season:E.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:u.SECRETS,character:m.SCORPION,element:n.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:o.FIXED,name:a.SCORPIO,number:8,pole:c.NEGATIVE,rulingPlanet:s.PLUTO,season:E.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:u.THIGHS,character:m.ARCHER,element:n.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:o.MUTABLE,name:a.SAGITTARIUS,number:9,pole:c.POSITIVE,rulingPlanet:s.JUPITER,season:E.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:u.KNEES,character:m.GOAT,element:n.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:o.CARDINAL,name:a.CAPRICORN,number:10,pole:c.NEGATIVE,rulingPlanet:s.SATURN,season:E.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:u.ANKLES,character:m.THE_MAN,element:n.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:o.FIXED,name:a.AQUARIUS,number:11,pole:c.POSITIVE,rulingPlanet:s.URANUS,season:E.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:u.FEET,character:m.THE_FISHES,element:n.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:o.MUTABLE,name:a.PISCES,number:12,pole:c.NEGATIVE,rulingPlanet:s.NEPTUNE,season:E.WINTER,startDate:new Date(2020,1,21)}},d=G;var re=V.getName;function I(e,t){let r=T[t];return{bodyPart:r[e.bodyPart],character:r[e.character],element:r[e.element],endDate:e.endDate,glyph:e.glyph,modality:r[e.modality],name:r[e.name],number:e.number,pole:r[e.pole],rulingPlanet:r[e.rulingPlanet],season:r[e.season],startDate:e.startDate}}function L(e,t,r){let A=r.getMonth()+1,R=r.getDate(),P=e.getMonth()+1,O=e.getDate(),y=t.getMonth()+1,M=t.getDate();return A===P&&R>=O||A===y&&R<=M||P>y&&(A>P||A<y)}function b(e,t){let r=T[t],[,A]=e.title.split("-"),[,R]=e.keywords.split("-");return{number:e.number,title:r.houseTitles[Number(A)-1],sign:r[e.sign],rulingPlanet:r[e.rulingPlanet],keywords:r.houseKeywords[Number(R)-1],element:r[e.element],hemisphere:r[e.hemisphere],phase:e.phase,quadrant:e.quadrant,modality:r[e.modality]}}function x(e="en"){return h.map((t)=>{return b(t,e)})}function F(e,t="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let r of Object.keys(d)){let A=d[r],{startDate:R,endDate:P}=A;if(L(R,P,e))return I(A,t)}return null}function f(e,t="en"){let r=d[e];if(!r)return null;return I(r,t)}function B(e="en"){return Object.keys(d).map((t)=>{let r={};return Object.entries(d[t]).forEach(([A,R])=>{let P=T[e][R];r[A]=P||R}),r})}export{B as getSigns,f as getSignByName,F as getSignByDate,x as getHouses,a as SIGNS,s as PLANETS,o as MODALITIES,l as HOUSE_MODALITIES,i as HEMISPHERES,n as ELEMENTS};
|
|
1
|
+
var a={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},r={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},i={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},n={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},E={POSITIVE:"positive",NEGATIVE:"negative"},m={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},A={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},S={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},p=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],R=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"],l={LOWER:"lower",UPPER:"upper"},c={ANGULAR:"angular",SUCCEDENT:"succedent",CADENT:"cadent"},P={LUMINARY:"luminary",PERSONAL:"personal",SOCIAL:"social",TRANSPERSONAL:"transpersonal",OTHER:"other"};var x=[{element:n.FIRE,hemisphere:l.LOWER,keywords:R[0],number:1,phase:1,quadrant:1,rulingPlanet:r.MARS,sign:a.ARIES,title:p[0],modality:c.ANGULAR},{element:n.EARTH,hemisphere:l.LOWER,keywords:R[1],modality:c.SUCCEDENT,number:2,phase:1,quadrant:1,rulingPlanet:r.VENUS,sign:a.TAURUS,title:p[1]},{element:n.AIR,hemisphere:l.LOWER,keywords:R[2],modality:c.CADENT,number:3,phase:1,quadrant:1,rulingPlanet:r.MERCURY,sign:a.GEMINI,title:p[2]},{element:n.WATER,hemisphere:l.LOWER,keywords:R[3],modality:c.ANGULAR,number:4,phase:1,quadrant:2,rulingPlanet:r.MOON,sign:a.CANCER,title:p[3]},{element:n.FIRE,hemisphere:l.LOWER,keywords:R[4],modality:c.SUCCEDENT,number:5,phase:2,quadrant:2,rulingPlanet:r.SUN,sign:a.LEO,title:p[4]},{element:n.EARTH,hemisphere:l.LOWER,keywords:R[5],modality:c.CADENT,number:6,phase:2,quadrant:2,rulingPlanet:r.MERCURY,sign:a.VIRGO,title:p[5]},{element:n.AIR,hemisphere:l.UPPER,keywords:R[6],modality:c.ANGULAR,number:7,phase:2,quadrant:3,rulingPlanet:r.VENUS,sign:a.LIBRA,title:p[6]},{element:n.WATER,hemisphere:l.UPPER,keywords:R[7],modality:c.SUCCEDENT,number:8,phase:2,quadrant:3,rulingPlanet:r.PLUTO,sign:a.SCORPIO,title:p[7]},{element:n.FIRE,hemisphere:l.UPPER,keywords:R[8],modality:c.CADENT,number:9,phase:3,quadrant:3,rulingPlanet:r.JUPITER,sign:a.SAGITTARIUS,title:p[8]},{element:n.EARTH,hemisphere:l.UPPER,keywords:R[9],modality:c.ANGULAR,number:10,phase:3,quadrant:4,rulingPlanet:r.SATURN,sign:a.CAPRICORN,title:p[9]},{element:n.AIR,hemisphere:l.UPPER,keywords:R[10],modality:c.SUCCEDENT,number:11,phase:3,quadrant:4,rulingPlanet:r.URANUS,sign:a.AQUARIUS,title:p[10]},{element:n.WATER,hemisphere:l.UPPER,keywords:R[11],modality:c.CADENT,number:12,phase:3,quadrant:4,rulingPlanet:r.NEPTUNE,sign:a.PISCES,title:p[11]}],h=x;var g={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter",houseTitles:["The individual personality","Values and Possessions","Communication","Roots and Origins","Pleasure and Creativity","Work and Routine","Relating","Loss and Common Property","Philosophies and Far Countries","Occupation and Calling","Friends and Acquaintances","Beyond the Personal"],houseKeywords:[["Self-image","Identity","Impressions on others","Personality"],["Personal resources","Values","Security","Possessions"],["Surroundings","Siblings","Communication","Knowledge"],["Home","Family","The Past","Roots"],["Children","Creativity","Expression","Pleasure"],["Routines","Service","Health","Productivity"],["Partnerships","Relationships","Balance","Collaboration"],["Transformations","Crises","Beginnings","Rebirth"],["Philosophy","Travel","Openness","Wisdom"],["Public","Legacy","Career","Ambition"],["Friends","Community","Dreams","Aspirations"],["Unconscious","Fantasies","Connections","Healing"]],lower:"Lower",upper:"Upper",angular:"Angular",succedent:"Succedent",cadent:"Cadent",luminary:"Luminary",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Other"},L=g;var G={aries:"Aries",taurus:"Tauro",gemini:"Géminis",cancer:"Cáncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plutón",jupiter:"Júpiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Estómago",heart:"Corazón",bowels:"Intestinos",reins:"Riñones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"León",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpión",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Otoño",winter:"Invierno",houseTitles:["La personalidad individual","Valores y Posesiones","Comunicación","Raíces y Orígenes","Placer y Creatividad","Trabajo y Rutina","Relacionarse","Pérdida y Propiedad Común","Filosofías y Países Lejanos","Ocupación y Vocación","Amigos y Conocidos","Más Allá de lo Personal"],houseKeywords:[["Autoimagen","Identidad","Impresiones en los demás","Personalidad"],["Recursos personales","Valores","Seguridad","Posesiones"],["Entorno","Hermanos","Comunicación","Conocimiento"],["Hogar","Familia","El pasado","Raíces"],["Niños","Creatividad","Expresión","Placer"],["Rutinas","Servicio","Salud","Productividad"],["Asociaciones","Relaciones","Equilibrio","Colaboración"],["Transformaciones","Crisis","Inicios","Renacimiento"],["Filosofía","Viajes","Apertura","Sabiduría"],["Público","Legado","Carrera","Ambición"],["Amigos","Comunidad","Sueños","Aspiraciones"],["Inconsciente","Fantasías","Conexiones","Sanación"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Sucedente",cadent:"Cadente",luminary:"Luminar",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Otro"},U=G;var V={aries:"Àries",taurus:"Taure",gemini:"Bessons",cancer:"Cranc",leo:"Lleó",virgo:"Verge",libra:"Balança",scorpio:"Escorpió",sagittarius:"Sagitari",capricorn:"Capricorn",aquarius:"Aquari",pisces:"Peixos",fire:"Foc",earth:"Terra",air:"Aire",water:"Aigua",cardinal:"Cardinal",fixed:"Fix",mutable:"Mutable",mars:"Mart",venus:"Venus",mercury:"Mercuri",moon:"Lluna",sun:"Sol",pluto:"Plutó",jupiter:"Júpiter",saturn:"Saturn",uranus:"Urà",neptune:"Neptú",positive:"Positiu",negative:"Negatiu",head:"Cap",throat:"Gola",lungs:"Pulmons",stomach:"Estómac",heart:"Cor",bowels:"Intestins",reins:"Ronyons",secrets:"Genitals",thighs:"Cuixes",knees:"Genolls",ankles:"Turmells",feet:"Peus",ram:"Carner",bull:"Bou",twins:"Bessons",crab:"Cranc",lion:"Lleó",virgin:"Verge",balance:"Balança",scorpion:"Escorpí",archer:"Arquer",goat:"Cabra","the-man":"L'Home","the-fishes":"Els Peixos",spring:"Primavera",summer:"Estiu",autumn:"Tardor",winter:"Hivern",houseTitles:["La personalitat individual","Valors i possessions","Comunicació","Arrels i orígens","Plaer i creativitat","Feina i rutina","Relacionar-se","Pèrdua i propietat comuna","Filosofia i països llunyans","Ocupació i vocació","Amics i coneguts","Més enllà del personal"],houseKeywords:[["Autoimatge","Identitat","Impressions als altres","Personalitat"],["Recursos personals","Valors","Seguretat","Possessions"],["Entorn","Germans","Comunicació","Coneixement"],["Llar","Família","El passat","Arrels"],["Infants","Creativitat","Expressió","Plaer"],["Rutines","Servei","Salut","Productivitat"],["Associacions","Relacions","Equilibri","Col·laboració"],["Transformacions","Crisi","Inicis","Renaixement"],["Filosofia","Viatges","Obertura","Saviesa"],["Públic","Llegat","Carrera","Ambició"],["Amics","Comunitat","Somnis","Aspiracions"],["Inconscient","Fantasies","Connexions","Sanació"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Successiva",cadent:"Cadent",luminary:"Lluminaria",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Altres"},O=V;var d={en:L,es:U,ca:O};var F={aries:{bodyPart:m.HEAD,character:A.RAM,element:n.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:i.CARDINAL,name:a.ARIES,number:1,pole:E.POSITIVE,rulingPlanet:r.MARS,season:S.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:m.THROAT,character:A.BULL,element:n.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:i.FIXED,name:a.TAURUS,number:2,pole:E.NEGATIVE,rulingPlanet:r.VENUS,season:S.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:m.LUNGS,character:A.TWINS,element:n.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:i.MUTABLE,name:a.GEMINI,number:3,pole:E.POSITIVE,rulingPlanet:r.MERCURY,season:S.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:m.STOMACH,character:A.CRAB,element:n.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:i.CARDINAL,name:a.CANCER,number:4,pole:E.NEGATIVE,rulingPlanet:r.MOON,season:S.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:m.HEART,character:A.LION,element:n.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:i.FIXED,name:a.LEO,number:5,pole:E.POSITIVE,rulingPlanet:r.SUN,season:S.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:m.BOWELS,character:A.VIRGIN,element:n.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:i.MUTABLE,name:a.VIRGO,number:6,pole:E.NEGATIVE,rulingPlanet:r.MERCURY,season:S.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:m.REINS,character:A.BALANCE,element:n.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:i.CARDINAL,name:a.LIBRA,number:7,pole:E.POSITIVE,rulingPlanet:r.VENUS,season:S.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:m.SECRETS,character:A.SCORPION,element:n.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:i.FIXED,name:a.SCORPIO,number:8,pole:E.NEGATIVE,rulingPlanet:r.PLUTO,season:S.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:m.THIGHS,character:A.ARCHER,element:n.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:i.MUTABLE,name:a.SAGITTARIUS,number:9,pole:E.POSITIVE,rulingPlanet:r.JUPITER,season:S.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:m.KNEES,character:A.GOAT,element:n.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:i.CARDINAL,name:a.CAPRICORN,number:10,pole:E.NEGATIVE,rulingPlanet:r.SATURN,season:S.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:m.ANKLES,character:A.THE_MAN,element:n.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:i.FIXED,name:a.AQUARIUS,number:11,pole:E.POSITIVE,rulingPlanet:r.URANUS,season:S.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:m.FEET,character:A.THE_FISHES,element:n.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:i.MUTABLE,name:a.PISCES,number:12,pole:E.NEGATIVE,rulingPlanet:r.NEPTUNE,season:S.WINTER,startDate:new Date(2020,1,21)}},I=F;function y(e,o){let s=d[o];return{bodyPart:s[e.bodyPart],character:s[e.character],element:s[e.element],endDate:e.endDate,glyph:e.glyph,modality:s[e.modality],name:s[e.name],number:e.number,pole:s[e.pole],rulingPlanet:s[e.rulingPlanet],season:s[e.season],startDate:e.startDate}}function b(e,o,s){let t=s.getMonth()+1,u=s.getDate(),T=e.getMonth()+1,D=e.getDate(),N=o.getMonth()+1,w=o.getDate();return t===T&&u>=D||t===N&&u<=w||T>N&&(t>T||t<N)}function M(e,o){let s=d[o],[,t]=e.title.split("-"),[,u]=e.keywords.split("-");return{number:e.number,title:s.houseTitles[Number(t)-1],sign:s[e.sign],rulingPlanet:s[e.rulingPlanet],keywords:s.houseKeywords[Number(u)-1],element:s[e.element],hemisphere:s[e.hemisphere],phase:e.phase,quadrant:e.quadrant,modality:s[e.modality]}}function B(e="en"){return h.map((o)=>{return M(o,e)})}var W={sun:{name:r.SUN,glyph:"☉",type:P.LUMINARY},moon:{name:r.MOON,glyph:"☽",type:P.LUMINARY},mercury:{name:r.MERCURY,glyph:"☿",type:P.PERSONAL},venus:{name:r.VENUS,glyph:"♀",type:P.PERSONAL},mars:{name:r.MARS,glyph:"♂",type:P.PERSONAL},jupiter:{name:r.JUPITER,glyph:"♃",type:P.SOCIAL},saturn:{name:r.SATURN,glyph:"♄",type:P.SOCIAL},uranus:{name:r.URANUS,glyph:"♅",type:P.TRANSPERSONAL},neptune:{name:r.NEPTUNE,glyph:"♆",type:P.TRANSPERSONAL},pluto:{name:r.PLUTO,glyph:"♇",type:P.TRANSPERSONAL}},C=W;function f(e="en"){return Object.keys(C).map((o)=>{let s={};return Object.entries(C[o]).forEach(([t,u])=>{let T=d[e][u];s[t]=T||u}),s})}function q(e,o="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let s of Object.keys(I)){let t=I[s],{startDate:u,endDate:T}=t;if(b(u,T,e))return y(t,o)}return null}function K(e,o="en"){let s=I[e];if(!s)return null;return y(s,o)}function k(e="en"){return Object.keys(I).map((o)=>{let s={};return Object.entries(I[o]).forEach(([t,u])=>{let T=d[e][u];s[t]=T||u}),s})}import{existsSync as v,readFileSync as Y}from"node:fs";import H from"node:path";import{fileURLToPath as _}from"node:url";var j=H.dirname(_(import.meta.url));function J(e,o={}){let s=H.join(j,"../assets",`${e}.svg`);if(!v(s))throw new Error(`Icon "${e}" not found.`);let t=Y(s,"utf8");if(o.stroke)t=t.replace(/stroke="[^"]*"/g,`stroke="${o.stroke}"`);if(o.strokeWidth)t=t.replace(/stroke-width="[^"]*"/g,`stroke-width="${o.strokeWidth}"`);if(o.dataUrl)return`data:image/svg+xml;base64,${Buffer.from(t).toString("base64")}`;return t}export{J as getSymbol,k as getSigns,K as getSignByName,q as getSignByDate,f as getPlanets,B as getHouses,a as SIGNS,r as PLANETS,i as MODALITIES,c as HOUSE_MODALITIES,l as HEMISPHERES,n as ELEMENTS};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "western-signs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"author": "Marc Mariné <shenobi@gmail.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,23 +12,24 @@
|
|
|
12
12
|
"@semantic-release/git": "^10.0.1",
|
|
13
13
|
"@types/bun": "latest",
|
|
14
14
|
"bun-plugin-dts": "^0.3.0",
|
|
15
|
-
"iso-639-1": "^3.1.5",
|
|
16
15
|
"semantic-release": "^24.2.5",
|
|
17
16
|
"typedoc": "^0.28.5",
|
|
18
17
|
"upgradeps": "^2.0.8",
|
|
19
|
-
"varvara-typedoc-theme": "^0.3.
|
|
18
|
+
"varvara-typedoc-theme": "^0.3.8"
|
|
20
19
|
},
|
|
21
20
|
"peerDependencies": {
|
|
22
21
|
"typescript": "^5.8.3"
|
|
23
22
|
},
|
|
24
23
|
"exports": {
|
|
25
|
-
".": "./dist/index.js"
|
|
24
|
+
".": "./dist/index.js",
|
|
25
|
+
"./*": "./assets/*"
|
|
26
26
|
},
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
28
|
"bugs": "https://github.com/marcmarine/western-signs/issues/new",
|
|
29
29
|
"description": "Simple interface for western astrological signs.",
|
|
30
30
|
"files": [
|
|
31
|
-
"dist"
|
|
31
|
+
"dist",
|
|
32
|
+
"assets"
|
|
32
33
|
],
|
|
33
34
|
"homepage": "https://github.com/marcmarine/western-signs",
|
|
34
35
|
"keywords": [
|