How to use the paraview-lite/src/stores/types.Actions.MODULES_ACTIVE_CLEAR 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 / stores / proxy.js View on Github external
.then((proxy) => {
            commit(Mutations.PROXY_DATA_SET, proxy);
            commit(Mutations.PROXY_SELECTED_IDS_SET, [proxy.id]);
            dispatch(Actions.PROXY_PIPELINE_FETCH);
            dispatch(Actions.MODULES_ACTIVE_CLEAR);

            // Make sure we pull the actual server values
            dispatch(Actions.PROXY_DATA_FETCH, { proxyId: proxy.id });
          })
          .catch(console.error);
github Kitware / light-viz / src / modules / Files / script.js View on Github external
.then((readerProxy) => {
            this.$store.dispatch(Actions.PROXY_NAME_FETCH, readerProxy.id);
            this.$store.dispatch(Actions.PROXY_PIPELINE_FETCH);
            this.$store.dispatch(Actions.MODULES_ACTIVE_CLEAR);
            this.$store.commit(Mutations.PROXY_SELECTED_IDS_SET, [
              readerProxy.id,
            ]);
          })
          .catch(console.error);
github Kitware / light-viz / src / proxyHelper.js View on Github external
deleteProxy() {
              if (!this.create) {
                this.$store.dispatch(Actions.PROXY_DELETE, this.activeSourceId);
                this.$store.commit(Mutations.PROXY_SELECTED_IDS_SET, []);
              } else {
                this.$store.dispatch(Actions.MODULES_ACTIVE_CLEAR);
              }
            },
            createProxy() {
github Kitware / light-viz / src / modules / Files / script.js View on Github external
]);
          })
          .catch(console.error);
      },
      openDirectory(directoryName) {
        this.listServerDirectory(this.path.concat(directoryName).join('/'));
      },
      listParentDirectory(index) {
        if (index) {
          this.listServerDirectory(this.path.slice(0, index + 1).join('/'));
        } else {
          this.listServerDirectory('.');
        }
      },
    },
    mapActions({ removeActiveModule: Actions.MODULES_ACTIVE_CLEAR })
  ),
  mounted() {
    this.listServerDirectory('.');
  },
};
github Kitware / light-viz / src / modules / Sources / script.js View on Github external
},
  data() {
    return {
      module,
      color: 'grey darken-2',
    };
  },
  methods: Object.assign(
    {
      addSource(idx) {
        const name = this.sources[idx];
        this.createProxy({ name });
      },
    },
    mapActions({
      removeActiveModule: Actions.MODULES_ACTIVE_CLEAR,
      createProxy: Actions.PROXY_CREATE,
    })
  ),
};