Hiyve Components - v1.0.0
    Preparing search index...
    • Map a pointer-event coordinate (in the canvas overlay's local pixel space) into normalised 0..1 source-content space. Coordinates outside the content rect are clamped — keeps strokes inside the visible video, which is the intended behaviour even when a user keeps dragging into the letterbox bands.

      Parameters

      • input: { rect: VideoContentRect; x: number; y: number }
        • rect: VideoContentRect
        • x: number

          Pixel x relative to the canvas (== relative to the video element box).

        • y: number

      Returns Point