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()`
(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`
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close