neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 20.5 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.NeosDash = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function NeosDash(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Arc = props.Arc, GapPercent = props.GapPercent, Thickness = props.Thickness, Radius = props.Radius, Width = props.Width, AutoWidth = props.AutoWidth, Tilt = props.Tilt, HighlightRadiusOffset = props.HighlightRadiusOffset, IconOffset = props.IconOffset, HighlightedIconOffset = props.HighlightedIconOffset, ItemTransitionSpeed = props.ItemTransitionSpeed, RelativeIconSize = props.RelativeIconSize, TextSize = props.TextSize, TextTilt = props.TextTilt, InactiveTextRelativeSize = props.InactiveTextRelativeSize, InactiveTextRelativeAlpha = props.InactiveTextRelativeAlpha, RespondToPhysicalTouch = props.RespondToPhysicalTouch, RespondToRemoteTouch = props.RespondToRemoteTouch, ShowLerp = props.ShowLerp, SubitemShowLerp = props.SubitemShowLerp, SubitemsRoot = props.SubitemsRoot, DashEnabled = props.DashEnabled, HighlightedItem = props.HighlightedItem, HighlightingComponent = props.HighlightingComponent, OnItemHover = props.OnItemHover, OnItemPress = props.OnItemPress, OnDisabledItemPress = props.OnDisabledItemPress, HighPriorityIntegration = props.HighPriorityIntegration, _fontMaterial = props._fontMaterial, _items = props._items, _subItems = props._subItems, _itemsRoot = props._itemsRoot;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.NeosDash", 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: "Arc", id: typeof Arc === "object" && "id" in Arc ? Arc === null || Arc === void 0 ? void 0 : Arc.id : undefined, value: typeof Arc === "object" && "value" in Arc ? Arc === null || Arc === void 0 ? void 0 : Arc.value : Arc, isRaw: typeof Arc === "object" && "isRaw" in Arc && Arc.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "GapPercent", id: typeof GapPercent === "object" && "id" in GapPercent ? GapPercent === null || GapPercent === void 0 ? void 0 : GapPercent.id : undefined, value: typeof GapPercent === "object" && "value" in GapPercent ? GapPercent === null || GapPercent === void 0 ? void 0 : GapPercent.value : GapPercent, isRaw: typeof GapPercent === "object" && "isRaw" in GapPercent && GapPercent.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Thickness", id: typeof Thickness === "object" && "id" in Thickness ? Thickness === null || Thickness === void 0 ? void 0 : Thickness.id : undefined, value: typeof Thickness === "object" && "value" in Thickness ? Thickness === null || Thickness === void 0 ? void 0 : Thickness.value : Thickness, isRaw: typeof Thickness === "object" && "isRaw" in Thickness && Thickness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Radius", id: typeof Radius === "object" && "id" in Radius ? Radius === null || Radius === void 0 ? void 0 : Radius.id : undefined, value: typeof Radius === "object" && "value" in Radius ? Radius === null || Radius === void 0 ? void 0 : Radius.value : Radius, isRaw: typeof Radius === "object" && "isRaw" in Radius && Radius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Width", id: typeof Width === "object" && "id" in Width ? Width === null || Width === void 0 ? void 0 : Width.id : undefined, value: typeof Width === "object" && "value" in Width ? Width === null || Width === void 0 ? void 0 : Width.value : Width, isRaw: typeof Width === "object" && "isRaw" in Width && Width.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AutoWidth", id: typeof AutoWidth === "object" && "id" in AutoWidth ? AutoWidth === null || AutoWidth === void 0 ? void 0 : AutoWidth.id : undefined, value: typeof AutoWidth === "object" && "value" in AutoWidth ? AutoWidth === null || AutoWidth === void 0 ? void 0 : AutoWidth.value : AutoWidth, isRaw: typeof AutoWidth === "object" && "isRaw" in AutoWidth && AutoWidth.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Tilt", id: typeof Tilt === "object" && "id" in Tilt ? Tilt === null || Tilt === void 0 ? void 0 : Tilt.id : undefined, value: typeof Tilt === "object" && "value" in Tilt ? Tilt === null || Tilt === void 0 ? void 0 : Tilt.value : Tilt, isRaw: typeof Tilt === "object" && "isRaw" in Tilt && Tilt.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HighlightRadiusOffset", id: typeof HighlightRadiusOffset === "object" && "id" in HighlightRadiusOffset ? HighlightRadiusOffset === null || HighlightRadiusOffset === void 0 ? void 0 : HighlightRadiusOffset.id : undefined, value: typeof HighlightRadiusOffset === "object" && "value" in HighlightRadiusOffset ? HighlightRadiusOffset === null || HighlightRadiusOffset === void 0 ? void 0 : HighlightRadiusOffset.value : HighlightRadiusOffset, isRaw: typeof HighlightRadiusOffset === "object" && "isRaw" in HighlightRadiusOffset && HighlightRadiusOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "IconOffset", id: typeof IconOffset === "object" && "id" in IconOffset ? IconOffset === null || IconOffset === void 0 ? void 0 : IconOffset.id : undefined, value: typeof IconOffset === "object" && "value" in IconOffset ? IconOffset === null || IconOffset === void 0 ? void 0 : IconOffset.value : IconOffset, isRaw: typeof IconOffset === "object" && "isRaw" in IconOffset && IconOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HighlightedIconOffset", id: typeof HighlightedIconOffset === "object" && "id" in HighlightedIconOffset ? HighlightedIconOffset === null || HighlightedIconOffset === void 0 ? void 0 : HighlightedIconOffset.id : undefined, value: typeof HighlightedIconOffset === "object" && "value" in HighlightedIconOffset ? HighlightedIconOffset === null || HighlightedIconOffset === void 0 ? void 0 : HighlightedIconOffset.value : HighlightedIconOffset, isRaw: typeof HighlightedIconOffset === "object" && "isRaw" in HighlightedIconOffset && HighlightedIconOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ItemTransitionSpeed", id: typeof ItemTransitionSpeed === "object" && "id" in ItemTransitionSpeed ? ItemTransitionSpeed === null || ItemTransitionSpeed === void 0 ? void 0 : ItemTransitionSpeed.id : undefined, value: typeof ItemTransitionSpeed === "object" && "value" in ItemTransitionSpeed ? ItemTransitionSpeed === null || ItemTransitionSpeed === void 0 ? void 0 : ItemTransitionSpeed.value : ItemTransitionSpeed, isRaw: typeof ItemTransitionSpeed === "object" && "isRaw" in ItemTransitionSpeed && ItemTransitionSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "RelativeIconSize", id: typeof RelativeIconSize === "object" && "id" in RelativeIconSize ? RelativeIconSize === null || RelativeIconSize === void 0 ? void 0 : RelativeIconSize.id : undefined, value: typeof RelativeIconSize === "object" && "value" in RelativeIconSize ? RelativeIconSize === null || RelativeIconSize === void 0 ? void 0 : RelativeIconSize.value : RelativeIconSize, isRaw: typeof RelativeIconSize === "object" && "isRaw" in RelativeIconSize && RelativeIconSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "TextSize", id: typeof TextSize === "object" && "id" in TextSize ? TextSize === null || TextSize === void 0 ? void 0 : TextSize.id : undefined, value: typeof TextSize === "object" && "value" in TextSize ? TextSize === null || TextSize === void 0 ? void 0 : TextSize.value : TextSize, isRaw: typeof TextSize === "object" && "isRaw" in TextSize && TextSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "TextTilt", id: typeof TextTilt === "object" && "id" in TextTilt ? TextTilt === null || TextTilt === void 0 ? void 0 : TextTilt.id : undefined, value: typeof TextTilt === "object" && "value" in TextTilt ? TextTilt === null || TextTilt === void 0 ? void 0 : TextTilt.value : TextTilt, isRaw: typeof TextTilt === "object" && "isRaw" in TextTilt && TextTilt.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "InactiveTextRelativeSize", id: typeof InactiveTextRelativeSize === "object" && "id" in InactiveTextRelativeSize ? InactiveTextRelativeSize === null || InactiveTextRelativeSize === void 0 ? void 0 : InactiveTextRelativeSize.id : undefined, value: typeof InactiveTextRelativeSize === "object" && "value" in InactiveTextRelativeSize ? InactiveTextRelativeSize === null || InactiveTextRelativeSize === void 0 ? void 0 : InactiveTextRelativeSize.value : InactiveTextRelativeSize, isRaw: typeof InactiveTextRelativeSize === "object" && "isRaw" in InactiveTextRelativeSize && InactiveTextRelativeSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "InactiveTextRelativeAlpha", id: typeof InactiveTextRelativeAlpha === "object" && "id" in InactiveTextRelativeAlpha ? InactiveTextRelativeAlpha === null || InactiveTextRelativeAlpha === void 0 ? void 0 : InactiveTextRelativeAlpha.id : undefined, value: typeof InactiveTextRelativeAlpha === "object" && "value" in InactiveTextRelativeAlpha ? InactiveTextRelativeAlpha === null || InactiveTextRelativeAlpha === void 0 ? void 0 : InactiveTextRelativeAlpha.value : InactiveTextRelativeAlpha, isRaw: typeof InactiveTextRelativeAlpha === "object" && "isRaw" in InactiveTextRelativeAlpha && InactiveTextRelativeAlpha.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "RespondToPhysicalTouch", id: typeof RespondToPhysicalTouch === "object" && "id" in RespondToPhysicalTouch ? RespondToPhysicalTouch === null || RespondToPhysicalTouch === void 0 ? void 0 : RespondToPhysicalTouch.id : undefined, value: typeof RespondToPhysicalTouch === "object" && "value" in RespondToPhysicalTouch ? RespondToPhysicalTouch === null || RespondToPhysicalTouch === void 0 ? void 0 : RespondToPhysicalTouch.value : RespondToPhysicalTouch, isRaw: typeof RespondToPhysicalTouch === "object" && "isRaw" in RespondToPhysicalTouch && RespondToPhysicalTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "RespondToRemoteTouch", id: typeof RespondToRemoteTouch === "object" && "id" in RespondToRemoteTouch ? RespondToRemoteTouch === null || RespondToRemoteTouch === void 0 ? void 0 : RespondToRemoteTouch.id : undefined, value: typeof RespondToRemoteTouch === "object" && "value" in RespondToRemoteTouch ? RespondToRemoteTouch === null || RespondToRemoteTouch === void 0 ? void 0 : RespondToRemoteTouch.value : RespondToRemoteTouch, isRaw: typeof RespondToRemoteTouch === "object" && "isRaw" in RespondToRemoteTouch && RespondToRemoteTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ShowLerp", id: typeof ShowLerp === "object" && "id" in ShowLerp ? ShowLerp === null || ShowLerp === void 0 ? void 0 : ShowLerp.id : undefined, value: typeof ShowLerp === "object" && "value" in ShowLerp ? ShowLerp === null || ShowLerp === void 0 ? void 0 : ShowLerp.value : ShowLerp, isRaw: typeof ShowLerp === "object" && "isRaw" in ShowLerp && ShowLerp.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SubitemShowLerp", id: typeof SubitemShowLerp === "object" && "id" in SubitemShowLerp ? SubitemShowLerp === null || SubitemShowLerp === void 0 ? void 0 : SubitemShowLerp.id : undefined, value: typeof SubitemShowLerp === "object" && "value" in SubitemShowLerp ? SubitemShowLerp === null || SubitemShowLerp === void 0 ? void 0 : SubitemShowLerp.value : SubitemShowLerp, isRaw: typeof SubitemShowLerp === "object" && "isRaw" in SubitemShowLerp && SubitemShowLerp.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosDash+Item]", name: "SubitemsRoot", id: typeof SubitemsRoot === "object" && "id" in SubitemsRoot ? SubitemsRoot === null || SubitemsRoot === void 0 ? void 0 : SubitemsRoot.id : undefined, value: typeof SubitemsRoot === "object" && "value" in SubitemsRoot ? SubitemsRoot === null || SubitemsRoot === void 0 ? void 0 : SubitemsRoot.value : SubitemsRoot, isRaw: typeof SubitemsRoot === "object" && "isRaw" in SubitemsRoot && SubitemsRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "DashEnabled", id: typeof DashEnabled === "object" && "id" in DashEnabled ? DashEnabled === null || DashEnabled === void 0 ? void 0 : DashEnabled.id : undefined, value: typeof DashEnabled === "object" && "value" in DashEnabled ? DashEnabled === null || DashEnabled === void 0 ? void 0 : DashEnabled.value : DashEnabled, isRaw: typeof DashEnabled === "object" && "isRaw" in DashEnabled && DashEnabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosDash+Item]", name: "HighlightedItem", id: typeof HighlightedItem === "object" && "id" in HighlightedItem ? HighlightedItem === null || HighlightedItem === void 0 ? void 0 : HighlightedItem.id : undefined, value: typeof HighlightedItem === "object" && "value" in HighlightedItem ? HighlightedItem === null || HighlightedItem === void 0 ? void 0 : HighlightedItem.value : HighlightedItem, isRaw: typeof HighlightedItem === "object" && "isRaw" in HighlightedItem && HighlightedItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Component]", name: "HighlightingComponent", id: typeof HighlightingComponent === "object" && "id" in HighlightingComponent ? HighlightingComponent === null || HighlightingComponent === void 0 ? void 0 : HighlightingComponent.id : undefined, value: typeof HighlightingComponent === "object" && "value" in HighlightingComponent ? HighlightingComponent === null || HighlightingComponent === void 0 ? void 0 : HighlightingComponent.value : HighlightingComponent, isRaw: typeof HighlightingComponent === "object" && "isRaw" in HighlightingComponent && HighlightingComponent.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[FrooxEngine.DashItemEventHandler]", name: "OnItemHover", id: typeof OnItemHover === "object" && "id" in OnItemHover ? OnItemHover === null || OnItemHover === void 0 ? void 0 : OnItemHover.id : undefined, value: typeof OnItemHover === "object" && "value" in OnItemHover ? OnItemHover === null || OnItemHover === void 0 ? void 0 : OnItemHover.value : OnItemHover, isRaw: typeof OnItemHover === "object" && "isRaw" in OnItemHover && OnItemHover.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[FrooxEngine.DashItemEventHandler]", name: "OnItemPress", id: typeof OnItemPress === "object" && "id" in OnItemPress ? OnItemPress === null || OnItemPress === void 0 ? void 0 : OnItemPress.id : undefined, value: typeof OnItemPress === "object" && "value" in OnItemPress ? OnItemPress === null || OnItemPress === void 0 ? void 0 : OnItemPress.value : OnItemPress, isRaw: typeof OnItemPress === "object" && "isRaw" in OnItemPress && OnItemPress.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[FrooxEngine.DashItemEventHandler]", name: "OnDisabledItemPress", id: typeof OnDisabledItemPress === "object" && "id" in OnDisabledItemPress ? OnDisabledItemPress === null || OnDisabledItemPress === void 0 ? void 0 : OnDisabledItemPress.id : undefined, value: typeof OnDisabledItemPress === "object" && "value" in OnDisabledItemPress ? OnDisabledItemPress === null || OnDisabledItemPress === void 0 ? void 0 : OnDisabledItemPress.value : OnDisabledItemPress, isRaw: typeof OnDisabledItemPress === "object" && "isRaw" in OnDisabledItemPress && OnDisabledItemPress.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "HighPriorityIntegration", id: typeof HighPriorityIntegration === "object" && "id" in HighPriorityIntegration ? HighPriorityIntegration === null || HighPriorityIntegration === void 0 ? void 0 : HighPriorityIntegration.id : undefined, value: typeof HighPriorityIntegration === "object" && "value" in HighPriorityIntegration ? HighPriorityIntegration === null || HighPriorityIntegration === void 0 ? void 0 : HighPriorityIntegration.value : HighPriorityIntegration, isRaw: typeof HighPriorityIntegration === "object" && "isRaw" in HighPriorityIntegration && HighPriorityIntegration.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.TextUnlitMaterial]", name: "_fontMaterial", id: typeof _fontMaterial === "object" && "id" in _fontMaterial ? _fontMaterial === null || _fontMaterial === void 0 ? void 0 : _fontMaterial.id : undefined, value: typeof _fontMaterial === "object" && "value" in _fontMaterial ? _fontMaterial === null || _fontMaterial === void 0 ? void 0 : _fontMaterial.value : _fontMaterial, isRaw: typeof _fontMaterial === "object" && "isRaw" in _fontMaterial && _fontMaterial.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.NeosDash+Item]", name: "_items", id: typeof _items === "object" && "id" in _items ? _items === null || _items === void 0 ? void 0 : _items.id : undefined, value: typeof _items === "object" && "value" in _items ? _items === null || _items === void 0 ? void 0 : _items.value : _items, isRaw: typeof _items === "object" && "isRaw" in _items && _items.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.NeosDash+Item]", name: "_subItems", id: typeof _subItems === "object" && "id" in _subItems ? _subItems === null || _subItems === void 0 ? void 0 : _subItems.id : undefined, value: typeof _subItems === "object" && "value" in _subItems ? _subItems === null || _subItems === void 0 ? void 0 : _subItems.value : _subItems, isRaw: typeof _subItems === "object" && "isRaw" in _subItems && _subItems.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_itemsRoot", id: typeof _itemsRoot === "object" && "id" in _itemsRoot ? _itemsRoot === null || _itemsRoot === void 0 ? void 0 : _itemsRoot.id : undefined, value: typeof _itemsRoot === "object" && "value" in _itemsRoot ? _itemsRoot === null || _itemsRoot === void 0 ? void 0 : _itemsRoot.value : _itemsRoot, isRaw: typeof _itemsRoot === "object" && "isRaw" in _itemsRoot && _itemsRoot.isRaw ? true : undefined })] })));
}
exports.NeosDash = NeosDash;
;