UNPKG

neos-script

Version:

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

23 lines (22 loc) 11 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.BoxGizmo = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function BoxGizmo(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TargetSlot = props.TargetSlot, BoxCenterSpace = props.BoxCenterSpace, BoxSizeSpace = props.BoxSizeSpace, BoxSize = props.BoxSize, BoxCenter = props.BoxCenter, LockOffset = props.LockOffset, _vertices = props._vertices, _edges = props._edges, _faces = props._faces, _sphereColliderRadii = props._sphereColliderRadii, _material = props._material, _handleSphere = props._handleSphere, _visualRoot = props._visualRoot, _visualPosition = props._visualPosition, _visualRotation = props._visualRotation, _visualScale = props._visualScale, _tubeBox = props._tubeBox; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.BoxGizmo", 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.SyncRef`1[FrooxEngine.Slot]", 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.RootSpace", name: "BoxCenterSpace", id: typeof BoxCenterSpace === "object" && "id" in BoxCenterSpace ? BoxCenterSpace === null || BoxCenterSpace === void 0 ? void 0 : BoxCenterSpace.id : undefined, value: typeof BoxCenterSpace === "object" && "value" in BoxCenterSpace ? BoxCenterSpace === null || BoxCenterSpace === void 0 ? void 0 : BoxCenterSpace.value : BoxCenterSpace, isRaw: typeof BoxCenterSpace === "object" && "isRaw" in BoxCenterSpace && BoxCenterSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RootSpace", name: "BoxSizeSpace", id: typeof BoxSizeSpace === "object" && "id" in BoxSizeSpace ? BoxSizeSpace === null || BoxSizeSpace === void 0 ? void 0 : BoxSizeSpace.id : undefined, value: typeof BoxSizeSpace === "object" && "value" in BoxSizeSpace ? BoxSizeSpace === null || BoxSizeSpace === void 0 ? void 0 : BoxSizeSpace.value : BoxSizeSpace, isRaw: typeof BoxSizeSpace === "object" && "isRaw" in BoxSizeSpace && BoxSizeSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.IField`1[BaseX.float3]]", name: "BoxSize", id: typeof BoxSize === "object" && "id" in BoxSize ? BoxSize === null || BoxSize === void 0 ? void 0 : BoxSize.id : undefined, value: typeof BoxSize === "object" && "value" in BoxSize ? BoxSize === null || BoxSize === void 0 ? void 0 : BoxSize.value : BoxSize, isRaw: typeof BoxSize === "object" && "isRaw" in BoxSize && BoxSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.IField`1[BaseX.float3]]", name: "BoxCenter", id: typeof BoxCenter === "object" && "id" in BoxCenter ? BoxCenter === null || BoxCenter === void 0 ? void 0 : BoxCenter.id : undefined, value: typeof BoxCenter === "object" && "value" in BoxCenter ? BoxCenter === null || BoxCenter === void 0 ? void 0 : BoxCenter.value : BoxCenter, isRaw: typeof BoxCenter === "object" && "isRaw" in BoxCenter && BoxCenter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "LockOffset", id: typeof LockOffset === "object" && "id" in LockOffset ? LockOffset === null || LockOffset === void 0 ? void 0 : LockOffset.id : undefined, value: typeof LockOffset === "object" && "value" in LockOffset ? LockOffset === null || LockOffset === void 0 ? void 0 : LockOffset.value : LockOffset, isRaw: typeof LockOffset === "object" && "isRaw" in LockOffset && LockOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.FieldDrive`1[BaseX.float3]]", name: "_vertices", id: typeof _vertices === "object" && "id" in _vertices ? _vertices === null || _vertices === void 0 ? void 0 : _vertices.id : undefined, value: typeof _vertices === "object" && "value" in _vertices ? _vertices === null || _vertices === void 0 ? void 0 : _vertices.value : _vertices, isRaw: typeof _vertices === "object" && "isRaw" in _vertices && _vertices.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.FieldDrive`1[BaseX.float3]]", name: "_edges", id: typeof _edges === "object" && "id" in _edges ? _edges === null || _edges === void 0 ? void 0 : _edges.id : undefined, value: typeof _edges === "object" && "value" in _edges ? _edges === null || _edges === void 0 ? void 0 : _edges.value : _edges, isRaw: typeof _edges === "object" && "isRaw" in _edges && _edges.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.FieldDrive`1[BaseX.float3]]", name: "_faces", id: typeof _faces === "object" && "id" in _faces ? _faces === null || _faces === void 0 ? void 0 : _faces.id : undefined, value: typeof _faces === "object" && "value" in _faces ? _faces === null || _faces === void 0 ? void 0 : _faces.value : _faces, isRaw: typeof _faces === "object" && "isRaw" in _faces && _faces.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.FieldDrive`1[System.Single]]", name: "_sphereColliderRadii", id: typeof _sphereColliderRadii === "object" && "id" in _sphereColliderRadii ? _sphereColliderRadii === null || _sphereColliderRadii === void 0 ? void 0 : _sphereColliderRadii.id : undefined, value: typeof _sphereColliderRadii === "object" && "value" in _sphereColliderRadii ? _sphereColliderRadii === null || _sphereColliderRadii === void 0 ? void 0 : _sphereColliderRadii.value : _sphereColliderRadii, isRaw: typeof _sphereColliderRadii === "object" && "isRaw" in _sphereColliderRadii && _sphereColliderRadii.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.OverlayFresnelMaterial]", 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.SyncRef`1[FrooxEngine.IcoSphereMesh]", name: "_handleSphere", id: typeof _handleSphere === "object" && "id" in _handleSphere ? _handleSphere === null || _handleSphere === void 0 ? void 0 : _handleSphere.id : undefined, value: typeof _handleSphere === "object" && "value" in _handleSphere ? _handleSphere === null || _handleSphere === void 0 ? void 0 : _handleSphere.value : _handleSphere, isRaw: typeof _handleSphere === "object" && "isRaw" in _handleSphere && _handleSphere.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_visualRoot", id: typeof _visualRoot === "object" && "id" in _visualRoot ? _visualRoot === null || _visualRoot === void 0 ? void 0 : _visualRoot.id : undefined, value: typeof _visualRoot === "object" && "value" in _visualRoot ? _visualRoot === null || _visualRoot === void 0 ? void 0 : _visualRoot.value : _visualRoot, isRaw: typeof _visualRoot === "object" && "isRaw" in _visualRoot && _visualRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_visualPosition", id: typeof _visualPosition === "object" && "id" in _visualPosition ? _visualPosition === null || _visualPosition === void 0 ? void 0 : _visualPosition.id : undefined, value: typeof _visualPosition === "object" && "value" in _visualPosition ? _visualPosition === null || _visualPosition === void 0 ? void 0 : _visualPosition.value : _visualPosition, isRaw: typeof _visualPosition === "object" && "isRaw" in _visualPosition && _visualPosition.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_visualRotation", id: typeof _visualRotation === "object" && "id" in _visualRotation ? _visualRotation === null || _visualRotation === void 0 ? void 0 : _visualRotation.id : undefined, value: typeof _visualRotation === "object" && "value" in _visualRotation ? _visualRotation === null || _visualRotation === void 0 ? void 0 : _visualRotation.value : _visualRotation, isRaw: typeof _visualRotation === "object" && "isRaw" in _visualRotation && _visualRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_visualScale", id: typeof _visualScale === "object" && "id" in _visualScale ? _visualScale === null || _visualScale === void 0 ? void 0 : _visualScale.id : undefined, value: typeof _visualScale === "object" && "value" in _visualScale ? _visualScale === null || _visualScale === void 0 ? void 0 : _visualScale.value : _visualScale, isRaw: typeof _visualScale === "object" && "isRaw" in _visualScale && _visualScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.TubeBoxMesh]", name: "_tubeBox", id: typeof _tubeBox === "object" && "id" in _tubeBox ? _tubeBox === null || _tubeBox === void 0 ? void 0 : _tubeBox.id : undefined, value: typeof _tubeBox === "object" && "value" in _tubeBox ? _tubeBox === null || _tubeBox === void 0 ? void 0 : _tubeBox.value : _tubeBox, isRaw: typeof _tubeBox === "object" && "isRaw" in _tubeBox && _tubeBox.isRaw ? true : undefined })] }))); } exports.BoxGizmo = BoxGizmo; ;