UNPKG

neos-script

Version:

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

23 lines (22 loc) 6.48 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.Facet = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function Facet(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, MinWidth = props.MinWidth, MaxWidth = props.MaxWidth, MinHeight = props.MinHeight, MaxHeight = props.MaxHeight, LastPlacedSize = props.LastPlacedSize, PreferredSizes = props.PreferredSizes, AllowedAspectRatios = props.AllowedAspectRatios, IsStandalone = props.IsStandalone, _canvas = props._canvas; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.Facet", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 1 }, { 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: "MinWidth", id: typeof MinWidth === "object" && "id" in MinWidth ? MinWidth === null || MinWidth === void 0 ? void 0 : MinWidth.id : undefined, value: typeof MinWidth === "object" && "value" in MinWidth ? MinWidth === null || MinWidth === void 0 ? void 0 : MinWidth.value : MinWidth, isRaw: typeof MinWidth === "object" && "isRaw" in MinWidth && MinWidth.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxWidth", id: typeof MaxWidth === "object" && "id" in MaxWidth ? MaxWidth === null || MaxWidth === void 0 ? void 0 : MaxWidth.id : undefined, value: typeof MaxWidth === "object" && "value" in MaxWidth ? MaxWidth === null || MaxWidth === void 0 ? void 0 : MaxWidth.value : MaxWidth, isRaw: typeof MaxWidth === "object" && "isRaw" in MaxWidth && MaxWidth.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinHeight", id: typeof MinHeight === "object" && "id" in MinHeight ? MinHeight === null || MinHeight === void 0 ? void 0 : MinHeight.id : undefined, value: typeof MinHeight === "object" && "value" in MinHeight ? MinHeight === null || MinHeight === void 0 ? void 0 : MinHeight.value : MinHeight, isRaw: typeof MinHeight === "object" && "isRaw" in MinHeight && MinHeight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxHeight", id: typeof MaxHeight === "object" && "id" in MaxHeight ? MaxHeight === null || MaxHeight === void 0 ? void 0 : MaxHeight.id : undefined, value: typeof MaxHeight === "object" && "value" in MaxHeight ? MaxHeight === null || MaxHeight === void 0 ? void 0 : MaxHeight.value : MaxHeight, isRaw: typeof MaxHeight === "object" && "isRaw" in MaxHeight && MaxHeight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Nullable`1[BaseX.float2]]", name: "LastPlacedSize", id: typeof LastPlacedSize === "object" && "id" in LastPlacedSize ? LastPlacedSize === null || LastPlacedSize === void 0 ? void 0 : LastPlacedSize.id : undefined, value: typeof LastPlacedSize === "object" && "value" in LastPlacedSize ? LastPlacedSize === null || LastPlacedSize === void 0 ? void 0 : LastPlacedSize.value : LastPlacedSize, isRaw: typeof LastPlacedSize === "object" && "isRaw" in LastPlacedSize && LastPlacedSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncFieldList`1[BaseX.float2]", name: "PreferredSizes", id: typeof PreferredSizes === "object" && "id" in PreferredSizes ? PreferredSizes === null || PreferredSizes === void 0 ? void 0 : PreferredSizes.id : undefined, value: typeof PreferredSizes === "object" && "value" in PreferredSizes ? PreferredSizes === null || PreferredSizes === void 0 ? void 0 : PreferredSizes.value : PreferredSizes, isRaw: typeof PreferredSizes === "object" && "isRaw" in PreferredSizes && PreferredSizes.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncFieldList`1[BaseX.float2]", name: "AllowedAspectRatios", id: typeof AllowedAspectRatios === "object" && "id" in AllowedAspectRatios ? AllowedAspectRatios === null || AllowedAspectRatios === void 0 ? void 0 : AllowedAspectRatios.id : undefined, value: typeof AllowedAspectRatios === "object" && "value" in AllowedAspectRatios ? AllowedAspectRatios === null || AllowedAspectRatios === void 0 ? void 0 : AllowedAspectRatios.value : AllowedAspectRatios, isRaw: typeof AllowedAspectRatios === "object" && "isRaw" in AllowedAspectRatios && AllowedAspectRatios.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "IsStandalone", id: typeof IsStandalone === "object" && "id" in IsStandalone ? IsStandalone === null || IsStandalone === void 0 ? void 0 : IsStandalone.id : undefined, value: typeof IsStandalone === "object" && "value" in IsStandalone ? IsStandalone === null || IsStandalone === void 0 ? void 0 : IsStandalone.value : IsStandalone, isRaw: typeof IsStandalone === "object" && "isRaw" in IsStandalone && IsStandalone.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Canvas]", name: "_canvas", id: typeof _canvas === "object" && "id" in _canvas ? _canvas === null || _canvas === void 0 ? void 0 : _canvas.id : undefined, value: typeof _canvas === "object" && "value" in _canvas ? _canvas === null || _canvas === void 0 ? void 0 : _canvas.value : _canvas, isRaw: typeof _canvas === "object" && "isRaw" in _canvas && _canvas.isRaw ? true : undefined })] }))); } exports.Facet = Facet; ;