UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 6.42 kB
"use strict"; 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.Tween_T = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function Tween_T(props) { var T = props.type.T.name, id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, User = props.User, Target = props.Target, OnlyUnderParent = props.OnlyUnderParent, From = props.From, To = props.To, StartTime = props.StartTime, Duration = props.Duration, Curve = props.Curve, LocalCallback = props.LocalCallback, OnDone = props.OnDone; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.Tween`1[".concat([T,], "]"), 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.User]", name: "User", id: typeof User === "object" && "id" in User ? User === null || User === void 0 ? void 0 : User.id : undefined, value: typeof User === "object" && "value" in User ? User === null || User === void 0 ? void 0 : User.value : User, isRaw: typeof User === "object" && "isRaw" in User && User.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.IField`1[".concat(T, "]]"), 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.SyncRef`1[FrooxEngine.Slot]", name: "OnlyUnderParent", id: typeof OnlyUnderParent === "object" && "id" in OnlyUnderParent ? OnlyUnderParent === null || OnlyUnderParent === void 0 ? void 0 : OnlyUnderParent.id : undefined, value: typeof OnlyUnderParent === "object" && "value" in OnlyUnderParent ? OnlyUnderParent === null || OnlyUnderParent === void 0 ? void 0 : OnlyUnderParent.value : OnlyUnderParent, isRaw: typeof OnlyUnderParent === "object" && "isRaw" in OnlyUnderParent && OnlyUnderParent.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[".concat(T, "]"), name: "From", id: typeof From === "object" && "id" in From ? From === null || From === void 0 ? void 0 : From.id : undefined, value: typeof From === "object" && "value" in From ? From === null || From === void 0 ? void 0 : From.value : From, isRaw: typeof From === "object" && "isRaw" in From && From.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[".concat(T, "]"), name: "To", id: typeof To === "object" && "id" in To ? To === null || To === void 0 ? void 0 : To.id : undefined, value: typeof To === "object" && "value" in To ? To === null || To === void 0 ? void 0 : To.value : To, isRaw: typeof To === "object" && "isRaw" in To && To.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Double]", name: "StartTime", id: typeof StartTime === "object" && "id" in StartTime ? StartTime === null || StartTime === void 0 ? void 0 : StartTime.id : undefined, value: typeof StartTime === "object" && "value" in StartTime ? StartTime === null || StartTime === void 0 ? void 0 : StartTime.value : StartTime, isRaw: typeof StartTime === "object" && "isRaw" in StartTime && StartTime.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Duration", id: typeof Duration === "object" && "id" in Duration ? Duration === null || Duration === void 0 ? void 0 : Duration.id : undefined, value: typeof Duration === "object" && "value" in Duration ? Duration === null || Duration === void 0 ? void 0 : Duration.value : Duration, isRaw: typeof Duration === "object" && "isRaw" in Duration && Duration.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.CurvePreset]", name: "Curve", id: typeof Curve === "object" && "id" in Curve ? Curve === null || Curve === void 0 ? void 0 : Curve.id : undefined, value: typeof Curve === "object" && "value" in Curve ? Curve === null || Curve === void 0 ? void 0 : Curve.value : Curve, isRaw: typeof Curve === "object" && "isRaw" in Curve && Curve.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "LocalCallback", id: typeof LocalCallback === "object" && "id" in LocalCallback ? LocalCallback === null || LocalCallback === void 0 ? void 0 : LocalCallback.id : undefined, value: typeof LocalCallback === "object" && "value" in LocalCallback ? LocalCallback === null || LocalCallback === void 0 ? void 0 : LocalCallback.value : LocalCallback, isRaw: typeof LocalCallback === "object" && "isRaw" in LocalCallback && LocalCallback.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[System.Action]", name: "OnDone", id: typeof OnDone === "object" && "id" in OnDone ? OnDone === null || OnDone === void 0 ? void 0 : OnDone.id : undefined, value: typeof OnDone === "object" && "value" in OnDone ? OnDone === null || OnDone === void 0 ? void 0 : OnDone.value : OnDone, isRaw: typeof OnDone === "object" && "isRaw" in OnDone && OnDone.isRaw ? true : undefined })] }))); } exports.Tween_T = Tween_T; ;