ridatadiscoverycenter / react-aframe-volume-renderer

afreame-webgl2 volumen renderer as a reactjs app
MIT License
3 stars 0 forks source link

Refractor OpacityControl.js to functional react #60

Closed RobertGemmaJr closed 2 years ago

RobertGemmaJr commented 3 years ago

Right now initial node values are hard coded in OpacityControls.js, should be read from the global config file

RobertGemmaJr commented 3 years ago

Use react event listeners instead of pure javascript.

Which listeners still need to be attached to the document?

RobertGemmaJr commented 3 years ago

Canvas width should be determined by the size of the sidebar.

Will be the same width as the dropdown, sliders, etc.

RobertGemmaJr commented 3 years ago

for...of loops will probably work best when drawing the canvas

RobertGemmaJr commented 3 years ago

Canvas width should be determined by the size of the sidebar.

Will be the same width as the dropdown, sliders, etc.

Right now the div is set to a width of min-content because the canvas has a hardcoded width. This should be flipped - set a width of the "sidebar" and resize canvas based on that width

RobertGemmaJr commented 3 years ago

The reset button should reset the position, rotation, and scale of the model as well as the transfer function

RobertGemmaJr commented 2 years ago

Issue moved to react-volume-viewer library