MCPcopy
hub / github.com/visgl/deck.gl / draw

Method draw

modules/layers/src/text-layer/font-atlas-manager.ts:47–47  ·  view source on GitHub ↗

* Render the given character to an image. * * Returned image data: * - `data`: rasterized glyph pixels. * - `left`: x offset from the glyph origin to the left edge of `data`, in pixels. Default `0`. * - `top`: y offset from the glyph origin to the top edge of `data`, in pixels. Defaul

(char: string)

Source from the content-addressed store, hash-verified

45 * - `top`: y offset from the glyph origin to the top edge of `data`, in pixels. Default `0`.
46 */
47 draw(char: string): {
48 data: ImageData;
49 left?: number;
50 top?: number;

Callers 15

getBuffersMethod · 0.65
drawMethod · 0.65
drawMethod · 0.65
drawFunction · 0.65
_drawLayerFunction · 0.65
_renderPassMethod · 0.65
drawMethod · 0.65
drawMethod · 0.65
drawMethod · 0.65
drawMethod · 0.65
drawMethod · 0.65
drawMethod · 0.65

Calls

no outgoing calls

Tested by 1

drawMethod · 0.52