How to use the paraviewweb/src/Common/Misc/SizeHelper.getSize function in paraviewweb

To help you get started, we’ve selected a few paraviewweb 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 / paraviewweb / src / NativeUI / Canvas / RemoteRenderer / index.js View on Github external
resize() {
    if (this.container) {
      this.size = SizeHelper.getSize(this.container);
      this.render(true);
      if (this.statRenderer) {
        this.statRenderer.resize();
      }
    }
  }
github Kitware / paraviewweb / src / NativeUI / Renderers / VtkRenderer / index.js View on Github external
publicAPI.resize = () => {
    if (model.container) {
      const { clientWidth, clientHeight } = sizeHelper.getSize(model.container);
      publicAPI.setSize(clientWidth, clientHeight);
    }
  };
github Kitware / paraviewweb / src / NativeUI / Canvas / RemoteRenderer / index.js View on Github external
this.container = null;
      this.mouseHandler = null;
      this.size = null;

      if (this.statRenderer) {
        this.statRenderer.setContainer(null);
      }
    }

    if (container && this.container !== container) {
      this.container = container;
      this.mouseHandler = new MouseHandler(container);
      this.mouseHandler.attach(this.mouseListener.getListeners());
      this.container.appendChild(this.canvas);

      this.size = SizeHelper.getSize(container);

      if (this.statRenderer) {
        this.container.appendChild(this.statContainer);
        this.statRenderer.setContainer(this.statContainer);
      }

      this.render(true);
    }
  }