UNPKG

neos-script

Version:

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

23 lines (22 loc) 18.9 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.PhotoCaptureManager = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function PhotoCaptureManager(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, MinDistance = props.MinDistance, MaxDistance = props.MaxDistance, MinFOV = props.MinFOV, MaxFOV = props.MaxFOV, PreviewResolution = props.PreviewResolution, NormalResolution = props.NormalResolution, TimerResolution = props.TimerResolution, DebugGesture = props.DebugGesture, _timerActive = props._timerActive, _originalParent = props._originalParent, _originalPosition = props._originalPosition, _originalRotation = props._originalRotation, _originalScale = props._originalScale, _root = props._root, _previewRoot = props._previewRoot, _renderTex = props._renderTex, _quad = props._quad, _frame = props._frame, _camera = props._camera, _frameMaterial = props._frameMaterial, _timerTextRoot = props._timerTextRoot, _timerText = props._timerText, _shutterClip = props._shutterClip, _timerStartClip = props._timerStartClip, _timerCountdownSlowPlayer = props._timerCountdownSlowPlayer, _timerCountdownFastPlayer = props._timerCountdownFastPlayer, _timerCountdownSlowOutput = props._timerCountdownSlowOutput, _timerCountdownFastOutput = props._timerCountdownFastOutput, _timerRoot = props._timerRoot; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.PhotoCaptureManager", 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.Sync`1[System.Single]", name: "MinDistance", id: typeof MinDistance === "object" && "id" in MinDistance ? MinDistance === null || MinDistance === void 0 ? void 0 : MinDistance.id : undefined, value: typeof MinDistance === "object" && "value" in MinDistance ? MinDistance === null || MinDistance === void 0 ? void 0 : MinDistance.value : MinDistance, isRaw: typeof MinDistance === "object" && "isRaw" in MinDistance && MinDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxDistance", id: typeof MaxDistance === "object" && "id" in MaxDistance ? MaxDistance === null || MaxDistance === void 0 ? void 0 : MaxDistance.id : undefined, value: typeof MaxDistance === "object" && "value" in MaxDistance ? MaxDistance === null || MaxDistance === void 0 ? void 0 : MaxDistance.value : MaxDistance, isRaw: typeof MaxDistance === "object" && "isRaw" in MaxDistance && MaxDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinFOV", id: typeof MinFOV === "object" && "id" in MinFOV ? MinFOV === null || MinFOV === void 0 ? void 0 : MinFOV.id : undefined, value: typeof MinFOV === "object" && "value" in MinFOV ? MinFOV === null || MinFOV === void 0 ? void 0 : MinFOV.value : MinFOV, isRaw: typeof MinFOV === "object" && "isRaw" in MinFOV && MinFOV.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxFOV", id: typeof MaxFOV === "object" && "id" in MaxFOV ? MaxFOV === null || MaxFOV === void 0 ? void 0 : MaxFOV.id : undefined, value: typeof MaxFOV === "object" && "value" in MaxFOV ? MaxFOV === null || MaxFOV === void 0 ? void 0 : MaxFOV.value : MaxFOV, isRaw: typeof MaxFOV === "object" && "isRaw" in MaxFOV && MaxFOV.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.int2]", name: "PreviewResolution", id: typeof PreviewResolution === "object" && "id" in PreviewResolution ? PreviewResolution === null || PreviewResolution === void 0 ? void 0 : PreviewResolution.id : undefined, value: typeof PreviewResolution === "object" && "value" in PreviewResolution ? PreviewResolution === null || PreviewResolution === void 0 ? void 0 : PreviewResolution.value : PreviewResolution, isRaw: typeof PreviewResolution === "object" && "isRaw" in PreviewResolution && PreviewResolution.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.int2]", name: "NormalResolution", id: typeof NormalResolution === "object" && "id" in NormalResolution ? NormalResolution === null || NormalResolution === void 0 ? void 0 : NormalResolution.id : undefined, value: typeof NormalResolution === "object" && "value" in NormalResolution ? NormalResolution === null || NormalResolution === void 0 ? void 0 : NormalResolution.value : NormalResolution, isRaw: typeof NormalResolution === "object" && "isRaw" in NormalResolution && NormalResolution.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.int2]", name: "TimerResolution", id: typeof TimerResolution === "object" && "id" in TimerResolution ? TimerResolution === null || TimerResolution === void 0 ? void 0 : TimerResolution.id : undefined, value: typeof TimerResolution === "object" && "value" in TimerResolution ? TimerResolution === null || TimerResolution === void 0 ? void 0 : TimerResolution.value : TimerResolution, isRaw: typeof TimerResolution === "object" && "isRaw" in TimerResolution && TimerResolution.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "DebugGesture", id: typeof DebugGesture === "object" && "id" in DebugGesture ? DebugGesture === null || DebugGesture === void 0 ? void 0 : DebugGesture.id : undefined, value: typeof DebugGesture === "object" && "value" in DebugGesture ? DebugGesture === null || DebugGesture === void 0 ? void 0 : DebugGesture.value : DebugGesture, isRaw: typeof DebugGesture === "object" && "isRaw" in DebugGesture && DebugGesture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "_timerActive", id: typeof _timerActive === "object" && "id" in _timerActive ? _timerActive === null || _timerActive === void 0 ? void 0 : _timerActive.id : undefined, value: typeof _timerActive === "object" && "value" in _timerActive ? _timerActive === null || _timerActive === void 0 ? void 0 : _timerActive.value : _timerActive, isRaw: typeof _timerActive === "object" && "isRaw" in _timerActive && _timerActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_originalParent", id: typeof _originalParent === "object" && "id" in _originalParent ? _originalParent === null || _originalParent === void 0 ? void 0 : _originalParent.id : undefined, value: typeof _originalParent === "object" && "value" in _originalParent ? _originalParent === null || _originalParent === void 0 ? void 0 : _originalParent.value : _originalParent, isRaw: typeof _originalParent === "object" && "isRaw" in _originalParent && _originalParent.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "_originalPosition", id: typeof _originalPosition === "object" && "id" in _originalPosition ? _originalPosition === null || _originalPosition === void 0 ? void 0 : _originalPosition.id : undefined, value: typeof _originalPosition === "object" && "value" in _originalPosition ? _originalPosition === null || _originalPosition === void 0 ? void 0 : _originalPosition.value : _originalPosition, isRaw: typeof _originalPosition === "object" && "isRaw" in _originalPosition && _originalPosition.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "_originalRotation", id: typeof _originalRotation === "object" && "id" in _originalRotation ? _originalRotation === null || _originalRotation === void 0 ? void 0 : _originalRotation.id : undefined, value: typeof _originalRotation === "object" && "value" in _originalRotation ? _originalRotation === null || _originalRotation === void 0 ? void 0 : _originalRotation.value : _originalRotation, isRaw: typeof _originalRotation === "object" && "isRaw" in _originalRotation && _originalRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "_originalScale", id: typeof _originalScale === "object" && "id" in _originalScale ? _originalScale === null || _originalScale === void 0 ? void 0 : _originalScale.id : undefined, value: typeof _originalScale === "object" && "value" in _originalScale ? _originalScale === null || _originalScale === void 0 ? void 0 : _originalScale.value : _originalScale, isRaw: typeof _originalScale === "object" && "isRaw" in _originalScale && _originalScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_root", id: typeof _root === "object" && "id" in _root ? _root === null || _root === void 0 ? void 0 : _root.id : undefined, value: typeof _root === "object" && "value" in _root ? _root === null || _root === void 0 ? void 0 : _root.value : _root, isRaw: typeof _root === "object" && "isRaw" in _root && _root.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_previewRoot", id: typeof _previewRoot === "object" && "id" in _previewRoot ? _previewRoot === null || _previewRoot === void 0 ? void 0 : _previewRoot.id : undefined, value: typeof _previewRoot === "object" && "value" in _previewRoot ? _previewRoot === null || _previewRoot === void 0 ? void 0 : _previewRoot.value : _previewRoot, isRaw: typeof _previewRoot === "object" && "isRaw" in _previewRoot && _previewRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.RenderTextureProvider]", name: "_renderTex", id: typeof _renderTex === "object" && "id" in _renderTex ? _renderTex === null || _renderTex === void 0 ? void 0 : _renderTex.id : undefined, value: typeof _renderTex === "object" && "value" in _renderTex ? _renderTex === null || _renderTex === void 0 ? void 0 : _renderTex.value : _renderTex, isRaw: typeof _renderTex === "object" && "isRaw" in _renderTex && _renderTex.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.QuadMesh]", name: "_quad", id: typeof _quad === "object" && "id" in _quad ? _quad === null || _quad === void 0 ? void 0 : _quad.id : undefined, value: typeof _quad === "object" && "value" in _quad ? _quad === null || _quad === void 0 ? void 0 : _quad.value : _quad, isRaw: typeof _quad === "object" && "isRaw" in _quad && _quad.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.FrameMesh]", name: "_frame", id: typeof _frame === "object" && "id" in _frame ? _frame === null || _frame === void 0 ? void 0 : _frame.id : undefined, value: typeof _frame === "object" && "value" in _frame ? _frame === null || _frame === void 0 ? void 0 : _frame.value : _frame, isRaw: typeof _frame === "object" && "isRaw" in _frame && _frame.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Camera]", name: "_camera", id: typeof _camera === "object" && "id" in _camera ? _camera === null || _camera === void 0 ? void 0 : _camera.id : undefined, value: typeof _camera === "object" && "value" in _camera ? _camera === null || _camera === void 0 ? void 0 : _camera.value : _camera, isRaw: typeof _camera === "object" && "isRaw" in _camera && _camera.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UnlitMaterial]", name: "_frameMaterial", id: typeof _frameMaterial === "object" && "id" in _frameMaterial ? _frameMaterial === null || _frameMaterial === void 0 ? void 0 : _frameMaterial.id : undefined, value: typeof _frameMaterial === "object" && "value" in _frameMaterial ? _frameMaterial === null || _frameMaterial === void 0 ? void 0 : _frameMaterial.value : _frameMaterial, isRaw: typeof _frameMaterial === "object" && "isRaw" in _frameMaterial && _frameMaterial.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_timerTextRoot", id: typeof _timerTextRoot === "object" && "id" in _timerTextRoot ? _timerTextRoot === null || _timerTextRoot === void 0 ? void 0 : _timerTextRoot.id : undefined, value: typeof _timerTextRoot === "object" && "value" in _timerTextRoot ? _timerTextRoot === null || _timerTextRoot === void 0 ? void 0 : _timerTextRoot.value : _timerTextRoot, isRaw: typeof _timerTextRoot === "object" && "isRaw" in _timerTextRoot && _timerTextRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.TextRenderer]", name: "_timerText", id: typeof _timerText === "object" && "id" in _timerText ? _timerText === null || _timerText === void 0 ? void 0 : _timerText.id : undefined, value: typeof _timerText === "object" && "value" in _timerText ? _timerText === null || _timerText === void 0 ? void 0 : _timerText.value : _timerText, isRaw: typeof _timerText === "object" && "isRaw" in _timerText && _timerText.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.AudioClip]", name: "_shutterClip", id: typeof _shutterClip === "object" && "id" in _shutterClip ? _shutterClip === null || _shutterClip === void 0 ? void 0 : _shutterClip.id : undefined, value: typeof _shutterClip === "object" && "value" in _shutterClip ? _shutterClip === null || _shutterClip === void 0 ? void 0 : _shutterClip.value : _shutterClip, isRaw: typeof _shutterClip === "object" && "isRaw" in _shutterClip && _shutterClip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.AudioClip]", name: "_timerStartClip", id: typeof _timerStartClip === "object" && "id" in _timerStartClip ? _timerStartClip === null || _timerStartClip === void 0 ? void 0 : _timerStartClip.id : undefined, value: typeof _timerStartClip === "object" && "value" in _timerStartClip ? _timerStartClip === null || _timerStartClip === void 0 ? void 0 : _timerStartClip.value : _timerStartClip, isRaw: typeof _timerStartClip === "object" && "isRaw" in _timerStartClip && _timerStartClip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.AudioClipPlayer]", name: "_timerCountdownSlowPlayer", id: typeof _timerCountdownSlowPlayer === "object" && "id" in _timerCountdownSlowPlayer ? _timerCountdownSlowPlayer === null || _timerCountdownSlowPlayer === void 0 ? void 0 : _timerCountdownSlowPlayer.id : undefined, value: typeof _timerCountdownSlowPlayer === "object" && "value" in _timerCountdownSlowPlayer ? _timerCountdownSlowPlayer === null || _timerCountdownSlowPlayer === void 0 ? void 0 : _timerCountdownSlowPlayer.value : _timerCountdownSlowPlayer, isRaw: typeof _timerCountdownSlowPlayer === "object" && "isRaw" in _timerCountdownSlowPlayer && _timerCountdownSlowPlayer.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.AudioClipPlayer]", name: "_timerCountdownFastPlayer", id: typeof _timerCountdownFastPlayer === "object" && "id" in _timerCountdownFastPlayer ? _timerCountdownFastPlayer === null || _timerCountdownFastPlayer === void 0 ? void 0 : _timerCountdownFastPlayer.id : undefined, value: typeof _timerCountdownFastPlayer === "object" && "value" in _timerCountdownFastPlayer ? _timerCountdownFastPlayer === null || _timerCountdownFastPlayer === void 0 ? void 0 : _timerCountdownFastPlayer.value : _timerCountdownFastPlayer, isRaw: typeof _timerCountdownFastPlayer === "object" && "isRaw" in _timerCountdownFastPlayer && _timerCountdownFastPlayer.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.AudioOutput]", name: "_timerCountdownSlowOutput", id: typeof _timerCountdownSlowOutput === "object" && "id" in _timerCountdownSlowOutput ? _timerCountdownSlowOutput === null || _timerCountdownSlowOutput === void 0 ? void 0 : _timerCountdownSlowOutput.id : undefined, value: typeof _timerCountdownSlowOutput === "object" && "value" in _timerCountdownSlowOutput ? _timerCountdownSlowOutput === null || _timerCountdownSlowOutput === void 0 ? void 0 : _timerCountdownSlowOutput.value : _timerCountdownSlowOutput, isRaw: typeof _timerCountdownSlowOutput === "object" && "isRaw" in _timerCountdownSlowOutput && _timerCountdownSlowOutput.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.AudioOutput]", name: "_timerCountdownFastOutput", id: typeof _timerCountdownFastOutput === "object" && "id" in _timerCountdownFastOutput ? _timerCountdownFastOutput === null || _timerCountdownFastOutput === void 0 ? void 0 : _timerCountdownFastOutput.id : undefined, value: typeof _timerCountdownFastOutput === "object" && "value" in _timerCountdownFastOutput ? _timerCountdownFastOutput === null || _timerCountdownFastOutput === void 0 ? void 0 : _timerCountdownFastOutput.value : _timerCountdownFastOutput, isRaw: typeof _timerCountdownFastOutput === "object" && "isRaw" in _timerCountdownFastOutput && _timerCountdownFastOutput.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_timerRoot", id: typeof _timerRoot === "object" && "id" in _timerRoot ? _timerRoot === null || _timerRoot === void 0 ? void 0 : _timerRoot.id : undefined, value: typeof _timerRoot === "object" && "value" in _timerRoot ? _timerRoot === null || _timerRoot === void 0 ? void 0 : _timerRoot.value : _timerRoot, isRaw: typeof _timerRoot === "object" && "isRaw" in _timerRoot && _timerRoot.isRaw ? true : undefined })] }))); } exports.PhotoCaptureManager = PhotoCaptureManager; ;