Liking cljdoc? Tell your friends :D

web.canvas.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

convert-to-blobcljs

(convert-to-blob this options)

Method.

[Experimental]

The OffscreenCanvas.convertToBlob()method creates a web.files.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/convertToBlob

Method.

[Experimental]

The OffscreenCanvas.convertToBlob()method creates a `web.files.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/convertToBlob`
sourceraw docstring

get-contextcljs

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

Method.

[Experimental]

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

offscreen.getContext(contextType, contextAttributes);

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

Method.

[Experimental]

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

`offscreen.getContext(contextType, contextAttributes);`

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

heightcljs

(height this)

Property.

[Experimental]

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

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

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

Property.

[Experimental]

The height property returns and sets the height of an `web.canvas.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.

[Experimental]

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

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

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

Property.

[Experimental]

The height property returns and sets the height of an `web.canvas.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.

[Experimental]

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

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

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

Property.

[Experimental]

The width property returns and sets the width of an `web.canvas.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.

[Experimental]

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.

[Experimental]

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.

[Experimental]

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

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

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

Property.

[Experimental]

The width property returns and sets the width of an `web.canvas.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