UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

11 lines (10 loc) 295 B
import { LCP } from "./lcp.js"; /** * @param args - The arguments to initialize the performance analytics with. */ export module NeedleEnginePerformanceAnalytics { export function init(...args: Array<"lcp">) { if (args.includes("lcp")) LCP.observe(); } }