a-frame-components
Advanced tools
Comparing version 1.0.39 to 1.0.40
@@ -89,3 +89,9 @@ var __assign = (this && this.__assign) || function () { | ||
var _a, _b; | ||
var button = createElement("a-base-interactive", __assign(__assign({ width: .3 }, option), (_a = { interactiveType: 'radio' }, _a['font-size'] = .07, _a)))(); | ||
var button = createElement("a-base-interactive", (_a = { | ||
width: option.width || .3, | ||
value: option.text || option.value, | ||
interactiveType: 'radio' | ||
}, | ||
_a['font-size'] = .07, | ||
_a))(); | ||
button.addEventListener('click', function (evt) { | ||
@@ -92,0 +98,0 @@ var _a; |
{ | ||
"name": "a-frame-components", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -87,4 +87,4 @@ import { AFRAME } from "../../react/root"; | ||
{ | ||
width: .3, | ||
...option, | ||
width: (option as any).width || .3, | ||
value: option.text || option.value, | ||
interactiveType: 'radio', | ||
@@ -91,0 +91,0 @@ ['font-size']: .07 |
1660269
28213