UNPKG

neos-script

Version:

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

23 lines (22 loc) 17.6 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.ConeGizmo = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function ConeGizmo(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TargetSlot = props.TargetSlot, AutoPositionAtTargetSlot = props.AutoPositionAtTargetSlot, _interactingComponent = props._interactingComponent, _material = props._material, _toolPoint = props._toolPoint, _activePoint = props._activePoint, _lineRoot = props._lineRoot, _lineSegment = props._lineSegment, _snapHighlight = props._snapHighlight, TargetAngle = props.TargetAngle, TargetRadius = props.TargetRadius, TargetHeight = props.TargetHeight, TargetDirection = props.TargetDirection, TargetRotation = props.TargetRotation, DirectionSpace = props.DirectionSpace, FixedAngle = props.FixedAngle, FixedHeight = props.FixedHeight, FixedDirection = props.FixedDirection, LineThickness = props.LineThickness, MinHeight = props.MinHeight, MaxHeight = props.MaxHeight, MinAngle = props.MinAngle, MaxAngle = props.MaxAngle, _visualRoot = props._visualRoot, _visualRot = props._visualRot, _handles = props._handles, _heightMesh = props._heightMesh, _coneLineMesh = props._coneLineMesh; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.ConeGizmo", 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.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.Sync`1[System.Boolean]", name: "AutoPositionAtTargetSlot", id: typeof AutoPositionAtTargetSlot === "object" && "id" in AutoPositionAtTargetSlot ? AutoPositionAtTargetSlot === null || AutoPositionAtTargetSlot === void 0 ? void 0 : AutoPositionAtTargetSlot.id : undefined, value: typeof AutoPositionAtTargetSlot === "object" && "value" in AutoPositionAtTargetSlot ? AutoPositionAtTargetSlot === null || AutoPositionAtTargetSlot === void 0 ? void 0 : AutoPositionAtTargetSlot.value : AutoPositionAtTargetSlot, isRaw: typeof AutoPositionAtTargetSlot === "object" && "isRaw" in AutoPositionAtTargetSlot && AutoPositionAtTargetSlot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Component]", name: "_interactingComponent-ID", id: typeof _interactingComponent === "object" && "id" in _interactingComponent ? _interactingComponent === null || _interactingComponent === void 0 ? void 0 : _interactingComponent.id : undefined, value: typeof _interactingComponent === "object" && "value" in _interactingComponent ? _interactingComponent === null || _interactingComponent === void 0 ? void 0 : _interactingComponent.value : _interactingComponent, readOnly: true, isRaw: typeof _interactingComponent === "object" && "isRaw" in _interactingComponent && _interactingComponent.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.Slot]", name: "_toolPoint", id: typeof _toolPoint === "object" && "id" in _toolPoint ? _toolPoint === null || _toolPoint === void 0 ? void 0 : _toolPoint.id : undefined, value: typeof _toolPoint === "object" && "value" in _toolPoint ? _toolPoint === null || _toolPoint === void 0 ? void 0 : _toolPoint.value : _toolPoint, isRaw: typeof _toolPoint === "object" && "isRaw" in _toolPoint && _toolPoint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_activePoint", id: typeof _activePoint === "object" && "id" in _activePoint ? _activePoint === null || _activePoint === void 0 ? void 0 : _activePoint.id : undefined, value: typeof _activePoint === "object" && "value" in _activePoint ? _activePoint === null || _activePoint === void 0 ? void 0 : _activePoint.value : _activePoint, isRaw: typeof _activePoint === "object" && "isRaw" in _activePoint && _activePoint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_lineRoot", id: typeof _lineRoot === "object" && "id" in _lineRoot ? _lineRoot === null || _lineRoot === void 0 ? void 0 : _lineRoot.id : undefined, value: typeof _lineRoot === "object" && "value" in _lineRoot ? _lineRoot === null || _lineRoot === void 0 ? void 0 : _lineRoot.value : _lineRoot, isRaw: typeof _lineRoot === "object" && "isRaw" in _lineRoot && _lineRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.SegmentMesh]", name: "_lineSegment", id: typeof _lineSegment === "object" && "id" in _lineSegment ? _lineSegment === null || _lineSegment === void 0 ? void 0 : _lineSegment.id : undefined, value: typeof _lineSegment === "object" && "value" in _lineSegment ? _lineSegment === null || _lineSegment === void 0 ? void 0 : _lineSegment.value : _lineSegment, isRaw: typeof _lineSegment === "object" && "isRaw" in _lineSegment && _lineSegment.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_snapHighlight", id: typeof _snapHighlight === "object" && "id" in _snapHighlight ? _snapHighlight === null || _snapHighlight === void 0 ? void 0 : _snapHighlight.id : undefined, value: typeof _snapHighlight === "object" && "value" in _snapHighlight ? _snapHighlight === null || _snapHighlight === void 0 ? void 0 : _snapHighlight.value : _snapHighlight, isRaw: typeof _snapHighlight === "object" && "isRaw" in _snapHighlight && _snapHighlight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.IField`1[System.Single]]", name: "TargetAngle", id: typeof TargetAngle === "object" && "id" in TargetAngle ? TargetAngle === null || TargetAngle === void 0 ? void 0 : TargetAngle.id : undefined, value: typeof TargetAngle === "object" && "value" in TargetAngle ? TargetAngle === null || TargetAngle === void 0 ? void 0 : TargetAngle.value : TargetAngle, isRaw: typeof TargetAngle === "object" && "isRaw" in TargetAngle && TargetAngle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.IField`1[System.Single]]", name: "TargetRadius", id: typeof TargetRadius === "object" && "id" in TargetRadius ? TargetRadius === null || TargetRadius === void 0 ? void 0 : TargetRadius.id : undefined, value: typeof TargetRadius === "object" && "value" in TargetRadius ? TargetRadius === null || TargetRadius === void 0 ? void 0 : TargetRadius.value : TargetRadius, isRaw: typeof TargetRadius === "object" && "isRaw" in TargetRadius && TargetRadius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.IField`1[System.Single]]", name: "TargetHeight", id: typeof TargetHeight === "object" && "id" in TargetHeight ? TargetHeight === null || TargetHeight === void 0 ? void 0 : TargetHeight.id : undefined, value: typeof TargetHeight === "object" && "value" in TargetHeight ? TargetHeight === null || TargetHeight === void 0 ? void 0 : TargetHeight.value : TargetHeight, isRaw: typeof TargetHeight === "object" && "isRaw" in TargetHeight && TargetHeight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.IField`1[BaseX.float3]]", name: "TargetDirection", id: typeof TargetDirection === "object" && "id" in TargetDirection ? TargetDirection === null || TargetDirection === void 0 ? void 0 : TargetDirection.id : undefined, value: typeof TargetDirection === "object" && "value" in TargetDirection ? TargetDirection === null || TargetDirection === void 0 ? void 0 : TargetDirection.value : TargetDirection, isRaw: typeof TargetDirection === "object" && "isRaw" in TargetDirection && TargetDirection.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.IField`1[BaseX.floatQ]]", name: "TargetRotation", id: typeof TargetRotation === "object" && "id" in TargetRotation ? TargetRotation === null || TargetRotation === void 0 ? void 0 : TargetRotation.id : undefined, value: typeof TargetRotation === "object" && "value" in TargetRotation ? TargetRotation === null || TargetRotation === void 0 ? void 0 : TargetRotation.value : TargetRotation, isRaw: typeof TargetRotation === "object" && "isRaw" in TargetRotation && TargetRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RootSpace", name: "DirectionSpace", id: typeof DirectionSpace === "object" && "id" in DirectionSpace ? DirectionSpace === null || DirectionSpace === void 0 ? void 0 : DirectionSpace.id : undefined, value: typeof DirectionSpace === "object" && "value" in DirectionSpace ? DirectionSpace === null || DirectionSpace === void 0 ? void 0 : DirectionSpace.value : DirectionSpace, isRaw: typeof DirectionSpace === "object" && "isRaw" in DirectionSpace && DirectionSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FixedAngle", id: typeof FixedAngle === "object" && "id" in FixedAngle ? FixedAngle === null || FixedAngle === void 0 ? void 0 : FixedAngle.id : undefined, value: typeof FixedAngle === "object" && "value" in FixedAngle ? FixedAngle === null || FixedAngle === void 0 ? void 0 : FixedAngle.value : FixedAngle, isRaw: typeof FixedAngle === "object" && "isRaw" in FixedAngle && FixedAngle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FixedHeight", id: typeof FixedHeight === "object" && "id" in FixedHeight ? FixedHeight === null || FixedHeight === void 0 ? void 0 : FixedHeight.id : undefined, value: typeof FixedHeight === "object" && "value" in FixedHeight ? FixedHeight === null || FixedHeight === void 0 ? void 0 : FixedHeight.value : FixedHeight, isRaw: typeof FixedHeight === "object" && "isRaw" in FixedHeight && FixedHeight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "FixedDirection", id: typeof FixedDirection === "object" && "id" in FixedDirection ? FixedDirection === null || FixedDirection === void 0 ? void 0 : FixedDirection.id : undefined, value: typeof FixedDirection === "object" && "value" in FixedDirection ? FixedDirection === null || FixedDirection === void 0 ? void 0 : FixedDirection.value : FixedDirection, isRaw: typeof FixedDirection === "object" && "isRaw" in FixedDirection && FixedDirection.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "LineThickness", id: typeof LineThickness === "object" && "id" in LineThickness ? LineThickness === null || LineThickness === void 0 ? void 0 : LineThickness.id : undefined, value: typeof LineThickness === "object" && "value" in LineThickness ? LineThickness === null || LineThickness === void 0 ? void 0 : LineThickness.value : LineThickness, isRaw: typeof LineThickness === "object" && "isRaw" in LineThickness && LineThickness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinHeight", id: typeof MinHeight === "object" && "id" in MinHeight ? MinHeight === null || MinHeight === void 0 ? void 0 : MinHeight.id : undefined, value: typeof MinHeight === "object" && "value" in MinHeight ? MinHeight === null || MinHeight === void 0 ? void 0 : MinHeight.value : MinHeight, isRaw: typeof MinHeight === "object" && "isRaw" in MinHeight && MinHeight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxHeight", id: typeof MaxHeight === "object" && "id" in MaxHeight ? MaxHeight === null || MaxHeight === void 0 ? void 0 : MaxHeight.id : undefined, value: typeof MaxHeight === "object" && "value" in MaxHeight ? MaxHeight === null || MaxHeight === void 0 ? void 0 : MaxHeight.value : MaxHeight, isRaw: typeof MaxHeight === "object" && "isRaw" in MaxHeight && MaxHeight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinAngle", id: typeof MinAngle === "object" && "id" in MinAngle ? MinAngle === null || MinAngle === void 0 ? void 0 : MinAngle.id : undefined, value: typeof MinAngle === "object" && "value" in MinAngle ? MinAngle === null || MinAngle === void 0 ? void 0 : MinAngle.value : MinAngle, isRaw: typeof MinAngle === "object" && "isRaw" in MinAngle && MinAngle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxAngle", id: typeof MaxAngle === "object" && "id" in MaxAngle ? MaxAngle === null || MaxAngle === void 0 ? void 0 : MaxAngle.id : undefined, value: typeof MaxAngle === "object" && "value" in MaxAngle ? MaxAngle === null || MaxAngle === void 0 ? void 0 : MaxAngle.value : MaxAngle, isRaw: typeof MaxAngle === "object" && "isRaw" in MaxAngle && MaxAngle.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.floatQ]", name: "_visualRot", id: typeof _visualRot === "object" && "id" in _visualRot ? _visualRot === null || _visualRot === void 0 ? void 0 : _visualRot.id : undefined, value: typeof _visualRot === "object" && "value" in _visualRot ? _visualRot === null || _visualRot === void 0 ? void 0 : _visualRot.value : _visualRot, isRaw: typeof _visualRot === "object" && "isRaw" in _visualRot && _visualRot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.ConeGizmo+Handle]", name: "_handles", id: typeof _handles === "object" && "id" in _handles ? _handles === null || _handles === void 0 ? void 0 : _handles.id : undefined, value: typeof _handles === "object" && "value" in _handles ? _handles === null || _handles === void 0 ? void 0 : _handles.value : _handles, isRaw: typeof _handles === "object" && "isRaw" in _handles && _handles.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.SegmentMesh]", name: "_heightMesh", id: typeof _heightMesh === "object" && "id" in _heightMesh ? _heightMesh === null || _heightMesh === void 0 ? void 0 : _heightMesh.id : undefined, value: typeof _heightMesh === "object" && "value" in _heightMesh ? _heightMesh === null || _heightMesh === void 0 ? void 0 : _heightMesh.value : _heightMesh, isRaw: typeof _heightMesh === "object" && "isRaw" in _heightMesh && _heightMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.SegmentMesh]", name: "_coneLineMesh", id: typeof _coneLineMesh === "object" && "id" in _coneLineMesh ? _coneLineMesh === null || _coneLineMesh === void 0 ? void 0 : _coneLineMesh.id : undefined, value: typeof _coneLineMesh === "object" && "value" in _coneLineMesh ? _coneLineMesh === null || _coneLineMesh === void 0 ? void 0 : _coneLineMesh.value : _coneLineMesh, isRaw: typeof _coneLineMesh === "object" && "isRaw" in _coneLineMesh && _coneLineMesh.isRaw ? true : undefined })] }))); } exports.ConeGizmo = ConeGizmo; ;