RevGrid - v0.9.3
    Preparing search index...

    A cell renderer for a text cell.

    Great care has been taken in crafting this function as it needs to perform extremely fast.

    Use gc.cache instead which we have implemented to cache the graphics context properties. Reads on the graphics context (gc) properties are expensive but not quite as expensive as writes. On read of a gc.cache prop, the actual gc prop is read into the cache once and from then on only the cache is referenced for that property. On write, the actual prop is only written to when the new value differs from the cached value.

    Clipping bounds are not set here as this is also an expensive operation. Instead, we employ a number of strategies to truncate overflowing text and content.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • An empty implementation of a cell renderer, see the null object pattern.

      Parameters

      Returns undefined | number

      Preferred pixel width of content. The content may or may not be rendered at that width depending on whether or not config.bounds was respected and whether or not the grid renderer is using clipping. (Clipping is generally not used due to poor performance.)