neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 7.5 kB
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NeosRadioGroup = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function NeosRadioGroup(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Style = props.Style, AcceptPhysicalTouch = props.AcceptPhysicalTouch, AcceptRemoteTouch = props.AcceptRemoteTouch, IsEnabled = props.IsEnabled, _selectedOption = props._selectedOption, _choiceVisual = props._choiceVisual, _choicePosition = props._choicePosition, _choiceRotation = props._choiceRotation, _choiceScale = props._choiceScale, _choiceMaterial = props._choiceMaterial;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.NeosRadioGroup", id: id, persistentId: persistentId, updateOrder: updateOrder }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.NeosUIStyle]", name: "Style", id: typeof Style === "object" && "id" in Style ? Style === null || Style === void 0 ? void 0 : Style.id : undefined, value: typeof Style === "object" && "value" in Style ? Style === null || Style === void 0 ? void 0 : Style.value : Style, isRaw: typeof Style === "object" && "isRaw" in Style && Style.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AcceptPhysicalTouch", id: typeof AcceptPhysicalTouch === "object" && "id" in AcceptPhysicalTouch ? AcceptPhysicalTouch === null || AcceptPhysicalTouch === void 0 ? void 0 : AcceptPhysicalTouch.id : undefined, value: typeof AcceptPhysicalTouch === "object" && "value" in AcceptPhysicalTouch ? AcceptPhysicalTouch === null || AcceptPhysicalTouch === void 0 ? void 0 : AcceptPhysicalTouch.value : AcceptPhysicalTouch, isRaw: typeof AcceptPhysicalTouch === "object" && "isRaw" in AcceptPhysicalTouch && AcceptPhysicalTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AcceptRemoteTouch", id: typeof AcceptRemoteTouch === "object" && "id" in AcceptRemoteTouch ? AcceptRemoteTouch === null || AcceptRemoteTouch === void 0 ? void 0 : AcceptRemoteTouch.id : undefined, value: typeof AcceptRemoteTouch === "object" && "value" in AcceptRemoteTouch ? AcceptRemoteTouch === null || AcceptRemoteTouch === void 0 ? void 0 : AcceptRemoteTouch.value : AcceptRemoteTouch, isRaw: typeof AcceptRemoteTouch === "object" && "isRaw" in AcceptRemoteTouch && AcceptRemoteTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "IsEnabled", id: typeof IsEnabled === "object" && "id" in IsEnabled ? IsEnabled === null || IsEnabled === void 0 ? void 0 : IsEnabled.id : undefined, value: typeof IsEnabled === "object" && "value" in IsEnabled ? IsEnabled === null || IsEnabled === void 0 ? void 0 : IsEnabled.value : IsEnabled, isRaw: typeof IsEnabled === "object" && "isRaw" in IsEnabled && IsEnabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosRadio]", name: "_selectedOption", id: typeof _selectedOption === "object" && "id" in _selectedOption ? _selectedOption === null || _selectedOption === void 0 ? void 0 : _selectedOption.id : undefined, value: typeof _selectedOption === "object" && "value" in _selectedOption ? _selectedOption === null || _selectedOption === void 0 ? void 0 : _selectedOption.value : _selectedOption, isRaw: typeof _selectedOption === "object" && "isRaw" in _selectedOption && _selectedOption.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_choiceVisual", id: typeof _choiceVisual === "object" && "id" in _choiceVisual ? _choiceVisual === null || _choiceVisual === void 0 ? void 0 : _choiceVisual.id : undefined, value: typeof _choiceVisual === "object" && "value" in _choiceVisual ? _choiceVisual === null || _choiceVisual === void 0 ? void 0 : _choiceVisual.value : _choiceVisual, isRaw: typeof _choiceVisual === "object" && "isRaw" in _choiceVisual && _choiceVisual.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_choicePosition", id: typeof _choicePosition === "object" && "id" in _choicePosition ? _choicePosition === null || _choicePosition === void 0 ? void 0 : _choicePosition.id : undefined, value: typeof _choicePosition === "object" && "value" in _choicePosition ? _choicePosition === null || _choicePosition === void 0 ? void 0 : _choicePosition.value : _choicePosition, isRaw: typeof _choicePosition === "object" && "isRaw" in _choicePosition && _choicePosition.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_choiceRotation", id: typeof _choiceRotation === "object" && "id" in _choiceRotation ? _choiceRotation === null || _choiceRotation === void 0 ? void 0 : _choiceRotation.id : undefined, value: typeof _choiceRotation === "object" && "value" in _choiceRotation ? _choiceRotation === null || _choiceRotation === void 0 ? void 0 : _choiceRotation.value : _choiceRotation, isRaw: typeof _choiceRotation === "object" && "isRaw" in _choiceRotation && _choiceRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_choiceScale", id: typeof _choiceScale === "object" && "id" in _choiceScale ? _choiceScale === null || _choiceScale === void 0 ? void 0 : _choiceScale.id : undefined, value: typeof _choiceScale === "object" && "value" in _choiceScale ? _choiceScale === null || _choiceScale === void 0 ? void 0 : _choiceScale.value : _choiceScale, isRaw: typeof _choiceScale === "object" && "isRaw" in _choiceScale && _choiceScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.PBS_RimMetallic]", name: "_choiceMaterial", id: typeof _choiceMaterial === "object" && "id" in _choiceMaterial ? _choiceMaterial === null || _choiceMaterial === void 0 ? void 0 : _choiceMaterial.id : undefined, value: typeof _choiceMaterial === "object" && "value" in _choiceMaterial ? _choiceMaterial === null || _choiceMaterial === void 0 ? void 0 : _choiceMaterial.value : _choiceMaterial, isRaw: typeof _choiceMaterial === "object" && "isRaw" in _choiceMaterial && _choiceMaterial.isRaw ? true : undefined })] })));
}
exports.NeosRadioGroup = NeosRadioGroup;
;