MediaSFU ReactJS
    Preparing search index...

    Function getOverlayPosition

    • Gets the style for positioning an overlay based on the specified position.

      Parameters

      Returns OverlayPositionStyle

      • The style object for positioning the overlay.
      const topLeftStyle = getOverlayPosition({ position: "topLeft" });
      console.log(topLeftStyle);
      // Output: { top: 0, left: 0 }

      const bottomRightStyle = getOverlayPosition({ position: "bottomRight" });
      console.log(bottomRightStyle);
      // Output: { bottom: 0, right: 0 }