UNPKG

neos-script

Version:

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

23 lines (22 loc) 9.87 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.DistanceMeter = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function DistanceMeter(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Anchors = props.Anchors, _legacyAnchor0 = props._legacyAnchor0, _legacyAnchor1 = props._legacyAnchor1, FormatUnit = props.FormatUnit, FormatNumber = props.FormatNumber, CompoundFormatUnits = props.CompoundFormatUnits, CompoundUseLongNames = props.CompoundUseLongNames, CompoundOverrideNames = props.CompoundOverrideNames, CompoundDiscardLastFraction = props.CompoundDiscardLastFraction, CompoundSeparator = props.CompoundSeparator, CompoundZeroHandling = props.CompoundZeroHandling, MeasurementSpace = props.MeasurementSpace, DistanceText = props.DistanceText; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.DistanceMeter", 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.SyncRefList`1[FrooxEngine.Slot]", name: "Anchors", id: typeof Anchors === "object" && "id" in Anchors ? Anchors === null || Anchors === void 0 ? void 0 : Anchors.id : undefined, value: typeof Anchors === "object" && "value" in Anchors ? Anchors === null || Anchors === void 0 ? void 0 : Anchors.value : Anchors, isRaw: typeof Anchors === "object" && "isRaw" in Anchors && Anchors.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_legacyAnchor0-ID", id: typeof _legacyAnchor0 === "object" && "id" in _legacyAnchor0 ? _legacyAnchor0 === null || _legacyAnchor0 === void 0 ? void 0 : _legacyAnchor0.id : undefined, value: typeof _legacyAnchor0 === "object" && "value" in _legacyAnchor0 ? _legacyAnchor0 === null || _legacyAnchor0 === void 0 ? void 0 : _legacyAnchor0.value : _legacyAnchor0, readOnly: true, isRaw: typeof _legacyAnchor0 === "object" && "isRaw" in _legacyAnchor0 && _legacyAnchor0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_legacyAnchor1-ID", id: typeof _legacyAnchor1 === "object" && "id" in _legacyAnchor1 ? _legacyAnchor1 === null || _legacyAnchor1 === void 0 ? void 0 : _legacyAnchor1.id : undefined, value: typeof _legacyAnchor1 === "object" && "value" in _legacyAnchor1 ? _legacyAnchor1 === null || _legacyAnchor1 === void 0 ? void 0 : _legacyAnchor1.value : _legacyAnchor1, readOnly: true, isRaw: typeof _legacyAnchor1 === "object" && "isRaw" in _legacyAnchor1 && _legacyAnchor1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "FormatUnit", id: typeof FormatUnit === "object" && "id" in FormatUnit ? FormatUnit === null || FormatUnit === void 0 ? void 0 : FormatUnit.id : undefined, value: typeof FormatUnit === "object" && "value" in FormatUnit ? FormatUnit === null || FormatUnit === void 0 ? void 0 : FormatUnit.value : FormatUnit, isRaw: typeof FormatUnit === "object" && "isRaw" in FormatUnit && FormatUnit.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "FormatNumber", id: typeof FormatNumber === "object" && "id" in FormatNumber ? FormatNumber === null || FormatNumber === void 0 ? void 0 : FormatNumber.id : undefined, value: typeof FormatNumber === "object" && "value" in FormatNumber ? FormatNumber === null || FormatNumber === void 0 ? void 0 : FormatNumber.value : FormatNumber, isRaw: typeof FormatNumber === "object" && "isRaw" in FormatNumber && FormatNumber.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncFieldList`1[System.String]", name: "CompoundFormatUnits", id: typeof CompoundFormatUnits === "object" && "id" in CompoundFormatUnits ? CompoundFormatUnits === null || CompoundFormatUnits === void 0 ? void 0 : CompoundFormatUnits.id : undefined, value: typeof CompoundFormatUnits === "object" && "value" in CompoundFormatUnits ? CompoundFormatUnits === null || CompoundFormatUnits === void 0 ? void 0 : CompoundFormatUnits.value : CompoundFormatUnits, isRaw: typeof CompoundFormatUnits === "object" && "isRaw" in CompoundFormatUnits && CompoundFormatUnits.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "CompoundUseLongNames", id: typeof CompoundUseLongNames === "object" && "id" in CompoundUseLongNames ? CompoundUseLongNames === null || CompoundUseLongNames === void 0 ? void 0 : CompoundUseLongNames.id : undefined, value: typeof CompoundUseLongNames === "object" && "value" in CompoundUseLongNames ? CompoundUseLongNames === null || CompoundUseLongNames === void 0 ? void 0 : CompoundUseLongNames.value : CompoundUseLongNames, isRaw: typeof CompoundUseLongNames === "object" && "isRaw" in CompoundUseLongNames && CompoundUseLongNames.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "CompoundOverrideNames", id: typeof CompoundOverrideNames === "object" && "id" in CompoundOverrideNames ? CompoundOverrideNames === null || CompoundOverrideNames === void 0 ? void 0 : CompoundOverrideNames.id : undefined, value: typeof CompoundOverrideNames === "object" && "value" in CompoundOverrideNames ? CompoundOverrideNames === null || CompoundOverrideNames === void 0 ? void 0 : CompoundOverrideNames.value : CompoundOverrideNames, isRaw: typeof CompoundOverrideNames === "object" && "isRaw" in CompoundOverrideNames && CompoundOverrideNames.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "CompoundDiscardLastFraction", id: typeof CompoundDiscardLastFraction === "object" && "id" in CompoundDiscardLastFraction ? CompoundDiscardLastFraction === null || CompoundDiscardLastFraction === void 0 ? void 0 : CompoundDiscardLastFraction.id : undefined, value: typeof CompoundDiscardLastFraction === "object" && "value" in CompoundDiscardLastFraction ? CompoundDiscardLastFraction === null || CompoundDiscardLastFraction === void 0 ? void 0 : CompoundDiscardLastFraction.value : CompoundDiscardLastFraction, isRaw: typeof CompoundDiscardLastFraction === "object" && "isRaw" in CompoundDiscardLastFraction && CompoundDiscardLastFraction.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "CompoundSeparator", id: typeof CompoundSeparator === "object" && "id" in CompoundSeparator ? CompoundSeparator === null || CompoundSeparator === void 0 ? void 0 : CompoundSeparator.id : undefined, value: typeof CompoundSeparator === "object" && "value" in CompoundSeparator ? CompoundSeparator === null || CompoundSeparator === void 0 ? void 0 : CompoundSeparator.value : CompoundSeparator, isRaw: typeof CompoundSeparator === "object" && "isRaw" in CompoundSeparator && CompoundSeparator.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[QuantityX.CompoundZeroHandling]", name: "CompoundZeroHandling", id: typeof CompoundZeroHandling === "object" && "id" in CompoundZeroHandling ? CompoundZeroHandling === null || CompoundZeroHandling === void 0 ? void 0 : CompoundZeroHandling.id : undefined, value: typeof CompoundZeroHandling === "object" && "value" in CompoundZeroHandling ? CompoundZeroHandling === null || CompoundZeroHandling === void 0 ? void 0 : CompoundZeroHandling.value : CompoundZeroHandling, isRaw: typeof CompoundZeroHandling === "object" && "isRaw" in CompoundZeroHandling && CompoundZeroHandling.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RootSpace", name: "MeasurementSpace", id: typeof MeasurementSpace === "object" && "id" in MeasurementSpace ? MeasurementSpace === null || MeasurementSpace === void 0 ? void 0 : MeasurementSpace.id : undefined, value: typeof MeasurementSpace === "object" && "value" in MeasurementSpace ? MeasurementSpace === null || MeasurementSpace === void 0 ? void 0 : MeasurementSpace.value : MeasurementSpace, isRaw: typeof MeasurementSpace === "object" && "isRaw" in MeasurementSpace && MeasurementSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.String]", name: "DistanceText", id: typeof DistanceText === "object" && "id" in DistanceText ? DistanceText === null || DistanceText === void 0 ? void 0 : DistanceText.id : undefined, value: typeof DistanceText === "object" && "value" in DistanceText ? DistanceText === null || DistanceText === void 0 ? void 0 : DistanceText.value : DistanceText, isRaw: typeof DistanceText === "object" && "isRaw" in DistanceText && DistanceText.isRaw ? true : undefined })] }))); } exports.DistanceMeter = DistanceMeter; ;