UNPKG

neos-script

Version:

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

23 lines (22 loc) 6.03 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.DualColorImage = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function DualColorImage(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Sprite = props.Sprite, Material = props.Material, Tint = props.Tint, PreserveAspect = props.PreserveAspect, NineSliceSizing = props.NineSliceSizing, InteractionTarget = props.InteractionTarget, __legacyZWrite = props.__legacyZWrite, SecondaryTint = props.SecondaryTint; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.UIX.DualColorImage", 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.AssetRef`1[FrooxEngine.Sprite]", name: "Sprite", id: typeof Sprite === "object" && "id" in Sprite ? Sprite === null || Sprite === void 0 ? void 0 : Sprite.id : undefined, value: typeof Sprite === "object" && "value" in Sprite ? Sprite === null || Sprite === void 0 ? void 0 : Sprite.value : Sprite, isRaw: typeof Sprite === "object" && "isRaw" in Sprite && Sprite.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.Sync`1[BaseX.color]", name: "Tint", id: typeof Tint === "object" && "id" in Tint ? Tint === null || Tint === void 0 ? void 0 : Tint.id : undefined, value: typeof Tint === "object" && "value" in Tint ? Tint === null || Tint === void 0 ? void 0 : Tint.value : Tint, isRaw: typeof Tint === "object" && "isRaw" in Tint && Tint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "PreserveAspect", id: typeof PreserveAspect === "object" && "id" in PreserveAspect ? PreserveAspect === null || PreserveAspect === void 0 ? void 0 : PreserveAspect.id : undefined, value: typeof PreserveAspect === "object" && "value" in PreserveAspect ? PreserveAspect === null || PreserveAspect === void 0 ? void 0 : PreserveAspect.value : PreserveAspect, isRaw: typeof PreserveAspect === "object" && "isRaw" in PreserveAspect && PreserveAspect.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.UIX.NineSliceSizing]", name: "NineSliceSizing", id: typeof NineSliceSizing === "object" && "id" in NineSliceSizing ? NineSliceSizing === null || NineSliceSizing === void 0 ? void 0 : NineSliceSizing.id : undefined, value: typeof NineSliceSizing === "object" && "value" in NineSliceSizing ? NineSliceSizing === null || NineSliceSizing === void 0 ? void 0 : NineSliceSizing.value : NineSliceSizing, isRaw: typeof NineSliceSizing === "object" && "isRaw" in NineSliceSizing && NineSliceSizing.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 }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "__legacyZWrite-ID", id: typeof __legacyZWrite === "object" && "id" in __legacyZWrite ? __legacyZWrite === null || __legacyZWrite === void 0 ? void 0 : __legacyZWrite.id : undefined, value: typeof __legacyZWrite === "object" && "value" in __legacyZWrite ? __legacyZWrite === null || __legacyZWrite === void 0 ? void 0 : __legacyZWrite.value : __legacyZWrite, readOnly: true, isRaw: typeof __legacyZWrite === "object" && "isRaw" in __legacyZWrite && __legacyZWrite.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "SecondaryTint", id: typeof SecondaryTint === "object" && "id" in SecondaryTint ? SecondaryTint === null || SecondaryTint === void 0 ? void 0 : SecondaryTint.id : undefined, value: typeof SecondaryTint === "object" && "value" in SecondaryTint ? SecondaryTint === null || SecondaryTint === void 0 ? void 0 : SecondaryTint.value : SecondaryTint, isRaw: typeof SecondaryTint === "object" && "isRaw" in SecondaryTint && SecondaryTint.isRaw ? true : undefined })] }))); } exports.DualColorImage = DualColorImage; ;