GithubHelp home page GithubHelp logo

Comments (6)

556isback avatar 556isback commented on August 15, 2024 1

可以把流时加上吗?

from iztro.

SylarLong avatar SylarLong commented on August 15, 2024

运限信息定义 (Horoscope definition)

export type HoroscopeItem = {
  index: number;
  heavenlyStem: HeavenlyStem;
  palaceNames: PalaceName[];
  mutagen: (typeof heavenlyStems)[HeavenlyStem]['mutagen'];
  stars?: Star[][];
};

export type Horoscope = {
  lunarDate: string;
  solarDate: string;
  decadal: HoroscopeItem;
  age: { index: number; nominalAge: number };
  yearly: HoroscopeItem;
  monthly: HoroscopeItem;
  daily: HoroscopeItem;
};

Astrolabe 对象新增方法 horoscope 方法。调用方法如下:

import { astro } from '@sylarlong/astro';

// 通过阳历获取星盘信息
// generate astrolabe by solar date
const astrolabe = astro.astrolabeBySolarDate('2000-8-16', 2, '女');

// 获取运限信息
// 参数为阳历日期
astrolabe.horoscope('2023-8-16');

from iztro.

SylarLong avatar SylarLong commented on August 15, 2024

可以把流时加上吗?

可以的哦,后续小版本会加上的。感谢关注~ 👍

from iztro.

SylarLong avatar SylarLong commented on August 15, 2024

你好,@556isback ~👋

我收到你说运限天干地支有问题的邮件,但是没有发现comment,请问是哪个地方的干支出现了问题呢?非常感谢你的指正。也非常欢迎你创建Issue来帮助我改进程序。

希望能得到你的回复,以便让我知道是哪里出现错误而及时纠正错误。

from iztro.

556isback avatar 556isback commented on August 15, 2024

@SylarLong
是这样的我把天干地支和命宫的位置搞混了,现在在想办法弄明白运限的命宫怎么找

from iztro.

SylarLong avatar SylarLong commented on August 15, 2024

@556isback 好的,如果遇到问题或者有任何建议,欢迎到 discussion 里讨论。

from iztro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.