UNPKG

neos-script

Version:

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

23 lines (22 loc) 13.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.AudioPlayerOrb = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function AudioPlayerOrb(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, AudioClip = props.AudioClip, _lastClip = props._lastClip, _clipPlayer = props._clipPlayer, _audioOutput = props._audioOutput, _waveformMaterial = props._waveformMaterial, _playbackMaterial = props._playbackMaterial, _waveformRingMesh = props._waveformRingMesh, _playbackRingMesh = props._playbackRingMesh, _playbackRingArc = props._playbackRingArc, _volumeRingArc = props._volumeRingArc, _playbackTimeText = props._playbackTimeText, _clipLengthTimeText = props._clipLengthTimeText, _iconTextureURL = props._iconTextureURL, _stopItem = props._stopItem, _loopItem = props._loopItem, _spatialItem = props._spatialItem, _loopIconURL = props._loopIconURL, _spatialIconURL = props._spatialIconURL, _exportable = props._exportable, _assetProxy = props._assetProxy; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.AudioPlayerOrb", 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.AssetRef`1[FrooxEngine.AudioClip]", name: "AudioClip", id: typeof AudioClip === "object" && "id" in AudioClip ? AudioClip === null || AudioClip === void 0 ? void 0 : AudioClip.id : undefined, value: typeof AudioClip === "object" && "value" in AudioClip ? AudioClip === null || AudioClip === void 0 ? void 0 : AudioClip.value : AudioClip, isRaw: typeof AudioClip === "object" && "isRaw" in AudioClip && AudioClip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.AudioClip]", name: "_lastClip", id: typeof _lastClip === "object" && "id" in _lastClip ? _lastClip === null || _lastClip === void 0 ? void 0 : _lastClip.id : undefined, value: typeof _lastClip === "object" && "value" in _lastClip ? _lastClip === null || _lastClip === void 0 ? void 0 : _lastClip.value : _lastClip, isRaw: typeof _lastClip === "object" && "isRaw" in _lastClip && _lastClip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.AudioClipPlayer]", name: "_clipPlayer", id: typeof _clipPlayer === "object" && "id" in _clipPlayer ? _clipPlayer === null || _clipPlayer === void 0 ? void 0 : _clipPlayer.id : undefined, value: typeof _clipPlayer === "object" && "value" in _clipPlayer ? _clipPlayer === null || _clipPlayer === void 0 ? void 0 : _clipPlayer.value : _clipPlayer, isRaw: typeof _clipPlayer === "object" && "isRaw" in _clipPlayer && _clipPlayer.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.AudioOutput]", name: "_audioOutput", id: typeof _audioOutput === "object" && "id" in _audioOutput ? _audioOutput === null || _audioOutput === void 0 ? void 0 : _audioOutput.id : undefined, value: typeof _audioOutput === "object" && "value" in _audioOutput ? _audioOutput === null || _audioOutput === void 0 ? void 0 : _audioOutput.value : _audioOutput, isRaw: typeof _audioOutput === "object" && "isRaw" in _audioOutput && _audioOutput.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UnlitMaterial]", name: "_waveformMaterial", id: typeof _waveformMaterial === "object" && "id" in _waveformMaterial ? _waveformMaterial === null || _waveformMaterial === void 0 ? void 0 : _waveformMaterial.id : undefined, value: typeof _waveformMaterial === "object" && "value" in _waveformMaterial ? _waveformMaterial === null || _waveformMaterial === void 0 ? void 0 : _waveformMaterial.value : _waveformMaterial, isRaw: typeof _waveformMaterial === "object" && "isRaw" in _waveformMaterial && _waveformMaterial.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UnlitMaterial]", name: "_playbackMaterial", id: typeof _playbackMaterial === "object" && "id" in _playbackMaterial ? _playbackMaterial === null || _playbackMaterial === void 0 ? void 0 : _playbackMaterial.id : undefined, value: typeof _playbackMaterial === "object" && "value" in _playbackMaterial ? _playbackMaterial === null || _playbackMaterial === void 0 ? void 0 : _playbackMaterial.value : _playbackMaterial, isRaw: typeof _playbackMaterial === "object" && "isRaw" in _playbackMaterial && _playbackMaterial.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.RingMesh]", name: "_waveformRingMesh", id: typeof _waveformRingMesh === "object" && "id" in _waveformRingMesh ? _waveformRingMesh === null || _waveformRingMesh === void 0 ? void 0 : _waveformRingMesh.id : undefined, value: typeof _waveformRingMesh === "object" && "value" in _waveformRingMesh ? _waveformRingMesh === null || _waveformRingMesh === void 0 ? void 0 : _waveformRingMesh.value : _waveformRingMesh, isRaw: typeof _waveformRingMesh === "object" && "isRaw" in _waveformRingMesh && _waveformRingMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.RingMesh]", name: "_playbackRingMesh", id: typeof _playbackRingMesh === "object" && "id" in _playbackRingMesh ? _playbackRingMesh === null || _playbackRingMesh === void 0 ? void 0 : _playbackRingMesh.id : undefined, value: typeof _playbackRingMesh === "object" && "value" in _playbackRingMesh ? _playbackRingMesh === null || _playbackRingMesh === void 0 ? void 0 : _playbackRingMesh.value : _playbackRingMesh, isRaw: typeof _playbackRingMesh === "object" && "isRaw" in _playbackRingMesh && _playbackRingMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_playbackRingArc", id: typeof _playbackRingArc === "object" && "id" in _playbackRingArc ? _playbackRingArc === null || _playbackRingArc === void 0 ? void 0 : _playbackRingArc.id : undefined, value: typeof _playbackRingArc === "object" && "value" in _playbackRingArc ? _playbackRingArc === null || _playbackRingArc === void 0 ? void 0 : _playbackRingArc.value : _playbackRingArc, isRaw: typeof _playbackRingArc === "object" && "isRaw" in _playbackRingArc && _playbackRingArc.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_volumeRingArc", id: typeof _volumeRingArc === "object" && "id" in _volumeRingArc ? _volumeRingArc === null || _volumeRingArc === void 0 ? void 0 : _volumeRingArc.id : undefined, value: typeof _volumeRingArc === "object" && "value" in _volumeRingArc ? _volumeRingArc === null || _volumeRingArc === void 0 ? void 0 : _volumeRingArc.value : _volumeRingArc, isRaw: typeof _volumeRingArc === "object" && "isRaw" in _volumeRingArc && _volumeRingArc.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.String]", name: "_playbackTimeText", id: typeof _playbackTimeText === "object" && "id" in _playbackTimeText ? _playbackTimeText === null || _playbackTimeText === void 0 ? void 0 : _playbackTimeText.id : undefined, value: typeof _playbackTimeText === "object" && "value" in _playbackTimeText ? _playbackTimeText === null || _playbackTimeText === void 0 ? void 0 : _playbackTimeText.value : _playbackTimeText, isRaw: typeof _playbackTimeText === "object" && "isRaw" in _playbackTimeText && _playbackTimeText.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.String]", name: "_clipLengthTimeText", id: typeof _clipLengthTimeText === "object" && "id" in _clipLengthTimeText ? _clipLengthTimeText === null || _clipLengthTimeText === void 0 ? void 0 : _clipLengthTimeText.id : undefined, value: typeof _clipLengthTimeText === "object" && "value" in _clipLengthTimeText ? _clipLengthTimeText === null || _clipLengthTimeText === void 0 ? void 0 : _clipLengthTimeText.value : _clipLengthTimeText, isRaw: typeof _clipLengthTimeText === "object" && "isRaw" in _clipLengthTimeText && _clipLengthTimeText.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Uri]", name: "_iconTextureURL", id: typeof _iconTextureURL === "object" && "id" in _iconTextureURL ? _iconTextureURL === null || _iconTextureURL === void 0 ? void 0 : _iconTextureURL.id : undefined, value: typeof _iconTextureURL === "object" && "value" in _iconTextureURL ? _iconTextureURL === null || _iconTextureURL === void 0 ? void 0 : _iconTextureURL.value : _iconTextureURL, isRaw: typeof _iconTextureURL === "object" && "isRaw" in _iconTextureURL && _iconTextureURL.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_stopItem", id: typeof _stopItem === "object" && "id" in _stopItem ? _stopItem === null || _stopItem === void 0 ? void 0 : _stopItem.id : undefined, value: typeof _stopItem === "object" && "value" in _stopItem ? _stopItem === null || _stopItem === void 0 ? void 0 : _stopItem.value : _stopItem, isRaw: typeof _stopItem === "object" && "isRaw" in _stopItem && _stopItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_loopItem", id: typeof _loopItem === "object" && "id" in _loopItem ? _loopItem === null || _loopItem === void 0 ? void 0 : _loopItem.id : undefined, value: typeof _loopItem === "object" && "value" in _loopItem ? _loopItem === null || _loopItem === void 0 ? void 0 : _loopItem.value : _loopItem, isRaw: typeof _loopItem === "object" && "isRaw" in _loopItem && _loopItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_spatialItem", id: typeof _spatialItem === "object" && "id" in _spatialItem ? _spatialItem === null || _spatialItem === void 0 ? void 0 : _spatialItem.id : undefined, value: typeof _spatialItem === "object" && "value" in _spatialItem ? _spatialItem === null || _spatialItem === void 0 ? void 0 : _spatialItem.value : _spatialItem, isRaw: typeof _spatialItem === "object" && "isRaw" in _spatialItem && _spatialItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Uri]", name: "_loopIconURL", id: typeof _loopIconURL === "object" && "id" in _loopIconURL ? _loopIconURL === null || _loopIconURL === void 0 ? void 0 : _loopIconURL.id : undefined, value: typeof _loopIconURL === "object" && "value" in _loopIconURL ? _loopIconURL === null || _loopIconURL === void 0 ? void 0 : _loopIconURL.value : _loopIconURL, isRaw: typeof _loopIconURL === "object" && "isRaw" in _loopIconURL && _loopIconURL.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Uri]", name: "_spatialIconURL", id: typeof _spatialIconURL === "object" && "id" in _spatialIconURL ? _spatialIconURL === null || _spatialIconURL === void 0 ? void 0 : _spatialIconURL.id : undefined, value: typeof _spatialIconURL === "object" && "value" in _spatialIconURL ? _spatialIconURL === null || _spatialIconURL === void 0 ? void 0 : _spatialIconURL.value : _spatialIconURL, isRaw: typeof _spatialIconURL === "object" && "isRaw" in _spatialIconURL && _spatialIconURL.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.AudioExportable]", name: "_exportable", id: typeof _exportable === "object" && "id" in _exportable ? _exportable === null || _exportable === void 0 ? void 0 : _exportable.id : undefined, value: typeof _exportable === "object" && "value" in _exportable ? _exportable === null || _exportable === void 0 ? void 0 : _exportable.value : _exportable, isRaw: typeof _exportable === "object" && "isRaw" in _exportable && _exportable.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.AssetProxy`1[FrooxEngine.AudioClip]]", name: "_assetProxy", id: typeof _assetProxy === "object" && "id" in _assetProxy ? _assetProxy === null || _assetProxy === void 0 ? void 0 : _assetProxy.id : undefined, value: typeof _assetProxy === "object" && "value" in _assetProxy ? _assetProxy === null || _assetProxy === void 0 ? void 0 : _assetProxy.value : _assetProxy, isRaw: typeof _assetProxy === "object" && "isRaw" in _assetProxy && _assetProxy.isRaw ? true : undefined })] }))); } exports.AudioPlayerOrb = AudioPlayerOrb; ;