Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/shader_canvas/core/common/src_readers.ts>readQueryElement

A rendering engine where you can write WebGL 2.0 shaders using custom tags.
Latest
function readQueryElement
import { readQueryElement } from "https://deno.land/x/shader_canvas@v1.1.1/core/common/src_readers.ts";

A data reader that queries for the src string and runs JSON.parse on the textContent of the element queried.

It rejects if the src string is not a query string, or if no element is found or if the textContent of the found element is not an array of numbers.

Parameters

src: string

Returns

Promise<number[]>