neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 14.6 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.UpdateTransform = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function UpdateTransform(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Target = props.Target, RestoreParent = props.RestoreParent, RestorePosition = props.RestorePosition, RestoreRotation = props.RestoreRotation, RestoreScale = props.RestoreScale, ParentBefore = props.ParentBefore, ParentAfter = props.ParentAfter, LocalPositionBefore = props.LocalPositionBefore, LocalRotationBefore = props.LocalRotationBefore, LocalScaleBefore = props.LocalScaleBefore, GlobalPositionBefore = props.GlobalPositionBefore, GlobalRotationBefore = props.GlobalRotationBefore, GlobalScaleBefore = props.GlobalScaleBefore, LocalPositionAfter = props.LocalPositionAfter, LocalRotationAfter = props.LocalRotationAfter, LocalScaleAfter = props.LocalScaleAfter, GlobalPositionAfter = props.GlobalPositionAfter, GlobalRotationAfter = props.GlobalRotationAfter, GlobalScaleAfter = props.GlobalScaleAfter, _performed = props._performed, _description = props._description;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.Undo.UpdateTransform", 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.Slot]", 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.Sync`1[System.Boolean]", name: "RestoreParent", id: typeof RestoreParent === "object" && "id" in RestoreParent ? RestoreParent === null || RestoreParent === void 0 ? void 0 : RestoreParent.id : undefined, value: typeof RestoreParent === "object" && "value" in RestoreParent ? RestoreParent === null || RestoreParent === void 0 ? void 0 : RestoreParent.value : RestoreParent, isRaw: typeof RestoreParent === "object" && "isRaw" in RestoreParent && RestoreParent.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "RestorePosition", id: typeof RestorePosition === "object" && "id" in RestorePosition ? RestorePosition === null || RestorePosition === void 0 ? void 0 : RestorePosition.id : undefined, value: typeof RestorePosition === "object" && "value" in RestorePosition ? RestorePosition === null || RestorePosition === void 0 ? void 0 : RestorePosition.value : RestorePosition, isRaw: typeof RestorePosition === "object" && "isRaw" in RestorePosition && RestorePosition.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "RestoreRotation", id: typeof RestoreRotation === "object" && "id" in RestoreRotation ? RestoreRotation === null || RestoreRotation === void 0 ? void 0 : RestoreRotation.id : undefined, value: typeof RestoreRotation === "object" && "value" in RestoreRotation ? RestoreRotation === null || RestoreRotation === void 0 ? void 0 : RestoreRotation.value : RestoreRotation, isRaw: typeof RestoreRotation === "object" && "isRaw" in RestoreRotation && RestoreRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "RestoreScale", id: typeof RestoreScale === "object" && "id" in RestoreScale ? RestoreScale === null || RestoreScale === void 0 ? void 0 : RestoreScale.id : undefined, value: typeof RestoreScale === "object" && "value" in RestoreScale ? RestoreScale === null || RestoreScale === void 0 ? void 0 : RestoreScale.value : RestoreScale, isRaw: typeof RestoreScale === "object" && "isRaw" in RestoreScale && RestoreScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "ParentBefore", id: typeof ParentBefore === "object" && "id" in ParentBefore ? ParentBefore === null || ParentBefore === void 0 ? void 0 : ParentBefore.id : undefined, value: typeof ParentBefore === "object" && "value" in ParentBefore ? ParentBefore === null || ParentBefore === void 0 ? void 0 : ParentBefore.value : ParentBefore, isRaw: typeof ParentBefore === "object" && "isRaw" in ParentBefore && ParentBefore.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "ParentAfter", id: typeof ParentAfter === "object" && "id" in ParentAfter ? ParentAfter === null || ParentAfter === void 0 ? void 0 : ParentAfter.id : undefined, value: typeof ParentAfter === "object" && "value" in ParentAfter ? ParentAfter === null || ParentAfter === void 0 ? void 0 : ParentAfter.value : ParentAfter, isRaw: typeof ParentAfter === "object" && "isRaw" in ParentAfter && ParentAfter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "LocalPositionBefore", id: typeof LocalPositionBefore === "object" && "id" in LocalPositionBefore ? LocalPositionBefore === null || LocalPositionBefore === void 0 ? void 0 : LocalPositionBefore.id : undefined, value: typeof LocalPositionBefore === "object" && "value" in LocalPositionBefore ? LocalPositionBefore === null || LocalPositionBefore === void 0 ? void 0 : LocalPositionBefore.value : LocalPositionBefore, isRaw: typeof LocalPositionBefore === "object" && "isRaw" in LocalPositionBefore && LocalPositionBefore.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "LocalRotationBefore", id: typeof LocalRotationBefore === "object" && "id" in LocalRotationBefore ? LocalRotationBefore === null || LocalRotationBefore === void 0 ? void 0 : LocalRotationBefore.id : undefined, value: typeof LocalRotationBefore === "object" && "value" in LocalRotationBefore ? LocalRotationBefore === null || LocalRotationBefore === void 0 ? void 0 : LocalRotationBefore.value : LocalRotationBefore, isRaw: typeof LocalRotationBefore === "object" && "isRaw" in LocalRotationBefore && LocalRotationBefore.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "LocalScaleBefore", id: typeof LocalScaleBefore === "object" && "id" in LocalScaleBefore ? LocalScaleBefore === null || LocalScaleBefore === void 0 ? void 0 : LocalScaleBefore.id : undefined, value: typeof LocalScaleBefore === "object" && "value" in LocalScaleBefore ? LocalScaleBefore === null || LocalScaleBefore === void 0 ? void 0 : LocalScaleBefore.value : LocalScaleBefore, isRaw: typeof LocalScaleBefore === "object" && "isRaw" in LocalScaleBefore && LocalScaleBefore.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "GlobalPositionBefore", id: typeof GlobalPositionBefore === "object" && "id" in GlobalPositionBefore ? GlobalPositionBefore === null || GlobalPositionBefore === void 0 ? void 0 : GlobalPositionBefore.id : undefined, value: typeof GlobalPositionBefore === "object" && "value" in GlobalPositionBefore ? GlobalPositionBefore === null || GlobalPositionBefore === void 0 ? void 0 : GlobalPositionBefore.value : GlobalPositionBefore, isRaw: typeof GlobalPositionBefore === "object" && "isRaw" in GlobalPositionBefore && GlobalPositionBefore.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "GlobalRotationBefore", id: typeof GlobalRotationBefore === "object" && "id" in GlobalRotationBefore ? GlobalRotationBefore === null || GlobalRotationBefore === void 0 ? void 0 : GlobalRotationBefore.id : undefined, value: typeof GlobalRotationBefore === "object" && "value" in GlobalRotationBefore ? GlobalRotationBefore === null || GlobalRotationBefore === void 0 ? void 0 : GlobalRotationBefore.value : GlobalRotationBefore, isRaw: typeof GlobalRotationBefore === "object" && "isRaw" in GlobalRotationBefore && GlobalRotationBefore.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "GlobalScaleBefore", id: typeof GlobalScaleBefore === "object" && "id" in GlobalScaleBefore ? GlobalScaleBefore === null || GlobalScaleBefore === void 0 ? void 0 : GlobalScaleBefore.id : undefined, value: typeof GlobalScaleBefore === "object" && "value" in GlobalScaleBefore ? GlobalScaleBefore === null || GlobalScaleBefore === void 0 ? void 0 : GlobalScaleBefore.value : GlobalScaleBefore, isRaw: typeof GlobalScaleBefore === "object" && "isRaw" in GlobalScaleBefore && GlobalScaleBefore.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "LocalPositionAfter", id: typeof LocalPositionAfter === "object" && "id" in LocalPositionAfter ? LocalPositionAfter === null || LocalPositionAfter === void 0 ? void 0 : LocalPositionAfter.id : undefined, value: typeof LocalPositionAfter === "object" && "value" in LocalPositionAfter ? LocalPositionAfter === null || LocalPositionAfter === void 0 ? void 0 : LocalPositionAfter.value : LocalPositionAfter, isRaw: typeof LocalPositionAfter === "object" && "isRaw" in LocalPositionAfter && LocalPositionAfter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "LocalRotationAfter", id: typeof LocalRotationAfter === "object" && "id" in LocalRotationAfter ? LocalRotationAfter === null || LocalRotationAfter === void 0 ? void 0 : LocalRotationAfter.id : undefined, value: typeof LocalRotationAfter === "object" && "value" in LocalRotationAfter ? LocalRotationAfter === null || LocalRotationAfter === void 0 ? void 0 : LocalRotationAfter.value : LocalRotationAfter, isRaw: typeof LocalRotationAfter === "object" && "isRaw" in LocalRotationAfter && LocalRotationAfter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "LocalScaleAfter", id: typeof LocalScaleAfter === "object" && "id" in LocalScaleAfter ? LocalScaleAfter === null || LocalScaleAfter === void 0 ? void 0 : LocalScaleAfter.id : undefined, value: typeof LocalScaleAfter === "object" && "value" in LocalScaleAfter ? LocalScaleAfter === null || LocalScaleAfter === void 0 ? void 0 : LocalScaleAfter.value : LocalScaleAfter, isRaw: typeof LocalScaleAfter === "object" && "isRaw" in LocalScaleAfter && LocalScaleAfter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "GlobalPositionAfter", id: typeof GlobalPositionAfter === "object" && "id" in GlobalPositionAfter ? GlobalPositionAfter === null || GlobalPositionAfter === void 0 ? void 0 : GlobalPositionAfter.id : undefined, value: typeof GlobalPositionAfter === "object" && "value" in GlobalPositionAfter ? GlobalPositionAfter === null || GlobalPositionAfter === void 0 ? void 0 : GlobalPositionAfter.value : GlobalPositionAfter, isRaw: typeof GlobalPositionAfter === "object" && "isRaw" in GlobalPositionAfter && GlobalPositionAfter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "GlobalRotationAfter", id: typeof GlobalRotationAfter === "object" && "id" in GlobalRotationAfter ? GlobalRotationAfter === null || GlobalRotationAfter === void 0 ? void 0 : GlobalRotationAfter.id : undefined, value: typeof GlobalRotationAfter === "object" && "value" in GlobalRotationAfter ? GlobalRotationAfter === null || GlobalRotationAfter === void 0 ? void 0 : GlobalRotationAfter.value : GlobalRotationAfter, isRaw: typeof GlobalRotationAfter === "object" && "isRaw" in GlobalRotationAfter && GlobalRotationAfter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "GlobalScaleAfter", id: typeof GlobalScaleAfter === "object" && "id" in GlobalScaleAfter ? GlobalScaleAfter === null || GlobalScaleAfter === void 0 ? void 0 : GlobalScaleAfter.id : undefined, value: typeof GlobalScaleAfter === "object" && "value" in GlobalScaleAfter ? GlobalScaleAfter === null || GlobalScaleAfter === void 0 ? void 0 : GlobalScaleAfter.value : GlobalScaleAfter, isRaw: typeof GlobalScaleAfter === "object" && "isRaw" in GlobalScaleAfter && GlobalScaleAfter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "_performed", id: typeof _performed === "object" && "id" in _performed ? _performed === null || _performed === void 0 ? void 0 : _performed.id : undefined, value: typeof _performed === "object" && "value" in _performed ? _performed === null || _performed === void 0 ? void 0 : _performed.value : _performed, isRaw: typeof _performed === "object" && "isRaw" in _performed && _performed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "_description", id: typeof _description === "object" && "id" in _description ? _description === null || _description === void 0 ? void 0 : _description.id : undefined, value: typeof _description === "object" && "value" in _description ? _description === null || _description === void 0 ? void 0 : _description.value : _description, isRaw: typeof _description === "object" && "isRaw" in _description && _description.isRaw ? true : undefined })] })));
}
exports.UpdateTransform = UpdateTransform;
;