Skip to content

SymbolQuad

SymbolQuad: object

A textured quad for rendering a single icon or glyph.

The zoom range the glyph can be shown is defined by minScale and maxScale.

Param

The offset of the top left corner from the anchor.

Param

The offset of the top right corner from the anchor.

Param

The offset of the bottom left corner from the anchor.

Param

The offset of the bottom right corner from the anchor.

Param

The texture coordinates.

Type declaration

bl

bl: Point

br

br: Point

glyphOffset

glyphOffset: [number, number]

isSDF

isSDF: boolean

minFontScaleX

minFontScaleX: number

minFontScaleY

minFontScaleY: number

pixelOffsetBR

pixelOffsetBR: Point

pixelOffsetTL

pixelOffsetTL: Point

sectionIndex

sectionIndex: number

tex

tex: object

tex.h

h: number

tex.w

w: number

tex.x

x: number

tex.y

y: number

tl

tl: Point

tr

tr: Point

writingMode

writingMode: any | void

Source

src/symbol/quads.ts:26