neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 5.95 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.KnobControl = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function KnobControl(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Target = props.Target, Callback = props.Callback, RotationAxis = props.RotationAxis, Rate = props.Rate, Min = props.Min, Max = props.Max, _lastRotation = props._lastRotation, _lastAxis = props._lastAxis, _lastUser = props._lastUser;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.KnobControl", 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.SyncRef`1[FrooxEngine.IField`1[System.Single]]", name: "Target", id: typeof Target === "object" && "id" in Target ? Target === null || Target === void 0 ? void 0 : Target.id : undefined, value: typeof Target === "object" && "value" in Target ? Target === null || Target === void 0 ? void 0 : Target.value : Target, isRaw: typeof Target === "object" && "isRaw" in Target && Target.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[System.Action`1[System.Single]]", name: "Callback", id: typeof Callback === "object" && "id" in Callback ? Callback === null || Callback === void 0 ? void 0 : Callback.id : undefined, value: typeof Callback === "object" && "value" in Callback ? Callback === null || Callback === void 0 ? void 0 : Callback.value : Callback, isRaw: typeof Callback === "object" && "isRaw" in Callback && Callback.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "RotationAxis", id: typeof RotationAxis === "object" && "id" in RotationAxis ? RotationAxis === null || RotationAxis === void 0 ? void 0 : RotationAxis.id : undefined, value: typeof RotationAxis === "object" && "value" in RotationAxis ? RotationAxis === null || RotationAxis === void 0 ? void 0 : RotationAxis.value : RotationAxis, isRaw: typeof RotationAxis === "object" && "isRaw" in RotationAxis && RotationAxis.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Rate", id: typeof Rate === "object" && "id" in Rate ? Rate === null || Rate === void 0 ? void 0 : Rate.id : undefined, value: typeof Rate === "object" && "value" in Rate ? Rate === null || Rate === void 0 ? void 0 : Rate.value : Rate, isRaw: typeof Rate === "object" && "isRaw" in Rate && Rate.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Min", id: typeof Min === "object" && "id" in Min ? Min === null || Min === void 0 ? void 0 : Min.id : undefined, value: typeof Min === "object" && "value" in Min ? Min === null || Min === void 0 ? void 0 : Min.value : Min, isRaw: typeof Min === "object" && "isRaw" in Min && Min.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Max", id: typeof Max === "object" && "id" in Max ? Max === null || Max === void 0 ? void 0 : Max.id : undefined, value: typeof Max === "object" && "value" in Max ? Max === null || Max === void 0 ? void 0 : Max.value : Max, isRaw: typeof Max === "object" && "isRaw" in Max && Max.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "_lastRotation", id: typeof _lastRotation === "object" && "id" in _lastRotation ? _lastRotation === null || _lastRotation === void 0 ? void 0 : _lastRotation.id : undefined, value: typeof _lastRotation === "object" && "value" in _lastRotation ? _lastRotation === null || _lastRotation === void 0 ? void 0 : _lastRotation.value : _lastRotation, isRaw: typeof _lastRotation === "object" && "isRaw" in _lastRotation && _lastRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "_lastAxis", id: typeof _lastAxis === "object" && "id" in _lastAxis ? _lastAxis === null || _lastAxis === void 0 ? void 0 : _lastAxis.id : undefined, value: typeof _lastAxis === "object" && "value" in _lastAxis ? _lastAxis === null || _lastAxis === void 0 ? void 0 : _lastAxis.value : _lastAxis, isRaw: typeof _lastAxis === "object" && "isRaw" in _lastAxis && _lastAxis.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.User]", name: "_lastUser", id: typeof _lastUser === "object" && "id" in _lastUser ? _lastUser === null || _lastUser === void 0 ? void 0 : _lastUser.id : undefined, value: typeof _lastUser === "object" && "value" in _lastUser ? _lastUser === null || _lastUser === void 0 ? void 0 : _lastUser.value : _lastUser, isRaw: typeof _lastUser === "object" && "isRaw" in _lastUser && _lastUser.isRaw ? true : undefined })] })));
}
exports.KnobControl = KnobControl;
;