1.0.7 • Published 1 year ago

vue-moon v1.0.7

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Vue-Moon

A Vue component to accurately display moon phases. calculations are made based on the Hijri calendar which is a moon based calendar.

🚀 Features

  • 🌘 Show current moon phase
  • 🌖 Show a specific date moon phase (Gregorian and Soon Hijri)
  • 📐 Accept a specific degree (custom calculations)
  • 📅 Accept different Hijri calendars
  • 🌔 Support different views (upper hemisphere and lower hemisphere)
  • ✨ SVG based

Note This component is only compatible with Vue 3

Installation

pnpm i vue-moon # or yarn add vue-moon

Usage

The most basic usage is to import the component and use it directly. this will display the current moon phase based on Umm al-Qura calendar.

<template>
  <Moon />
</template>

<script setup>
  import { Moon } from "vue-moon";
</script>

Props

namedescriptionrequiredtypedefault
moonSizethe size of the moon in pixelsfalsenumber348
lineWeightthe line width around the moon in pixelsfalsenumber14
moonDegreeif set the moon inner disc will rotate to that degree. useful for custom calculationsfalsenumbercurrent moon phase degree (reactive)
flipif set to true the moon will flip to depict the northern hemisphere viewfalsebooleanfalse
dateif set, the component will calculate the moon phase base of that datefalsenumber | string | Datenow (reactive)
calendarallow the usage of other hijri calendarsfalse"islamic" | "islamic-civil" | "islamic-tbla" | "islamic-umalqura" | "islamic-rgsa""islamic-umalqura"

Events

Currently no events are emitted from this component

Credits

https://webspace.science.uu.nl/~gent0113/islam/ummalqura.htm

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago