How to use the paraview-lite/src/stores/types.Getters.NETWORK_CLIENT 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 / components / core / View / script.js View on Github external
this.$store.commit(Mutations.VIEW_PROXY_SET, this.view);

    // Link server side camera to local
    this.client.remote.Lite.getCamera('-1').then((cameraInfo) => {
      this.updateCamera(cameraInfo);
      this.viewStream.pushCamera();
    });
  },
  data() {
    return {
      orientationLabels: ['+X', '+Y', '+Z'],
    };
  },
  computed: mapGetters({
    cameraMode: Getters.VIEW_CAMERA_MODE,
    client: Getters.NETWORK_CLIENT,
    showRenderingStats: Getters.VIEW_STATS,
    stillQuality: Getters.VIEW_QUALITY_STILL,
    interactiveQuality: Getters.VIEW_QUALITY_INTERACTIVE,
    stillRatio: Getters.VIEW_RATIO_STILL,
    interactiveRatio: Getters.VIEW_RATIO_INTERACTIVE,
    mouseThrottle: Getters.VIEW_MOUSE_THROTTLE,
    maxFPS: Getters.VIEW_FPS_MAX,
  }),
  watch: {
    showRenderingStats() {
      // this.renderer.setDrawFPS(this.showRenderingStats);
    },
    stillQuality() {
      this.updateQuality();
    },
    interactiveQuality() {
github Kitware / light-viz / src / modules / Files / script.js View on Github external
export default {
  name: 'Files',
  data() {
    return {
      label: 'Home',
      directories: [],
      groups: [],
      files: [],
      path: [],
      module,
      color: 'grey darken-2',
    };
  },
  computed: mapGetters({
    client: Getters.NETWORK_CLIENT,
  }),
  methods: Object.assign(
    {
      listServerDirectory(pathToList) {
        this.client.remote.FileListing.listServerDirectory(pathToList)
          .then((listing) => {
            const { dirs, files, groups, path } = listing;
            this.files = files;
            this.groups = groups;
            this.directories = dirs;
            this.path = path;
            this.label = this.path.slice(-1)[0];
          })
          .catch(console.error);
      },
      openFiles(files) {