UNPKG

neos-script

Version:

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

23 lines (22 loc) 11.1 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.InteractiveCameraOBS = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function InteractiveCameraOBS(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _canvas = props._canvas, _panel = props._panel, _currentPanel = props._currentPanel, _container = props._container, CameraControl = props.CameraControl, _connectAddress = props._connectAddress, _connectPassword = props._connectPassword, _status = props._status, _active = props._active, _streamTime = props._streamTime, _bytesPerSec = props._bytesPerSec, _fps = props._fps, _droppedFrames = props._droppedFrames, _streamButton = props._streamButton, _recordButton = props._recordButton, _launchOBSbutton = props._launchOBSbutton, _autoMirror = props._autoMirror; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.InteractiveCameraOBS", 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.UIX.Canvas]", name: "_canvas", id: typeof _canvas === "object" && "id" in _canvas ? _canvas === null || _canvas === void 0 ? void 0 : _canvas.id : undefined, value: typeof _canvas === "object" && "value" in _canvas ? _canvas === null || _canvas === void 0 ? void 0 : _canvas.value : _canvas, isRaw: typeof _canvas === "object" && "isRaw" in _canvas && _canvas.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosPanel]", name: "_panel", id: typeof _panel === "object" && "id" in _panel ? _panel === null || _panel === void 0 ? void 0 : _panel.id : undefined, value: typeof _panel === "object" && "value" in _panel ? _panel === null || _panel === void 0 ? void 0 : _panel.value : _panel, isRaw: typeof _panel === "object" && "isRaw" in _panel && _panel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.RectTransform]", name: "_currentPanel", id: typeof _currentPanel === "object" && "id" in _currentPanel ? _currentPanel === null || _currentPanel === void 0 ? void 0 : _currentPanel.id : undefined, value: typeof _currentPanel === "object" && "value" in _currentPanel ? _currentPanel === null || _currentPanel === void 0 ? void 0 : _currentPanel.value : _currentPanel, isRaw: typeof _currentPanel === "object" && "isRaw" in _currentPanel && _currentPanel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_container", id: typeof _container === "object" && "id" in _container ? _container === null || _container === void 0 ? void 0 : _container.id : undefined, value: typeof _container === "object" && "value" in _container ? _container === null || _container === void 0 ? void 0 : _container.value : _container, isRaw: typeof _container === "object" && "isRaw" in _container && _container.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.InteractiveCameraControl]", name: "CameraControl", id: typeof CameraControl === "object" && "id" in CameraControl ? CameraControl === null || CameraControl === void 0 ? void 0 : CameraControl.id : undefined, value: typeof CameraControl === "object" && "value" in CameraControl ? CameraControl === null || CameraControl === void 0 ? void 0 : CameraControl.value : CameraControl, isRaw: typeof CameraControl === "object" && "isRaw" in CameraControl && CameraControl.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.TextField]", name: "_connectAddress", id: typeof _connectAddress === "object" && "id" in _connectAddress ? _connectAddress === null || _connectAddress === void 0 ? void 0 : _connectAddress.id : undefined, value: typeof _connectAddress === "object" && "value" in _connectAddress ? _connectAddress === null || _connectAddress === void 0 ? void 0 : _connectAddress.value : _connectAddress, isRaw: typeof _connectAddress === "object" && "isRaw" in _connectAddress && _connectAddress.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.TextField]", name: "_connectPassword", id: typeof _connectPassword === "object" && "id" in _connectPassword ? _connectPassword === null || _connectPassword === void 0 ? void 0 : _connectPassword.id : undefined, value: typeof _connectPassword === "object" && "value" in _connectPassword ? _connectPassword === null || _connectPassword === void 0 ? void 0 : _connectPassword.value : _connectPassword, isRaw: typeof _connectPassword === "object" && "isRaw" in _connectPassword && _connectPassword.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_status", id: typeof _status === "object" && "id" in _status ? _status === null || _status === void 0 ? void 0 : _status.id : undefined, value: typeof _status === "object" && "value" in _status ? _status === null || _status === void 0 ? void 0 : _status.value : _status, isRaw: typeof _status === "object" && "isRaw" in _status && _status.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "_active", id: typeof _active === "object" && "id" in _active ? _active === null || _active === void 0 ? void 0 : _active.id : undefined, value: typeof _active === "object" && "value" in _active ? _active === null || _active === void 0 ? void 0 : _active.value : _active, isRaw: typeof _active === "object" && "isRaw" in _active && _active.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_streamTime", id: typeof _streamTime === "object" && "id" in _streamTime ? _streamTime === null || _streamTime === void 0 ? void 0 : _streamTime.id : undefined, value: typeof _streamTime === "object" && "value" in _streamTime ? _streamTime === null || _streamTime === void 0 ? void 0 : _streamTime.value : _streamTime, isRaw: typeof _streamTime === "object" && "isRaw" in _streamTime && _streamTime.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_bytesPerSec", id: typeof _bytesPerSec === "object" && "id" in _bytesPerSec ? _bytesPerSec === null || _bytesPerSec === void 0 ? void 0 : _bytesPerSec.id : undefined, value: typeof _bytesPerSec === "object" && "value" in _bytesPerSec ? _bytesPerSec === null || _bytesPerSec === void 0 ? void 0 : _bytesPerSec.value : _bytesPerSec, isRaw: typeof _bytesPerSec === "object" && "isRaw" in _bytesPerSec && _bytesPerSec.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_fps", id: typeof _fps === "object" && "id" in _fps ? _fps === null || _fps === void 0 ? void 0 : _fps.id : undefined, value: typeof _fps === "object" && "value" in _fps ? _fps === null || _fps === void 0 ? void 0 : _fps.value : _fps, isRaw: typeof _fps === "object" && "isRaw" in _fps && _fps.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_droppedFrames", id: typeof _droppedFrames === "object" && "id" in _droppedFrames ? _droppedFrames === null || _droppedFrames === void 0 ? void 0 : _droppedFrames.id : undefined, value: typeof _droppedFrames === "object" && "value" in _droppedFrames ? _droppedFrames === null || _droppedFrames === void 0 ? void 0 : _droppedFrames.value : _droppedFrames, isRaw: typeof _droppedFrames === "object" && "isRaw" in _droppedFrames && _droppedFrames.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_streamButton", id: typeof _streamButton === "object" && "id" in _streamButton ? _streamButton === null || _streamButton === void 0 ? void 0 : _streamButton.id : undefined, value: typeof _streamButton === "object" && "value" in _streamButton ? _streamButton === null || _streamButton === void 0 ? void 0 : _streamButton.value : _streamButton, isRaw: typeof _streamButton === "object" && "isRaw" in _streamButton && _streamButton.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_recordButton", id: typeof _recordButton === "object" && "id" in _recordButton ? _recordButton === null || _recordButton === void 0 ? void 0 : _recordButton.id : undefined, value: typeof _recordButton === "object" && "value" in _recordButton ? _recordButton === null || _recordButton === void 0 ? void 0 : _recordButton.value : _recordButton, isRaw: typeof _recordButton === "object" && "isRaw" in _recordButton && _recordButton.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_launchOBSbutton", id: typeof _launchOBSbutton === "object" && "id" in _launchOBSbutton ? _launchOBSbutton === null || _launchOBSbutton === void 0 ? void 0 : _launchOBSbutton.id : undefined, value: typeof _launchOBSbutton === "object" && "value" in _launchOBSbutton ? _launchOBSbutton === null || _launchOBSbutton === void 0 ? void 0 : _launchOBSbutton.value : _launchOBSbutton, isRaw: typeof _launchOBSbutton === "object" && "isRaw" in _launchOBSbutton && _launchOBSbutton.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Checkbox]", name: "_autoMirror", id: typeof _autoMirror === "object" && "id" in _autoMirror ? _autoMirror === null || _autoMirror === void 0 ? void 0 : _autoMirror.id : undefined, value: typeof _autoMirror === "object" && "value" in _autoMirror ? _autoMirror === null || _autoMirror === void 0 ? void 0 : _autoMirror.value : _autoMirror, isRaw: typeof _autoMirror === "object" && "isRaw" in _autoMirror && _autoMirror.isRaw ? true : undefined })] }))); } exports.InteractiveCameraOBS = InteractiveCameraOBS; ;