![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
3d-ar-product-card
Advanced tools
A lightweight React component for displaying products in both Augmented Reality (AR) and 3D. Perfect for eCommerce applications where you want to showcase your products in an immersive and interactive way.
A lightweight React component for displaying products in both Augmented Reality (AR) and 3D. Perfect for eCommerce applications where you want to showcase your products in an immersive and interactive way.
You can install the package via npm or yarn:
npm install 3d-ar-product-card
import { AR3DProductCard } from '3d-ar-product-card';
import React from 'react';
import { AR3DProductCard } from '3d-ar-product-card';
function App() {
return (
<div>
<AR3DProductCard
gltfPath="/models/indoor_plant/scene.gltf"
imageSrc="/image/1.png"
/>
</div>
);
}
export default App;
gltfPath (string): The path to the 3D model file (GLTF format).
imageSrc (string): The image to display on the product card.
Make this src/components folder name as Arcomponent.jsx
import { XrHitModelContainer } from '3d-ar-product-card';
import { useLocation } from 'react-router-dom';
import { XrHitModelContainer } from '3d-ar-product-card';
const Arcomponent = () => {
const location = useLocation();
const params = new URLSearchParams(location.search);
const gltfPath = params.get('gltfPath') || './models/default.gltf';
console.log(gltfPath);
console.log("gltfPath:", gltfPath); // Log the gltfPath for debugging
return (
<>
{gltfPath ? (
<XrHitModelContainer gltfPath={gltfPath} />
) : (
<p>Error: No valid GLTF path provided.</p>
)}
</>
);
};
export default Arcomponent;
Make route 'xr' of this component
Example
import Arcomponent from "./components/Arcomponent";
const App = () => {
return(
<Routes>
<Route path="/xr" element={<Arcomponent />} />
</Routes>
)};
export default App;
MIT License.
FAQs
A lightweight React component for displaying products in both Augmented Reality (AR) and 3D. Perfect for eCommerce applications where you want to showcase your products in an immersive and interactive way.
The npm package 3d-ar-product-card receives a total of 127 weekly downloads. As such, 3d-ar-product-card popularity was classified as not popular.
We found that 3d-ar-product-card demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.