Skip to content

The aestrium Sky Viewer Vite & Vue.js (Vue 3 + Typescript) Component Library

Notifications You must be signed in to change notification settings

observerly/aestrium

Repository files navigation

Astrometry Vue 3 components by observerly

Vue 3 component module written in modern Typescript (strongly typed Javascript).

aestrium-vue utilises the polaris astrometric library: @observerly/polaris by observerly.

Installation

Please note that this library only supports Vue 3.

# npm
npm install @observerly/aestrium

# Yarn
yarn add @observerly/aestrium

Recommended IDE Setup

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's .vue type support plugin by running Volar: Switch TS Plugin on/off from VSCode command palette.