Liking cljdoc? Tell your friends :D

web.dom.HTMLImageElement

The HTMLImageElement interface represents an HTML <img> element, the properties and methods used to manipulate image elements.

The HTMLImageElement interface represents an HTML `<img>` element,
the properties and methods used to manipulate image elements.
raw docstring

aligncljs

(align this)

Property.

A DOMString indicating the alignment of the image with respect the surrounding context. The possible values are "left", "right", and "center". This is obsolete; you should instead use CSS (such text-align, which works with images despite its name) to specify alignment.

Property.

A DOMString indicating the alignment of the image with respect
the surrounding context. The possible values are "left", "right",
and "center". This is obsolete; you should instead use CSS (such
text-align, which works with images despite its name) to specify
alignment.
sourceraw docstring

constructorcljs

Constructor.

The Image() constructor creates a new web.dom.HTMLImageElement instance. It is functionally equivalent to document.createElement('img').

Note: The entire bitmap is loaded regardless of the sizes specified in the constructor. The size specified in the constructor is reflected through the properties HTMLImageElement.width and HTMLImageElement.height of the resulting instance. The intrinsic width and height of the image in CSS pixels is reflected through the properties HTMLImageElement.naturalWidth and HTMLImageElement.naturalHeight. If no size is specified in the constructor both pairs of properties have the same values.

width The width of the image (i.e., the value for the width attribute). height The height of the image (i.e., the value for the height attribute).

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

Constructor.

The Image() constructor creates a new `web.dom.HTMLImageElement` instance. It is functionally equivalent to `document.createElement('img')`.

Note: The entire bitmap is loaded regardless of the sizes specified in the constructor. The size specified in the constructor is reflected through the properties `HTMLImageElement.width` and `HTMLImageElement.height` of the resulting instance. The intrinsic width and height of the image in CSS pixels is reflected through the properties `HTMLImageElement.naturalWidth` and `HTMLImageElement.naturalHeight`. If no size is specified in the constructor both pairs of properties have the same values.



width
The width of the image (i.e., the value for the width attribute).
height
The height of the image (i.e., the value for the height attribute).

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

decodecljs

(decode this)

Method.

The decode() method of the web.dom.HTMLImageElement interface a js.Promise that resolves when the image is decoded and it safe to append the image to the DOM.

var promise = HTMLImageElement.decode();

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

Method.

The decode() method of the `web.dom.HTMLImageElement` interface
a `js.Promise` that resolves when the image is decoded and it
safe to append the image to the DOM.

`var promise = HTMLImageElement.decode();`

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

decodingcljs

(decoding this)

Property.

The decoding property of the web.dom.HTMLImageElement interface a hint given to the browser on how it should decode the image.

refStr = imgElem.decoding; imgElem.decoding = refStr;

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

Property.

The decoding property of the `web.dom.HTMLImageElement` interface
a hint given to the browser on how it should decode the image.

`refStr = imgElem.decoding;
imgElem.decoding = refStr;`

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

referrer-policycljs

(referrer-policy this)

Property.

The HTMLImageElement.referrerPolicy property reflects the HTML attribute of the <img> element defining which referrer is sent fetching the resource.

refStr = imgElt.referrerPolicy; imgElt.referrerPolicy = refStr;

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

Property.

The HTMLImageElement.referrerPolicy property reflects the HTML
attribute of the `<img>` element defining which referrer is sent
fetching the resource.

`refStr = imgElt.referrerPolicy;
imgElt.referrerPolicy = refStr;`

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

set-align!cljs

(set-align! this val)

Property.

A DOMString indicating the alignment of the image with respect the surrounding context. The possible values are "left", "right", and "center". This is obsolete; you should instead use CSS (such text-align, which works with images despite its name) to specify alignment.

Property.

A DOMString indicating the alignment of the image with respect
the surrounding context. The possible values are "left", "right",
and "center". This is obsolete; you should instead use CSS (such
text-align, which works with images despite its name) to specify
alignment.
sourceraw docstring

set-decoding!cljs

(set-decoding! this val)

Property.

The decoding property of the web.dom.HTMLImageElement interface a hint given to the browser on how it should decode the image.

refStr = imgElem.decoding; imgElem.decoding = refStr;

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

Property.

The decoding property of the `web.dom.HTMLImageElement` interface
a hint given to the browser on how it should decode the image.

`refStr = imgElem.decoding;
imgElem.decoding = refStr;`

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

set-referrer-policy!cljs

(set-referrer-policy! this val)

Property.

The HTMLImageElement.referrerPolicy property reflects the HTML attribute of the <img> element defining which referrer is sent fetching the resource.

refStr = imgElt.referrerPolicy; imgElt.referrerPolicy = refStr;

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

Property.

The HTMLImageElement.referrerPolicy property reflects the HTML
attribute of the `<img>` element defining which referrer is sent
fetching the resource.

`refStr = imgElt.referrerPolicy;
imgElt.referrerPolicy = refStr;`

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

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

× close