@mcmhomes/panorama-viewer
v2.2.3
Published
Provides React components to render panoramas.
Maintainers
Readme
@mcmhomes/panorama-viewer
@mcmhomes/panorama-viewer is a React library, made for visualizing the panorama pictures made by the MCM Panorama UnrealEngine plugin.
Installation
To install the library, run the following command:
npm install @mcmhomes/panorama-viewerUsage
To show a panorama picture, you can use the PanoramaViewer component, like so:
import {PanoramaViewer} from '@mcmhomes/panorama-viewer';
...
<PanoramaViewer homeId="xxxxxxxxx"/>The PanoramaViewer component can be found in the PanoramaViewer.jsx file.
The provided utility functions can be found in the PanoramaViewerUtils.jsx file.
For example code, see the MCM Panorama Demo Frontend, the AppViewer.jsx file in particular.
Rendering panorama pictures
For information on how to render panorama pictures, and how to process them, see the MCM Panorama UnrealEngine plugin.
Contributing
Contributions are welcome! Please read the CONTRIBUTING.md for details on the process for submitting pull requests.
