Liking cljdoc? Tell your friends :D
ClojureScript only.

web.TextMetrics

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

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

set-width!cljs

(set-width! this val)

Property.

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

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.TextMetrics` interface
the text's advance width (the width of that inline box) in CSS

`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.TextMetrics interface the text's advance width (the width of that inline box) in CSS

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.TextMetrics` interface
the text's advance width (the width of that inline box) in CSS

`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