UNPKG

@realsee/dnalogel

Version:
26 lines (25 loc) 476 B
import { Object3D as r } from "three"; class s extends r { constructor() { super(); } add(...e) { if (e.length === 0) return this; const t = e.filter(Boolean); return super.add(...t); } remove(...e) { if (e.length === 0) return this; const t = e.filter(Boolean); return super.remove(...t); } removeFromParent() { const e = this.parent; return e !== null && e.remove(this), this; } } export { s as IObject3D };