MCPcopy
hub / github.com/SylarLong/iztro / IFunctionalAstrolabe

Interface IFunctionalAstrolabe

src/astro/FunctionalAstrolabe.ts:213–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 * 文档地址:https://docs.iztro.com/posts/astrolabe.html#functionalastrolabe
212 */
213export interface IFunctionalAstrolabe extends Astrolabe {
214 /**
215 * 插件注入方法
216 *
217 * @version v2.3.0
218 *
219 * @param plugin 插件函数
220 */
221 use(plugin: Plugin): void;
222 /**
223 * 获取运限数据
224 *
225 * @version v0.2.0
226 *
227 * @param date 阳历日期【可选】,默认为调用时的日期
228 * @param timeIndex 时辰索引【可选】,默认会自动读取当前时间的时辰
229 * @returns 运限数据
230 */
231 horoscope: (date?: string | Date, timeIndex?: number) => IFunctionalHoroscope;
232
233 /**
234 * 通过星耀名称获取到当前星耀的对象实例
235 *
236 * @version v1.2.0
237 *
238 * @param starName 星耀名称
239 * @returns 星耀实例
240 */
241 star: (starName: StarName) => IFunctionalStar;
242
243 /**
244 * 获取星盘的某一个宫位
245 *
246 * @version v1.0.0
247 *
248 * @param indexOrName 宫位索引或者宫位名称
249 * @returns 对应的宫位数据,若没有找到则返回undefined
250 */
251 palace: (indexOrName: number | PalaceName) => IFunctionalPalace | undefined;
252
253 /**
254 * 获取三方四正宫位,所谓三方四正就是传入的目标宫位,以及其对宫,财帛位和官禄位,总共四个宫位
255 *
256 * @version v1.1.0
257 *
258 * @param indexOrName 宫位索引或者宫位名称
259 * @returns 三方四正宫位
260 */
261 surroundedPalaces: (indexOrName: number | PalaceName) => IFunctionalSurpalaces;
262
263 /**
264 *
265 * 判断某一个宫位三方四正是否包含目标星耀,必须要全部包含才会返回true
266 *
267 * @version v1.0.0
268 *
269 * @param indexOrName 宫位索引或者宫位名称
270 * @param stars 星耀名称数组

Callers

nothing calls this directly

Implementers 1

FunctionalAstrolabesrc/astro/FunctionalAstrolabe.ts

Calls

no outgoing calls

Tested by

no test coverage detected