ecspresso
    Preparing search index...

    Function createDiagnosticsOverlay

    • Create a DOM overlay that displays diagnostics data. Returns a cleanup function that removes the element and clears the interval.

      Type Parameters

      Parameters

      • ecs: { getResource<K extends string | number | symbol>(key: K): R[K] }

        An ECSpresso instance with the diagnostics resource

      • Optionaloptions: DiagnosticsOverlayOptions

        Overlay configuration

      Returns () => void

      Cleanup function