Liking cljdoc? Tell your friends :D
ClojureScript only.

web.canvas.TextMetrics

The TextMetrics interface represents the dimensions of a piece text in the canvas, as created by the CanvasRenderingContext2D.measureText()

The TextMetrics interface represents the dimensions of a piece
text in the canvas, as created by the `CanvasRenderingContext2D.measureText()`
raw docstring

set-width!cljs

(set-width! this val)

Property.

The read-only width property of the web.canvas.TextMetrics contains the text's advance width (the width of that inline box) CSS pixels.

var width = metrics.width;

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

Property.

The read-only width property of the `web.canvas.TextMetrics`
contains the text's advance width (the width of that inline box)
CSS pixels.

`var width = metrics.width;`

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

widthcljs

(width this)

Property.

The read-only width property of the web.canvas.TextMetrics contains the text's advance width (the width of that inline box) CSS pixels.

var width = metrics.width;

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

Property.

The read-only width property of the `web.canvas.TextMetrics`
contains the text's advance width (the width of that inline box)
CSS pixels.

`var width = metrics.width;`

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

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

× close