How to use the paraview-glance/src/store/types.Actions.OPEN_FILES function in paraview-glance

To help you get started, we’ve selected a few paraview-glance 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 / paraview-glance / src / components / core / FileLoader / script.js View on Github external
cancel: Mutations.FILE_IDLE,

      closeAndTryToLoad(commit) {
        const allFilesErrored = this.files.reduce(
          (flag, { error }) => flag && error,
          true
        );
        if (!allFilesErrored) {
          commit(Mutations.SHOW_APP);
        }
        commit(Mutations.FILE_IDLE);
      },
    }),
    mapActions({
      openFiles: Actions.OPEN_FILES,
    }),
    {
      isRawFile: (f) => f.name.toLowerCase().endsWith('.raw'),
    }
  ),
};
github Kitware / paraview-glance / src / store / fileLoader.js View on Github external
.then((files) => {
            commit(Mutations.FILE_SET_URLS, []);
            return dispatch(Actions.OPEN_FILES, files);
          })
          .catch((errors) => onLoadErrored(commit, errors));
github Kitware / paraview-glance / src / store / fileLoader.js View on Github external
ReaderFactory.openFiles(exts, (files) =>
        dispatch(Actions.OPEN_FILES, Array.from(files))
      );
github Kitware / paraview-glance / src / components / core / App / script.js View on Github external
openFiles: (dispatch, files) =>
        dispatch(Actions.OPEN_FILES, Array.from(files)),