@orrery/core 0.1.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 +221 -0
- package/dist/chunk-6PJQHSY6.js +292 -0
- package/dist/chunk-DGSIRAXF.js +698 -0
- package/dist/chunk-JSBRDJBE.js +30 -0
- package/dist/chunk-KD6TCTRW.js +12084 -0
- package/dist/chunk-OCPJGMZC.js +331 -0
- package/dist/chunk-TRSIZZ73.js +81 -0
- package/dist/chunk-VJDUZB5T.js +870 -0
- package/dist/cities.d.ts +19 -0
- package/dist/cities.js +15 -0
- package/dist/constants.d.ts +57 -0
- package/dist/constants.js +105 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +137 -0
- package/dist/natal.d.ts +29 -0
- package/dist/natal.js +31 -0
- package/dist/pillars.d.ts +67 -0
- package/dist/pillars.js +42 -0
- package/dist/saju.d.ts +6 -0
- package/dist/saju.js +9 -0
- package/dist/types.d.ts +249 -0
- package/dist/types.js +0 -0
- package/dist/ziwei.d.ts +13 -0
- package/dist/ziwei.js +12 -0
- package/package.json +62 -0
package/dist/cities.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** 도시 정보 */
|
|
2
|
+
interface City {
|
|
3
|
+
/** 한국어 도시명 */
|
|
4
|
+
name: string;
|
|
5
|
+
/** 한국어 국가명 (국내 도시는 생략) */
|
|
6
|
+
country?: string;
|
|
7
|
+
lat: number;
|
|
8
|
+
lon: number;
|
|
9
|
+
}
|
|
10
|
+
declare const KOREAN_CITIES: readonly City[];
|
|
11
|
+
declare const WORLD_CITIES: readonly City[];
|
|
12
|
+
/** 기본값: 서울 */
|
|
13
|
+
declare const SEOUL: City;
|
|
14
|
+
/** 도시 표시명 (예: "서울", "도쿄, 일본") */
|
|
15
|
+
declare function formatCityName(city: City): string;
|
|
16
|
+
/** 쿼리로 도시 필터링 (최대 8개, 한국 도시 우선) */
|
|
17
|
+
declare function filterCities(query: string): City[];
|
|
18
|
+
|
|
19
|
+
export { type City, KOREAN_CITIES, SEOUL, WORLD_CITIES, filterCities, formatCityName };
|
package/dist/cities.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Element, Meteor, Relation, Spirit, WuXingJu } from './types.js';
|
|
2
|
+
|
|
3
|
+
declare const SKY = "\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678";
|
|
4
|
+
declare const EARTH = "\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5";
|
|
5
|
+
declare const SKY_KR = "\uAC11\uC744\uBCD1\uC815\uBB34\uAE30\uACBD\uC2E0\uC784\uACC4";
|
|
6
|
+
declare const EARTH_KR = "\uC790\uCD95\uC778\uBB18\uC9C4\uC0AC\uC624\uBBF8\uC2E0\uC720\uC220\uD574";
|
|
7
|
+
declare const YANGGAN: string[];
|
|
8
|
+
declare const RELATIONS: Relation[];
|
|
9
|
+
declare const METEORS_12: Meteor[];
|
|
10
|
+
declare const SPIRITS_12: Spirit[];
|
|
11
|
+
declare const BRANCH_ELEMENT: Record<string, Element>;
|
|
12
|
+
declare const STEM_INFO: Record<string, {
|
|
13
|
+
yinyang: '+' | '-';
|
|
14
|
+
element: Element;
|
|
15
|
+
}>;
|
|
16
|
+
declare const ELEMENT_HANJA: Record<string, string>;
|
|
17
|
+
declare const TRIPLE_COMPOSES: [string, string, string][];
|
|
18
|
+
declare const TRIPLE_COMPOSE_ELEMENTS: Record<string, string>;
|
|
19
|
+
declare const HALF_COMPOSES: Record<string, [string, string]>;
|
|
20
|
+
declare const DIRECTIONAL_COMPOSES: [string, string, string][];
|
|
21
|
+
declare const DIRECTIONAL_COMPOSE_ELEMENTS: Record<string, string>;
|
|
22
|
+
declare const STEM_COMBINES: Record<string, [string, string]>;
|
|
23
|
+
declare const STEM_CLASHES: Record<string, string>;
|
|
24
|
+
declare const BRANCH_COMBINES_6: Record<string, [string, string]>;
|
|
25
|
+
declare const BRANCH_CLASHES: Record<string, string>;
|
|
26
|
+
declare const BRANCH_BREAKS: Record<string, string>;
|
|
27
|
+
declare const BRANCH_HARMS: Record<string, string>;
|
|
28
|
+
declare const BRANCH_PUNISHMENTS: Record<string, [string, string]>;
|
|
29
|
+
declare const BRANCH_SELF_PUNISHMENTS: Set<string>;
|
|
30
|
+
declare const YANGIN_MAP: Record<string, string>;
|
|
31
|
+
declare const BAEKHO_PILLARS: Set<string>;
|
|
32
|
+
declare const GOEGANG_PILLARS: Set<string>;
|
|
33
|
+
declare const METEOR_LOOKUP: Record<string, number>;
|
|
34
|
+
declare const JIJANGGAN: Record<string, string>;
|
|
35
|
+
declare const HGANJI: string[];
|
|
36
|
+
declare const PILLAR_NAMES: string[];
|
|
37
|
+
declare const TIAN_GAN = "\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678";
|
|
38
|
+
declare const DI_ZHI = "\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5";
|
|
39
|
+
declare const PALACE_NAMES: string[];
|
|
40
|
+
declare const WU_XING_JU_MAP: Record<string, WuXingJu>;
|
|
41
|
+
declare const MAIN_STAR_NAMES: Set<string>;
|
|
42
|
+
declare const LUCKY_STAR_NAMES: Set<string>;
|
|
43
|
+
declare const SHA_STAR_NAMES: Set<string>;
|
|
44
|
+
declare const NAYIN_TABLE: Record<string, Element>;
|
|
45
|
+
declare const SI_HUA_TABLE: Record<string, [string, string, string, string]>;
|
|
46
|
+
declare const LU_CUN_TABLE: Record<string, string>;
|
|
47
|
+
declare const KUI_YUE_TABLE: Record<string, [string, string]>;
|
|
48
|
+
declare const HUO_XING_START: Record<string, string>;
|
|
49
|
+
declare const LING_XING_START: Record<string, string>;
|
|
50
|
+
declare const TIAN_MA_TABLE: Record<string, string>;
|
|
51
|
+
declare const ZIWEI_SERIES_OFFSETS: Record<string, number>;
|
|
52
|
+
declare const TIANFU_SERIES_OFFSETS: Record<string, number>;
|
|
53
|
+
declare const BRIGHTNESS_TABLE: Record<string, Record<string, string>>;
|
|
54
|
+
declare const CHANGSHENG_START: Record<string, string>;
|
|
55
|
+
declare const WU_HU_DUN_GAN: Record<string, string>;
|
|
56
|
+
|
|
57
|
+
export { BAEKHO_PILLARS, BRANCH_BREAKS, BRANCH_CLASHES, BRANCH_COMBINES_6, BRANCH_ELEMENT, BRANCH_HARMS, BRANCH_PUNISHMENTS, BRANCH_SELF_PUNISHMENTS, BRIGHTNESS_TABLE, CHANGSHENG_START, DIRECTIONAL_COMPOSES, DIRECTIONAL_COMPOSE_ELEMENTS, DI_ZHI, EARTH, EARTH_KR, ELEMENT_HANJA, GOEGANG_PILLARS, HALF_COMPOSES, HGANJI, HUO_XING_START, JIJANGGAN, KUI_YUE_TABLE, LING_XING_START, LUCKY_STAR_NAMES, LU_CUN_TABLE, MAIN_STAR_NAMES, METEORS_12, METEOR_LOOKUP, NAYIN_TABLE, PALACE_NAMES, PILLAR_NAMES, RELATIONS, SHA_STAR_NAMES, SI_HUA_TABLE, SKY, SKY_KR, SPIRITS_12, STEM_CLASHES, STEM_COMBINES, STEM_INFO, TIANFU_SERIES_OFFSETS, TIAN_GAN, TIAN_MA_TABLE, TRIPLE_COMPOSES, TRIPLE_COMPOSE_ELEMENTS, WU_HU_DUN_GAN, WU_XING_JU_MAP, YANGGAN, YANGIN_MAP, ZIWEI_SERIES_OFFSETS };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BAEKHO_PILLARS,
|
|
3
|
+
BRANCH_BREAKS,
|
|
4
|
+
BRANCH_CLASHES,
|
|
5
|
+
BRANCH_COMBINES_6,
|
|
6
|
+
BRANCH_ELEMENT,
|
|
7
|
+
BRANCH_HARMS,
|
|
8
|
+
BRANCH_PUNISHMENTS,
|
|
9
|
+
BRANCH_SELF_PUNISHMENTS,
|
|
10
|
+
BRIGHTNESS_TABLE,
|
|
11
|
+
CHANGSHENG_START,
|
|
12
|
+
DIRECTIONAL_COMPOSES,
|
|
13
|
+
DIRECTIONAL_COMPOSE_ELEMENTS,
|
|
14
|
+
DI_ZHI,
|
|
15
|
+
EARTH,
|
|
16
|
+
EARTH_KR,
|
|
17
|
+
ELEMENT_HANJA,
|
|
18
|
+
GOEGANG_PILLARS,
|
|
19
|
+
HALF_COMPOSES,
|
|
20
|
+
HGANJI,
|
|
21
|
+
HUO_XING_START,
|
|
22
|
+
JIJANGGAN,
|
|
23
|
+
KUI_YUE_TABLE,
|
|
24
|
+
LING_XING_START,
|
|
25
|
+
LUCKY_STAR_NAMES,
|
|
26
|
+
LU_CUN_TABLE,
|
|
27
|
+
MAIN_STAR_NAMES,
|
|
28
|
+
METEORS_12,
|
|
29
|
+
METEOR_LOOKUP,
|
|
30
|
+
NAYIN_TABLE,
|
|
31
|
+
PALACE_NAMES,
|
|
32
|
+
PILLAR_NAMES,
|
|
33
|
+
RELATIONS,
|
|
34
|
+
SHA_STAR_NAMES,
|
|
35
|
+
SI_HUA_TABLE,
|
|
36
|
+
SKY,
|
|
37
|
+
SKY_KR,
|
|
38
|
+
SPIRITS_12,
|
|
39
|
+
STEM_CLASHES,
|
|
40
|
+
STEM_COMBINES,
|
|
41
|
+
STEM_INFO,
|
|
42
|
+
TIANFU_SERIES_OFFSETS,
|
|
43
|
+
TIAN_GAN,
|
|
44
|
+
TIAN_MA_TABLE,
|
|
45
|
+
TRIPLE_COMPOSES,
|
|
46
|
+
TRIPLE_COMPOSE_ELEMENTS,
|
|
47
|
+
WU_HU_DUN_GAN,
|
|
48
|
+
WU_XING_JU_MAP,
|
|
49
|
+
YANGGAN,
|
|
50
|
+
YANGIN_MAP,
|
|
51
|
+
ZIWEI_SERIES_OFFSETS
|
|
52
|
+
} from "./chunk-VJDUZB5T.js";
|
|
53
|
+
import "./chunk-JSBRDJBE.js";
|
|
54
|
+
export {
|
|
55
|
+
BAEKHO_PILLARS,
|
|
56
|
+
BRANCH_BREAKS,
|
|
57
|
+
BRANCH_CLASHES,
|
|
58
|
+
BRANCH_COMBINES_6,
|
|
59
|
+
BRANCH_ELEMENT,
|
|
60
|
+
BRANCH_HARMS,
|
|
61
|
+
BRANCH_PUNISHMENTS,
|
|
62
|
+
BRANCH_SELF_PUNISHMENTS,
|
|
63
|
+
BRIGHTNESS_TABLE,
|
|
64
|
+
CHANGSHENG_START,
|
|
65
|
+
DIRECTIONAL_COMPOSES,
|
|
66
|
+
DIRECTIONAL_COMPOSE_ELEMENTS,
|
|
67
|
+
DI_ZHI,
|
|
68
|
+
EARTH,
|
|
69
|
+
EARTH_KR,
|
|
70
|
+
ELEMENT_HANJA,
|
|
71
|
+
GOEGANG_PILLARS,
|
|
72
|
+
HALF_COMPOSES,
|
|
73
|
+
HGANJI,
|
|
74
|
+
HUO_XING_START,
|
|
75
|
+
JIJANGGAN,
|
|
76
|
+
KUI_YUE_TABLE,
|
|
77
|
+
LING_XING_START,
|
|
78
|
+
LUCKY_STAR_NAMES,
|
|
79
|
+
LU_CUN_TABLE,
|
|
80
|
+
MAIN_STAR_NAMES,
|
|
81
|
+
METEORS_12,
|
|
82
|
+
METEOR_LOOKUP,
|
|
83
|
+
NAYIN_TABLE,
|
|
84
|
+
PALACE_NAMES,
|
|
85
|
+
PILLAR_NAMES,
|
|
86
|
+
RELATIONS,
|
|
87
|
+
SHA_STAR_NAMES,
|
|
88
|
+
SI_HUA_TABLE,
|
|
89
|
+
SKY,
|
|
90
|
+
SKY_KR,
|
|
91
|
+
SPIRITS_12,
|
|
92
|
+
STEM_CLASHES,
|
|
93
|
+
STEM_COMBINES,
|
|
94
|
+
STEM_INFO,
|
|
95
|
+
TIANFU_SERIES_OFFSETS,
|
|
96
|
+
TIAN_GAN,
|
|
97
|
+
TIAN_MA_TABLE,
|
|
98
|
+
TRIPLE_COMPOSES,
|
|
99
|
+
TRIPLE_COMPOSE_ELEMENTS,
|
|
100
|
+
WU_HU_DUN_GAN,
|
|
101
|
+
WU_XING_JU_MAP,
|
|
102
|
+
YANGGAN,
|
|
103
|
+
YANGIN_MAP,
|
|
104
|
+
ZIWEI_SERIES_OFFSETS
|
|
105
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { calculateSaju } from './saju.js';
|
|
2
|
+
export { calculateLiunian, createChart, getDaxianList } from './ziwei.js';
|
|
3
|
+
export { ASPECT_SYMBOLS, HOUSE_SYSTEMS, PLANET_KO, PLANET_SYMBOLS, ROMAN, ZODIAC_KO, ZODIAC_SIGNS, ZODIAC_SYMBOLS, calculateNatal, formatDegree, getSwissEph, lonToSign, normalizeDeg } from './natal.js';
|
|
4
|
+
export { analyzeAllRelations, analyzePillarRelations, calcPillarIndices, calcSolarTerms, checkDirectionalCompose, checkTripleCompose, findTransits, getBranchRelation, getDaewoon, getFourPillars, getHiddenStems, getJeonggi, getRelation, getSpecialSals, getStemRelation, getTwelveMeteor, getTwelveSpirit, toHangul } from './pillars.js';
|
|
5
|
+
export { BRANCH_ELEMENT, DI_ZHI, EARTH, EARTH_KR, ELEMENT_HANJA, HGANJI, JIJANGGAN, LUCKY_STAR_NAMES, MAIN_STAR_NAMES, METEORS_12, METEOR_LOOKUP, PALACE_NAMES, PILLAR_NAMES, RELATIONS, SHA_STAR_NAMES, SKY, SKY_KR, SPIRITS_12, STEM_INFO, TIAN_GAN, YANGGAN } from './constants.js';
|
|
6
|
+
export { City, KOREAN_CITIES, SEOUL, WORLD_CITIES, filterCities, formatCityName } from './cities.js';
|
|
7
|
+
export { AllRelations, AspectType, BirthInput, DaewoonItem, Element, Gender, LiuNianInfo, LiuYueInfo, Meteor, NatalAngles, NatalAspect, NatalChart, NatalHouse, PairRelation, Pillar, PillarDetail, PlanetId, PlanetPosition, Relation, RelationResult, SajuResult, SpecialSals, Spirit, StemInfo, TransitItem, WuXingJu, YinYang, ZiweiChart, ZiweiPalace, ZiweiStar, ZodiacSign } from './types.js';
|
|
8
|
+
import 'swisseph-wasm';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import {
|
|
2
|
+
calculateSaju
|
|
3
|
+
} from "./chunk-TRSIZZ73.js";
|
|
4
|
+
import {
|
|
5
|
+
calculateLiunian,
|
|
6
|
+
createChart,
|
|
7
|
+
getDaxianList
|
|
8
|
+
} from "./chunk-KD6TCTRW.js";
|
|
9
|
+
import {
|
|
10
|
+
ASPECT_SYMBOLS,
|
|
11
|
+
HOUSE_SYSTEMS,
|
|
12
|
+
PLANET_KO,
|
|
13
|
+
PLANET_SYMBOLS,
|
|
14
|
+
ROMAN,
|
|
15
|
+
ZODIAC_KO,
|
|
16
|
+
ZODIAC_SIGNS,
|
|
17
|
+
ZODIAC_SYMBOLS,
|
|
18
|
+
calculateNatal,
|
|
19
|
+
formatDegree,
|
|
20
|
+
getSwissEph,
|
|
21
|
+
lonToSign,
|
|
22
|
+
normalizeDeg
|
|
23
|
+
} from "./chunk-6PJQHSY6.js";
|
|
24
|
+
import {
|
|
25
|
+
analyzeAllRelations,
|
|
26
|
+
analyzePillarRelations,
|
|
27
|
+
calcPillarIndices,
|
|
28
|
+
calcSolarTerms,
|
|
29
|
+
checkDirectionalCompose,
|
|
30
|
+
checkTripleCompose,
|
|
31
|
+
findTransits,
|
|
32
|
+
getBranchRelation,
|
|
33
|
+
getDaewoon,
|
|
34
|
+
getFourPillars,
|
|
35
|
+
getHiddenStems,
|
|
36
|
+
getJeonggi,
|
|
37
|
+
getRelation,
|
|
38
|
+
getSpecialSals,
|
|
39
|
+
getStemRelation,
|
|
40
|
+
getTwelveMeteor,
|
|
41
|
+
getTwelveSpirit,
|
|
42
|
+
toHangul
|
|
43
|
+
} from "./chunk-DGSIRAXF.js";
|
|
44
|
+
import {
|
|
45
|
+
BRANCH_ELEMENT,
|
|
46
|
+
DI_ZHI,
|
|
47
|
+
EARTH,
|
|
48
|
+
EARTH_KR,
|
|
49
|
+
ELEMENT_HANJA,
|
|
50
|
+
HGANJI,
|
|
51
|
+
JIJANGGAN,
|
|
52
|
+
LUCKY_STAR_NAMES,
|
|
53
|
+
MAIN_STAR_NAMES,
|
|
54
|
+
METEORS_12,
|
|
55
|
+
METEOR_LOOKUP,
|
|
56
|
+
PALACE_NAMES,
|
|
57
|
+
PILLAR_NAMES,
|
|
58
|
+
RELATIONS,
|
|
59
|
+
SHA_STAR_NAMES,
|
|
60
|
+
SKY,
|
|
61
|
+
SKY_KR,
|
|
62
|
+
SPIRITS_12,
|
|
63
|
+
STEM_INFO,
|
|
64
|
+
TIAN_GAN,
|
|
65
|
+
YANGGAN
|
|
66
|
+
} from "./chunk-VJDUZB5T.js";
|
|
67
|
+
import {
|
|
68
|
+
KOREAN_CITIES,
|
|
69
|
+
SEOUL,
|
|
70
|
+
WORLD_CITIES,
|
|
71
|
+
filterCities,
|
|
72
|
+
formatCityName
|
|
73
|
+
} from "./chunk-OCPJGMZC.js";
|
|
74
|
+
import "./chunk-JSBRDJBE.js";
|
|
75
|
+
export {
|
|
76
|
+
ASPECT_SYMBOLS,
|
|
77
|
+
BRANCH_ELEMENT,
|
|
78
|
+
DI_ZHI,
|
|
79
|
+
EARTH,
|
|
80
|
+
EARTH_KR,
|
|
81
|
+
ELEMENT_HANJA,
|
|
82
|
+
HGANJI,
|
|
83
|
+
HOUSE_SYSTEMS,
|
|
84
|
+
JIJANGGAN,
|
|
85
|
+
KOREAN_CITIES,
|
|
86
|
+
LUCKY_STAR_NAMES,
|
|
87
|
+
MAIN_STAR_NAMES,
|
|
88
|
+
METEORS_12,
|
|
89
|
+
METEOR_LOOKUP,
|
|
90
|
+
PALACE_NAMES,
|
|
91
|
+
PILLAR_NAMES,
|
|
92
|
+
PLANET_KO,
|
|
93
|
+
PLANET_SYMBOLS,
|
|
94
|
+
RELATIONS,
|
|
95
|
+
ROMAN,
|
|
96
|
+
SEOUL,
|
|
97
|
+
SHA_STAR_NAMES,
|
|
98
|
+
SKY,
|
|
99
|
+
SKY_KR,
|
|
100
|
+
SPIRITS_12,
|
|
101
|
+
STEM_INFO,
|
|
102
|
+
TIAN_GAN,
|
|
103
|
+
WORLD_CITIES,
|
|
104
|
+
YANGGAN,
|
|
105
|
+
ZODIAC_KO,
|
|
106
|
+
ZODIAC_SIGNS,
|
|
107
|
+
ZODIAC_SYMBOLS,
|
|
108
|
+
analyzeAllRelations,
|
|
109
|
+
analyzePillarRelations,
|
|
110
|
+
calcPillarIndices,
|
|
111
|
+
calcSolarTerms,
|
|
112
|
+
calculateLiunian,
|
|
113
|
+
calculateNatal,
|
|
114
|
+
calculateSaju,
|
|
115
|
+
checkDirectionalCompose,
|
|
116
|
+
checkTripleCompose,
|
|
117
|
+
createChart,
|
|
118
|
+
filterCities,
|
|
119
|
+
findTransits,
|
|
120
|
+
formatCityName,
|
|
121
|
+
formatDegree,
|
|
122
|
+
getBranchRelation,
|
|
123
|
+
getDaewoon,
|
|
124
|
+
getDaxianList,
|
|
125
|
+
getFourPillars,
|
|
126
|
+
getHiddenStems,
|
|
127
|
+
getJeonggi,
|
|
128
|
+
getRelation,
|
|
129
|
+
getSpecialSals,
|
|
130
|
+
getStemRelation,
|
|
131
|
+
getSwissEph,
|
|
132
|
+
getTwelveMeteor,
|
|
133
|
+
getTwelveSpirit,
|
|
134
|
+
lonToSign,
|
|
135
|
+
normalizeDeg,
|
|
136
|
+
toHangul
|
|
137
|
+
};
|
package/dist/natal.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import SwissEph from 'swisseph-wasm';
|
|
2
|
+
import { AspectType, PlanetId, ZodiacSign, BirthInput, NatalChart } from './types.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 서양 점성술 Natal Chart 계산 엔진
|
|
6
|
+
*
|
|
7
|
+
* flatlib/pyswisseph 기반을 TypeScript로 포팅.
|
|
8
|
+
* 브라우저에서 Swiss Ephemeris를 사용하기 위해 swisseph-wasm을 활용한다.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
declare const ZODIAC_SIGNS: ZodiacSign[];
|
|
12
|
+
declare const ZODIAC_SYMBOLS: Record<ZodiacSign, string>;
|
|
13
|
+
declare const ZODIAC_KO: Record<ZodiacSign, string>;
|
|
14
|
+
declare const PLANET_SYMBOLS: Record<PlanetId, string>;
|
|
15
|
+
declare const PLANET_KO: Record<PlanetId, string>;
|
|
16
|
+
declare const ASPECT_SYMBOLS: Record<AspectType, string>;
|
|
17
|
+
declare const ROMAN: string[];
|
|
18
|
+
/** 하우스 시스템: [swisseph char, 표시 이름] */
|
|
19
|
+
declare const HOUSE_SYSTEMS: [string, string][];
|
|
20
|
+
declare function getSwissEph(): Promise<SwissEph>;
|
|
21
|
+
/** longitude → ZodiacSign */
|
|
22
|
+
declare function lonToSign(lon: number): ZodiacSign;
|
|
23
|
+
/** 0~360 정규화 (음수 모듈로 처리) */
|
|
24
|
+
declare function normalizeDeg(deg: number): number;
|
|
25
|
+
/** 도수를 DD°MM' 형식으로 포맷 */
|
|
26
|
+
declare function formatDegree(lon: number): string;
|
|
27
|
+
declare function calculateNatal(input: BirthInput, houseSystem?: string): Promise<NatalChart>;
|
|
28
|
+
|
|
29
|
+
export { ASPECT_SYMBOLS, HOUSE_SYSTEMS, PLANET_KO, PLANET_SYMBOLS, ROMAN, ZODIAC_KO, ZODIAC_SIGNS, ZODIAC_SYMBOLS, calculateNatal, formatDegree, getSwissEph, lonToSign, normalizeDeg };
|
package/dist/natal.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ASPECT_SYMBOLS,
|
|
3
|
+
HOUSE_SYSTEMS,
|
|
4
|
+
PLANET_KO,
|
|
5
|
+
PLANET_SYMBOLS,
|
|
6
|
+
ROMAN,
|
|
7
|
+
ZODIAC_KO,
|
|
8
|
+
ZODIAC_SIGNS,
|
|
9
|
+
ZODIAC_SYMBOLS,
|
|
10
|
+
calculateNatal,
|
|
11
|
+
formatDegree,
|
|
12
|
+
getSwissEph,
|
|
13
|
+
lonToSign,
|
|
14
|
+
normalizeDeg
|
|
15
|
+
} from "./chunk-6PJQHSY6.js";
|
|
16
|
+
import "./chunk-JSBRDJBE.js";
|
|
17
|
+
export {
|
|
18
|
+
ASPECT_SYMBOLS,
|
|
19
|
+
HOUSE_SYSTEMS,
|
|
20
|
+
PLANET_KO,
|
|
21
|
+
PLANET_SYMBOLS,
|
|
22
|
+
ROMAN,
|
|
23
|
+
ZODIAC_KO,
|
|
24
|
+
ZODIAC_SIGNS,
|
|
25
|
+
ZODIAC_SYMBOLS,
|
|
26
|
+
calculateNatal,
|
|
27
|
+
formatDegree,
|
|
28
|
+
getSwissEph,
|
|
29
|
+
lonToSign,
|
|
30
|
+
normalizeDeg
|
|
31
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { AllRelations, PairRelation, RelationResult, TransitItem, Relation, SpecialSals } from './types.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 그레고리력 → 60갑자 인덱스 [연주, 월주, 일주, 시주]
|
|
5
|
+
*
|
|
6
|
+
* @returns [so24(60년 배수), so24year, so24month, so24day, so24hour]
|
|
7
|
+
*/
|
|
8
|
+
declare function calcPillarIndices(year: number, month: number, day: number, hour: number, min: number): [number, number, number, number, number];
|
|
9
|
+
/**
|
|
10
|
+
* 절기 시간 구하기 - 입기, 중기, 출기 날짜/시각
|
|
11
|
+
*/
|
|
12
|
+
declare function calcSolarTerms(year: number, month: number, day: number, hour: number, min: number): {
|
|
13
|
+
ingiName: number;
|
|
14
|
+
ingiYear: number;
|
|
15
|
+
ingiMonth: number;
|
|
16
|
+
ingiDay: number;
|
|
17
|
+
ingiHour: number;
|
|
18
|
+
ingiMin: number;
|
|
19
|
+
midName: number;
|
|
20
|
+
midYear: number;
|
|
21
|
+
midMonth: number;
|
|
22
|
+
midDay: number;
|
|
23
|
+
midHour: number;
|
|
24
|
+
midMin: number;
|
|
25
|
+
outgiName: number;
|
|
26
|
+
outgiYear: number;
|
|
27
|
+
outgiMonth: number;
|
|
28
|
+
outgiDay: number;
|
|
29
|
+
outgiHour: number;
|
|
30
|
+
outgiMin: number;
|
|
31
|
+
};
|
|
32
|
+
/** 4주를 60갑자 문자열로 반환 [년주, 월주, 일주, 시주] */
|
|
33
|
+
declare function getFourPillars(year: number, month: number, day: number, hour: number, minute: number): [string, string, string, string];
|
|
34
|
+
/** 대운 10개 계산 */
|
|
35
|
+
declare function getDaewoon(isMale: boolean, year: number, month: number, day: number, hour: number, minute: number): Array<{
|
|
36
|
+
ganzi: string;
|
|
37
|
+
startDate: Date;
|
|
38
|
+
}>;
|
|
39
|
+
/** 일간 기준 십신 계산 */
|
|
40
|
+
declare function getRelation(dayStem: string, targetStem: string): Relation | null;
|
|
41
|
+
/** 지장간 반환 */
|
|
42
|
+
declare function getHiddenStems(branch: string): string;
|
|
43
|
+
/** 지장간의 정기 (마지막 글자) */
|
|
44
|
+
declare function getJeonggi(branch: string): string;
|
|
45
|
+
/** 한자를 한글로 변환 */
|
|
46
|
+
declare function toHangul(hanja: string): string;
|
|
47
|
+
/** 12운성 계산 */
|
|
48
|
+
declare function getTwelveMeteor(stem: string, branch: string): string;
|
|
49
|
+
/** 12신살 계산 (년지 기준) */
|
|
50
|
+
declare function getTwelveSpirit(yearBranch: string, targetBranch: string): string;
|
|
51
|
+
/** 천간 관계 */
|
|
52
|
+
declare function getStemRelation(stem1: string, stem2: string): RelationResult[];
|
|
53
|
+
/** 지지 관계 */
|
|
54
|
+
declare function getBranchRelation(branch1: string, branch2: string): RelationResult[];
|
|
55
|
+
/** 두 주 사이의 관계 분석 */
|
|
56
|
+
declare function analyzePillarRelations(pillar1: string, pillar2: string): PairRelation;
|
|
57
|
+
/** 삼합 검사 */
|
|
58
|
+
declare function checkTripleCompose(branches: string[]): RelationResult[];
|
|
59
|
+
/** 방합 검사 */
|
|
60
|
+
declare function checkDirectionalCompose(branches: string[]): RelationResult[];
|
|
61
|
+
/** 모든 주 관계 분석 */
|
|
62
|
+
declare function analyzeAllRelations(pillars: string[]): AllRelations;
|
|
63
|
+
declare function getSpecialSals(dayStem: string, dayPillar: string, branches: string[]): SpecialSals;
|
|
64
|
+
/** N개월간의 일운/월운과 사주의 관계를 찾음 */
|
|
65
|
+
declare function findTransits(natalPillars: string[], months?: number, backward?: boolean): TransitItem[];
|
|
66
|
+
|
|
67
|
+
export { analyzeAllRelations, analyzePillarRelations, calcPillarIndices, calcSolarTerms, checkDirectionalCompose, checkTripleCompose, findTransits, getBranchRelation, getDaewoon, getFourPillars, getHiddenStems, getJeonggi, getRelation, getSpecialSals, getStemRelation, getTwelveMeteor, getTwelveSpirit, toHangul };
|
package/dist/pillars.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
analyzeAllRelations,
|
|
3
|
+
analyzePillarRelations,
|
|
4
|
+
calcPillarIndices,
|
|
5
|
+
calcSolarTerms,
|
|
6
|
+
checkDirectionalCompose,
|
|
7
|
+
checkTripleCompose,
|
|
8
|
+
findTransits,
|
|
9
|
+
getBranchRelation,
|
|
10
|
+
getDaewoon,
|
|
11
|
+
getFourPillars,
|
|
12
|
+
getHiddenStems,
|
|
13
|
+
getJeonggi,
|
|
14
|
+
getRelation,
|
|
15
|
+
getSpecialSals,
|
|
16
|
+
getStemRelation,
|
|
17
|
+
getTwelveMeteor,
|
|
18
|
+
getTwelveSpirit,
|
|
19
|
+
toHangul
|
|
20
|
+
} from "./chunk-DGSIRAXF.js";
|
|
21
|
+
import "./chunk-VJDUZB5T.js";
|
|
22
|
+
import "./chunk-JSBRDJBE.js";
|
|
23
|
+
export {
|
|
24
|
+
analyzeAllRelations,
|
|
25
|
+
analyzePillarRelations,
|
|
26
|
+
calcPillarIndices,
|
|
27
|
+
calcSolarTerms,
|
|
28
|
+
checkDirectionalCompose,
|
|
29
|
+
checkTripleCompose,
|
|
30
|
+
findTransits,
|
|
31
|
+
getBranchRelation,
|
|
32
|
+
getDaewoon,
|
|
33
|
+
getFourPillars,
|
|
34
|
+
getHiddenStems,
|
|
35
|
+
getJeonggi,
|
|
36
|
+
getRelation,
|
|
37
|
+
getSpecialSals,
|
|
38
|
+
getStemRelation,
|
|
39
|
+
getTwelveMeteor,
|
|
40
|
+
getTwelveSpirit,
|
|
41
|
+
toHangul
|
|
42
|
+
};
|
package/dist/saju.d.ts
ADDED