
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
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 2 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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.