react-iztro
Version:
基于iztro实现的react紫微斗数星盘组件。A react component used to generate an astrolabe of ziweidoushu based on iztro.
19 lines (18 loc) • 900 B
TypeScript
import React from "react";
import FunctionalAstrolabe from "iztro/lib/astro/FunctionalAstrolabe";
import "./IzpalaceCenter.css";
import { Scope } from "iztro/lib/data/types";
import { IFunctionalHoroscope } from "iztro/lib/astro/FunctionalHoroscope";
type IzpalaceCenterProps = {
astrolabe?: FunctionalAstrolabe;
horoscope?: IFunctionalHoroscope;
horoscopeDate?: string | Date;
horoscopeHour?: number;
arrowIndex?: number;
arrowScope?: Scope;
setHoroscopeDate?: React.Dispatch<React.SetStateAction<string | Date | undefined>>;
setHoroscopeHour?: React.Dispatch<React.SetStateAction<number | undefined>>;
centerPalaceAlign?: boolean;
};
export declare const IzpalaceCenter: ({ astrolabe, horoscope, arrowIndex, arrowScope, horoscopeDate, horoscopeHour, setHoroscopeDate, setHoroscopeHour, centerPalaceAlign, }: IzpalaceCenterProps) => React.JSX.Element;
export {};