UNPKG

@babylonjs/viewer

Version:

The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.

3 lines (2 loc) 1.21 kB
import{g as t}from"./declarationMapper-D_filC93.esm.min.js";import{c as e}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{u as i}from"./index-BPURObVq.esm.min.js";import"./objectModelMapping-ClgDmo5Q.esm.min.js";import"./spotLight.pure-5s2DDDIt.esm.min.js";class n extends e{constructor(e){super(e),this.config=e;for(const e in this.config.eventData){const i=this.config.eventData[e],n="string"==typeof i.type?i.type:i.type?.typeName,o="function"==typeof i.type?.serialize?i.type:t(n);i.type=o,this.registerDataInput(e,o,i.value)}}_execute(t){const e=this.config.eventId,i={};for(const e of this.dataInputs)i[e.name]=e.getValue(t);t.configuration.coordinator.notifyCustomEvent(e,i),this.out._activateSignal(t)}serialize(t={}){super.serialize(t);const e={};for(const t in this.config.eventData){const i=this.config.eventData[t];e[t]={type:i.type.typeName},void 0!==i.value&&(e[t].value=i.value)}t.config.eventData=e}getClassName(){return"FlowGraphSendCustomEventBlock"}}let o=!1;function s(){o||(o=!0,i("FlowGraphSendCustomEventBlock",n))}s();export{n as FlowGraphSendCustomEventBlock,s as RegisterFlowGraphSendCustomEventBlock}; //# sourceMappingURL=flowGraphSendCustomEventBlock-BsXZ-mVb.esm.min.js.map