@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Function drawingOf

    • The drawing to render for a view (default the top view): an SVG first (scales, viewBox in cm), else the first drawing of that view. Null when the product has none.

      Type Parameters

      Parameters

      • assets: T[] | null | undefined
      • view: "top" | "front" | "side" = "top"
      • __namedParameters: { prefer?: "png" | "svg" } = {}

      Returns T | null