UNPKG

neos-script

Version:

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

23 lines (22 loc) 5.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.VirtualParent = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function VirtualParent(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, OverrideParent = props.OverrideParent, _targetPos = props._targetPos, _targetRot = props._targetRot, _targetScl = props._targetScl, LocalPosition = props.LocalPosition, LocalRotation = props.LocalRotation, LocalScale = props.LocalScale; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.VirtualParent", 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: "OverrideParent", id: typeof OverrideParent === "object" && "id" in OverrideParent ? OverrideParent === null || OverrideParent === void 0 ? void 0 : OverrideParent.id : undefined, value: typeof OverrideParent === "object" && "value" in OverrideParent ? OverrideParent === null || OverrideParent === void 0 ? void 0 : OverrideParent.value : OverrideParent, isRaw: typeof OverrideParent === "object" && "isRaw" in OverrideParent && OverrideParent.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_targetPos", id: typeof _targetPos === "object" && "id" in _targetPos ? _targetPos === null || _targetPos === void 0 ? void 0 : _targetPos.id : undefined, value: typeof _targetPos === "object" && "value" in _targetPos ? _targetPos === null || _targetPos === void 0 ? void 0 : _targetPos.value : _targetPos, isRaw: typeof _targetPos === "object" && "isRaw" in _targetPos && _targetPos.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_targetRot", id: typeof _targetRot === "object" && "id" in _targetRot ? _targetRot === null || _targetRot === void 0 ? void 0 : _targetRot.id : undefined, value: typeof _targetRot === "object" && "value" in _targetRot ? _targetRot === null || _targetRot === void 0 ? void 0 : _targetRot.value : _targetRot, isRaw: typeof _targetRot === "object" && "isRaw" in _targetRot && _targetRot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_targetScl", id: typeof _targetScl === "object" && "id" in _targetScl ? _targetScl === null || _targetScl === void 0 ? void 0 : _targetScl.id : undefined, value: typeof _targetScl === "object" && "value" in _targetScl ? _targetScl === null || _targetScl === void 0 ? void 0 : _targetScl.value : _targetScl, isRaw: typeof _targetScl === "object" && "isRaw" in _targetScl && _targetScl.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "LocalPosition", id: typeof LocalPosition === "object" && "id" in LocalPosition ? LocalPosition === null || LocalPosition === void 0 ? void 0 : LocalPosition.id : undefined, value: typeof LocalPosition === "object" && "value" in LocalPosition ? LocalPosition === null || LocalPosition === void 0 ? void 0 : LocalPosition.value : LocalPosition, isRaw: typeof LocalPosition === "object" && "isRaw" in LocalPosition && LocalPosition.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "LocalRotation", id: typeof LocalRotation === "object" && "id" in LocalRotation ? LocalRotation === null || LocalRotation === void 0 ? void 0 : LocalRotation.id : undefined, value: typeof LocalRotation === "object" && "value" in LocalRotation ? LocalRotation === null || LocalRotation === void 0 ? void 0 : LocalRotation.value : LocalRotation, isRaw: typeof LocalRotation === "object" && "isRaw" in LocalRotation && LocalRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "LocalScale", id: typeof LocalScale === "object" && "id" in LocalScale ? LocalScale === null || LocalScale === void 0 ? void 0 : LocalScale.id : undefined, value: typeof LocalScale === "object" && "value" in LocalScale ? LocalScale === null || LocalScale === void 0 ? void 0 : LocalScale.value : LocalScale, isRaw: typeof LocalScale === "object" && "isRaw" in LocalScale && LocalScale.isRaw ? true : undefined })] }))); } exports.VirtualParent = VirtualParent; ;