JSON Viewer API¶
Displays and imports combined geometry/material JSON.
JsonViewer(props) ⇒ JSX.Element¶
JSON viewer for exporting and importing combined geometry/material state.
Kind: global function
Returns: JSX.Element - JSON viewer UI.
Params
- props
Object- Component props.- .geometries
Object- Current geometry state. - .materials
Object- Current material definitions. - .onImportGeometries
function- Callback to replace geometries after import. - .onImportMaterials
function- Callback to replace materials after import.
- .geometries