UNPKG

neos-script

Version:

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

23 lines (22 loc) 18 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.SlotGizmo = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function SlotGizmo(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, GizmoReplaced = props.GizmoReplaced, _isFolded = props._isFolded, _activeGizmo = props._activeGizmo, _targetSlot = props._targetSlot, _positionDrive = props._positionDrive, _scaleDrive = props._scaleDrive, _boundsMesh = props._boundsMesh, _boundsRoot = props._boundsRoot, _boundsRotation = props._boundsRotation, _boundsOffset = props._boundsOffset, _boundsActive = props._boundsActive, _buttonsSlot = props._buttonsSlot, _buttonsOffset = props._buttonsOffset, _buttonsRotation = props._buttonsRotation, _buttonsActive = props._buttonsActive, _nameText = props._nameText, _nameOffset = props._nameOffset, _nameRotation = props._nameRotation, _nameActive = props._nameActive, _xPosSegment = props._xPosSegment, _yPosSegment = props._yPosSegment, _zPosSegment = props._zPosSegment, _boundsAnchorPositions = props._boundsAnchorPositions, _rootAnchor = props._rootAnchor, _translationGizmo = props._translationGizmo, _rotationGizmo = props._rotationGizmo, _scaleGizmo = props._scaleGizmo, _isLocalSpace = props._isLocalSpace; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.SlotGizmo", 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.SyncDelegate`1[FrooxEngine.SlotGizmo+SlotGizmoReplacement]", name: "GizmoReplaced", id: typeof GizmoReplaced === "object" && "id" in GizmoReplaced ? GizmoReplaced === null || GizmoReplaced === void 0 ? void 0 : GizmoReplaced.id : undefined, value: typeof GizmoReplaced === "object" && "value" in GizmoReplaced ? GizmoReplaced === null || GizmoReplaced === void 0 ? void 0 : GizmoReplaced.value : GizmoReplaced, isRaw: typeof GizmoReplaced === "object" && "isRaw" in GizmoReplaced && GizmoReplaced.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "_isFolded", id: typeof _isFolded === "object" && "id" in _isFolded ? _isFolded === null || _isFolded === void 0 ? void 0 : _isFolded.id : undefined, value: typeof _isFolded === "object" && "value" in _isFolded ? _isFolded === null || _isFolded === void 0 ? void 0 : _isFolded.value : _isFolded, isRaw: typeof _isFolded === "object" && "isRaw" in _isFolded && _isFolded.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Worker]", name: "_activeGizmo", id: typeof _activeGizmo === "object" && "id" in _activeGizmo ? _activeGizmo === null || _activeGizmo === void 0 ? void 0 : _activeGizmo.id : undefined, value: typeof _activeGizmo === "object" && "value" in _activeGizmo ? _activeGizmo === null || _activeGizmo === void 0 ? void 0 : _activeGizmo.value : _activeGizmo, isRaw: typeof _activeGizmo === "object" && "isRaw" in _activeGizmo && _activeGizmo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.TransformRelayRef", name: "_targetSlot", id: typeof _targetSlot === "object" && "id" in _targetSlot ? _targetSlot === null || _targetSlot === void 0 ? void 0 : _targetSlot.id : undefined, value: typeof _targetSlot === "object" && "value" in _targetSlot ? _targetSlot === null || _targetSlot === void 0 ? void 0 : _targetSlot.value : _targetSlot, isRaw: typeof _targetSlot === "object" && "isRaw" in _targetSlot && _targetSlot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_positionDrive", id: typeof _positionDrive === "object" && "id" in _positionDrive ? _positionDrive === null || _positionDrive === void 0 ? void 0 : _positionDrive.id : undefined, value: typeof _positionDrive === "object" && "value" in _positionDrive ? _positionDrive === null || _positionDrive === void 0 ? void 0 : _positionDrive.value : _positionDrive, isRaw: typeof _positionDrive === "object" && "isRaw" in _positionDrive && _positionDrive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_scaleDrive", id: typeof _scaleDrive === "object" && "id" in _scaleDrive ? _scaleDrive === null || _scaleDrive === void 0 ? void 0 : _scaleDrive.id : undefined, value: typeof _scaleDrive === "object" && "value" in _scaleDrive ? _scaleDrive === null || _scaleDrive === void 0 ? void 0 : _scaleDrive.value : _scaleDrive, isRaw: typeof _scaleDrive === "object" && "isRaw" in _scaleDrive && _scaleDrive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.TubeBoxMesh]", name: "_boundsMesh", id: typeof _boundsMesh === "object" && "id" in _boundsMesh ? _boundsMesh === null || _boundsMesh === void 0 ? void 0 : _boundsMesh.id : undefined, value: typeof _boundsMesh === "object" && "value" in _boundsMesh ? _boundsMesh === null || _boundsMesh === void 0 ? void 0 : _boundsMesh.value : _boundsMesh, isRaw: typeof _boundsMesh === "object" && "isRaw" in _boundsMesh && _boundsMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_boundsRoot", id: typeof _boundsRoot === "object" && "id" in _boundsRoot ? _boundsRoot === null || _boundsRoot === void 0 ? void 0 : _boundsRoot.id : undefined, value: typeof _boundsRoot === "object" && "value" in _boundsRoot ? _boundsRoot === null || _boundsRoot === void 0 ? void 0 : _boundsRoot.value : _boundsRoot, isRaw: typeof _boundsRoot === "object" && "isRaw" in _boundsRoot && _boundsRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_boundsRotation", id: typeof _boundsRotation === "object" && "id" in _boundsRotation ? _boundsRotation === null || _boundsRotation === void 0 ? void 0 : _boundsRotation.id : undefined, value: typeof _boundsRotation === "object" && "value" in _boundsRotation ? _boundsRotation === null || _boundsRotation === void 0 ? void 0 : _boundsRotation.value : _boundsRotation, isRaw: typeof _boundsRotation === "object" && "isRaw" in _boundsRotation && _boundsRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_boundsOffset", id: typeof _boundsOffset === "object" && "id" in _boundsOffset ? _boundsOffset === null || _boundsOffset === void 0 ? void 0 : _boundsOffset.id : undefined, value: typeof _boundsOffset === "object" && "value" in _boundsOffset ? _boundsOffset === null || _boundsOffset === void 0 ? void 0 : _boundsOffset.value : _boundsOffset, isRaw: typeof _boundsOffset === "object" && "isRaw" in _boundsOffset && _boundsOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_boundsActive", id: typeof _boundsActive === "object" && "id" in _boundsActive ? _boundsActive === null || _boundsActive === void 0 ? void 0 : _boundsActive.id : undefined, value: typeof _boundsActive === "object" && "value" in _boundsActive ? _boundsActive === null || _boundsActive === void 0 ? void 0 : _boundsActive.value : _boundsActive, isRaw: typeof _boundsActive === "object" && "isRaw" in _boundsActive && _boundsActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_buttonsSlot", id: typeof _buttonsSlot === "object" && "id" in _buttonsSlot ? _buttonsSlot === null || _buttonsSlot === void 0 ? void 0 : _buttonsSlot.id : undefined, value: typeof _buttonsSlot === "object" && "value" in _buttonsSlot ? _buttonsSlot === null || _buttonsSlot === void 0 ? void 0 : _buttonsSlot.value : _buttonsSlot, isRaw: typeof _buttonsSlot === "object" && "isRaw" in _buttonsSlot && _buttonsSlot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_buttonsOffset", id: typeof _buttonsOffset === "object" && "id" in _buttonsOffset ? _buttonsOffset === null || _buttonsOffset === void 0 ? void 0 : _buttonsOffset.id : undefined, value: typeof _buttonsOffset === "object" && "value" in _buttonsOffset ? _buttonsOffset === null || _buttonsOffset === void 0 ? void 0 : _buttonsOffset.value : _buttonsOffset, isRaw: typeof _buttonsOffset === "object" && "isRaw" in _buttonsOffset && _buttonsOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_buttonsRotation", id: typeof _buttonsRotation === "object" && "id" in _buttonsRotation ? _buttonsRotation === null || _buttonsRotation === void 0 ? void 0 : _buttonsRotation.id : undefined, value: typeof _buttonsRotation === "object" && "value" in _buttonsRotation ? _buttonsRotation === null || _buttonsRotation === void 0 ? void 0 : _buttonsRotation.value : _buttonsRotation, isRaw: typeof _buttonsRotation === "object" && "isRaw" in _buttonsRotation && _buttonsRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_buttonsActive", id: typeof _buttonsActive === "object" && "id" in _buttonsActive ? _buttonsActive === null || _buttonsActive === void 0 ? void 0 : _buttonsActive.id : undefined, value: typeof _buttonsActive === "object" && "value" in _buttonsActive ? _buttonsActive === null || _buttonsActive === void 0 ? void 0 : _buttonsActive.value : _buttonsActive, isRaw: typeof _buttonsActive === "object" && "isRaw" in _buttonsActive && _buttonsActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.String]", name: "_nameText", id: typeof _nameText === "object" && "id" in _nameText ? _nameText === null || _nameText === void 0 ? void 0 : _nameText.id : undefined, value: typeof _nameText === "object" && "value" in _nameText ? _nameText === null || _nameText === void 0 ? void 0 : _nameText.value : _nameText, isRaw: typeof _nameText === "object" && "isRaw" in _nameText && _nameText.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_nameOffset", id: typeof _nameOffset === "object" && "id" in _nameOffset ? _nameOffset === null || _nameOffset === void 0 ? void 0 : _nameOffset.id : undefined, value: typeof _nameOffset === "object" && "value" in _nameOffset ? _nameOffset === null || _nameOffset === void 0 ? void 0 : _nameOffset.value : _nameOffset, isRaw: typeof _nameOffset === "object" && "isRaw" in _nameOffset && _nameOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_nameRotation", id: typeof _nameRotation === "object" && "id" in _nameRotation ? _nameRotation === null || _nameRotation === void 0 ? void 0 : _nameRotation.id : undefined, value: typeof _nameRotation === "object" && "value" in _nameRotation ? _nameRotation === null || _nameRotation === void 0 ? void 0 : _nameRotation.value : _nameRotation, isRaw: typeof _nameRotation === "object" && "isRaw" in _nameRotation && _nameRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_nameActive", id: typeof _nameActive === "object" && "id" in _nameActive ? _nameActive === null || _nameActive === void 0 ? void 0 : _nameActive.id : undefined, value: typeof _nameActive === "object" && "value" in _nameActive ? _nameActive === null || _nameActive === void 0 ? void 0 : _nameActive.value : _nameActive, isRaw: typeof _nameActive === "object" && "isRaw" in _nameActive && _nameActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.SegmentMesh]", name: "_xPosSegment", id: typeof _xPosSegment === "object" && "id" in _xPosSegment ? _xPosSegment === null || _xPosSegment === void 0 ? void 0 : _xPosSegment.id : undefined, value: typeof _xPosSegment === "object" && "value" in _xPosSegment ? _xPosSegment === null || _xPosSegment === void 0 ? void 0 : _xPosSegment.value : _xPosSegment, isRaw: typeof _xPosSegment === "object" && "isRaw" in _xPosSegment && _xPosSegment.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.SegmentMesh]", name: "_yPosSegment", id: typeof _yPosSegment === "object" && "id" in _yPosSegment ? _yPosSegment === null || _yPosSegment === void 0 ? void 0 : _yPosSegment.id : undefined, value: typeof _yPosSegment === "object" && "value" in _yPosSegment ? _yPosSegment === null || _yPosSegment === void 0 ? void 0 : _yPosSegment.value : _yPosSegment, isRaw: typeof _yPosSegment === "object" && "isRaw" in _yPosSegment && _yPosSegment.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.SegmentMesh]", name: "_zPosSegment", id: typeof _zPosSegment === "object" && "id" in _zPosSegment ? _zPosSegment === null || _zPosSegment === void 0 ? void 0 : _zPosSegment.id : undefined, value: typeof _zPosSegment === "object" && "value" in _zPosSegment ? _zPosSegment === null || _zPosSegment === void 0 ? void 0 : _zPosSegment.value : _zPosSegment, isRaw: typeof _zPosSegment === "object" && "isRaw" in _zPosSegment && _zPosSegment.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.SlotGizmo+AnchorInfo]", name: "_boundsAnchorPositions", id: typeof _boundsAnchorPositions === "object" && "id" in _boundsAnchorPositions ? _boundsAnchorPositions === null || _boundsAnchorPositions === void 0 ? void 0 : _boundsAnchorPositions.id : undefined, value: typeof _boundsAnchorPositions === "object" && "value" in _boundsAnchorPositions ? _boundsAnchorPositions === null || _boundsAnchorPositions === void 0 ? void 0 : _boundsAnchorPositions.value : _boundsAnchorPositions, isRaw: typeof _boundsAnchorPositions === "object" && "isRaw" in _boundsAnchorPositions && _boundsAnchorPositions.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.PointAnchor]", name: "_rootAnchor", id: typeof _rootAnchor === "object" && "id" in _rootAnchor ? _rootAnchor === null || _rootAnchor === void 0 ? void 0 : _rootAnchor.id : undefined, value: typeof _rootAnchor === "object" && "value" in _rootAnchor ? _rootAnchor === null || _rootAnchor === void 0 ? void 0 : _rootAnchor.value : _rootAnchor, isRaw: typeof _rootAnchor === "object" && "isRaw" in _rootAnchor && _rootAnchor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.TranslationGizmo]", name: "_translationGizmo", id: typeof _translationGizmo === "object" && "id" in _translationGizmo ? _translationGizmo === null || _translationGizmo === void 0 ? void 0 : _translationGizmo.id : undefined, value: typeof _translationGizmo === "object" && "value" in _translationGizmo ? _translationGizmo === null || _translationGizmo === void 0 ? void 0 : _translationGizmo.value : _translationGizmo, isRaw: typeof _translationGizmo === "object" && "isRaw" in _translationGizmo && _translationGizmo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.RotationGizmo]", name: "_rotationGizmo", id: typeof _rotationGizmo === "object" && "id" in _rotationGizmo ? _rotationGizmo === null || _rotationGizmo === void 0 ? void 0 : _rotationGizmo.id : undefined, value: typeof _rotationGizmo === "object" && "value" in _rotationGizmo ? _rotationGizmo === null || _rotationGizmo === void 0 ? void 0 : _rotationGizmo.value : _rotationGizmo, isRaw: typeof _rotationGizmo === "object" && "isRaw" in _rotationGizmo && _rotationGizmo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ScaleGizmo]", name: "_scaleGizmo", id: typeof _scaleGizmo === "object" && "id" in _scaleGizmo ? _scaleGizmo === null || _scaleGizmo === void 0 ? void 0 : _scaleGizmo.id : undefined, value: typeof _scaleGizmo === "object" && "value" in _scaleGizmo ? _scaleGizmo === null || _scaleGizmo === void 0 ? void 0 : _scaleGizmo.value : _scaleGizmo, isRaw: typeof _scaleGizmo === "object" && "isRaw" in _scaleGizmo && _scaleGizmo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "_isLocalSpace", id: typeof _isLocalSpace === "object" && "id" in _isLocalSpace ? _isLocalSpace === null || _isLocalSpace === void 0 ? void 0 : _isLocalSpace.id : undefined, value: typeof _isLocalSpace === "object" && "value" in _isLocalSpace ? _isLocalSpace === null || _isLocalSpace === void 0 ? void 0 : _isLocalSpace.value : _isLocalSpace, isRaw: typeof _isLocalSpace === "object" && "isRaw" in _isLocalSpace && _isLocalSpace.isRaw ? true : undefined })] }))); } exports.SlotGizmo = SlotGizmo; ;