How to use the paraview-lite/src/stores/types.Actions.PROXY_CREATE 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 / proxyHelper.js View on Github external
if (!localState[key].subProxy) {
                    initialValues[localState[key].label] =
                      localState[key].value;
                  } else {
                    if (!subProxyValues[localState[key].subProxy]) {
                      subProxyValues[localState[key].subProxy] = {};
                    }
                    subProxyValues[localState[key].subProxy][
                      localState[key].label
                    ] =
                      localState[key].value;
                  }
                });
              }

              this.$store.dispatch(Actions.PROXY_CREATE, {
                name: proxyNameToCreate,
                parentId: this.activeSourceId,
                initialValues,
                subProxyValues,
                skipDomain: !!hasChange(),
              });
            },
          }
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,
    })
  ),
};