How to use the pvw-visualizer/src/network.onReady function in pvw-visualizer

To help you get started, we’ve selected a few pvw-visualizer 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 / HPCCloud / src / tools / visualizer / index.js View on Github external
componentDidMount() {
    network.onReady(() => {
      this.client = network.getClient();
      this.connection = network.getConnection();
      this.session = this.connection.getSession();

      setImmediate(() => {
        setup(network.getClient().session);
        this.setImageProvider();
        this.forceUpdate();
      });
    });

    // props.simulation is not necessarily updated with latest metadata, so we fetch it.
    client
      .getSimulationStep(this.props.simulation._id, this.props.step)
      .then((resp) => {
        const hostname = this.props.location.hostname