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.08 kB
import{R as t}from"./declarationMapper-13w1YGqM.esm.min.js";import{R as e}from"./index-Bw2N6w1y.esm.min.js";import{F as r}from"./flowGraphCachedOperationBlock-rvkBwo1v.esm.min.js";import"./KHR_interactivity-CKt1TdMW.esm.min.js";import"./objectModelMapping-DX92iJ8M.esm.min.js";class o extends r{constructor(e){super(t,e),this.config=e,this.object=this.registerDataInput("object",t,e.object),this.propertyName=this.registerDataInput("propertyName",t,e.propertyName),this.customGetFunction=this.registerDataInput("customGetFunction",t)}_doOperation(t){const e=this.customGetFunction.getValue(t);let r;if(e)r=e(this.object.getValue(t),this.propertyName.getValue(t),t);else{const e=this.object.getValue(t),o=this.propertyName.getValue(t);r=e&&o?this._getPropertyValue(e,o):void 0}return r}_getPropertyValue(t,e){const r=e.split(".");let o=t;for(const t of r)if(o=o[t],void 0===o)return;return o}getClassName(){return"FlowGraphGetPropertyBlock"}}e("FlowGraphGetPropertyBlock",o);export{o as FlowGraphGetPropertyBlock}; //# sourceMappingURL=flowGraphGetPropertyBlock-B40l-iXi.esm.min.js.map