UNPKG

neos-script

Version:

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

23 lines (22 loc) 6.62 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.ObjectGridAligner = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function ObjectGridAligner(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, AutoAddChildren = props.AutoAddChildren, ItemsPerRow = props.ItemsPerRow, CellSize = props.CellSize, LerpSpeed = props.LerpSpeed, HorizontalAlignment = props.HorizontalAlignment, VerticalAlignment = props.VerticalAlignment, RowAxis = props.RowAxis, ColumnAxis = props.ColumnAxis, Items = props.Items; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.ObjectGridAligner", 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[System.Boolean]", name: "AutoAddChildren", id: typeof AutoAddChildren === "object" && "id" in AutoAddChildren ? AutoAddChildren === null || AutoAddChildren === void 0 ? void 0 : AutoAddChildren.id : undefined, value: typeof AutoAddChildren === "object" && "value" in AutoAddChildren ? AutoAddChildren === null || AutoAddChildren === void 0 ? void 0 : AutoAddChildren.value : AutoAddChildren, isRaw: typeof AutoAddChildren === "object" && "isRaw" in AutoAddChildren && AutoAddChildren.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "ItemsPerRow", id: typeof ItemsPerRow === "object" && "id" in ItemsPerRow ? ItemsPerRow === null || ItemsPerRow === void 0 ? void 0 : ItemsPerRow.id : undefined, value: typeof ItemsPerRow === "object" && "value" in ItemsPerRow ? ItemsPerRow === null || ItemsPerRow === void 0 ? void 0 : ItemsPerRow.value : ItemsPerRow, isRaw: typeof ItemsPerRow === "object" && "isRaw" in ItemsPerRow && ItemsPerRow.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "CellSize", id: typeof CellSize === "object" && "id" in CellSize ? CellSize === null || CellSize === void 0 ? void 0 : CellSize.id : undefined, value: typeof CellSize === "object" && "value" in CellSize ? CellSize === null || CellSize === void 0 ? void 0 : CellSize.value : CellSize, isRaw: typeof CellSize === "object" && "isRaw" in CellSize && CellSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "LerpSpeed", id: typeof LerpSpeed === "object" && "id" in LerpSpeed ? LerpSpeed === null || LerpSpeed === void 0 ? void 0 : LerpSpeed.id : undefined, value: typeof LerpSpeed === "object" && "value" in LerpSpeed ? LerpSpeed === null || LerpSpeed === void 0 ? void 0 : LerpSpeed.value : LerpSpeed, isRaw: typeof LerpSpeed === "object" && "isRaw" in LerpSpeed && LerpSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ObjectGridAligner+Align]", name: "HorizontalAlignment", id: typeof HorizontalAlignment === "object" && "id" in HorizontalAlignment ? HorizontalAlignment === null || HorizontalAlignment === void 0 ? void 0 : HorizontalAlignment.id : undefined, value: typeof HorizontalAlignment === "object" && "value" in HorizontalAlignment ? HorizontalAlignment === null || HorizontalAlignment === void 0 ? void 0 : HorizontalAlignment.value : HorizontalAlignment, isRaw: typeof HorizontalAlignment === "object" && "isRaw" in HorizontalAlignment && HorizontalAlignment.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ObjectGridAligner+Align]", name: "VerticalAlignment", id: typeof VerticalAlignment === "object" && "id" in VerticalAlignment ? VerticalAlignment === null || VerticalAlignment === void 0 ? void 0 : VerticalAlignment.id : undefined, value: typeof VerticalAlignment === "object" && "value" in VerticalAlignment ? VerticalAlignment === null || VerticalAlignment === void 0 ? void 0 : VerticalAlignment.value : VerticalAlignment, isRaw: typeof VerticalAlignment === "object" && "isRaw" in VerticalAlignment && VerticalAlignment.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ObjectGridAligner+AxisDir]", name: "RowAxis", id: typeof RowAxis === "object" && "id" in RowAxis ? RowAxis === null || RowAxis === void 0 ? void 0 : RowAxis.id : undefined, value: typeof RowAxis === "object" && "value" in RowAxis ? RowAxis === null || RowAxis === void 0 ? void 0 : RowAxis.value : RowAxis, isRaw: typeof RowAxis === "object" && "isRaw" in RowAxis && RowAxis.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ObjectGridAligner+AxisDir]", name: "ColumnAxis", id: typeof ColumnAxis === "object" && "id" in ColumnAxis ? ColumnAxis === null || ColumnAxis === void 0 ? void 0 : ColumnAxis.id : undefined, value: typeof ColumnAxis === "object" && "value" in ColumnAxis ? ColumnAxis === null || ColumnAxis === void 0 ? void 0 : ColumnAxis.value : ColumnAxis, isRaw: typeof ColumnAxis === "object" && "isRaw" in ColumnAxis && ColumnAxis.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.ObjectGridAligner+Item]", name: "Items", id: typeof Items === "object" && "id" in Items ? Items === null || Items === void 0 ? void 0 : Items.id : undefined, value: typeof Items === "object" && "value" in Items ? Items === null || Items === void 0 ? void 0 : Items.value : Items, isRaw: typeof Items === "object" && "isRaw" in Items && Items.isRaw ? true : undefined })] }))); } exports.ObjectGridAligner = ObjectGridAligner; ;