I need to add an id when defining a canvas:
let out = DOM.canvas(inputImage.width, inputImage.height);
solution was to:
let out = Object.assign(
DOM.canvas(inputImage.width, inputImage.height),
{id: "canvasOUT"}
)
Thanks to @mootari
@cpietsch the Object.assign in your example is redundant ;) (and HTML5 doesn't require self-closing tags for void elements):
mycanvas = html`<canvas width="128" height="128" id="${DOM.uid("canvas").id}">`
FYI: The Arquero library does not include the 'view' method as implemented here:
https://observablehq.com/@uwdata/arquero#aq
Workaround is to import Arquero:
import { aq } from '@uwdata/arquero'
could you gives examples of how BigQuery named parameters can work?
the `BigQuery can use named (`@age`, `@name`, …)` :
tried both `dbbigq.query(` SELECT ... @name`, [ name ])` which ends up `Error: Named parameters are not supported at [33:25]`;
or `dbbigq.query(`SELECT ... @name`, { name })` got `Error: Bad request`,
have to change to the ordered form `dbbigq.query(` SELECT ... ?`, [ name ])` which is the only way can work;