neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 6.49 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.SmoothTransform = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function SmoothTransform(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, InterpolationSpace = props.InterpolationSpace, TargetPosition = props.TargetPosition, TargetRotation = props.TargetRotation, TargetScale = props.TargetScale, Position = props.Position, Rotation = props.Rotation, Scale = props.Scale, SmoothSpeed = props.SmoothSpeed, _updateIndex = props._updateIndex;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.SmoothTransform", 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.RootSpace", name: "InterpolationSpace", id: typeof InterpolationSpace === "object" && "id" in InterpolationSpace ? InterpolationSpace === null || InterpolationSpace === void 0 ? void 0 : InterpolationSpace.id : undefined, value: typeof InterpolationSpace === "object" && "value" in InterpolationSpace ? InterpolationSpace === null || InterpolationSpace === void 0 ? void 0 : InterpolationSpace.value : InterpolationSpace, isRaw: typeof InterpolationSpace === "object" && "isRaw" in InterpolationSpace && InterpolationSpace.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.Sync`1[BaseX.float3]", name: "TargetScale", id: typeof TargetScale === "object" && "id" in TargetScale ? TargetScale === null || TargetScale === void 0 ? void 0 : TargetScale.id : undefined, value: typeof TargetScale === "object" && "value" in TargetScale ? TargetScale === null || TargetScale === void 0 ? void 0 : TargetScale.value : TargetScale, isRaw: typeof TargetScale === "object" && "isRaw" in TargetScale && TargetScale.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.Single]", name: "SmoothSpeed", id: typeof SmoothSpeed === "object" && "id" in SmoothSpeed ? SmoothSpeed === null || SmoothSpeed === void 0 ? void 0 : SmoothSpeed.id : undefined, value: typeof SmoothSpeed === "object" && "value" in SmoothSpeed ? SmoothSpeed === null || SmoothSpeed === void 0 ? void 0 : SmoothSpeed.value : SmoothSpeed, isRaw: typeof SmoothSpeed === "object" && "isRaw" in SmoothSpeed && SmoothSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "_updateIndex", id: typeof _updateIndex === "object" && "id" in _updateIndex ? _updateIndex === null || _updateIndex === void 0 ? void 0 : _updateIndex.id : undefined, value: typeof _updateIndex === "object" && "value" in _updateIndex ? _updateIndex === null || _updateIndex === void 0 ? void 0 : _updateIndex.value : _updateIndex, isRaw: typeof _updateIndex === "object" && "isRaw" in _updateIndex && _updateIndex.isRaw ? true : undefined })] })));
}
exports.SmoothTransform = SmoothTransform;
;