You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The miew-react package exports (with default export) react component, which accepts two optional props:
'options': an object with optional 'settings', 'reps', 'load' fields (basically, miewOpts in current implementation)
'onInit': function which is called after initialization of Miew instance with a Miew instance as a parameter; thus a Miew instance and its' methods (as 'load', 'setOptions' or 'exportCML') can be available in the parent component (consider saving returned Miew instance into a variable)
the component occupies 100% of the parent component's width and height
The text was updated successfully, but these errors were encountered:
* Update miew package to newest version
* Install miew-react and refactor MiewDialog with it
* convert Miew.jsx file to .tsx and add some types
* ts fix
* Remove ts ignore
* Pr fixes
* Remove unused styles
* Temporary style fixes for inner divs in Viewer
* PR fixes and refactor
* Remove miew package from example and refactor ref
The miew-react package exports (with default export) react component, which accepts two optional props:
The text was updated successfully, but these errors were encountered: