@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.
62 lines (58 loc) • 2.16 kB
JavaScript
import { a as FlowGraphEventBlock } from './KHR_interactivity-CnR665Qq.esm.js';
import { b as RichTypeString } from './declarationMapper-mPOKbCS_.esm.js';
import { u as RegisterClass } from './index-HyNDfLMI.esm.js';
import './objectModelMapping-OlchA9xj.esm.js';
import './spotLight.pure-C65PiYTZ.esm.js';
/** This file must only contain pure code and pure imports */
/** Event source key used to build this block's event reference. */
const EventKey = "sceneReady";
/**
* Block that triggers when a scene is ready.
*/
class FlowGraphSceneReadyEventBlock extends FlowGraphEventBlock {
constructor() {
super();
this.initPriority = -1;
this.type = "SceneReady" /* FlowGraphEventType.SceneReady */;
this.eventRef = this.registerDataOutput("event", RichTypeString);
}
_updateOutputs(context) {
this.eventRef.setValue(context.getEventReference(EventKey), context);
}
_executeEvent(context, _payload) {
this.eventRef.setValue(context.getEventReference(EventKey), context);
this._execute(context);
return true;
}
_preparePendingTasks(context) {
// no-op
}
_cancelPendingTasks(context) {
// no-op
}
/**
* @returns class name of the block.
*/
getClassName() {
return "FlowGraphSceneReadyEventBlock" /* FlowGraphBlockNames.SceneReadyEvent */;
}
}
let _Registered = false;
/**
* Register side effects for flowGraphSceneReadyEventBlock.
* Safe to call multiple times; only the first call has an effect.
*/
function RegisterFlowGraphSceneReadyEventBlock() {
if (_Registered) {
return;
}
_Registered = true;
RegisterClass("FlowGraphSceneReadyEventBlock" /* FlowGraphBlockNames.SceneReadyEvent */, FlowGraphSceneReadyEventBlock);
}
/**
* Re-exports pure implementation and applies runtime side effects.
* Import flowGraphSceneReadyEventBlock.pure for tree-shakeable, side-effect-free usage.
*/
RegisterFlowGraphSceneReadyEventBlock();
export { FlowGraphSceneReadyEventBlock, RegisterFlowGraphSceneReadyEventBlock };
//# sourceMappingURL=flowGraphSceneReadyEventBlock-DtQcuZ7j.esm.js.map