stream-charts
    Preparing search index...
    • Grabs the client-width of the svg element, or 1 if the svg element hasn't yet been initialized. The client-width is a read-only property returns the width of the html element, including horizontal padding and borders, as an integer. The reason that we return 1 when the svg element hasn't yet been initialized, is so that the aspect (width / height) is 1.

      Parameters

      • svg: SVGElement | null

        The svg element

      Returns number

      The client width of the svg