@rekurt/openkline - v0.2.0
    Preparing search index...

    Function markerY

    • Y pixel coordinate for a marker given its candle. Pure helper, exported for testing and for consumers building custom marker renderers.

      Parameters

      • marker: Marker
      • candle: Candle
      • viewport: Viewport
      • gap: number

        extra spacing (px) between the candle high/low and an above/below glyph (so the glyph clears the wick).

      • size: number

      Returns number