
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
react-pannellum-next
Advanced tools
The `PanoramaViewer` component is a React component that provides a panoramic image viewer using the Pannellum library. It allows you to display a 360-degree image and add interactive hotspots to it.
The
PanoramaViewer
component is a React component that provides a panoramic image viewer using the Pannellum library. It allows you to display a 360-degree image and add interactive hotspots to it.
This library use source from https://pannellum.org/
To install the PanoramaViewer
component, you can use your favorite package manager:
npm install --save react-pannellum-next
yarn add react-pannellum-next
import React from 'react';
import { PanoramaViewer, HotspotProps } from 'react-pannellum';
const App: React.FC = () => {
const hotSpots: HotspotProps[] = [
{ pitch: 0, yaw: 0, type: 'info', text: 'Welcome!' },
// Add more hotspots here
];
return (
<div>
<h1>My Panorama Viewer</h1>
<PanoramaViewer imagePath="/path/to/panorama.jpg" hotSpots={hotSpots} />
</div>
);
};
export default App;
import React from 'react';
import { HotspotProps } from 'react-pannellum-next';
const DynamicPanoramaViewer = dynamic(() => import('react-pannellum-next').PanoramaViewer, {
ssr: false, // Disable server-side rendering for this component
});
const App: React.FC = () => {
const hotSpots: HotspotProps[] = [
{ pitch: 0, yaw: 0, type: 'info', text: 'Welcome!' },
// Add more hotspots here
];
return (
<div>
<h1>My Panorama Viewer</h1>
<DynamicPanoramaViewer imagePath="/path/to/panorama.jpg" hotSpots={hotSpots} />
</div>
);
};
export default App;
Connect on LinkedIn: LoĂŻc Kami
FAQs
The `PanoramaViewer` component is a React component that provides a panoramic image viewer using the Pannellum library. It allows you to display a 360-degree image and add interactive hotspots to it.
The npm package react-pannellum-next receives a total of 46 weekly downloads. As such, react-pannellum-next popularity was classified as not popular.
We found that react-pannellum-next demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.