UNPKG

neos-script

Version:

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

23 lines (22 loc) 7.6 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.RawGraphic = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function RawGraphic(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Material = props.Material, PropertyBlock = props.PropertyBlock, FillRect = props.FillRect, Color = props.Color, UVRect = props.UVRect, Orientation = props.Orientation, Normal = props.Normal, Tangent = props.Tangent, HideWithNoMaterial = props.HideWithNoMaterial, PreserveUVAspectRatio = props.PreserveUVAspectRatio, InteractionTarget = props.InteractionTarget; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.UIX.RawGraphic", 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.AssetRef`1[FrooxEngine.Material]", name: "Material", id: typeof Material === "object" && "id" in Material ? Material === null || Material === void 0 ? void 0 : Material.id : undefined, value: typeof Material === "object" && "value" in Material ? Material === null || Material === void 0 ? void 0 : Material.value : Material, isRaw: typeof Material === "object" && "isRaw" in Material && Material.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.MaterialPropertyBlock]", name: "PropertyBlock", id: typeof PropertyBlock === "object" && "id" in PropertyBlock ? PropertyBlock === null || PropertyBlock === void 0 ? void 0 : PropertyBlock.id : undefined, value: typeof PropertyBlock === "object" && "value" in PropertyBlock ? PropertyBlock === null || PropertyBlock === void 0 ? void 0 : PropertyBlock.value : PropertyBlock, isRaw: typeof PropertyBlock === "object" && "isRaw" in PropertyBlock && PropertyBlock.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.Rect]", name: "FillRect", id: typeof FillRect === "object" && "id" in FillRect ? FillRect === null || FillRect === void 0 ? void 0 : FillRect.id : undefined, value: typeof FillRect === "object" && "value" in FillRect ? FillRect === null || FillRect === void 0 ? void 0 : FillRect.value : FillRect, isRaw: typeof FillRect === "object" && "isRaw" in FillRect && FillRect.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "Color", id: typeof Color === "object" && "id" in Color ? Color === null || Color === void 0 ? void 0 : Color.id : undefined, value: typeof Color === "object" && "value" in Color ? Color === null || Color === void 0 ? void 0 : Color.value : Color, isRaw: typeof Color === "object" && "isRaw" in Color && Color.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.Rect]", name: "UVRect", id: typeof UVRect === "object" && "id" in UVRect ? UVRect === null || UVRect === void 0 ? void 0 : UVRect.id : undefined, value: typeof UVRect === "object" && "value" in UVRect ? UVRect === null || UVRect === void 0 ? void 0 : UVRect.value : UVRect, isRaw: typeof UVRect === "object" && "isRaw" in UVRect && UVRect.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.RectOrientation]", name: "Orientation", id: typeof Orientation === "object" && "id" in Orientation ? Orientation === null || Orientation === void 0 ? void 0 : Orientation.id : undefined, value: typeof Orientation === "object" && "value" in Orientation ? Orientation === null || Orientation === void 0 ? void 0 : Orientation.value : Orientation, isRaw: typeof Orientation === "object" && "isRaw" in Orientation && Orientation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Nullable`1[BaseX.float3]]", name: "Normal", id: typeof Normal === "object" && "id" in Normal ? Normal === null || Normal === void 0 ? void 0 : Normal.id : undefined, value: typeof Normal === "object" && "value" in Normal ? Normal === null || Normal === void 0 ? void 0 : Normal.value : Normal, isRaw: typeof Normal === "object" && "isRaw" in Normal && Normal.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Nullable`1[BaseX.float4]]", name: "Tangent", id: typeof Tangent === "object" && "id" in Tangent ? Tangent === null || Tangent === void 0 ? void 0 : Tangent.id : undefined, value: typeof Tangent === "object" && "value" in Tangent ? Tangent === null || Tangent === void 0 ? void 0 : Tangent.value : Tangent, isRaw: typeof Tangent === "object" && "isRaw" in Tangent && Tangent.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "HideWithNoMaterial", id: typeof HideWithNoMaterial === "object" && "id" in HideWithNoMaterial ? HideWithNoMaterial === null || HideWithNoMaterial === void 0 ? void 0 : HideWithNoMaterial.id : undefined, value: typeof HideWithNoMaterial === "object" && "value" in HideWithNoMaterial ? HideWithNoMaterial === null || HideWithNoMaterial === void 0 ? void 0 : HideWithNoMaterial.value : HideWithNoMaterial, isRaw: typeof HideWithNoMaterial === "object" && "isRaw" in HideWithNoMaterial && HideWithNoMaterial.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "PreserveUVAspectRatio", id: typeof PreserveUVAspectRatio === "object" && "id" in PreserveUVAspectRatio ? PreserveUVAspectRatio === null || PreserveUVAspectRatio === void 0 ? void 0 : PreserveUVAspectRatio.id : undefined, value: typeof PreserveUVAspectRatio === "object" && "value" in PreserveUVAspectRatio ? PreserveUVAspectRatio === null || PreserveUVAspectRatio === void 0 ? void 0 : PreserveUVAspectRatio.value : PreserveUVAspectRatio, isRaw: typeof PreserveUVAspectRatio === "object" && "isRaw" in PreserveUVAspectRatio && PreserveUVAspectRatio.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "InteractionTarget", id: typeof InteractionTarget === "object" && "id" in InteractionTarget ? InteractionTarget === null || InteractionTarget === void 0 ? void 0 : InteractionTarget.id : undefined, value: typeof InteractionTarget === "object" && "value" in InteractionTarget ? InteractionTarget === null || InteractionTarget === void 0 ? void 0 : InteractionTarget.value : InteractionTarget, isRaw: typeof InteractionTarget === "object" && "isRaw" in InteractionTarget && InteractionTarget.isRaw ? true : undefined })] }))); } exports.RawGraphic = RawGraphic; ;