UNPKG

neos-script

Version:

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

23 lines (22 loc) 15.2 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.AxisRotationGizmo = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function AxisRotationGizmo(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, Axis = props.Axis, AxisSpace = props.AxisSpace, RotationSpace = props.RotationSpace, TargetRotation = props.TargetRotation, TargetValue = props.TargetValue, CircleRadius = props.CircleRadius, CircleThickness = props.CircleThickness, _visualRoot = props._visualRoot, _visualRot = props._visualRot, _circle = props._circle, _circleColliderMesh = props._circleColliderMesh, _referenceLine = props._referenceLine, _linesRoot = props._linesRoot, _line0 = props._line0, _line1 = props._line1; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.AxisRotationGizmo", 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.Sync`1[BaseX.float3]", name: "Axis", id: typeof Axis === "object" && "id" in Axis ? Axis === null || Axis === void 0 ? void 0 : Axis.id : undefined, value: typeof Axis === "object" && "value" in Axis ? Axis === null || Axis === void 0 ? void 0 : Axis.value : Axis, isRaw: typeof Axis === "object" && "isRaw" in Axis && Axis.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RootSpace", name: "AxisSpace", id: typeof AxisSpace === "object" && "id" in AxisSpace ? AxisSpace === null || AxisSpace === void 0 ? void 0 : AxisSpace.id : undefined, value: typeof AxisSpace === "object" && "value" in AxisSpace ? AxisSpace === null || AxisSpace === void 0 ? void 0 : AxisSpace.value : AxisSpace, isRaw: typeof AxisSpace === "object" && "isRaw" in AxisSpace && AxisSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RootSpace", name: "RotationSpace", id: typeof RotationSpace === "object" && "id" in RotationSpace ? RotationSpace === null || RotationSpace === void 0 ? void 0 : RotationSpace.id : undefined, value: typeof RotationSpace === "object" && "value" in RotationSpace ? RotationSpace === null || RotationSpace === void 0 ? void 0 : RotationSpace.value : RotationSpace, isRaw: typeof RotationSpace === "object" && "isRaw" in RotationSpace && RotationSpace.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.RelayRef`1[FrooxEngine.IField`1[System.Single]]", name: "TargetValue", id: typeof TargetValue === "object" && "id" in TargetValue ? TargetValue === null || TargetValue === void 0 ? void 0 : TargetValue.id : undefined, value: typeof TargetValue === "object" && "value" in TargetValue ? TargetValue === null || TargetValue === void 0 ? void 0 : TargetValue.value : TargetValue, isRaw: typeof TargetValue === "object" && "isRaw" in TargetValue && TargetValue.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "CircleRadius", id: typeof CircleRadius === "object" && "id" in CircleRadius ? CircleRadius === null || CircleRadius === void 0 ? void 0 : CircleRadius.id : undefined, value: typeof CircleRadius === "object" && "value" in CircleRadius ? CircleRadius === null || CircleRadius === void 0 ? void 0 : CircleRadius.value : CircleRadius, isRaw: typeof CircleRadius === "object" && "isRaw" in CircleRadius && CircleRadius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "CircleThickness", id: typeof CircleThickness === "object" && "id" in CircleThickness ? CircleThickness === null || CircleThickness === void 0 ? void 0 : CircleThickness.id : undefined, value: typeof CircleThickness === "object" && "value" in CircleThickness ? CircleThickness === null || CircleThickness === void 0 ? void 0 : CircleThickness.value : CircleThickness, isRaw: typeof CircleThickness === "object" && "isRaw" in CircleThickness && CircleThickness.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.DriveRef`1[FrooxEngine.TorusMesh]", name: "_circle", id: typeof _circle === "object" && "id" in _circle ? _circle === null || _circle === void 0 ? void 0 : _circle.id : undefined, value: typeof _circle === "object" && "value" in _circle ? _circle === null || _circle === void 0 ? void 0 : _circle.value : _circle, isRaw: typeof _circle === "object" && "isRaw" in _circle && _circle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.TorusMesh]", name: "_circleColliderMesh", id: typeof _circleColliderMesh === "object" && "id" in _circleColliderMesh ? _circleColliderMesh === null || _circleColliderMesh === void 0 ? void 0 : _circleColliderMesh.id : undefined, value: typeof _circleColliderMesh === "object" && "value" in _circleColliderMesh ? _circleColliderMesh === null || _circleColliderMesh === void 0 ? void 0 : _circleColliderMesh.value : _circleColliderMesh, isRaw: typeof _circleColliderMesh === "object" && "isRaw" in _circleColliderMesh && _circleColliderMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.SegmentMesh]", name: "_referenceLine", id: typeof _referenceLine === "object" && "id" in _referenceLine ? _referenceLine === null || _referenceLine === void 0 ? void 0 : _referenceLine.id : undefined, value: typeof _referenceLine === "object" && "value" in _referenceLine ? _referenceLine === null || _referenceLine === void 0 ? void 0 : _referenceLine.value : _referenceLine, isRaw: typeof _referenceLine === "object" && "isRaw" in _referenceLine && _referenceLine.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_linesRoot", id: typeof _linesRoot === "object" && "id" in _linesRoot ? _linesRoot === null || _linesRoot === void 0 ? void 0 : _linesRoot.id : undefined, value: typeof _linesRoot === "object" && "value" in _linesRoot ? _linesRoot === null || _linesRoot === void 0 ? void 0 : _linesRoot.value : _linesRoot, isRaw: typeof _linesRoot === "object" && "isRaw" in _linesRoot && _linesRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.SegmentMesh]", name: "_line0", id: typeof _line0 === "object" && "id" in _line0 ? _line0 === null || _line0 === void 0 ? void 0 : _line0.id : undefined, value: typeof _line0 === "object" && "value" in _line0 ? _line0 === null || _line0 === void 0 ? void 0 : _line0.value : _line0, isRaw: typeof _line0 === "object" && "isRaw" in _line0 && _line0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.SegmentMesh]", name: "_line1", id: typeof _line1 === "object" && "id" in _line1 ? _line1 === null || _line1 === void 0 ? void 0 : _line1.id : undefined, value: typeof _line1 === "object" && "value" in _line1 ? _line1 === null || _line1 === void 0 ? void 0 : _line1.value : _line1, isRaw: typeof _line1 === "object" && "isRaw" in _line1 && _line1.isRaw ? true : undefined })] }))); } exports.AxisRotationGizmo = AxisRotationGizmo; ;