neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 9.29 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.UserInterfacePositioner = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function UserInterfacePositioner(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TargetUser = props.TargetUser, UseHead = props.UseHead, RotateVerticalOnly = props.RotateVerticalOnly, PositionSpeed = props.PositionSpeed, RotationSpeed = props.RotationSpeed, ActivationDistance = props.ActivationDistance, ActivationAngle = props.ActivationAngle, DeactivationDistance = props.DeactivationDistance, DeactivationAngle = props.DeactivationAngle, TargetPosition = props.TargetPosition, TargetRotation = props.TargetRotation, _position = props._position, _rotation = props._rotation;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.UserInterfacePositioner", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 1 }, { 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.UserRef", name: "TargetUser", id: typeof TargetUser === "object" && "id" in TargetUser ? TargetUser === null || TargetUser === void 0 ? void 0 : TargetUser.id : undefined, value: typeof TargetUser === "object" && "value" in TargetUser ? TargetUser === null || TargetUser === void 0 ? void 0 : TargetUser.value : TargetUser, isRaw: typeof TargetUser === "object" && "isRaw" in TargetUser && TargetUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "UseHead", id: typeof UseHead === "object" && "id" in UseHead ? UseHead === null || UseHead === void 0 ? void 0 : UseHead.id : undefined, value: typeof UseHead === "object" && "value" in UseHead ? UseHead === null || UseHead === void 0 ? void 0 : UseHead.value : UseHead, isRaw: typeof UseHead === "object" && "isRaw" in UseHead && UseHead.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "RotateVerticalOnly", id: typeof RotateVerticalOnly === "object" && "id" in RotateVerticalOnly ? RotateVerticalOnly === null || RotateVerticalOnly === void 0 ? void 0 : RotateVerticalOnly.id : undefined, value: typeof RotateVerticalOnly === "object" && "value" in RotateVerticalOnly ? RotateVerticalOnly === null || RotateVerticalOnly === void 0 ? void 0 : RotateVerticalOnly.value : RotateVerticalOnly, isRaw: typeof RotateVerticalOnly === "object" && "isRaw" in RotateVerticalOnly && RotateVerticalOnly.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "PositionSpeed", id: typeof PositionSpeed === "object" && "id" in PositionSpeed ? PositionSpeed === null || PositionSpeed === void 0 ? void 0 : PositionSpeed.id : undefined, value: typeof PositionSpeed === "object" && "value" in PositionSpeed ? PositionSpeed === null || PositionSpeed === void 0 ? void 0 : PositionSpeed.value : PositionSpeed, isRaw: typeof PositionSpeed === "object" && "isRaw" in PositionSpeed && PositionSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "RotationSpeed", id: typeof RotationSpeed === "object" && "id" in RotationSpeed ? RotationSpeed === null || RotationSpeed === void 0 ? void 0 : RotationSpeed.id : undefined, value: typeof RotationSpeed === "object" && "value" in RotationSpeed ? RotationSpeed === null || RotationSpeed === void 0 ? void 0 : RotationSpeed.value : RotationSpeed, isRaw: typeof RotationSpeed === "object" && "isRaw" in RotationSpeed && RotationSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ActivationDistance", id: typeof ActivationDistance === "object" && "id" in ActivationDistance ? ActivationDistance === null || ActivationDistance === void 0 ? void 0 : ActivationDistance.id : undefined, value: typeof ActivationDistance === "object" && "value" in ActivationDistance ? ActivationDistance === null || ActivationDistance === void 0 ? void 0 : ActivationDistance.value : ActivationDistance, isRaw: typeof ActivationDistance === "object" && "isRaw" in ActivationDistance && ActivationDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ActivationAngle", id: typeof ActivationAngle === "object" && "id" in ActivationAngle ? ActivationAngle === null || ActivationAngle === void 0 ? void 0 : ActivationAngle.id : undefined, value: typeof ActivationAngle === "object" && "value" in ActivationAngle ? ActivationAngle === null || ActivationAngle === void 0 ? void 0 : ActivationAngle.value : ActivationAngle, isRaw: typeof ActivationAngle === "object" && "isRaw" in ActivationAngle && ActivationAngle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DeactivationDistance", id: typeof DeactivationDistance === "object" && "id" in DeactivationDistance ? DeactivationDistance === null || DeactivationDistance === void 0 ? void 0 : DeactivationDistance.id : undefined, value: typeof DeactivationDistance === "object" && "value" in DeactivationDistance ? DeactivationDistance === null || DeactivationDistance === void 0 ? void 0 : DeactivationDistance.value : DeactivationDistance, isRaw: typeof DeactivationDistance === "object" && "isRaw" in DeactivationDistance && DeactivationDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DeactivationAngle", id: typeof DeactivationAngle === "object" && "id" in DeactivationAngle ? DeactivationAngle === null || DeactivationAngle === void 0 ? void 0 : DeactivationAngle.id : undefined, value: typeof DeactivationAngle === "object" && "value" in DeactivationAngle ? DeactivationAngle === null || DeactivationAngle === void 0 ? void 0 : DeactivationAngle.value : DeactivationAngle, isRaw: typeof DeactivationAngle === "object" && "isRaw" in DeactivationAngle && DeactivationAngle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "TargetPosition", id: typeof TargetPosition === "object" && "id" in TargetPosition ? TargetPosition === null || TargetPosition === void 0 ? void 0 : TargetPosition.id : undefined, value: typeof TargetPosition === "object" && "value" in TargetPosition ? TargetPosition === null || TargetPosition === void 0 ? void 0 : TargetPosition.value : TargetPosition, isRaw: typeof TargetPosition === "object" && "isRaw" in TargetPosition && TargetPosition.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "TargetRotation", id: typeof TargetRotation === "object" && "id" in TargetRotation ? TargetRotation === null || TargetRotation === void 0 ? void 0 : TargetRotation.id : undefined, value: typeof TargetRotation === "object" && "value" in TargetRotation ? TargetRotation === null || TargetRotation === void 0 ? void 0 : TargetRotation.value : TargetRotation, isRaw: typeof TargetRotation === "object" && "isRaw" in TargetRotation && TargetRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_position", id: typeof _position === "object" && "id" in _position ? _position === null || _position === void 0 ? void 0 : _position.id : undefined, value: typeof _position === "object" && "value" in _position ? _position === null || _position === void 0 ? void 0 : _position.value : _position, isRaw: typeof _position === "object" && "isRaw" in _position && _position.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_rotation", id: typeof _rotation === "object" && "id" in _rotation ? _rotation === null || _rotation === void 0 ? void 0 : _rotation.id : undefined, value: typeof _rotation === "object" && "value" in _rotation ? _rotation === null || _rotation === void 0 ? void 0 : _rotation.value : _rotation, isRaw: typeof _rotation === "object" && "isRaw" in _rotation && _rotation.isRaw ? true : undefined })] })));
}
exports.UserInterfacePositioner = UserInterfacePositioner;
;