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.

48 lines (45 loc) 1.54 kB
import { c as FlowGraphEventBlock } from './KHR_interactivity-Bmb38TjL.esm.js'; import { R as RegisterClass } from './index-FzOfPXLV.esm.js'; import { f as RichTypeNumber } from './declarationMapper-rcGCdcDP.esm.js'; import './objectModelMapping-CJnQ6at_.esm.js'; /** * Block that triggers on scene tick (before each render). */ class FlowGraphSceneTickEventBlock extends FlowGraphEventBlock { constructor() { super(); this.type = "SceneBeforeRender" /* FlowGraphEventType.SceneBeforeRender */; this.timeSinceStart = this.registerDataOutput("timeSinceStart", RichTypeNumber); this.deltaTime = this.registerDataOutput("deltaTime", RichTypeNumber); } /** * @internal */ _preparePendingTasks(_context) { // no-op } /** * @internal */ _executeEvent(context, payload) { this.timeSinceStart.setValue(payload.timeSinceStart, context); this.deltaTime.setValue(payload.deltaTime, context); this._execute(context); return true; } /** * @internal */ _cancelPendingTasks(_context) { // no-op } /** * @returns class name of the block. */ getClassName() { return "FlowGraphSceneTickEventBlock" /* FlowGraphBlockNames.SceneTickEvent */; } } RegisterClass("FlowGraphSceneTickEventBlock" /* FlowGraphBlockNames.SceneTickEvent */, FlowGraphSceneTickEventBlock); export { FlowGraphSceneTickEventBlock }; //# sourceMappingURL=flowGraphSceneTickEventBlock-Bymeo1jw.esm.js.map