neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 8.4 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.NeosHorizontalChoiceBar = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function NeosHorizontalChoiceBar(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Style = props.Style, AcceptPhysicalTouch = props.AcceptPhysicalTouch, AcceptRemoteTouch = props.AcceptRemoteTouch, _items = props._items, Width = props.Width, Height = props.Height, Thickness = props.Thickness, Spacing = props.Spacing, Slant = props.Slant, Symmetrical = props.Symmetrical, SegmentTouched = props.SegmentTouched, _root = props._root, _rootScale = props._rootScale;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.NeosHorizontalChoiceBar", 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.RelayRef`1[FrooxEngine.NeosUIStyle]", name: "Style", id: typeof Style === "object" && "id" in Style ? Style === null || Style === void 0 ? void 0 : Style.id : undefined, value: typeof Style === "object" && "value" in Style ? Style === null || Style === void 0 ? void 0 : Style.value : Style, isRaw: typeof Style === "object" && "isRaw" in Style && Style.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AcceptPhysicalTouch", id: typeof AcceptPhysicalTouch === "object" && "id" in AcceptPhysicalTouch ? AcceptPhysicalTouch === null || AcceptPhysicalTouch === void 0 ? void 0 : AcceptPhysicalTouch.id : undefined, value: typeof AcceptPhysicalTouch === "object" && "value" in AcceptPhysicalTouch ? AcceptPhysicalTouch === null || AcceptPhysicalTouch === void 0 ? void 0 : AcceptPhysicalTouch.value : AcceptPhysicalTouch, isRaw: typeof AcceptPhysicalTouch === "object" && "isRaw" in AcceptPhysicalTouch && AcceptPhysicalTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AcceptRemoteTouch", id: typeof AcceptRemoteTouch === "object" && "id" in AcceptRemoteTouch ? AcceptRemoteTouch === null || AcceptRemoteTouch === void 0 ? void 0 : AcceptRemoteTouch.id : undefined, value: typeof AcceptRemoteTouch === "object" && "value" in AcceptRemoteTouch ? AcceptRemoteTouch === null || AcceptRemoteTouch === void 0 ? void 0 : AcceptRemoteTouch.value : AcceptRemoteTouch, isRaw: typeof AcceptRemoteTouch === "object" && "isRaw" in AcceptRemoteTouch && AcceptRemoteTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.NeosHorizontalChoiceBar+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.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.Single]", name: "Height", id: typeof Height === "object" && "id" in Height ? Height === null || Height === void 0 ? void 0 : Height.id : undefined, value: typeof Height === "object" && "value" in Height ? Height === null || Height === void 0 ? void 0 : Height.value : Height, isRaw: typeof Height === "object" && "isRaw" in Height && Height.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: "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, isRaw: typeof Spacing === "object" && "isRaw" in Spacing && Spacing.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Slant", id: typeof Slant === "object" && "id" in Slant ? Slant === null || Slant === void 0 ? void 0 : Slant.id : undefined, value: typeof Slant === "object" && "value" in Slant ? Slant === null || Slant === void 0 ? void 0 : Slant.value : Slant, isRaw: typeof Slant === "object" && "isRaw" in Slant && Slant.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Symmetrical", id: typeof Symmetrical === "object" && "id" in Symmetrical ? Symmetrical === null || Symmetrical === void 0 ? void 0 : Symmetrical.id : undefined, value: typeof Symmetrical === "object" && "value" in Symmetrical ? Symmetrical === null || Symmetrical === void 0 ? void 0 : Symmetrical.value : Symmetrical, isRaw: typeof Symmetrical === "object" && "isRaw" in Symmetrical && Symmetrical.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[FrooxEngine.NeosHorizontalChoiceBar+SegmentTouchEvent]", name: "SegmentTouched", id: typeof SegmentTouched === "object" && "id" in SegmentTouched ? SegmentTouched === null || SegmentTouched === void 0 ? void 0 : SegmentTouched.id : undefined, value: typeof SegmentTouched === "object" && "value" in SegmentTouched ? SegmentTouched === null || SegmentTouched === void 0 ? void 0 : SegmentTouched.value : SegmentTouched, isRaw: typeof SegmentTouched === "object" && "isRaw" in SegmentTouched && SegmentTouched.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_root", id: typeof _root === "object" && "id" in _root ? _root === null || _root === void 0 ? void 0 : _root.id : undefined, value: typeof _root === "object" && "value" in _root ? _root === null || _root === void 0 ? void 0 : _root.value : _root, isRaw: typeof _root === "object" && "isRaw" in _root && _root.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_rootScale", id: typeof _rootScale === "object" && "id" in _rootScale ? _rootScale === null || _rootScale === void 0 ? void 0 : _rootScale.id : undefined, value: typeof _rootScale === "object" && "value" in _rootScale ? _rootScale === null || _rootScale === void 0 ? void 0 : _rootScale.value : _rootScale, isRaw: typeof _rootScale === "object" && "isRaw" in _rootScale && _rootScale.isRaw ? true : undefined })] })));
}
exports.NeosHorizontalChoiceBar = NeosHorizontalChoiceBar;
;