How to use the paraview-lite/src/stores/types.Getters.PROXY_SELECTED_IDS 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 / modules / Default / script.js View on Github external
name: 'DefaultModule',
  data() {
    return {
      module,
      color: 'grey darken-2',
    };
  },
  computed: Object.assign(
    {
      name() {
        const nameMeta = this.names[this.proxies[0]];
        return nameMeta ? nameMeta.label : 'No name';
      },
    },
    mapGetters({
      proxies: Getters.PROXY_SELECTED_IDS,
      names: Getters.PROXY_NAME_MAP,
    })
  ),
  methods: {
    deleteProxy() {
      const id = this.proxies[0];
      this.$store.dispatch(Actions.PROXY_DELETE, id);
      this.$store.commit(Mutations.PROXY_SELECTED_IDS_SET, []);
    },
  },
};
github Kitware / light-viz / src / components / core / ActionModules / script.js View on Github external
import { mapGetters, mapActions } from 'vuex';
import { Getters, Actions } from 'paraview-lite/src/stores/types';

export default {
  name: 'ActionModules',
  props: {
    smallScreen: {
      default: false,
    },
  },
  computed: mapGetters({
    modules: Getters.MODULES_LIST,
    activeSources: Getters.PROXY_SELECTED_IDS,
    proxyDataMap: Getters.PROXY_DATA_MAP,
    proxyPipeline: Getters.PROXY_PIPELINE,
  }),
  methods: mapActions({
    activate: Actions.MODULES_ACTIVE_BY_NAME,
  }),
};
github Kitware / light-viz / src / components / core / ControlsDrawer / script.js View on Github external
const proxyMeta = this.proxyToName[this.selectedSources[0]];
          if (proxyMeta) {
            return this.moduleMap[
              this.proxyToPanel[proxyMeta.name] || this.proxyToPanel.default
            ];
          }
          return this.moduleMap[this.proxyToPanel.default];
        }
        return null;
      },
    },
    mapGetters({
      autoApply: Getters.APP_AUTO_APPLY,
      panel: Getters.MODULES_ACTIVE,
      pipeline: Getters.PROXY_PIPELINE,
      selectedSources: Getters.PROXY_SELECTED_IDS,
      proxyToPanel: Getters.PROXY_TO_MODULE_MAP,
      proxyToName: Getters.PROXY_NAME_MAP,
      moduleMap: Getters.MODULES_MAP,
      sourceToRepresentationMap: Getters.PROXY_SOURCE_TO_REPRESENTATION_MAP,
    })
  ),
  methods: Object.assign(
    mapActions({
      updatePipeline: Actions.PROXY_PIPELINE_FETCH,
      updateProxy: Actions.PROXY_UPDATE,
    }),
    mapMutations({
      updateSelectedSource: Mutations.PROXY_SELECTED_IDS_SET,
    }),
    {
      updateVisibility({ id, visible }) {