How to use the paraview-lite/src/stores/types.Actions.APP_ROUTE_LANDING function in paraview-lite

To help you get started, we’ve selected a few paraview-lite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kitware / light-viz / src / app.js View on Github external
function onRoute(event) {
    const state = event.state || {};
    if (state.app) {
      store.dispatch(Actions.APP_ROUTE_RUN);
    } else {
      store.dispatch(Actions.APP_ROUTE_LANDING);
    }
  }
  store.watch(
github Kitware / light-viz / src / components / core / App / script.js View on Github external
methods: Object.assign(
    {
      recordError(error) {
        this.errors.push(error);
      },
      toggleLanding() {
        if (this.landingVisible) {
          this.showApp();
        } else {
          this.showLanding();
        }
      },
    },
    mapActions({
      showApp: Actions.APP_ROUTE_RUN,
      showLanding: Actions.APP_ROUTE_LANDING,
      connect: Actions.NETWORK_CONNECT,
    })
  ),
};