@wonder-partners/ar-button
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -7,2 +7,8 @@ # Changelog | ||
## [0.4.0] 2022-08-05 | ||
### Added | ||
- `occlusion` attribute for android. If omitted, disables object blending mode. | ||
## [0.3.1] 2022-07-13 | ||
@@ -9,0 +15,0 @@ |
@@ -81,5 +81,10 @@ // @ts-check | ||
const title = button.getAttribute('title'); | ||
const occlusion = button.getAttribute('occlusion'); | ||
href = `intent://arvr.google.com/scene-viewer/1.0?file=${src}&mode=ar_only`; | ||
if (!occlusion) { | ||
href += '&disable_occlusion=true'; | ||
} | ||
if (title) { | ||
@@ -86,0 +91,0 @@ href += `&title=${encodeURIComponent(title)}`; |
{ | ||
"name": "@wonder-partners/ar-button", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "A web component to easily display 3D models in native AR across browsers and mobile devices", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -35,2 +35,6 @@ # AR Button | ||
**`occlusion` → *boolean* (Android)** | ||
If present, turns on Object blending mode. | ||
**`link` → *uri* (Android, iOS)** | ||
@@ -37,0 +41,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81746
153
66