Variable wwtPiniaConst

wwtPinia: Pinia = ...

A Pinia instance customized for use in WWT-based applications.

In most cases, you would use this variable in the following way while initializing your Vue app:

import { createApp } from "vue";
import { wwtPinia, WWTComponent } from "@wwtelescope/engine-pinia";

import MyApp from "./MyApp.vue";

createApp(MyApp)
.use(wwtPinia)
.component("WorldWideTelescope", WWTComponent)
.mount("#app");

Once you’ve activated the special WWT Pinia instance in this way, you can interact with the WWT engine state via the engineStore interface.

This Pinia instance is initialized with a special $wwt singleton value that the WWTComponent uses to share global state with Pinia.

Generated using TypeDoc