mp-react-components
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.
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  ``` 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  Tiling Visualization can click on the blank area when displaying the structure  
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...
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: *...
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...