Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.47
    Preparing search index...

    Function parseRootMarginPx

    • Parse the first component of an IntersectionObserver rootMargin string (e.g. "2000px", "100px 50px") into a pixel number. Returns 0 when the value is missing, percentage-based, or otherwise unparseable โ€” this is intentionally conservative so the eager-load fallback never fires for containers that the observer itself would not consider intersecting.

      Parameters

      • rootMargin: string

      Returns number