mp-react-components icon indicating copy to clipboard operation
mp-react-components copied to clipboard

A suite of React components for the Materials Project, developed for use in Crystal Toolkit and the Materials Project public website.

Results 61 mp-react-components issues
Sort by recently updated
recently updated
newest added

We have cloned the project from get then did the following : 1) yarn install 2) yarn start ( it is working no issue) 3) yarn build-prod Then getting the...

Hi , Am using this mp-react-components. am having 2 issues 1) Showing the legends 2) i want to pass the json file and create the Molecule Component like structure_component =...

There are a few new features in Crystal Toolkit I'd like to implement, but I noticed the corresponding JavaScript code hadn't been updated in a while and thought some early...

Is there any example? Could do you help to ask the question ?@yang-ruoxi @mkhorton Help~

https://materialsproject.github.io/mp-react-components/?path=/story/crystal-toolkit-crystaltoolkitscene--basic ![image](https://user-images.githubusercontent.com/24725952/172522867-4651c3d5-2319-4c36-96aa-9a7d62148578.png) ``` TypeError: Cannot read properties of undefined (reading 'rotation') at new InsetHelper (https://materialsproject.github.io/mp-react-components/main.0a4797d2.iframe.bundle.js:1:142840) at new Scene (https://materialsproject.github.io/mp-react-components/main.0a4797d2.iframe.bundle.js:1:160581) at https://materialsproject.github.io/mp-react-components/main.0a4797d2.iframe.bundle.js:1:196368 at commitHookEffectListMount (https://materialsproject.github.io/mp-react-components/942.9c0eb5a4.iframe.bundle.js:2:4841045) at commitPassiveHookEffects (https://materialsproject.github.io/mp-react-components/942.9c0eb5a4.iframe.bundle.js:2:4842147) at HTMLUnknownElement.callCallback (https://materialsproject.github.io/mp-react-components/942.9c0eb5a4.iframe.bundle.js:2:4496053)...

Crystal Structure cannot be opened ![image](https://user-images.githubusercontent.com/40563848/210138177-6da3aa68-2f6b-42f1-b0ed-8016e22e44ce.png) Tiling Visualization can click on the blank area when displaying the structure ![image](https://user-images.githubusercontent.com/40563848/210138185-041e4092-d542-4681-83c4-558bf18f3e77.png) ![image](https://user-images.githubusercontent.com/40563848/210138187-98294fd1-e282-48fe-9574-240877104958.png)

The scene component has a `staticScene` setting, which disables animation and mouse interaction, however it still requires an active WebGL context: this limits the amount of static images that can...

feature

Creating this issue to track. Bug likely somewhere in [`mouseMoveListener`](https://github.com/materialsproject/mp-react-components/blob/26090ac17526d92666975acf7b63544c8b306d04/src/components/crystal-toolkit/scene/Scene.ts#L123-L144). Anecdotally, seems to occur more often with larger scenes / smaller viewports, or rapid mouse movements. Resolutions could be: *...

bug

Trying to use the CrystalToolkitScene component in react. Coming across this error: I also see there is an error in the storybooks for the CrystalToolkitScene component `Cannot read properties of...