iztro's Issues
描述(Description)
由于对流月索引计算方式的理解错误,导致原本正确的流月索引出现了错误。感谢网友 先不要慌
的指出。
Monthly horoscope index is incorrect because of my misunderstanding. Thanks to 先不要慌
版本(Version)
v1.2.3 以前的版本不受影响
only affect v1.2.3 v1.2.4 and v1.2.5
由 #36 引发。(caused by #36 )
摘要(Summary)
🇨🇳
在运限信息中加入流时信息。
🇺🇸
Add timely scope information to horoscope.
Ref. #1 (comment)
需求(Requirements)
🇨🇳
🇺🇸
- timely scope index should be included
- heavenly stem of timely scope should be included
- mutagen of timely scope should be included.
是否加入流时星耀,还需在今后大家的使用中来决定。
摘要(Summary)
🇨🇳
暂定支持 🇨🇳 简体中文
、🇭🇰 繁体中文
,🇺🇸 英文
,🇯🇵 日文
,🇰🇷 韩文
输出。
🇺🇸
Provisionally support 🇨🇳 Simplify Chinese
, 🇭🇰 Traditional Chinese
, 🇺🇸 English
, 🇯🇵 Japanese
and 🇰🇷 Korean
.
摘要(Summary)
新建插件功能,以支持更多、更灵活的配置以及方法。
需求(Requirements)
摘要(Summary)
🇨🇳
🇺🇸
Ref. {referrence}
需求(Requirements)
🇨🇳
🇺🇸
描述(Description)
版本(Version)
环境(Environment)
重现(Reproduce)
-
调用的方法(funciton name)
-
参数(parameters)
-
返回值(returns)
摘要(Summary)
🇨🇳
目前Horoscope对象还有些不方便,需要新增name字段
🇺🇸
need to add a new field name
需求(Requirements)
🇨🇳
- 给
Horoscope
添加 name
字段
- 给
name
字段添加国际化翻译
- 更新文档
- 更新UT
🇺🇸
- add
name
field to Horoscope
name
should be localized
- update docs
- update UT
摘要(Summary)
🇨🇳
新增一些静态方法
🇺🇸
add some static methods
Ref. {referrence}
需求(Requirements)
🇨🇳
- 新增获取命宫主星方法
- 新增获取生肖方法
- 新增获取星座方法
🇺🇸
- add a function to get major stars
- add a function to get Chinese zodiac
- add a function to get sign
描述(Description)
天梁星在申宫时,亮度应为陷,排出来的亮度是庙
版本(Version)
环境(Environment)
网页
重现(Reproduce)
链接
-
参数(parameters)
-
返回值(returns)
描述(Description)
来因宫应该以生年天干判断,程序内目前错误的以地支判断了。
版本(Version)
原因
由于移动设备上使用 new Date()
将日期字符串转化为日期对象的时候兼容性不好,所以决定使用dayjs来提高日期兼容性。
摘要(Summary)
🇨🇳
现在返回的星盘对象和获取流耀的方法是分开的,这样在调用的时候不是很方便,所以需要在返回的对象里面加入一个方法来获取制定日期的运限信息以及流曜。
🇺🇸
The astrolabe object and get horoscope stars function are detached. It's not convenient. So it would be better to add a function to get horoscope of specific date.
需求(Requirements)
🇨🇳
- 传入时间可选,当没传入时间的时候默认获取当前日期
- 返回数据应该包含当前时间大限、流年、流月以及流日的索引
- 返回虚岁以便通过虚岁定位小限宫位
- 返回大限以及流年的流曜
- 返回大限、流年、流月以及流日的四化
🇺🇸
- Date can be optional. When no date is provided, it will default to the current date.
- The returned data should include the indexes of the decadal scope, yearly scope, monthly scope, and daily scope.
- Return nominal age to determine the age-related scope.
- Return decadal and yearly scope stars.
- Return mutagen of decadal yearly monthly and daily scope.
摘要(Summary)
⚠️ 对于小限来说,只有小限命宫有意义,但是有用户有展示小限12宫的需求,所以在此添加到age字段中以便有需求的用户取用。
描述(Description)
由于没有考虑到多语言的判断问题导致小限的排列错误。
版本(Version)
摘要(Summary)
🇨🇳
看着很别扭,为什么不是竖着排,从右到左的顺序,这个排盘的布局还得自己实现吗,底层调上来的星辰得转换成竖着吗
描述(Description)
出生时间不能选择18xx年
重现(Reproduce)
<title>iztro-紫微斗数开源库</title>
<script src="https://cdn.jsdelivr.net/npm/iztro/dist/iztro.min.js"></script>
<script>
// 获取一张星盘数据
var astrolabe = iztro.asto.bySolar('2000-8-16', 2, '男', true, 'zh-CN');
</script>
描述(Description)
页面滚动到最下方后,部分内容被 footer 遮挡
footer 的 position: fixed;
-> position: sticky;
应该可以解决
版本(Version)
环境(Environment)
重现(Reproduce)
摘要(Summary)
🇨🇳
在流年运限里返回流年岁前12神和流年将前12神
🇺🇸
return yearly decorative stars in yearly horoscope.
描述(Description)
比如说 辛
和 申
在韩语里都是 신
for example: both 辛
and 申
are translated to 신
in Korean.
版本(Version)
摘要(Summary)
🇨🇳
获取三方四正宫位以及对三方四正宫位星耀的判断
🇺🇸
Get surrounded palaces. Stars analyzation.
需求(Requirements)
🇨🇳
- 能够获取三方四正宫位
- 判断指定星耀是否全部在三方四正内
- 判断指定星耀是否至少有一颗在三方四正内
- 判断指定星耀是否全不在三方四正内
🇺🇸
- get surrounded palaces.
- check whether all specific stars are in the surrounded palaces
- check whether one of the specific stars are in the surrounded palaces
- check whether all specific stars are not in the surrounded palaces
摘要(Summary)
🇨🇳
需要加入FunctionalHoroscope
类来进行运限的分析。
🇺🇸
in order to analyze horoscope
, we need to add FunctionalHoroscope
class.
Ref. {referrence}
需求(Requirements)
🇨🇳
- FunctionalHoroscope 需要继承 Horoscope 的所有属性
- FunctionalHoroscope 需要实现类似 FunctionalAstrolabe 的功能
- 获取运限的宫位
- 获取运限指定宫位的三方四正
- 判断宫位星耀情况
判断运限四化情况 为了不让一个PR过于复杂,将在下一个版本实现
🇺🇸
- extends properties of
Horoscope
- implements functions like
FunctionalAstrolabe
- to get specific palace of a horoscope
- to get surrounded palaces of a horoscope
- to check stars of a horoscope
to check mutagens of a horoscope will be implemented in the next version to keep the PR simpler
描述(Description)
据用户报告,在运限时间超过85岁以后,小限数据不再变化。
版本(Version)
环境(Environment)
重现(Reproduce)
-
调用的方法(funciton name)
horoscope()
摘要(Summary)
将农历阳历转换代码解耦
需求(Requirements)
- 分离calendar文件夹下代码到 新的仓库
- 覆盖当前calendar组件所有功能
- 用生日制作一个astrolabe
- horoscope = astrolabe.horoscope()得到十年大运
- 在大运数据里,找到decadal = horoscope["decadal"]大运具体信息
- 再找到此大运相关的天魁天钺decadal["stars"]
- 此时会发现运魁运钺(或者叫大魁大钺)可能是反的
摘要(Summary)
🇨🇳
因為經度產生時差的問題,會讓我們以為生日當時紀錄的時間是正確的。例如,在台北同一時間在重慶出生的人,雖然行政時間是一樣的,但是其實已經有很巨大的時差。真太陽時間就是在進行這個與中原標準時間的校正,這樣就可以進行全球東西半球正確的紫微斗數的排盤。
建议增加独立的js库
以方便不懂react的开发者直接调用js
大佬您好,我在package.json 里没有找到启动的命令脚本
摘要(Summary)
将以前 Star
转化为 FunctionalStar
的方法去掉,改为在初始化的时候就生成 FunctionalStar
实例。
需求(Requirements)
描述(Description)
流月索引计算错误,导致日流时也跟着错误了
版本(Version)
摘要(Summary)
在 FunctionalPalace
中新增一个方法,判断该宫位是否为空宫。
摘要(Summary)
判断指定运限宫位内是否有四化
摘要(Summary)
🇨🇳
目前功能只有生年四化和流四化的判断,需要加入宫位飞星四化的判断。
需求(Requirements)
🇨🇳
- 判断指定宫位是否飞化到目标宫位,四化传入数组,中一个即返回true
- 判断指定宫位是否没有飞化到目标宫位,四化传入数组,所有四化都没有中才返回true
- 判断指定宫位是否有自化
- 传入四化(可选),如果不传入则会判断所有四化
- 输出布尔值
- 获取指定宫位飞化宫位数据
- 目标宫位序号或名字
- 输出禄权科忌所在宫位实例数组,数组下标对应 [禄,权,科,忌]
描述(Description)
农历月底的时候晚子时加一天以后没有考虑到月份也要加一的问题。
版本(Version)
重现(Reproduce)
-
调用的方法(funciton name)
-
参数(parameters)
- lunarDateStr: 1987-10-30
- timeIndex: 12
- gender: 女
摘要(Summary)
🇨🇳
紫微斗数的大部分主星和部分辅星会起四化(禄、权、科、忌),而限运和宫位也会起四化,此版本只实现本命四化
🇺🇸
Most major stars and some minor stars in Zi Wei Dou Shu have four mutagens which are addtional mutagen
, forceful mutagen
, easygoing mutagen
and focused mutagen
. Besides, horoscope and palaces have those mutagens as well. We only focus on original mutagens in this issue.
需求(Requirements)
🇨🇳
- 判断指定星耀是否有四化
- 判断指定宫位内是否有四化
- 判断三方四正内是否有四化
- 判断对宫是否有四化
🇺🇸
- check mutagen status for specific start
- check mutagen status for specific palace
- check mutagen status for surrounded palaces
- check mutagen status for opposite palace
首先感谢您的无私开源,这个仓库对我的帮助很大。
如题,请问目前该库是否支持python调用?
如果支持的话,请问应当如何调用呢?
如果不支持的话,是否在未来有添加python支持的可能性?
期待着您的回复,这对我非常重要,谢谢!