Liking cljdoc? Tell your friends :D

web.OffscreenCanvas

The OffscreenCanvas interface provides a canvas that can be rendered screen. It is available in both the window and worker contexts.

The OffscreenCanvas interface provides a canvas that can be rendered
screen. It is available in both the window and worker contexts.
raw docstring

constructorcljs

Constructor.

The OffscreenCanvas() constructor returns a newly instantiated web.OffscreenCanvas object.

width The width of the offscreen canvas. height The height of the offscreen canvas.

See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/OffscreenCanvas

Constructor.

The OffscreenCanvas() constructor returns a newly instantiated `web.OffscreenCanvas` object.

width
The width of the offscreen canvas.
height
The height of the offscreen canvas.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/OffscreenCanvas`
sourceraw docstring

convert-to-blobcljs

(convert-to-blob this options)

Method.

The OffscreenCanvas.convertToBlob() method creates a web.Blob representing the image contained in the canvas.

Promise<Blob> OffscreenCanvas.convertToBlob(options);

See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob

Method.

The OffscreenCanvas.convertToBlob() method creates a `web.Blob`
representing the image contained in the canvas.

`Promise<Blob> OffscreenCanvas.convertToBlob(options);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob`
sourceraw docstring

get-contextcljs

(get-context this context-type context-attributes)

Method.

The OffscreenCanvas.getContext() method returns a drawing context an offscreen canvas, or web.null if the context identifier not supported.

offscreen.getContext(contextType, contextAttributes);

See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext

Method.

The OffscreenCanvas.getContext() method returns a drawing context
an offscreen canvas, or `web.null` if the context identifier
not supported.

`offscreen.getContext(contextType, contextAttributes);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext`
sourceraw docstring

heightcljs

(height this)

Property.

The height property returns and sets the height of an web.OffscreenCanvas

var pxl = offscreen.height; offscreen.height = pxl;

See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height

Property.

The height property returns and sets the height of an `web.OffscreenCanvas`

`var pxl = offscreen.height;
offscreen.height = pxl;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height`
sourceraw docstring

set-height!cljs

(set-height! this val)

Property.

The height property returns and sets the height of an web.OffscreenCanvas

var pxl = offscreen.height; offscreen.height = pxl;

See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height

Property.

The height property returns and sets the height of an `web.OffscreenCanvas`

`var pxl = offscreen.height;
offscreen.height = pxl;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height`
sourceraw docstring

set-width!cljs

(set-width! this val)

Property.

The width property returns and sets the width of an web.OffscreenCanvas

var pxl = offscreen.width; offscreen.width = pxl;

See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width

Property.

The width property returns and sets the width of an `web.OffscreenCanvas`

`var pxl = offscreen.width;
offscreen.width = pxl;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width`
sourceraw docstring

transfer-to-image-bitmapcljs

(transfer-to-image-bitmap this)

Method.

The OffscreenCanvas.transferToImageBitmap() method creates an object from the most recently rendered image of the OffscreenCanvas.

ImageBitmap OffscreenCanvas.transferToImageBitmap()

See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/transferToImageBitmap

Method.

The OffscreenCanvas.transferToImageBitmap() method creates an
object from the most recently rendered image of the OffscreenCanvas.

`ImageBitmap OffscreenCanvas.transferToImageBitmap()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/transferToImageBitmap`
sourceraw docstring

widthcljs

(width this)

Property.

The width property returns and sets the width of an web.OffscreenCanvas

var pxl = offscreen.width; offscreen.width = pxl;

See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width

Property.

The width property returns and sets the width of an `web.OffscreenCanvas`

`var pxl = offscreen.width;
offscreen.width = pxl;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close