MCPcopy Create free account
hub / github.com/esengine/esengine / getModule

Function getModule

packages/particle-editor/src/panels/ParticleEditorPanel.tsx:1470–1472  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

1468 const modules = data.modules || [];
1469
1470 const getModule = (type: string): IParticleModuleConfig | undefined => {
1471 return modules.find(m => m.type === type);
1472 };
1473
1474 const toggleExpand = (type: string) => {
1475 setExpandedModules(prev => {

Callers 1

ModulesPropertiesFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected