neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 7.29 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.VerticalLayout = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function VerticalLayout(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, Spacing = props.Spacing, HorizontalAlign = props.HorizontalAlign, VerticalAlign = props.VerticalAlign, ForceExpandWidth = props.ForceExpandWidth, ForceExpandHeight = props.ForceExpandHeight;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.UIX.VerticalLayout", 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 !== null && PaddingTop !== void 0 ? PaddingTop : 0, 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 !== null && PaddingRight !== void 0 ? PaddingRight : 0, 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 !== null && PaddingBottom !== void 0 ? PaddingBottom : 0, 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 !== null && PaddingLeft !== void 0 ? PaddingLeft : 0, isRaw: typeof PaddingLeft === "object" && "isRaw" in PaddingLeft && PaddingLeft.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", 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 !== null && Spacing !== void 0 ? Spacing : 0, 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 !== null && HorizontalAlign !== void 0 ? HorizontalAlign : "Left", 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 !== null && VerticalAlign !== void 0 ? VerticalAlign : "Top", 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: "ForceExpandWidth", id: typeof ForceExpandWidth === "object" && "id" in ForceExpandWidth ? ForceExpandWidth === null || ForceExpandWidth === void 0 ? void 0 : ForceExpandWidth.id : undefined, value: typeof ForceExpandWidth === "object" && "value" in ForceExpandWidth ? ForceExpandWidth === null || ForceExpandWidth === void 0 ? void 0 : ForceExpandWidth.value : ForceExpandWidth !== null && ForceExpandWidth !== void 0 ? ForceExpandWidth : true, isRaw: typeof ForceExpandWidth === "object" && "isRaw" in ForceExpandWidth && ForceExpandWidth.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "ForceExpandHeight", id: typeof ForceExpandHeight === "object" && "id" in ForceExpandHeight ? ForceExpandHeight === null || ForceExpandHeight === void 0 ? void 0 : ForceExpandHeight.id : undefined, value: typeof ForceExpandHeight === "object" && "value" in ForceExpandHeight ? ForceExpandHeight === null || ForceExpandHeight === void 0 ? void 0 : ForceExpandHeight.value : ForceExpandHeight !== null && ForceExpandHeight !== void 0 ? ForceExpandHeight : true, isRaw: typeof ForceExpandHeight === "object" && "isRaw" in ForceExpandHeight && ForceExpandHeight.isRaw ? true : undefined })] })));
}
exports.VerticalLayout = VerticalLayout;
;