@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
JavaScript
import{a as t,e}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{R as i,d as s}from"./declarationMapper-D_filC93.esm.min.js";import{u as r}from"./index-BPURObVq.esm.min.js";import"./objectModelMapping-ClgDmo5Q.esm.min.js";import"./spotLight.pure-5s2DDDIt.esm.min.js";class n extends t{constructor(t){super(t),this.type="PointerUp",this.targetMesh=this.registerDataInput("targetMesh",i,t?.targetMesh),this.pointerId=this.registerDataOutput("pointerId",s),this.pickedMesh=this.registerDataOutput("pickedMesh",i),this.pickedPoint=this.registerDataOutput("pickedPoint",i)}_executeEvent(t,i){const s=this.targetMesh.getValue(t),r=i.pickInfo?.pickedMesh;return!(!s||r===s||r&&e(r,s))||(this.pointerId.setValue(i.event.pointerId,t),this.pickedMesh.setValue(r??null,t),this.pickedPoint.setValue(i.pickInfo?.pickedPoint??null,t),this._execute(t),!this.config?.stopPropagation)}_preparePendingTasks(t){}_cancelPendingTasks(t){}getClassName(){return"FlowGraphPointerUpEventBlock"}}let p=!1;function a(){p||(p=!0,r("FlowGraphPointerUpEventBlock",n))}a();export{n as FlowGraphPointerUpEventBlock,a as RegisterFlowGraphPointerUpEventBlock};
//# sourceMappingURL=flowGraphPointerUpEventBlock-Db0Qy9gi.esm.min.js.map