{"_id":"@behaver/astrolable-house-calculator","_rev":"1-11d38ff294a98556128c5200bccf583f","name":"@behaver/astrolable-house-calculator","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@behaver/astrolable-house-calculator","version":"1.0.0","description":"This pkg is builded for astrolable house calculating.","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/behaver/astrolable-house-calculator.git"},"keywords":["astrolable"],"author":{"name":"Sanwan, Dong"},"license":"ISC","bugs":{"url":"https://github.com/behaver/astrolable-house-calculator/issues"},"homepage":"https://github.com/behaver/astrolable-house-calculator#readme","devDependencies":{"chai":"^4.2.0","mocha":"^6.0.2"},"dependencies":{"@behaver/jdate":"^2.3.2","@behaver/solar-star-coordinate":"^1.0.7"},"gitHead":"b514f24e9ce8948ee27d4cda2360f626ba18aa52","_id":"@behaver/astrolable-house-calculator@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"behaver","email":"qianxing@yeah.net"},"dist":{"integrity":"sha512-kb6yAq3//gJhYdPrm5RHRldJNdAVTngQFQO+de836U6N3XAOkfPGxuvxK6ughDB97BF3UTdGrvOT26kLTxokCQ==","shasum":"fef06dafa9812c8ea5eddfa163c33d482c66dc36","tarball":"https://registry.npmjs.org/@behaver/astrolable-house-calculator/-/astrolable-house-calculator-1.0.0.tgz","fileCount":16,"unpackedSize":22047,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoCOKCRA9TVsSAnZWagAAryQP/04APZCDwBqvLaB1Ln7T\nhOGPQTP5dycvaW24aGD8wZA+OcI/a4iOleGnmt73PTbY5ewZhm5N3v4TJVL6\n4+daJBQXVT9k+HGaz90xVLuMaPvJPdhHCSLk9db5QP/vOdQK92nIfPvWDkcM\nIY3rLZ0mjgBxzW8rVh9KYMSMexpOyLc9ufsn3SApqvqzI8epHcoZMj1GZNtz\nx1ts3J5U7zfQWNQJgg7HHI59riS/lyo/pgUCWTDNszA7CCsYonO/Z9PN3n7S\n8l1yGbIlkPhvCulBQmGBDE/tahaGwXucq+PNmsJKQOQ+uy6w689C/1IKBOsW\nR5y8jS0pkTYj13SM1g3lMS49j8nhcyDyt3WgMKew8Abevd2wt6KkGvVGEMqg\nw/o/JIegaeTAWTCsxx4eIF5eMkRueyo+98ulz++JzOrnbX0D5idl6Xw5P4P+\nTNFMzJxtDVUXF/N/TYUnxbY4lQ77ICLqoPvGOjk9DrdQx3PJBH/GjXADFDld\n4It+DM2Du2bqTUohpgjZru/bvJiWhn8Nt0Il+KzS7yWkvicYPofc2f6JRTqD\ne4xUR3rtGGCFJt1BImHTxk6ihjLOwZJsj84CfWFdKjBMOBe/BIXZx2dH3Pfl\nW69NTJv0JAWYoX4lk3rase99Lui6GuZIK2ogevj4547+E9IiStbmXZKlH6bH\nTUsJ\r\n=VvVS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFX4hZ8yxfjXyfK6+fv5aE6NCY0hgiO8wapnceQ+vN+NAiALNU/LsdVstUvkLuaXf65tuuHSvYb3jqucQoNS2LMsHQ=="}]},"maintainers":[{"name":"behaver","email":"qianxing@yeah.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/astrolable-house-calculator_1.0.0_1553998730061_0.9713966821229527"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-31T02:18:49.861Z","1.0.0":"2019-03-31T02:18:50.168Z","modified":"2022-04-04T18:12:35.930Z"},"maintainers":[{"name":"behaver","email":"qianxing@yeah.net"}],"description":"This pkg is builded for astrolable house calculating.","homepage":"https://github.com/behaver/astrolable-house-calculator#readme","keywords":["astrolable"],"repository":{"type":"git","url":"git+https://github.com/behaver/astrolable-house-calculator.git"},"author":{"name":"Sanwan, Dong"},"bugs":{"url":"https://github.com/behaver/astrolable-house-calculator/issues"},"license":"ISC","readme":"# AstrolableHouseCalculator\n\n[![GitHub license](https://img.shields.io/badge/license-ISC-brightgreen.svg)](#) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/@behaver/astrolable-house-calculator) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#)\n\n## 简介\n\nAstrolableHouseCalculator 是一个被构建用来计算星盘宫位的计算组件。其中包含的子组件有：\n\n* `JDateHouse` 儒略日宫位计算\n* `SunGeoEclipticHouse` 太阳地心黄道宫位计算\n* `MoonGeoEclipticHouse` 月亮地心黄道宫位计算\n* `MercuryGeoEclipticHouse` 水星地心黄道宫位计算\n* `VenusGeoEclipticHouse` 金星地心黄道宫位计算\n* `MarsGeoEclipticHouse` 火星地心黄道宫位计算\n* `JupiterGeoEclipticHouse` 木星地心黄道宫位计算\n* `SaturnGeoEclipticHouse` 土星地心黄道宫位计算\n* `UranusGeoEclipticHouse` 天王星地心黄道宫位计算\n* `NeptuneGeoEclipticHouse` 海王星地心黄道宫位计算\n\n## 安装\n\n通过 npm 安装，在你的 node 项目目录下执行：\n\n`npm install @behaver/astrolable-house-calculator`\n\n安装完成后，调用即可：\n\n`const { SunGeoEclipticHouse, 子组件 } = require('@behaver/astrolable-house-calculator');`\n\n## 用例\n\n```js\nconst { SunGeoEclipticHouse } = require('@behaver/astrolable-house-calculator');\nconst { JDateRepository } = require('@behaver/jdate');\n\nlet jdate = new JDateRepository(new Date(1992, 7, 15, 8, 25), 'date');\n\n// 生成太阳地心黄道宫位计算组件实例\nlet SGEH = new SunGeoEclipticHouse(jdate, {\n  originPoint: 255, // 起始点\n  sectionLength: 360, // 节长度\n  indexDeflection: 46, // 索引偏移量\n  cycle: 60 // 周期\n});\n\n// 输出周期节索引\nconsole.log(SGEH.index);\n\n// 输出周期内比\nconsole.log(SGEH.rate);\n```\n\n## API\n\n`constructor(time, options)`\n\n构造函数\n\n* time 儒略时间对象\n* options.originPoint 周期起始点，缺省：0\n* options.sectionLength 节长度，缺省：30\n* options.indexDeflection 宫位索引偏移量，缺省：0\n* options.cycle 周期，缺省：12\n\n`get time()`\n\n获取儒略时间对象\n\n`set time(value)`\n\n设置儒略时间对象\n\n* value 儒略时间对象\n\n`get originPoint()`\n\n获取周期起始点\n\n`set originPoint(value)`\n\n设置周期起始点\n\n* value 周期起始点\n\n`get sectionLength()`\n\n获取节长度\n\n`set sectionLength(value)`\n\n设置节长度\n\n* value 节长度\n\n`get indexDeflection()`\n\n获取宫位索引偏移量\n\n`set indexDeflection(value)`\n\n设置宫位索引偏移量\n\n* value 宫位索引偏移量\n\n`get cycle()`\n\n获取周期\n\n`set cycle(value)`\n\n设置周期\n\n* value 周期\n\n`get rate()`\n\n获取周期内比率\n\n`get index()`\n\n获取周期内索引\n\n`get raw()`\n\n获取原始值\n\n## 许可证书\n\nThe ISC license.","readmeFilename":"readme.md"}