UNPKG

neos-script

Version:

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

23 lines (22 loc) 9.23 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.TransformStreamDriver = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function TransformStreamDriver(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, PositionStream = props.PositionStream, RotationStream = props.RotationStream, ScaleStream = props.ScaleStream, RootSpaceStream = props.RootSpaceStream, Position = props.Position, Rotation = props.Rotation, Scale = props.Scale, AllowOffsets = props.AllowOffsets, ResetStreamsOnDestroy = props.ResetStreamsOnDestroy, PositionOffset = props.PositionOffset, RotationOffset = props.RotationOffset, ScaleOffset = props.ScaleOffset, RunBeforePhysics = props.RunBeforePhysics; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.TransformStreamDriver", 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.ValueStream`1[BaseX.float3]]", name: "PositionStream", id: typeof PositionStream === "object" && "id" in PositionStream ? PositionStream === null || PositionStream === void 0 ? void 0 : PositionStream.id : undefined, value: typeof PositionStream === "object" && "value" in PositionStream ? PositionStream === null || PositionStream === void 0 ? void 0 : PositionStream.value : PositionStream, isRaw: typeof PositionStream === "object" && "isRaw" in PositionStream && PositionStream.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[BaseX.floatQ]]", name: "RotationStream", id: typeof RotationStream === "object" && "id" in RotationStream ? RotationStream === null || RotationStream === void 0 ? void 0 : RotationStream.id : undefined, value: typeof RotationStream === "object" && "value" in RotationStream ? RotationStream === null || RotationStream === void 0 ? void 0 : RotationStream.value : RotationStream, isRaw: typeof RotationStream === "object" && "isRaw" in RotationStream && RotationStream.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ValueStream`1[BaseX.float3]]", name: "ScaleStream", id: typeof ScaleStream === "object" && "id" in ScaleStream ? ScaleStream === null || ScaleStream === void 0 ? void 0 : ScaleStream.id : undefined, value: typeof ScaleStream === "object" && "value" in ScaleStream ? ScaleStream === null || ScaleStream === void 0 ? void 0 : ScaleStream.value : ScaleStream, isRaw: typeof ScaleStream === "object" && "isRaw" in ScaleStream && ScaleStream.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ReferenceStream`1[FrooxEngine.Slot]]", name: "RootSpaceStream", id: typeof RootSpaceStream === "object" && "id" in RootSpaceStream ? RootSpaceStream === null || RootSpaceStream === void 0 ? void 0 : RootSpaceStream.id : undefined, value: typeof RootSpaceStream === "object" && "value" in RootSpaceStream ? RootSpaceStream === null || RootSpaceStream === void 0 ? void 0 : RootSpaceStream.value : RootSpaceStream, isRaw: typeof RootSpaceStream === "object" && "isRaw" in RootSpaceStream && RootSpaceStream.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.FieldDrive`1[BaseX.float3]", name: "Scale", id: typeof Scale === "object" && "id" in Scale ? Scale === null || Scale === void 0 ? void 0 : Scale.id : undefined, value: typeof Scale === "object" && "value" in Scale ? Scale === null || Scale === void 0 ? void 0 : Scale.value : Scale, isRaw: typeof Scale === "object" && "isRaw" in Scale && Scale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AllowOffsets", id: typeof AllowOffsets === "object" && "id" in AllowOffsets ? AllowOffsets === null || AllowOffsets === void 0 ? void 0 : AllowOffsets.id : undefined, value: typeof AllowOffsets === "object" && "value" in AllowOffsets ? AllowOffsets === null || AllowOffsets === void 0 ? void 0 : AllowOffsets.value : AllowOffsets, isRaw: typeof AllowOffsets === "object" && "isRaw" in AllowOffsets && AllowOffsets.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "ResetStreamsOnDestroy", id: typeof ResetStreamsOnDestroy === "object" && "id" in ResetStreamsOnDestroy ? ResetStreamsOnDestroy === null || ResetStreamsOnDestroy === void 0 ? void 0 : ResetStreamsOnDestroy.id : undefined, value: typeof ResetStreamsOnDestroy === "object" && "value" in ResetStreamsOnDestroy ? ResetStreamsOnDestroy === null || ResetStreamsOnDestroy === void 0 ? void 0 : ResetStreamsOnDestroy.value : ResetStreamsOnDestroy, isRaw: typeof ResetStreamsOnDestroy === "object" && "isRaw" in ResetStreamsOnDestroy && ResetStreamsOnDestroy.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Nullable`1[BaseX.float3]]", name: "PositionOffset", id: typeof PositionOffset === "object" && "id" in PositionOffset ? PositionOffset === null || PositionOffset === void 0 ? void 0 : PositionOffset.id : undefined, value: typeof PositionOffset === "object" && "value" in PositionOffset ? PositionOffset === null || PositionOffset === void 0 ? void 0 : PositionOffset.value : PositionOffset, isRaw: typeof PositionOffset === "object" && "isRaw" in PositionOffset && PositionOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Nullable`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.Sync`1[System.Nullable`1[BaseX.float3]]", name: "ScaleOffset", id: typeof ScaleOffset === "object" && "id" in ScaleOffset ? ScaleOffset === null || ScaleOffset === void 0 ? void 0 : ScaleOffset.id : undefined, value: typeof ScaleOffset === "object" && "value" in ScaleOffset ? ScaleOffset === null || ScaleOffset === void 0 ? void 0 : ScaleOffset.value : ScaleOffset, isRaw: typeof ScaleOffset === "object" && "isRaw" in ScaleOffset && ScaleOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "RunBeforePhysics", id: typeof RunBeforePhysics === "object" && "id" in RunBeforePhysics ? RunBeforePhysics === null || RunBeforePhysics === void 0 ? void 0 : RunBeforePhysics.id : undefined, value: typeof RunBeforePhysics === "object" && "value" in RunBeforePhysics ? RunBeforePhysics === null || RunBeforePhysics === void 0 ? void 0 : RunBeforePhysics.value : RunBeforePhysics, isRaw: typeof RunBeforePhysics === "object" && "isRaw" in RunBeforePhysics && RunBeforePhysics.isRaw ? true : undefined })] }))); } exports.TransformStreamDriver = TransformStreamDriver; ;