UNPKG

neos-script

Version:

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

23 lines (22 loc) 12.5 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.DirectVisemeDriver = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function DirectVisemeDriver(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Source = props.Source, MouthTrackingSource = props.MouthTrackingSource, StrengthMultiplier = props.StrengthMultiplier, VoiceMouthSupressWeight = props.VoiceMouthSupressWeight, LaughThreshold = props.LaughThreshold, LaughBeginSpeed = props.LaughBeginSpeed, LaughEndSpeed = props.LaughEndSpeed, Silence = props.Silence, PP = props.PP, FF = props.FF, TH = props.TH, DD = props.DD, kk = props.kk, CH = props.CH, SS = props.SS, nn = props.nn, RR = props.RR, aa = props.aa, E = props.E, ih = props.ih, oh = props.oh, ou = props.ou, Laugh = props.Laugh; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.DirectVisemeDriver", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 3 }, { 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.VisemeAnalyzer]", name: "Source", id: typeof Source === "object" && "id" in Source ? Source === null || Source === void 0 ? void 0 : Source.id : undefined, value: typeof Source === "object" && "value" in Source ? Source === null || Source === void 0 ? void 0 : Source.value : Source, isRaw: typeof Source === "object" && "isRaw" in Source && Source.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.IMouthTrackingSourceComponent]", name: "MouthTrackingSource", id: typeof MouthTrackingSource === "object" && "id" in MouthTrackingSource ? MouthTrackingSource === null || MouthTrackingSource === void 0 ? void 0 : MouthTrackingSource.id : undefined, value: typeof MouthTrackingSource === "object" && "value" in MouthTrackingSource ? MouthTrackingSource === null || MouthTrackingSource === void 0 ? void 0 : MouthTrackingSource.value : MouthTrackingSource, isRaw: typeof MouthTrackingSource === "object" && "isRaw" in MouthTrackingSource && MouthTrackingSource.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "StrengthMultiplier", id: typeof StrengthMultiplier === "object" && "id" in StrengthMultiplier ? StrengthMultiplier === null || StrengthMultiplier === void 0 ? void 0 : StrengthMultiplier.id : undefined, value: typeof StrengthMultiplier === "object" && "value" in StrengthMultiplier ? StrengthMultiplier === null || StrengthMultiplier === void 0 ? void 0 : StrengthMultiplier.value : StrengthMultiplier, isRaw: typeof StrengthMultiplier === "object" && "isRaw" in StrengthMultiplier && StrengthMultiplier.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "VoiceMouthSupressWeight", id: typeof VoiceMouthSupressWeight === "object" && "id" in VoiceMouthSupressWeight ? VoiceMouthSupressWeight === null || VoiceMouthSupressWeight === void 0 ? void 0 : VoiceMouthSupressWeight.id : undefined, value: typeof VoiceMouthSupressWeight === "object" && "value" in VoiceMouthSupressWeight ? VoiceMouthSupressWeight === null || VoiceMouthSupressWeight === void 0 ? void 0 : VoiceMouthSupressWeight.value : VoiceMouthSupressWeight, isRaw: typeof VoiceMouthSupressWeight === "object" && "isRaw" in VoiceMouthSupressWeight && VoiceMouthSupressWeight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "LaughThreshold", id: typeof LaughThreshold === "object" && "id" in LaughThreshold ? LaughThreshold === null || LaughThreshold === void 0 ? void 0 : LaughThreshold.id : undefined, value: typeof LaughThreshold === "object" && "value" in LaughThreshold ? LaughThreshold === null || LaughThreshold === void 0 ? void 0 : LaughThreshold.value : LaughThreshold, isRaw: typeof LaughThreshold === "object" && "isRaw" in LaughThreshold && LaughThreshold.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "LaughBeginSpeed", id: typeof LaughBeginSpeed === "object" && "id" in LaughBeginSpeed ? LaughBeginSpeed === null || LaughBeginSpeed === void 0 ? void 0 : LaughBeginSpeed.id : undefined, value: typeof LaughBeginSpeed === "object" && "value" in LaughBeginSpeed ? LaughBeginSpeed === null || LaughBeginSpeed === void 0 ? void 0 : LaughBeginSpeed.value : LaughBeginSpeed, isRaw: typeof LaughBeginSpeed === "object" && "isRaw" in LaughBeginSpeed && LaughBeginSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "LaughEndSpeed", id: typeof LaughEndSpeed === "object" && "id" in LaughEndSpeed ? LaughEndSpeed === null || LaughEndSpeed === void 0 ? void 0 : LaughEndSpeed.id : undefined, value: typeof LaughEndSpeed === "object" && "value" in LaughEndSpeed ? LaughEndSpeed === null || LaughEndSpeed === void 0 ? void 0 : LaughEndSpeed.value : LaughEndSpeed, isRaw: typeof LaughEndSpeed === "object" && "isRaw" in LaughEndSpeed && LaughEndSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "Silence", id: typeof Silence === "object" && "id" in Silence ? Silence === null || Silence === void 0 ? void 0 : Silence.id : undefined, value: typeof Silence === "object" && "value" in Silence ? Silence === null || Silence === void 0 ? void 0 : Silence.value : Silence, isRaw: typeof Silence === "object" && "isRaw" in Silence && Silence.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "PP", id: typeof PP === "object" && "id" in PP ? PP === null || PP === void 0 ? void 0 : PP.id : undefined, value: typeof PP === "object" && "value" in PP ? PP === null || PP === void 0 ? void 0 : PP.value : PP, isRaw: typeof PP === "object" && "isRaw" in PP && PP.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "FF", id: typeof FF === "object" && "id" in FF ? FF === null || FF === void 0 ? void 0 : FF.id : undefined, value: typeof FF === "object" && "value" in FF ? FF === null || FF === void 0 ? void 0 : FF.value : FF, isRaw: typeof FF === "object" && "isRaw" in FF && FF.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "TH", id: typeof TH === "object" && "id" in TH ? TH === null || TH === void 0 ? void 0 : TH.id : undefined, value: typeof TH === "object" && "value" in TH ? TH === null || TH === void 0 ? void 0 : TH.value : TH, isRaw: typeof TH === "object" && "isRaw" in TH && TH.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "DD", id: typeof DD === "object" && "id" in DD ? DD === null || DD === void 0 ? void 0 : DD.id : undefined, value: typeof DD === "object" && "value" in DD ? DD === null || DD === void 0 ? void 0 : DD.value : DD, isRaw: typeof DD === "object" && "isRaw" in DD && DD.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "kk", id: typeof kk === "object" && "id" in kk ? kk === null || kk === void 0 ? void 0 : kk.id : undefined, value: typeof kk === "object" && "value" in kk ? kk === null || kk === void 0 ? void 0 : kk.value : kk, isRaw: typeof kk === "object" && "isRaw" in kk && kk.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "CH", id: typeof CH === "object" && "id" in CH ? CH === null || CH === void 0 ? void 0 : CH.id : undefined, value: typeof CH === "object" && "value" in CH ? CH === null || CH === void 0 ? void 0 : CH.value : CH, isRaw: typeof CH === "object" && "isRaw" in CH && CH.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "SS", id: typeof SS === "object" && "id" in SS ? SS === null || SS === void 0 ? void 0 : SS.id : undefined, value: typeof SS === "object" && "value" in SS ? SS === null || SS === void 0 ? void 0 : SS.value : SS, isRaw: typeof SS === "object" && "isRaw" in SS && SS.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "nn", id: typeof nn === "object" && "id" in nn ? nn === null || nn === void 0 ? void 0 : nn.id : undefined, value: typeof nn === "object" && "value" in nn ? nn === null || nn === void 0 ? void 0 : nn.value : nn, isRaw: typeof nn === "object" && "isRaw" in nn && nn.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "RR", id: typeof RR === "object" && "id" in RR ? RR === null || RR === void 0 ? void 0 : RR.id : undefined, value: typeof RR === "object" && "value" in RR ? RR === null || RR === void 0 ? void 0 : RR.value : RR, isRaw: typeof RR === "object" && "isRaw" in RR && RR.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "aa", id: typeof aa === "object" && "id" in aa ? aa === null || aa === void 0 ? void 0 : aa.id : undefined, value: typeof aa === "object" && "value" in aa ? aa === null || aa === void 0 ? void 0 : aa.value : aa, isRaw: typeof aa === "object" && "isRaw" in aa && aa.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "E", id: typeof E === "object" && "id" in E ? E === null || E === void 0 ? void 0 : E.id : undefined, value: typeof E === "object" && "value" in E ? E === null || E === void 0 ? void 0 : E.value : E, isRaw: typeof E === "object" && "isRaw" in E && E.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "ih", id: typeof ih === "object" && "id" in ih ? ih === null || ih === void 0 ? void 0 : ih.id : undefined, value: typeof ih === "object" && "value" in ih ? ih === null || ih === void 0 ? void 0 : ih.value : ih, isRaw: typeof ih === "object" && "isRaw" in ih && ih.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "oh", id: typeof oh === "object" && "id" in oh ? oh === null || oh === void 0 ? void 0 : oh.id : undefined, value: typeof oh === "object" && "value" in oh ? oh === null || oh === void 0 ? void 0 : oh.value : oh, isRaw: typeof oh === "object" && "isRaw" in oh && oh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "ou", id: typeof ou === "object" && "id" in ou ? ou === null || ou === void 0 ? void 0 : ou.id : undefined, value: typeof ou === "object" && "value" in ou ? ou === null || ou === void 0 ? void 0 : ou.value : ou, isRaw: typeof ou === "object" && "isRaw" in ou && ou.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "Laugh", id: typeof Laugh === "object" && "id" in Laugh ? Laugh === null || Laugh === void 0 ? void 0 : Laugh.id : undefined, value: typeof Laugh === "object" && "value" in Laugh ? Laugh === null || Laugh === void 0 ? void 0 : Laugh.value : Laugh, isRaw: typeof Laugh === "object" && "isRaw" in Laugh && Laugh.isRaw ? true : undefined })] }))); } exports.DirectVisemeDriver = DirectVisemeDriver; ;