Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...

    Function canTakeColormap

    • Whether layer may take the palette name. 'custom' names a layer's OWN authored LUT (LayerInfo.customLut): only a layer that has one can take it — and, when copying another layer's palette (sourceLut), only one whose LUT holds the same bytes. Stamped anywhere else it would render viridis under the name custom and leave the dropdown blank. Every other name (or none) applies to any layer.

      Parameters

      • layer: Pick<LayerInfo, "customLut">
      • name: string | undefined
      • OptionalsourceLut: Uint8Array<ArrayBufferLike>

      Returns boolean