API

Interface IThinHighlightLayerOptions

Highlight layer options. This helps customizing the behaviour of the highlight layer.

interface IThinHighlightLayerOptions {
    blurHorizontalSize?: number;
    blurTextureSizeRatio?: number;
    blurVerticalSize?: number;
    forceGLSL?: boolean;
    isStroke?: boolean;
}

Hierarchy (View Summary)

Index
blurHorizontalSize?: number

How big in texel of the blur texture is the horizontal blur. Default: 1

blurTextureSizeRatio?: number

Multiplication factor apply to the main texture size in the first step of the blur to reduce the size of the picture to blur (the smaller the faster). Default: 0.5

blurVerticalSize?: number

How big in texel of the blur texture is the vertical blur. Default: 1

forceGLSL?: boolean

Use the GLSL code generation for the shader (even on WebGPU). Default is false

isStroke?: boolean

Should we display highlight as a solid stroke? Default: false