UNPKG

neos-script

Version:

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

23 lines (22 loc) 8.11 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.GridLayout = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function GridLayout(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, PaddingTop = props.PaddingTop, PaddingRight = props.PaddingRight, PaddingBottom = props.PaddingBottom, PaddingLeft = props.PaddingLeft, CellSize = props.CellSize, Spacing = props.Spacing, HorizontalAlign = props.HorizontalAlign, VerticalAlign = props.VerticalAlign, ExpandWidthToFit = props.ExpandWidthToFit, PreserveAspectOnExpand = props.PreserveAspectOnExpand, AlignLastRowIndividually = props.AlignLastRowIndividually; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.UIX.GridLayout", 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.Single]", name: "PaddingTop", id: typeof PaddingTop === "object" && "id" in PaddingTop ? PaddingTop === null || PaddingTop === void 0 ? void 0 : PaddingTop.id : undefined, value: typeof PaddingTop === "object" && "value" in PaddingTop ? PaddingTop === null || PaddingTop === void 0 ? void 0 : PaddingTop.value : PaddingTop, isRaw: typeof PaddingTop === "object" && "isRaw" in PaddingTop && PaddingTop.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "PaddingRight", id: typeof PaddingRight === "object" && "id" in PaddingRight ? PaddingRight === null || PaddingRight === void 0 ? void 0 : PaddingRight.id : undefined, value: typeof PaddingRight === "object" && "value" in PaddingRight ? PaddingRight === null || PaddingRight === void 0 ? void 0 : PaddingRight.value : PaddingRight, isRaw: typeof PaddingRight === "object" && "isRaw" in PaddingRight && PaddingRight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "PaddingBottom", id: typeof PaddingBottom === "object" && "id" in PaddingBottom ? PaddingBottom === null || PaddingBottom === void 0 ? void 0 : PaddingBottom.id : undefined, value: typeof PaddingBottom === "object" && "value" in PaddingBottom ? PaddingBottom === null || PaddingBottom === void 0 ? void 0 : PaddingBottom.value : PaddingBottom, isRaw: typeof PaddingBottom === "object" && "isRaw" in PaddingBottom && PaddingBottom.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "PaddingLeft", id: typeof PaddingLeft === "object" && "id" in PaddingLeft ? PaddingLeft === null || PaddingLeft === void 0 ? void 0 : PaddingLeft.id : undefined, value: typeof PaddingLeft === "object" && "value" in PaddingLeft ? PaddingLeft === null || PaddingLeft === void 0 ? void 0 : PaddingLeft.value : PaddingLeft, isRaw: typeof PaddingLeft === "object" && "isRaw" in PaddingLeft && PaddingLeft.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[BaseX.float2]", name: "Spacing", id: typeof Spacing === "object" && "id" in Spacing ? Spacing === null || Spacing === void 0 ? void 0 : Spacing.id : undefined, value: typeof Spacing === "object" && "value" in Spacing ? Spacing === null || Spacing === void 0 ? void 0 : Spacing.value : Spacing, isRaw: typeof Spacing === "object" && "isRaw" in Spacing && Spacing.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.UIX.LayoutHorizontalAlignment]", name: "HorizontalAlign", id: typeof HorizontalAlign === "object" && "id" in HorizontalAlign ? HorizontalAlign === null || HorizontalAlign === void 0 ? void 0 : HorizontalAlign.id : undefined, value: typeof HorizontalAlign === "object" && "value" in HorizontalAlign ? HorizontalAlign === null || HorizontalAlign === void 0 ? void 0 : HorizontalAlign.value : HorizontalAlign, isRaw: typeof HorizontalAlign === "object" && "isRaw" in HorizontalAlign && HorizontalAlign.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.UIX.LayoutVerticalAlignment]", name: "VerticalAlign", id: typeof VerticalAlign === "object" && "id" in VerticalAlign ? VerticalAlign === null || VerticalAlign === void 0 ? void 0 : VerticalAlign.id : undefined, value: typeof VerticalAlign === "object" && "value" in VerticalAlign ? VerticalAlign === null || VerticalAlign === void 0 ? void 0 : VerticalAlign.value : VerticalAlign, isRaw: typeof VerticalAlign === "object" && "isRaw" in VerticalAlign && VerticalAlign.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "ExpandWidthToFit", id: typeof ExpandWidthToFit === "object" && "id" in ExpandWidthToFit ? ExpandWidthToFit === null || ExpandWidthToFit === void 0 ? void 0 : ExpandWidthToFit.id : undefined, value: typeof ExpandWidthToFit === "object" && "value" in ExpandWidthToFit ? ExpandWidthToFit === null || ExpandWidthToFit === void 0 ? void 0 : ExpandWidthToFit.value : ExpandWidthToFit, isRaw: typeof ExpandWidthToFit === "object" && "isRaw" in ExpandWidthToFit && ExpandWidthToFit.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "PreserveAspectOnExpand", id: typeof PreserveAspectOnExpand === "object" && "id" in PreserveAspectOnExpand ? PreserveAspectOnExpand === null || PreserveAspectOnExpand === void 0 ? void 0 : PreserveAspectOnExpand.id : undefined, value: typeof PreserveAspectOnExpand === "object" && "value" in PreserveAspectOnExpand ? PreserveAspectOnExpand === null || PreserveAspectOnExpand === void 0 ? void 0 : PreserveAspectOnExpand.value : PreserveAspectOnExpand, isRaw: typeof PreserveAspectOnExpand === "object" && "isRaw" in PreserveAspectOnExpand && PreserveAspectOnExpand.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AlignLastRowIndividually", id: typeof AlignLastRowIndividually === "object" && "id" in AlignLastRowIndividually ? AlignLastRowIndividually === null || AlignLastRowIndividually === void 0 ? void 0 : AlignLastRowIndividually.id : undefined, value: typeof AlignLastRowIndividually === "object" && "value" in AlignLastRowIndividually ? AlignLastRowIndividually === null || AlignLastRowIndividually === void 0 ? void 0 : AlignLastRowIndividually.value : AlignLastRowIndividually, isRaw: typeof AlignLastRowIndividually === "object" && "isRaw" in AlignLastRowIndividually && AlignLastRowIndividually.isRaw ? true : undefined })] }))); } exports.GridLayout = GridLayout; ;