UNPKG

neos-script

Version:

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

23 lines (22 loc) 9.45 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.ScaleGizmo = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function ScaleGizmo(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, TargetScale = props.TargetScale, HandleLength = props.HandleLength, _xSlot = props._xSlot, _ySlot = props._ySlot, _zSlot = props._zSlot; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.ScaleGizmo", 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.SyncRef`1[FrooxEngine.IField`1[BaseX.float3]]", name: "TargetScale", id: typeof TargetScale === "object" && "id" in TargetScale ? TargetScale === null || TargetScale === void 0 ? void 0 : TargetScale.id : undefined, value: typeof TargetScale === "object" && "value" in TargetScale ? TargetScale === null || TargetScale === void 0 ? void 0 : TargetScale.value : TargetScale, isRaw: typeof TargetScale === "object" && "isRaw" in TargetScale && TargetScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HandleLength", id: typeof HandleLength === "object" && "id" in HandleLength ? HandleLength === null || HandleLength === void 0 ? void 0 : HandleLength.id : undefined, value: typeof HandleLength === "object" && "value" in HandleLength ? HandleLength === null || HandleLength === void 0 ? void 0 : HandleLength.value : HandleLength, isRaw: typeof HandleLength === "object" && "isRaw" in HandleLength && HandleLength.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_xSlot", id: typeof _xSlot === "object" && "id" in _xSlot ? _xSlot === null || _xSlot === void 0 ? void 0 : _xSlot.id : undefined, value: typeof _xSlot === "object" && "value" in _xSlot ? _xSlot === null || _xSlot === void 0 ? void 0 : _xSlot.value : _xSlot, isRaw: typeof _xSlot === "object" && "isRaw" in _xSlot && _xSlot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_ySlot", id: typeof _ySlot === "object" && "id" in _ySlot ? _ySlot === null || _ySlot === void 0 ? void 0 : _ySlot.id : undefined, value: typeof _ySlot === "object" && "value" in _ySlot ? _ySlot === null || _ySlot === void 0 ? void 0 : _ySlot.value : _ySlot, isRaw: typeof _ySlot === "object" && "isRaw" in _ySlot && _ySlot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_zSlot", id: typeof _zSlot === "object" && "id" in _zSlot ? _zSlot === null || _zSlot === void 0 ? void 0 : _zSlot.id : undefined, value: typeof _zSlot === "object" && "value" in _zSlot ? _zSlot === null || _zSlot === void 0 ? void 0 : _zSlot.value : _zSlot, isRaw: typeof _zSlot === "object" && "isRaw" in _zSlot && _zSlot.isRaw ? true : undefined })] }))); } exports.ScaleGizmo = ScaleGizmo; ;