Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@wonder-partners/ar-button
Advanced tools
A web component to easily display 3D models in native AR across browsers and mobile devices
A web-component to display a 3D model in augmented reality using the native Quick Look on iOS and Scene Viewer on Android. Heavily inspired by model-viewer and @leoncvlt/ar-button.
<!-- Import the component -->
<script type="module" src="https://unpkg.com/@wonder-partners/ar-button"></script>
<!-- Default stylesheet (optional) -->
<link rel="stylesheet" href="https://unpkg.com/@wonder-partners/ar-button/styles.css">
<!-- Use it like any other HTML element -->
<ar-button
src="https://your.model.glb"
ios-src="https://your.model.usdz">
View in your space
</ar-button>
src
→ uri (Android)
The URL to the 3D model for Android platform. Only glTF/GLB models are supported.
title
→ string (Android)
A name for the model. If present, it will be displayed in the UI. The name will be truncated with ellipses after 60 characters.
fallback-url
→ uri (Android)
When the Google app is not present on the device, this is the URL that the browser navigates to.
occlusion
→ boolean (Android)
If present, turns on Object blending mode.
link
→ uri (Android, iOS)
A URL for an external webpage. If present, a button will be surfaced in the UI that intents to this URL when clicked.
ios-src
→ uri (iOS)
The URL to the 3D model for iOS platform. Only USDZ models are supported.
checkout-title
→ string (iOS)
A name for the model. If present, it will be displayed in the UI. Only works if supplied alongside checkout-subtitle
, price
, and call-to-action
.
checkout-subtitle
→ string (iOS)
If present, it will be displayed in the UI. Only works if supplied alongside checkout-subtitle
, price
, and call-to-action
.
price
→ string (iOS)
If present, it will be displayed in the UI. Only works if supplied alongside checkout-subtitle
, price
, and call-to-action
. AR Quick Look displays the subtitle and price separated by a comma below the title. Price should include the currency symbol.
call-to-action
→ string (iOS)
If present, display this text as a button the quick look default UI. Only works when supplied alongside checkout-title
, checkout-subtitle
and price
. You should also supply an url to link
(see above).
canonical-web-page-url
→ uri (iOS)
If present, this URL will be used inside the native Share button of AR QuickLook.
FAQs
A web component to easily display 3D models in native AR across browsers and mobile devices
The npm package @wonder-partners/ar-button receives a total of 134 weekly downloads. As such, @wonder-partners/ar-button popularity was classified as not popular.
We found that @wonder-partners/ar-button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.