UNPKG

neos-script

Version:

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

23 lines (22 loc) 8.88 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.LineTransform = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function LineTransform(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Point0 = props.Point0, Point1 = props.Point1, Point0Anchor = props.Point0Anchor, Point1Anchor = props.Point1Anchor, LinePositionType = props.LinePositionType, PlanePositionType = props.PlanePositionType, LinePoint = props.LinePoint, OffsetPoint = props.OffsetPoint, RotationOffset = props.RotationOffset, _position = props._position, _rotation = props._rotation, AllowRepositioning = props.AllowRepositioning, RepositionOffset = props.RepositionOffset; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LineTransform", 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.Sync`1[BaseX.float3]", name: "Point0", id: typeof Point0 === "object" && "id" in Point0 ? Point0 === null || Point0 === void 0 ? void 0 : Point0.id : undefined, value: typeof Point0 === "object" && "value" in Point0 ? Point0 === null || Point0 === void 0 ? void 0 : Point0.value : Point0, isRaw: typeof Point0 === "object" && "isRaw" in Point0 && Point0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Point1", id: typeof Point1 === "object" && "id" in Point1 ? Point1 === null || Point1 === void 0 ? void 0 : Point1.id : undefined, value: typeof Point1 === "object" && "value" in Point1 ? Point1 === null || Point1 === void 0 ? void 0 : Point1.value : Point1, isRaw: typeof Point1 === "object" && "isRaw" in Point1 && Point1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.TransformRelayRef", name: "Point0Anchor", id: typeof Point0Anchor === "object" && "id" in Point0Anchor ? Point0Anchor === null || Point0Anchor === void 0 ? void 0 : Point0Anchor.id : undefined, value: typeof Point0Anchor === "object" && "value" in Point0Anchor ? Point0Anchor === null || Point0Anchor === void 0 ? void 0 : Point0Anchor.value : Point0Anchor, isRaw: typeof Point0Anchor === "object" && "isRaw" in Point0Anchor && Point0Anchor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.TransformRelayRef", name: "Point1Anchor", id: typeof Point1Anchor === "object" && "id" in Point1Anchor ? Point1Anchor === null || Point1Anchor === void 0 ? void 0 : Point1Anchor.id : undefined, value: typeof Point1Anchor === "object" && "value" in Point1Anchor ? Point1Anchor === null || Point1Anchor === void 0 ? void 0 : Point1Anchor.value : Point1Anchor, isRaw: typeof Point1Anchor === "object" && "isRaw" in Point1Anchor && Point1Anchor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.PositionType]", name: "LinePositionType", id: typeof LinePositionType === "object" && "id" in LinePositionType ? LinePositionType === null || LinePositionType === void 0 ? void 0 : LinePositionType.id : undefined, value: typeof LinePositionType === "object" && "value" in LinePositionType ? LinePositionType === null || LinePositionType === void 0 ? void 0 : LinePositionType.value : LinePositionType, isRaw: typeof LinePositionType === "object" && "isRaw" in LinePositionType && LinePositionType.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.PositionType]", name: "PlanePositionType", id: typeof PlanePositionType === "object" && "id" in PlanePositionType ? PlanePositionType === null || PlanePositionType === void 0 ? void 0 : PlanePositionType.id : undefined, value: typeof PlanePositionType === "object" && "value" in PlanePositionType ? PlanePositionType === null || PlanePositionType === void 0 ? void 0 : PlanePositionType.value : PlanePositionType, isRaw: typeof PlanePositionType === "object" && "isRaw" in PlanePositionType && PlanePositionType.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "LinePoint", id: typeof LinePoint === "object" && "id" in LinePoint ? LinePoint === null || LinePoint === void 0 ? void 0 : LinePoint.id : undefined, value: typeof LinePoint === "object" && "value" in LinePoint ? LinePoint === null || LinePoint === void 0 ? void 0 : LinePoint.value : LinePoint, isRaw: typeof LinePoint === "object" && "isRaw" in LinePoint && LinePoint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "OffsetPoint", id: typeof OffsetPoint === "object" && "id" in OffsetPoint ? OffsetPoint === null || OffsetPoint === void 0 ? void 0 : OffsetPoint.id : undefined, value: typeof OffsetPoint === "object" && "value" in OffsetPoint ? OffsetPoint === null || OffsetPoint === void 0 ? void 0 : OffsetPoint.value : OffsetPoint, isRaw: typeof OffsetPoint === "object" && "isRaw" in OffsetPoint && OffsetPoint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "RotationOffset", id: typeof RotationOffset === "object" && "id" in RotationOffset ? RotationOffset === null || RotationOffset === void 0 ? void 0 : RotationOffset.id : undefined, value: typeof RotationOffset === "object" && "value" in RotationOffset ? RotationOffset === null || RotationOffset === void 0 ? void 0 : RotationOffset.value : RotationOffset, isRaw: typeof RotationOffset === "object" && "isRaw" in RotationOffset && RotationOffset.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 }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AllowRepositioning", id: typeof AllowRepositioning === "object" && "id" in AllowRepositioning ? AllowRepositioning === null || AllowRepositioning === void 0 ? void 0 : AllowRepositioning.id : undefined, value: typeof AllowRepositioning === "object" && "value" in AllowRepositioning ? AllowRepositioning === null || AllowRepositioning === void 0 ? void 0 : AllowRepositioning.value : AllowRepositioning, isRaw: typeof AllowRepositioning === "object" && "isRaw" in AllowRepositioning && AllowRepositioning.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "RepositionOffset", id: typeof RepositionOffset === "object" && "id" in RepositionOffset ? RepositionOffset === null || RepositionOffset === void 0 ? void 0 : RepositionOffset.id : undefined, value: typeof RepositionOffset === "object" && "value" in RepositionOffset ? RepositionOffset === null || RepositionOffset === void 0 ? void 0 : RepositionOffset.value : RepositionOffset, isRaw: typeof RepositionOffset === "object" && "isRaw" in RepositionOffset && RepositionOffset.isRaw ? true : undefined })] }))); } exports.LineTransform = LineTransform; ;