a-frame-components
Advanced tools
Comparing version 1.0.46 to 1.0.47
@@ -14,14 +14,12 @@ var __assign = (this && this.__assign) || function () { | ||
import { createElement } from "../../util"; | ||
import mixin from "./mixin"; | ||
export default function () { | ||
AFRAME.registerComponent('radio-component', { | ||
schema: { | ||
AFRAME.registerComponent('radio-component', __assign(__assign({ schema: { | ||
options: { type: 'string', default: '' }, | ||
value: { type: 'string', default: '' } | ||
}, | ||
init: function () { | ||
}, init: function () { | ||
var me = this; | ||
me.radioContainer = null; | ||
this.render(); | ||
}, | ||
update: function (oldData) { | ||
}, update: function (oldData) { | ||
var me = this; | ||
@@ -34,4 +32,3 @@ if (oldData.options !== this.data.options) { | ||
} | ||
}, | ||
updateChecked: function () { | ||
}, updateChecked: function () { | ||
var me = this; | ||
@@ -45,4 +42,3 @@ if (me.optionValues) { | ||
} | ||
}, | ||
render: function () { | ||
}, render: function () { | ||
var me = this; | ||
@@ -94,12 +90,9 @@ if (me.radioContainer) { | ||
} | ||
}, | ||
getWidth: function () { | ||
} }, mixin), { getWidth: function () { | ||
var me = this; | ||
return parseFloat("".concat(me.radioContainer.getWidth())); | ||
}, | ||
getHeight: function () { | ||
}, getHeight: function () { | ||
var me = this; | ||
return parseFloat("".concat(me.radioContainer.getHeight())); | ||
}, | ||
}); | ||
} })); | ||
AFRAME.registerPrimitive('a-radio', { | ||
@@ -106,0 +99,0 @@ defaultComponents: { |
{ | ||
"name": "a-frame-components", | ||
"version": "1.0.46", | ||
"version": "1.0.47", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
import { AFRAME } from "../../react/root"; | ||
import { createContainer, createElement, createInteractiveButton } from "../../util"; | ||
import mixin from "./mixin"; | ||
export default function () { | ||
@@ -86,2 +87,3 @@ AFRAME.registerComponent('radio-component', { | ||
}, | ||
...mixin, | ||
getWidth: function () { | ||
@@ -88,0 +90,0 @@ let me = this; |
1660515
28243