UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

15 lines 684 B
import { PropertyBinding } from "three"; import computeOnce2 from "./utils/computeOnce2"; import { getFoundManager } from "../display/core/utils/getFoundManager"; import { indexChildrenNames } from "./indexChildrenNames"; export default computeOnce2((self, name) => { if (!name) { const [first] = indexChildrenNames(self.$loadedObject3d).values(); return getFoundManager(first, self); } const sanitized = PropertyBinding.sanitizeNodeName(name); for (const child of indexChildrenNames(self.$loadedObject3d).values()) if (child.name.startsWith(sanitized)) return getFoundManager(child, self); }); //# sourceMappingURL=findFirst.js.map